Skip to content

Commit 3e35598

Browse files
committed
fix sqlite type range mismatch
1 parent eccb0e4 commit 3e35598

259 files changed

Lines changed: 5563 additions & 5563 deletions

File tree

Some content is hidden

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48504,23 +48504,23 @@ SELECT * FROM tab4 WHERE + 54 - col4 IS NULL
4850448504
----
4850548505

4850648506
# Datafusion - Datafusion expected results:
48507-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48507+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4850848508
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
4850948509

4851048510
# Datafusion - Datafusion expected results:
48511-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48511+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4851248512
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
4851348513

4851448514
# Datafusion - Datafusion expected results:
48515-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48515+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4851648516
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
4851748517

4851848518
# Datafusion - Datafusion expected results:
48519-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48519+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4852048520
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab3 AS cor0 WHERE NOT NULL IS NULL
4852148521

4852248522
# Datafusion - Datafusion expected results:
48523-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48523+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4852448524
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab4 AS cor0 WHERE NOT NULL IS NULL
4852548525

4852648526
query I rowsort label-7980

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16521,23 +16521,23 @@ SELECT ALL * FROM tab4 AS cor0 WHERE col1 IN ( col0 )
1652116521
----
1652216522

1652316523
# Datafusion - Datafusion expected results:
16524-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
16524+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int64\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
1652516525
SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab0 AS cor0 WHERE ( NOT 92 IS NOT NULL )
1652616526

1652716527
# Datafusion - Datafusion expected results:
16528-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
16528+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int64\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
1652916529
SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab1 AS cor0 WHERE ( NOT 92 IS NOT NULL )
1653016530

1653116531
# Datafusion - Datafusion expected results:
16532-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
16532+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int64\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
1653316533
SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab2 AS cor0 WHERE ( NOT 92 IS NOT NULL )
1653416534

1653516535
# Datafusion - Datafusion expected results:
16536-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
16536+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int64\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
1653716537
SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab3 AS cor0 WHERE ( NOT 92 IS NOT NULL )
1653816538

1653916539
# Datafusion - Datafusion expected results:
16540-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
16540+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int64\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
1654116541
SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab4 AS cor0 WHERE ( NOT 92 IS NOT NULL )
1654216542

1654316543
# Datafusion - Types were automatically converted from:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41385,23 +41385,23 @@ query error DataFusion error: Schema error: Schema contains qualified field name
4138541385
SELECT DISTINCT col0, - col0 col0 FROM tab4 AS cor0 WHERE NOT ( NULL ) >= NULL
4138641386

4138741387
# Datafusion - Datafusion expected results:
41388-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41388+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4138941389
SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
4139041390

4139141391
# Datafusion - Datafusion expected results:
41392-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41392+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4139341393
SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
4139441394

4139541395
# Datafusion - Datafusion expected results:
41396-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41396+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4139741397
SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
4139841398

4139941399
# Datafusion - Datafusion expected results:
41400-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41400+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4140141401
SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab3 AS cor0 WHERE NULL IS NOT NULL
4140241402

4140341403
# Datafusion - Datafusion expected results:
41404-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41404+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4140541405
SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab4 AS cor0 WHERE NULL IS NOT NULL
4140641406

4140741407
# Datafusion - Types were automatically converted from:

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4449,23 +4449,23 @@ SELECT * FROM tab4 AS cor0 WHERE NULL = + 30
44494449
----
44504450

44514451
# Datafusion - Datafusion expected results:
4452-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4452+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44534453
SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
44544454

44554455
# Datafusion - Datafusion expected results:
4456-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4456+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44574457
SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
44584458

44594459
# Datafusion - Datafusion expected results:
4460-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4460+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44614461
SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
44624462

44634463
# Datafusion - Datafusion expected results:
4464-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4464+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44654465
SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab3 WHERE NOT col2 IS NOT NULL
44664466

44674467
# Datafusion - Datafusion expected results:
4468-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4468+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44694469
SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab4 WHERE NOT col2 IS NOT NULL
44704470

44714471
# Datafusion - Types were automatically converted from:
@@ -41549,23 +41549,23 @@ SELECT ALL 1 + + 4 + + + col1 FROM tab4 cor0 WHERE NOT NULL BETWEEN col0 + CAST
4154941549
----
4155041550

4155141551
# Datafusion - Datafusion expected results:
41552-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41552+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int64\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4155341553
SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab0 cor0 WHERE NULL >= ( NULL )
4155441554

4155541555
# Datafusion - Datafusion expected results:
41556-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41556+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int64\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4155741557
SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab1 cor0 WHERE NULL >= ( NULL )
4155841558

4155941559
# Datafusion - Datafusion expected results:
41560-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41560+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int64\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4156141561
SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab2 cor0 WHERE NULL >= ( NULL )
4156241562

4156341563
# Datafusion - Datafusion expected results:
41564-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41564+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int64\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4156541565
SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab3 cor0 WHERE NULL >= ( NULL )
4156641566

4156741567
# Datafusion - Datafusion expected results:
41568-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
41568+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int64\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4156941569
SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab4 cor0 WHERE NULL >= ( NULL )
4157041570

4157141571
# Datafusion - Types were automatically converted from:

0 commit comments

Comments
 (0)