Skip to content

Commit 6d1aa2d

Browse files
committed
Update expected results for duplicate column names fix
Queries that previously failed with "Projections require unique expression names" now succeed after the duplicate column names fix (apache/datafusion#21126). Updated ~39,706 query blocks across 279 files from query error to expected results. Generated using --complete mode with a post-processing script to preserve valuewise format and correct hash values.
1 parent 96dcc82 commit 6d1aa2d

279 files changed

Lines changed: 200911 additions & 39706 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_0.slt

Lines changed: 50 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17977,28 +17977,38 @@ SELECT * FROM tab4 cor0 WHERE - CAST ( NULL AS INTEGER ) + col4 + - + 93 >= col3
1797717977

1797817978
# Datafusion - Datafusion expected results:
1797917979
# Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e
17980-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\.
17980+
query TII valuesort
1798117981
SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab0 AS cor0 WHERE + col4 > + 12
17982+
----
17983+
30 values hashing to df4f53dd191885cda56262255e3cf796
1798217984

1798317985
# Datafusion - Datafusion expected results:
1798417986
# Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e
17985-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\.
17987+
query TII valuesort
1798617988
SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab1 AS cor0 WHERE + col4 > + 12
17989+
----
17990+
30 values hashing to df4f53dd191885cda56262255e3cf796
1798717991

1798817992
# Datafusion - Datafusion expected results:
1798917993
# Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e
17990-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\.
17994+
query TII valuesort
1799117995
SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab2 AS cor0 WHERE + col4 > + 12
17996+
----
17997+
30 values hashing to df4f53dd191885cda56262255e3cf796
1799217998

1799317999
# Datafusion - Datafusion expected results:
1799418000
# Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e
17995-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\.
18001+
query TII valuesort
1799618002
SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab3 AS cor0 WHERE + col4 > + 12
18003+
----
18004+
30 values hashing to df4f53dd191885cda56262255e3cf796
1799718005

1799818006
# Datafusion - Datafusion expected results:
1799918007
# Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e
18000-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\.
18008+
query TII valuesort
1800118009
SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab4 AS cor0 WHERE + col4 > + 12
18010+
----
18011+
30 values hashing to df4f53dd191885cda56262255e3cf796
1800218012

1800318013
# Datafusion - Types were automatically converted from:
1800418014
# Datafusion - [Expected] III[I][I][I][I]
@@ -34456,24 +34466,29 @@ SELECT * FROM tab4 WHERE - 29 IS NULL
3445634466
----
3445734467

3445834468
# Datafusion - Datafusion expected results:
34459-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
34469+
query II valuesort
3446034470
SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab0 WHERE + 88 * col0 <= NULL
34471+
----
3446134472

3446234473
# Datafusion - Datafusion expected results:
34463-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
34474+
query II valuesort
3446434475
SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab1 WHERE + 88 * col0 <= NULL
34476+
----
3446534477

3446634478
# Datafusion - Datafusion expected results:
34467-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
34479+
query II valuesort
3446834480
SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab2 WHERE + 88 * col0 <= NULL
34481+
----
3446934482

3447034483
# Datafusion - Datafusion expected results:
34471-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab3\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
34484+
query II valuesort
3447234485
SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab3 WHERE + 88 * col0 <= NULL
34486+
----
3447334487

3447434488
# Datafusion - Datafusion expected results:
34475-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab4\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
34489+
query II valuesort
3447634490
SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab4 WHERE + 88 * col0 <= NULL
34491+
----
3447734492

3447834493
# Datafusion - Types were automatically converted from:
3447934494
# Datafusion - [Expected] [I]
@@ -36142,28 +36157,38 @@ SELECT - + col3 FROM tab4 AS cor0 WHERE NOT + col4 IS NOT NULL
3614236157

3614336158
# Datafusion - Datafusion expected results:
3614436159
# Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d
36145-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
36160+
query II valuesort
3614636161
SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
36162+
----
36163+
20 values hashing to f32e8b3810a864cd772906b9c7348f15
3614736164

3614836165
# Datafusion - Datafusion expected results:
3614936166
# Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d
36150-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
36167+
query II valuesort
3615136168
SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
36169+
----
36170+
20 values hashing to f32e8b3810a864cd772906b9c7348f15
3615236171

3615336172
# Datafusion - Datafusion expected results:
3615436173
# Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d
36155-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
36174+
query II valuesort
3615636175
SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
36176+
----
36177+
20 values hashing to f32e8b3810a864cd772906b9c7348f15
3615736178

3615836179
# Datafusion - Datafusion expected results:
3615936180
# Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d
36160-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
36181+
query II valuesort
3616136182
SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab3 AS cor0 WHERE NOT NULL IS NOT NULL
36183+
----
36184+
20 values hashing to f32e8b3810a864cd772906b9c7348f15
3616236185

3616336186
# Datafusion - Datafusion expected results:
3616436187
# Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d
36165-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
36188+
query II valuesort
3616636189
SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL
36190+
----
36191+
20 values hashing to f32e8b3810a864cd772906b9c7348f15
3616736192

3616836193
# Datafusion - Types were automatically converted from:
3616936194
# Datafusion - [Expected] [I]
@@ -48351,24 +48376,29 @@ SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col3 col5, 26 * 3 FROM tab4 AS cor0
4835148376
----
4835248377

4835348378
# Datafusion - Datafusion expected results:
48354-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col4" at position 0 and "tab0\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48379+
query RR valuesort
4835548380
SELECT + col4, col4 AS col4 FROM tab0 WHERE NOT ( NULL ) IS NULL
48381+
----
4835648382

4835748383
# Datafusion - Datafusion expected results:
48358-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col4" at position 0 and "tab1\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48384+
query RR valuesort
4835948385
SELECT + col4, col4 AS col4 FROM tab1 WHERE NOT ( NULL ) IS NULL
48386+
----
4836048387

4836148388
# Datafusion - Datafusion expected results:
48362-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col4" at position 0 and "tab2\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48389+
query RR valuesort
4836348390
SELECT + col4, col4 AS col4 FROM tab2 WHERE NOT ( NULL ) IS NULL
48391+
----
4836448392

4836548393
# Datafusion - Datafusion expected results:
48366-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col4" at position 0 and "tab3\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48394+
query RR valuesort
4836748395
SELECT + col4, col4 AS col4 FROM tab3 WHERE NOT ( NULL ) IS NULL
48396+
----
4836848397

4836948398
# Datafusion - Datafusion expected results:
48370-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col4" at position 0 and "tab4\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
48399+
query RR valuesort
4837148400
SELECT + col4, col4 AS col4 FROM tab4 WHERE NOT ( NULL ) IS NULL
48401+
----
4837248402

4837348403
query I rowsort label-7945
4837448404
SELECT ALL col3 + + + 43 AS col4 FROM tab0 WHERE NULL IS NULL

0 commit comments

Comments
 (0)