Skip to content

Commit 76947eb

Browse files
chanNamgunggetChan
authored andcommitted
fix Incorrect NULL handling in BETWEEN expression
1 parent 5cc59ce commit 76947eb

File tree

211 files changed

+5183
-20768
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+5183
-20768
lines changed

data/sqlite/index/random/10/slt_good_0.slt

Lines changed: 95 additions & 380 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_1.slt

Lines changed: 105 additions & 420 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_10.slt

Lines changed: 75 additions & 300 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_11.slt

Lines changed: 85 additions & 340 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_12.slt

Lines changed: 70 additions & 280 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_13.slt

Lines changed: 80 additions & 320 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_14.slt

Lines changed: 80 additions & 320 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_2.slt

Lines changed: 70 additions & 280 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_3.slt

Lines changed: 75 additions & 300 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_4.slt

Lines changed: 80 additions & 320 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_5.slt

Lines changed: 65 additions & 260 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_6.slt

Lines changed: 55 additions & 220 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_7.slt

Lines changed: 85 additions & 340 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_8.slt

Lines changed: 65 additions & 260 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/10/slt_good_9.slt

Lines changed: 80 additions & 320 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/100/slt_good_0.slt

Lines changed: 65 additions & 260 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/100/slt_good_1.slt

Lines changed: 100 additions & 400 deletions
Large diffs are not rendered by default.

data/sqlite/index/random/1000/slt_good_0.slt

Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4348,46 +4348,31 @@ SELECT DISTINCT + - 53 + + COUNT ( * ) FROM tab4 AS cor0 WHERE col2 IS NOT NULL
43484348
----
43494349
947
43504350

4351-
# Datafusion - DataFusion error: type_coercion
4352-
# Datafusion - caused by
4353-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
4354-
skipif Datafusion
4351+
43554352
query I rowsort label-200
43564353
SELECT - COUNT ( + col1 ) AS col4 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 39
43574354
----
43584355
0
43594356

4360-
# Datafusion - DataFusion error: type_coercion
4361-
# Datafusion - caused by
4362-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
4363-
skipif Datafusion
4357+
43644358
query I rowsort label-200
43654359
SELECT - COUNT ( + col1 ) AS col4 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 39
43664360
----
43674361
0
43684362

4369-
# Datafusion - DataFusion error: type_coercion
4370-
# Datafusion - caused by
4371-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
4372-
skipif Datafusion
4363+
43734364
query I rowsort label-200
43744365
SELECT - COUNT ( + col1 ) AS col4 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 39
43754366
----
43764367
0
43774368

4378-
# Datafusion - DataFusion error: type_coercion
4379-
# Datafusion - caused by
4380-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
4381-
skipif Datafusion
4369+
43824370
query I rowsort label-200
43834371
SELECT - COUNT ( + col1 ) AS col4 FROM tab3 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 39
43844372
----
43854373
0
43864374

4387-
# Datafusion - DataFusion error: type_coercion
4388-
# Datafusion - caused by
4389-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
4390-
skipif Datafusion
4375+
43914376
query I rowsort label-200
43924377
SELECT - COUNT ( + col1 ) AS col4 FROM tab4 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 39
43934378
----
@@ -5773,42 +5758,27 @@ SELECT 25 FROM tab4 AS cor0 WHERE + + col3 * - col1 IS NOT NULL OR 69 >= + col3
57735758
----
57745759
1000 values hashing to 7ab27497c121866e93dc81537b56ecc8
57755760

5776-
# Datafusion - DataFusion error: type_coercion
5777-
# Datafusion - caused by
5778-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
5779-
skipif Datafusion
5761+
57805762
query I rowsort label-425
57815763
SELECT col0 + - 82 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 64 * + 41 * 10
57825764
----
57835765

5784-
# Datafusion - DataFusion error: type_coercion
5785-
# Datafusion - caused by
5786-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
5787-
skipif Datafusion
5766+
57885767
query I rowsort label-425
57895768
SELECT col0 + - 82 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 64 * + 41 * 10
57905769
----
57915770

5792-
# Datafusion - DataFusion error: type_coercion
5793-
# Datafusion - caused by
5794-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
5795-
skipif Datafusion
5771+
57965772
query I rowsort label-425
57975773
SELECT col0 + - 82 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 64 * + 41 * 10
57985774
----
57995775

5800-
# Datafusion - DataFusion error: type_coercion
5801-
# Datafusion - caused by
5802-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
5803-
skipif Datafusion
5776+
58045777
query I rowsort label-425
58055778
SELECT col0 + - 82 FROM tab3 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 64 * + 41 * 10
58065779
----
58075780

5808-
# Datafusion - DataFusion error: type_coercion
5809-
# Datafusion - caused by
5810-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
5811-
skipif Datafusion
5781+
58125782
query I rowsort label-425
58135783
SELECT col0 + - 82 FROM tab4 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 64 * + 41 * 10
58145784
----

data/sqlite/index/random/1000/slt_good_5.slt

Lines changed: 15 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9363,42 +9363,27 @@ query IIRTIRT rowsort label-1005
93639363
SELECT ALL * FROM tab4 AS cor0 WHERE - col0 * + col4 > NULL
93649364
----
93659365

9366-
# Datafusion - DataFusion error: type_coercion
9367-
# Datafusion - caused by
9368-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
9369-
skipif Datafusion
9366+
93709367
query I rowsort label-1010
93719368
SELECT - col1 * - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col3 + - 86
93729369
----
93739370

9374-
# Datafusion - DataFusion error: type_coercion
9375-
# Datafusion - caused by
9376-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
9377-
skipif Datafusion
9371+
93789372
query I rowsort label-1010
93799373
SELECT - col1 * - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col3 + - 86
93809374
----
93819375

9382-
# Datafusion - DataFusion error: type_coercion
9383-
# Datafusion - caused by
9384-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
9385-
skipif Datafusion
9376+
93869377
query I rowsort label-1010
93879378
SELECT - col1 * - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col3 + - 86
93889379
----
93899380

9390-
# Datafusion - DataFusion error: type_coercion
9391-
# Datafusion - caused by
9392-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
9393-
skipif Datafusion
9381+
93949382
query I rowsort label-1010
93959383
SELECT - col1 * - col0 FROM tab3 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col3 + - 86
93969384
----
93979385

9398-
# Datafusion - DataFusion error: type_coercion
9399-
# Datafusion - caused by
9400-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
9401-
skipif Datafusion
9386+
94029387
query I rowsort label-1010
94039388
SELECT - col1 * - col0 FROM tab4 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col3 + - 86
94049389
----
@@ -14118,42 +14103,27 @@ query I rowsort label-1760
1411814103
SELECT col2 FROM tab4 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col3 * col4 - - + col4
1411914104
----
1412014105

14121-
# Datafusion - DataFusion error: type_coercion
14122-
# Datafusion - caused by
14123-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
14124-
skipif Datafusion
14106+
1412514107
query I rowsort label-1765
1412614108
SELECT ( + col4 ) AS col5 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 38
1412714109
----
1412814110

14129-
# Datafusion - DataFusion error: type_coercion
14130-
# Datafusion - caused by
14131-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
14132-
skipif Datafusion
14111+
1413314112
query I rowsort label-1765
1413414113
SELECT ( + col4 ) AS col5 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 38
1413514114
----
1413614115

14137-
# Datafusion - DataFusion error: type_coercion
14138-
# Datafusion - caused by
14139-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
14140-
skipif Datafusion
14116+
1414114117
query I rowsort label-1765
1414214118
SELECT ( + col4 ) AS col5 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 38
1414314119
----
1414414120

14145-
# Datafusion - DataFusion error: type_coercion
14146-
# Datafusion - caused by
14147-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
14148-
skipif Datafusion
14121+
1414914122
query I rowsort label-1765
1415014123
SELECT ( + col4 ) AS col5 FROM tab3 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 38
1415114124
----
1415214125

14153-
# Datafusion - DataFusion error: type_coercion
14154-
# Datafusion - caused by
14155-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
14156-
skipif Datafusion
14126+
1415714127
query I rowsort label-1765
1415814128
SELECT ( + col4 ) AS col5 FROM tab4 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 38
1415914129
----
@@ -18763,42 +18733,27 @@ query IIRTIRT rowsort label-2540
1876318733
SELECT * FROM tab4 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
1876418734
----
1876518735

18766-
# Datafusion - DataFusion error: type_coercion
18767-
# Datafusion - caused by
18768-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
18769-
skipif Datafusion
18736+
1877018737
query IIIIIII rowsort label-2545
1877118738
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - 39
1877218739
----
1877318740

18774-
# Datafusion - DataFusion error: type_coercion
18775-
# Datafusion - caused by
18776-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
18777-
skipif Datafusion
18741+
1877818742
query IIIIIII rowsort label-2545
1877918743
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - 39
1878018744
----
1878118745

18782-
# Datafusion - DataFusion error: type_coercion
18783-
# Datafusion - caused by
18784-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
18785-
skipif Datafusion
18746+
1878618747
query IIIIIII rowsort label-2545
1878718748
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND - 39
1878818749
----
1878918750

18790-
# Datafusion - DataFusion error: type_coercion
18791-
# Datafusion - caused by
18792-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
18793-
skipif Datafusion
18751+
1879418752
query IIIIIII rowsort label-2545
1879518753
SELECT * FROM tab3 WHERE NULL BETWEEN NULL AND - 39
1879618754
----
1879718755

18798-
# Datafusion - DataFusion error: type_coercion
18799-
# Datafusion - caused by
18800-
# Datafusion - Error during planning: Cannot automatically convert Int64 to Null
18801-
skipif Datafusion
18756+
1880218757
query IIIIIII rowsort label-2545
1880318758
SELECT * FROM tab4 WHERE NULL BETWEEN NULL AND - 39
1880418759
----

0 commit comments

Comments
 (0)