@@ -3,7 +3,7 @@ statement ok
33drop table if exists t;
44
55statement ok
6- create table t(a int null, b varchar null);
6+ create or replace table t(a int null, b varchar null);
77
88statement ok
99insert into t(a, b) values (3, NULL), (3,'hello'), (3,'hello'), (3,'hello'), (3,'hello'), (3,'hello'), (3,'hello'), (3,'hello'), (1,'4'), (1,'4');
@@ -14,28 +14,10 @@ select a, b from t where a = 1 and cast(b as int) >= 2;
14141 4
15151 4
1616
17- # OR filter short circuit
18- statement ok
19- drop table if exists t;
20-
21- statement ok
22- create table t(a int);
23-
24- statement ok
25- insert into t values(0), (1), (2), (3), (NULL)
26-
27- query I
28- select a from t where a = 0 or 3 / a > 2 order by a
29- ----
30- 0
31- 1
32-
33- statement ok
34- drop table if exists t;
3517
3618# AND filter short circuit
3719statement ok
38- create table t(a varchar);
20+ create or replace table t(a varchar);
3921
4022statement ok
4123insert into t values('null'), ('202405');
@@ -45,15 +27,9 @@ SELECT count(1) FROM t WHERE a <> 'null' AND a IS NOT NULL AND to_date(a || '01'
4527----
46281
4729
48- statement ok
49- drop table if exists t;
5030
51- # Boolean comparison
5231statement ok
53- drop table if exists t;
54-
55- statement ok
56- create table t(a boolean, b boolean);
32+ create or replace table t(a boolean, b boolean);
5733
5834statement ok
5935insert into t values(true, true), (true, false), (false, false);
@@ -101,14 +77,7 @@ select * from t where not(not(not(a)))
101770 0
10278
10379statement ok
104- drop table if exists t;
105-
106- # Like Test
107- statement ok
108- drop table if exists t;
109-
110- statement ok
111- create table t(a int, b varchar);
80+ create or replace table t(a int, b varchar);
11281
11382statement ok
11483insert into t values(1, 'databend'), (2, ' databend query'), (3, 'query databend'), (4, 'query databend, query'), (5, 'databend cloud data warehouse'), (6, 'databend%cloud data warehouse');
@@ -216,8 +185,6 @@ select * from t where _origin_version is null;
2161851
2171862
218187
219- statement ok
220- drop table if exists t;
221188
222189#issue 17388
223190
@@ -232,5 +199,9 @@ SELECT * FROM t2 WHERE payload:key2 = 'null';
232199----
2332002 {"key":"val2","key2":"null"}
234201
202+
203+ statement ok
204+ drop table if exists t;
205+
235206statement ok
236207drop table if exists t2;
0 commit comments