crate / crate

CrateDB is a distributed and scalable SQL database for storing and analyzing massive amounts of data in near real-time, even with complex queries. It is PostgreSQL-compatible, and based on Lucene.

Home Page:https://cratedb.com/product

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `sign` function

surister opened this issue · comments

commented

Problem Statement

To improve PostgreSQL compatibility add sign (numeric) → numeric.

Example:
select sign(123); -> 1
select sign(-4); -> -1
select sign(0); -> 0
select sign(null); -> null

Possible Solutions

No response

Considered Alternatives

No response

Hello. Can I work on this issue?

commented

Hello. Can I work on this issue?

Hi, sure, assigned it to you.