Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JinheLin committed Aug 27, 2024
1 parent 322c3cd commit 93a6341
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions tests/fullstack-test-dt/expr/compare_null.test
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Must enable DT rough set filter and open debug level log to run this test, otherwise disable this test
mysql> drop table if exists test.t;

mysql> create table test.t (a datetime);
mysql> create table test.t (a date);

mysql> insert into test.t values("2024-08-26"),("2024-08-25"),("2024-08-24"),("2024-08-23");

Expand All @@ -28,22 +28,22 @@ mysql> alter table test.t compact tiflash replica;
mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a between NULL and '2024-08-25';

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where not (a between NULL and '2024-08-25');
+---------------------+
| a |
+---------------------+
| 2024-08-26 00:00:00 |
+---------------------+
+------------+
| a |
+------------+
| 2024-08-26 |
+------------+

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a in (NULL);

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a not in (NULL);

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a in (NULL, "2024-08-26");
+---------------------+
| a |
+---------------------+
| 2024-08-26 00:00:00 |
+---------------------+
+------------+
| a |
+------------+
| 2024-08-26 |
+------------+

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a not in (NULL, "2024-08-26");

Expand All @@ -53,7 +53,7 @@ mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t w

mysql> drop table if exists test.t;

mysql> create table test.t (a datetime);
mysql> create table test.t (a date);

mysql> insert into test.t values("2024-08-26"),("2024-08-26"),("2024-08-26"),("2024-08-26");

Expand All @@ -64,22 +64,22 @@ func> wait_table test t
mysql> alter table test.t compact tiflash replica;

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a in (NULL, "2024-08-26");
+---------------------+
| a |
+---------------------+
| 2024-08-26 00:00:00 |
| 2024-08-26 00:00:00 |
| 2024-08-26 00:00:00 |
| 2024-08-26 00:00:00 |
+---------------------+
+------------+
| a |
+------------+
| 2024-08-26 |
| 2024-08-26 |
| 2024-08-26 |
| 2024-08-26 |
+------------+

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a not in (NULL, "2024-08-26");

# not null

mysql> drop table if exists test.t;

mysql> create table test.t (a datetime not null);
mysql> create table test.t (a date not null);

mysql> insert into test.t values("2024-08-26"),("2024-08-25"),("2024-08-24"),("2024-08-23");

Expand All @@ -92,22 +92,22 @@ mysql> alter table test.t compact tiflash replica;
mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a between NULL and '2024-08-25';

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where not (a between NULL and '2024-08-25');
+---------------------+
| a |
+---------------------+
| 2024-08-26 00:00:00 |
+---------------------+
+------------+
| a |
+------------+
| 2024-08-26 |
+------------+

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a in (NULL);

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a not in (NULL);

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a in (NULL, "2024-08-26");
+---------------------+
| a |
+---------------------+
| 2024-08-26 00:00:00 |
+---------------------+
+------------+
| a |
+------------+
| 2024-08-26 |
+------------+

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a not in (NULL, "2024-08-26");

Expand All @@ -117,7 +117,7 @@ mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t w

mysql> drop table if exists test.t;

mysql> create table test.t (a datetime not null);
mysql> create table test.t (a date not null);

mysql> insert into test.t values("2024-08-26"),("2024-08-26"),("2024-08-26"),("2024-08-26");

Expand All @@ -128,13 +128,13 @@ func> wait_table test t
mysql> alter table test.t compact tiflash replica;

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a in (NULL, "2024-08-26");
+---------------------+
| a |
+---------------------+
| 2024-08-26 00:00:00 |
| 2024-08-26 00:00:00 |
| 2024-08-26 00:00:00 |
| 2024-08-26 00:00:00 |
+---------------------+
+------------+
| a |
+------------+
| 2024-08-26 |
| 2024-08-26 |
| 2024-08-26 |
| 2024-08-26 |
+------------+

mysql> set session tidb_isolation_read_engines='tiflash'; select * from test.t where a not in (NULL, "2024-08-26");

0 comments on commit 93a6341

Please sign in to comment.