mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-23 12:22:35 +00:00
feat: add isnull function (#3360)
* code fmt * feat: add isnull function * feat: add isnull function
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
CREATE TABLE t(a INTEGER, ts timestamp time index);
|
||||
|
||||
INSERT INTO t VALUES (1, 1), (null, 2), (3, 3);
|
||||
|
||||
SELECT ISNULL(a) from t;
|
||||
|
||||
SELECT ISNULL(null);
|
||||
|
||||
SELECT ISNULL(1);
|
||||
|
||||
SELECT ISNULL(-1);
|
||||
|
||||
SELECT ISNULL(1.0);
|
||||
|
||||
SELECT ISNULL(true);
|
||||
|
||||
SELECT ISNULL('string');
|
||||
|
||||
DROP TABLE t;
|
||||
Reference in New Issue
Block a user