mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-30 11:50:38 +00:00
feat: add isnull function (#3360)
* code fmt * feat: add isnull function * feat: add isnull function
This commit is contained in:
19
tests/cases/standalone/common/function/expression.sql
Normal file
19
tests/cases/standalone/common/function/expression.sql
Normal file
@@ -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