diff --git a/data/sqlite/index/random/10/slt_good_10.slt b/data/sqlite/index/random/10/slt_good_10.slt index 4211395..9fd31c5 100644 --- a/data/sqlite/index/random/10/slt_good_10.slt +++ b/data/sqlite/index/random/10/slt_good_10.slt @@ -48504,23 +48504,23 @@ SELECT * FROM tab4 WHERE + 54 - col4 IS NULL ---- # Datafusion - Datafusion expected results: -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\. +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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab3 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab4 AS cor0 WHERE NOT NULL IS NULL query I rowsort label-7980 diff --git a/data/sqlite/index/random/10/slt_good_13.slt b/data/sqlite/index/random/10/slt_good_13.slt index 68255b1..c765da2 100644 --- a/data/sqlite/index/random/10/slt_good_13.slt +++ b/data/sqlite/index/random/10/slt_good_13.slt @@ -16521,23 +16521,23 @@ SELECT ALL * FROM tab4 AS cor0 WHERE col1 IN ( col0 ) ---- # Datafusion - Datafusion expected results: -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\. +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\. SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab0 AS cor0 WHERE ( NOT 92 IS NOT NULL ) # Datafusion - Datafusion expected results: -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\. +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\. SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab1 AS cor0 WHERE ( NOT 92 IS NOT NULL ) # Datafusion - Datafusion expected results: -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\. +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\. SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab2 AS cor0 WHERE ( NOT 92 IS NOT NULL ) # Datafusion - Datafusion expected results: -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\. +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\. SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab3 AS cor0 WHERE ( NOT 92 IS NOT NULL ) # Datafusion - Datafusion expected results: -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\. +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\. SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab4 AS cor0 WHERE ( NOT 92 IS NOT NULL ) # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/10/slt_good_4.slt b/data/sqlite/index/random/10/slt_good_4.slt index c9de2e0..a6988d1 100644 --- a/data/sqlite/index/random/10/slt_good_4.slt +++ b/data/sqlite/index/random/10/slt_good_4.slt @@ -41385,23 +41385,23 @@ query error DataFusion error: Schema error: Schema contains qualified field name SELECT DISTINCT col0, - col0 col0 FROM tab4 AS cor0 WHERE NOT ( NULL ) >= NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab3 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab4 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/10/slt_good_5.slt b/data/sqlite/index/random/10/slt_good_5.slt index 84b92e9..4ff07db 100644 --- a/data/sqlite/index/random/10/slt_good_5.slt +++ b/data/sqlite/index/random/10/slt_good_5.slt @@ -4449,23 +4449,23 @@ SELECT * FROM tab4 AS cor0 WHERE NULL = + 30 ---- # Datafusion - Datafusion expected results: -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\. +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\. SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab3 WHERE NOT col2 IS NOT NULL # Datafusion - Datafusion expected results: -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\. +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\. SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab4 WHERE NOT col2 IS NOT NULL # Datafusion - Types were automatically converted from: @@ -41549,23 +41549,23 @@ SELECT ALL 1 + + 4 + + + col1 FROM tab4 cor0 WHERE NOT NULL BETWEEN col0 + CAST ---- # Datafusion - Datafusion expected results: -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\. +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\. SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab0 cor0 WHERE NULL >= ( NULL ) # Datafusion - Datafusion expected results: -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\. +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\. SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab1 cor0 WHERE NULL >= ( NULL ) # Datafusion - Datafusion expected results: -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\. +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\. SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab2 cor0 WHERE NULL >= ( NULL ) # Datafusion - Datafusion expected results: -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\. +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\. SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab3 cor0 WHERE NULL >= ( NULL ) # Datafusion - Datafusion expected results: -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\. +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\. SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab4 cor0 WHERE NULL >= ( NULL ) # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/10/slt_good_7.slt b/data/sqlite/index/random/10/slt_good_7.slt index a5e1188..0282c56 100644 --- a/data/sqlite/index/random/10/slt_good_7.slt +++ b/data/sqlite/index/random/10/slt_good_7.slt @@ -36637,23 +36637,23 @@ SELECT * FROM tab4 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab3 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab4 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/10/slt_good_9.slt b/data/sqlite/index/random/10/slt_good_9.slt index ad9401f..6014abf 100644 --- a/data/sqlite/index/random/10/slt_good_9.slt +++ b/data/sqlite/index/random/10/slt_good_9.slt @@ -10917,23 +10917,23 @@ SELECT - col0 AS col0 FROM tab4 AS cor0 WHERE - ( col3 ) = NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab3 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab4 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/100/slt_good_1.slt b/data/sqlite/index/random/100/slt_good_1.slt index 4875b79..8f92a7c 100644 --- a/data/sqlite/index/random/100/slt_good_1.slt +++ b/data/sqlite/index/random/100/slt_good_1.slt @@ -15185,23 +15185,23 @@ SELECT * FROM tab4 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab3 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab4 AS cor0 WHERE NULL >= col0 + + 62 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/index/random/1000/slt_good_8.slt b/data/sqlite/index/random/1000/slt_good_8.slt index 8bf2d33..bd0450b 100644 --- a/data/sqlite/index/random/1000/slt_good_8.slt +++ b/data/sqlite/index/random/1000/slt_good_8.slt @@ -20246,23 +20246,23 @@ SELECT ALL * FROM tab4 AS cor0 WHERE col2 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab3 AS cor0 WHERE NOT NULL <= NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab4 AS cor0 WHERE NOT NULL <= NULL # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/aggregates/slt_good_0.slt b/data/sqlite/random/aggregates/slt_good_0.slt index be4e955..37b3509 100644 --- a/data/sqlite/random/aggregates/slt_good_0.slt +++ b/data/sqlite/random/aggregates/slt_good_0.slt @@ -332,7 +332,7 @@ SELECT 82 * + 4 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col1\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "count\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col1\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 0 and "count\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( DISTINCT col1 ) * - + AVG ( DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -3112,7 +3112,7 @@ SELECT ALL * FROM tab0 WHERE NULL IN ( - - 42, col2 / - col0, ( col0 ), + col2 ) # Datafusion - Expected - 40 # Datafusion - Expected - -5025 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* CAST\(\(\- tab2\.col1\) AS Int32\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* CAST\(\(\- tab2\.col1\) AS Int64\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 * CAST ( - col1 AS INTEGER ) AS col0, + col2 AS col0 FROM tab2 query II rowsort @@ -4502,7 +4502,7 @@ SELECT + + 36 / + col0 col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(sum\(DISTINCT Int64\(\-31\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(sum\(DISTINCT Int64\(\-31\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( + SUM ( DISTINCT + - 31 ) AS INTEGER ) AS col1, 59 AS col1 FROM tab1 AS cor0 query I rowsort @@ -10139,7 +10139,7 @@ SELECT - col0 + col2 + + col2 * + ( col1 ) * 79 col0 FROM tab0 AS cor0 # Datafusion - Expected - -3807 # Datafusion - Expected - -90 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "tab0\.col2 \* CAST\(\(\- tab0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "tab0\.col2 \* CAST\(\(\- tab0\.col1\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col1, col2 * + CAST ( - col1 AS INTEGER ) col1 FROM tab0 query III rowsort @@ -17640,7 +17640,7 @@ SELECT DISTINCT - COUNT ( + col0 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 19 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) + - 5 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-2914 @@ -22414,7 +22414,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / col1 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-8\) \* \(\- cor0\.col2\) \- \(CAST\(NULL AS Int32\) \+ \(\- cor0\.col0\) \* cor0\.col0\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-8\) \* \(\- cor0\.col2\) \- \(CAST\(NULL AS Int64\) \+ \(\- cor0\.col0\) \* cor0\.col0\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col0, - 8 * - + col2 - + ( CAST ( NULL AS INTEGER ) + - col0 * + col0 ) * + 46 AS col0 FROM tab2 AS cor0 query I rowsort @@ -26532,7 +26532,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 47 IS NULL 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ tab1\.col2 / CAST\(NULL AS Float64\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ tab1\.col2 / CAST\(NULL AS Float64\) 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\. SELECT - col0 + + col2 / + CAST ( NULL AS FLOAT8 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col2 - + - col2 > NULL query I rowsort @@ -27659,7 +27659,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT 29 BETWEEN NULL AND - + col1 - + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query II rowsort @@ -32811,7 +32811,7 @@ SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - -2666 # Datafusion - Expected - NULL # Datafusion - Expected - -3908 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(94\) \- Int64\(\-69\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(94\) \- Int64\(\-69\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 94 - - 69 * - col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: @@ -43904,7 +43904,7 @@ SELECT DISTINCT + 60 + - - MAX ( - col0 ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 60 AS col1 FROM tab2 AS cor0 query I rowsort @@ -44239,7 +44239,7 @@ SELECT DISTINCT + 62 + - 64 - 37 FROM tab2 # Datafusion - Expected - -1 # Datafusion - Expected - -41 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ Int64\(36\) AS col1" at position 0 and "\(\- tab2\.col2\) / CAST\(\(\- Int64\(\-33\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ Int64\(36\) AS col1" at position 0 and "\(\- tab2\.col2\) / CAST\(\(\- Int64\(\-33\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 + 36 AS col1, - col2 / CAST ( - - 33 AS INTEGER ) AS col1 FROM tab2 # Datafusion - Types were automatically converted from: @@ -46500,7 +46500,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "cor0\.col0 \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "cor0\.col0 \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 14 AS col2, + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query II rowsort label-7701 @@ -49663,7 +49663,7 @@ SELECT - + ( + col1 ) * + 75 * - col2 * - 63 * - col2 + - col1 AS col2, col2 FRO # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c3f211610c274e6733018ea0b4811969 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col2\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / CAST\(NULL AS Int64\) AS col0" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col2\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col1 / CAST ( NULL AS INTEGER ) col0, + 69 + + ( + CAST ( + + CAST ( NULL AS INTEGER ) AS FLOAT8 ) ) + - col1 - col2, + col0 * - - col2 AS col0 FROM tab2 AS cor0 query I rowsort label-8225 @@ -57399,7 +57399,7 @@ SELECT DISTINCT MAX ( + - col1 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(Int64\(30\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "CAST\(Int64\(30\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, CAST ( + 30 AS INTEGER ) AS col0 FROM tab1 query I rowsort label-9490 @@ -59278,7 +59278,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL > + 1 # Datafusion - Expected - 3080 # Datafusion - Expected - NULL # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(\-95\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- Int64\(\-95\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 95 AS col1, col2 * + + col1 AS col1 FROM tab2 AS cor0 query III rowsort label-9801 diff --git a/data/sqlite/random/aggregates/slt_good_1.slt b/data/sqlite/random/aggregates/slt_good_1.slt index e538c68..b9369da 100644 --- a/data/sqlite/random/aggregates/slt_good_1.slt +++ b/data/sqlite/random/aggregates/slt_good_1.slt @@ -3591,7 +3591,7 @@ NULL # Datafusion - Expected - -260 # Datafusion - Expected - 6188 # Datafusion - Expected - -2444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(52\) \* \(\- CAST\(cor0\.col1 AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(52\) \* \(\- CAST\(cor0\.col1 AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col2 * - + col0 AS col0, 52 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -5570,7 +5570,7 @@ SELECT ALL COUNT ( * ) + - + 38 + 46 / SUM ( ALL 22 ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -53 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ) AS col0, 0 + - MAX ( ALL - - 53 ) AS col1, - 3 col0 FROM tab0 AS cor0 query III rowsort @@ -8012,7 +8012,7 @@ SELECT - col1 * col2 * + + ( 99 ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-1358 @@ -16272,7 +16272,7 @@ SELECT 10 - - - 57 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 4508 # Datafusion - Expected - -35 # Datafusion - Expected - 9088 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-35\) AS Int32\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col0 \* cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-35\) AS Int64\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col0 \* cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + - 35 AS INTEGER ) AS col1, col0 + col0 * + + col0 + - - col1 * col0 AS col1 FROM tab2 AS cor0 query I rowsort @@ -17059,7 +17059,7 @@ SELECT DISTINCT + + 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e826d82495162893c4b032160010dc9b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 1 and "cor0\.col2 \* cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 1 and "cor0\.col2 \* cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( col1 ), + col1 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( + - col1 ) AS col2, col2 * + col1 AS col2 FROM tab1 AS cor0 query I rowsort @@ -25630,7 +25630,7 @@ SELECT + + col2 / + + col1 AS col2 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 2002 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-22\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col2 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-22\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col2 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - col0 ) * - 22 AS col2, CAST ( NULL AS INTEGER ) * + col2 * col1 col2 FROM tab1 AS cor0 query I rowsort label-4335 @@ -26806,7 +26806,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-30\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- sum\(\(\- tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-30\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \- sum\(\(\- tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( ALL + - 30 ) AS col2, CAST ( NULL AS INTEGER ) - + SUM ( - + col0 ) AS col2 FROM tab2 query I rowsort label-4526 @@ -33138,7 +33138,7 @@ SELECT DISTINCT 72 AS col1, + col2 + col1 FROM tab1 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) col0, 81 AS col0 FROM tab1 AS cor0 query III rowsort @@ -35527,7 +35527,7 @@ SELECT ALL col0 + col2 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL # Datafusion - Expected - 1 # Datafusion - Expected - -675 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) \* cor0\.col0 AS col2" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) \* cor0\.col0 AS col2" at position 0 and "CAST\(cor0\.col1 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 45 * + col0 AS col2, ( CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 query I rowsort label-5976 @@ -42054,7 +42054,7 @@ SELECT 91 col1 FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col0, 85 AS col0 FROM tab2 AS cor0 query I rowsort label-7074 @@ -42641,7 +42641,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(36\) / Int64\(\-21\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(36\) / Int64\(\-21\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 query I rowsort label-7172 @@ -48786,7 +48786,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 9 * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-8209 @@ -49075,7 +49075,7 @@ SELECT ALL col1 + col1, col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7b264ef0ee6f48920e0f5efc4cb46fac -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(36\) AS Int32\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(36\) AS Int64\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + + 36 AS INTEGER ) AS col0, 47, - col0 AS col0 FROM tab2 AS cor0 query I rowsort label-8258 @@ -49448,7 +49448,7 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ CAST\(NULL AS Int32\) \* CAST\(Int64\(\-32\) AS Int32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ CAST\(NULL AS Int64\) \* CAST\(Int64\(\-32\) AS Int64\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) * + CAST ( - 32 AS INTEGER ) AS col1, + col0 AS col1 FROM tab1 query I rowsort label-8317 @@ -56929,7 +56929,7 @@ SELECT SUM ( - 74 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab1\.col1\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab1\.col1\)\) 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\. SELECT + MIN ( - col1 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_10.slt b/data/sqlite/random/aggregates/slt_good_10.slt index 3424f71..7e8e574 100644 --- a/data/sqlite/random/aggregates/slt_good_10.slt +++ b/data/sqlite/random/aggregates/slt_good_10.slt @@ -3531,7 +3531,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 47 / - col2 BETWEEN NULL AND + col2 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(\-47\) AS Int64\)\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( - ( + col2 ) ) AS col0, COUNT ( * ) + - CAST ( - 47 AS INTEGER ) + - 99 AS col0 FROM tab1 AS cor0 query II rowsort label-573 @@ -4966,7 +4966,7 @@ SELECT ALL col1 * - col0 * 91 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* cor0\.col2 \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col2 / \(\- Int64\(\-73\)\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* cor0\.col2 \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "cor0\.col2 / \(\- Int64\(\-73\)\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 52 * + col2 * - CAST ( NULL AS INTEGER ) AS col2, + col2 / - - 73 - + col2 AS col2 FROM tab2 AS cor0 query I rowsort label-806 @@ -13844,7 +13844,7 @@ SELECT DISTINCT + col0 * - col1 + 7 * + 43 col1 FROM tab0 AS cor0 # Datafusion - Expected - 1595 # Datafusion - Expected - NULL # Datafusion - Expected - 1595 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(55\) \* \(\- Int64\(\-29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / \(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(55\) \* \(\- Int64\(\-29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) / - col2 + - col0 AS col2, 55 * - - 29 col2 FROM tab1 AS cor0 query I rowsort label-2265 @@ -14998,7 +14998,7 @@ SELECT ALL * FROM tab1 WHERE + - 97 IS NOT NULL # Datafusion - Expected - 79 # Datafusion - Expected - -7200 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* CAST\(\(\- tab2\.col0\) AS Int32\) AS col2" at position 0 and "tab2\.col0 \+ \(\- \(\- CAST\(tab2\.col1 AS Int32\)\)\) \+ Int64\(\-81\) \+ \(\- \(\- CAST\(Int64\(19\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* CAST\(\(\- tab2\.col0\) AS Int64\) AS col2" at position 0 and "tab2\.col0 \+ \(\- \(\- CAST\(tab2\.col1 AS Int64\)\)\) \+ Int64\(\-81\) \+ \(\- \(\- CAST\(Int64\(19\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 * + CAST ( - col0 AS INTEGER ) AS col2, col0 + - - CAST ( + col1 AS INTEGER ) + - 81 + - - ( + CAST ( + 19 AS INTEGER ) ) AS col2 FROM tab2 query II rowsort @@ -15447,7 +15447,7 @@ SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "\(\- CAST\(\(\- avg\(tab1\.col2\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "\(\- CAST\(\(\- avg\(tab1\.col2\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 14 AS col2, - CAST ( - + AVG ( ALL + + col2 ) AS INTEGER ) AS col2 FROM tab1 query III rowsort label-2524 @@ -17013,7 +17013,7 @@ SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 18 AND - 76 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int32\) AS col2" at position 0 and "Int64\(68\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int64\) AS col2" at position 0 and "Int64\(68\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + col1 AS INTEGER ) AS col2, 68 * col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL query III rowsort @@ -19389,7 +19389,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 81 * - col1 * - col2 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 + - col0 AS col0, - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -20925,7 +20925,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 3886 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col2 AS col2" at position 0 and "Int64\(29\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col2 AS col2" at position 0 and "Int64\(29\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 * + col2 AS col2, + 29 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query I rowsort @@ -25231,7 +25231,7 @@ SELECT DISTINCT + + col2 AS col0 FROM tab1 AS cor0 WHERE col0 + + col1 IS NOT NU # Datafusion - Expected - NULL # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 11 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -36691,7 +36691,7 @@ SELECT ALL + COUNT ( * ) + - 6 * + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col0, CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 query I rowsort @@ -37555,7 +37555,7 @@ SELECT ALL - col1 / ( - - col2 ) AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 col1, ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 query III rowsort @@ -37934,7 +37934,7 @@ SELECT col1 / + - col0 AS col1, + col0 + + - 68 * col1 / + col2 col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 4235 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* \(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col2 / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* \(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col2 / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 * - col1 AS col0, col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -39577,7 +39577,7 @@ SELECT - CAST ( col2 AS INTEGER ) + + 94 + - - col1 col2 FROM tab2 AS cor0 WHERE # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -40207,7 +40207,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-77\)\) \- min\(CAST\(cor0\.col2 AS Int32\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-77\)\) \- min\(CAST\(cor0\.col2 AS Int64\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( ALL + - 77 ) - + + MIN ( + CAST ( + + col2 AS INTEGER ) ) AS col0, 72 col0 FROM tab1 AS cor0 query I rowsort @@ -45272,7 +45272,7 @@ SELECT - 52 + + - COUNT ( * ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 92 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -46635,7 +46635,7 @@ SELECT - 28 + - - col1 FROM tab1 cor0 # Datafusion - Expected - 291383 # Datafusion - Expected - NULL # Datafusion - Expected - 53907 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) \* \(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) \* \(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 AS col1, col2 * - col1 * - col0 + - col1 AS col1 FROM tab2 AS cor0 query I rowsort label-7626 @@ -53758,7 +53758,7 @@ SELECT col0 + col2 * - - 71 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(29\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(29\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 / + + 29 AS col1, CAST ( NULL AS INTEGER ) / + 75 col1 FROM tab2 AS cor0 query I rowsort label-8799 @@ -57341,7 +57341,7 @@ SELECT col2 + CAST ( + col0 AS INTEGER ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col1 \+ Int64\(79\) / Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col1 \+ Int64\(79\) / Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 64 AS col2, + CAST ( NULL AS INTEGER ) * col1 + 79 / + ( + 45 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -58614,7 +58614,7 @@ SELECT DISTINCT 67 + + + col2 FROM tab0 77 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col2 / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col2 / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col2, col2 / CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE + 39 IS NULL query I rowsort @@ -58658,7 +58658,7 @@ SELECT DISTINCT + + 92 col1 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + col2 AS INTEGER ), col2 FROM tab1 AS cor0 query II rowsort @@ -59123,7 +59123,7 @@ SELECT DISTINCT - col2 AS col1, + col1 + 22 + - + col2 * + - col0 * - - 23 * - c -5802811 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int32\)\) \+ \(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int64\)\) \+ \(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col1 * + col0 AS col1, + 56 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_100.slt b/data/sqlite/random/aggregates/slt_good_100.slt index 03343e5..c847fd3 100644 --- a/data/sqlite/random/aggregates/slt_good_100.slt +++ b/data/sqlite/random/aggregates/slt_good_100.slt @@ -1813,7 +1813,7 @@ SELECT DISTINCT - col1 * + col2 AS col0, + 54 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 294 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(99\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(99\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * + 99 - + COUNT ( * ) AS col1 FROM tab1 cor0 query I rowsort @@ -2631,7 +2631,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col2 col1, - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 query I rowsort label-433 @@ -3141,7 +3141,7 @@ SELECT DISTINCT col0 / col0 - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col0" at position 0 and "sum\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col0" at position 0 and "sum\(DISTINCT \(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 8 AS col0, SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col0 query I rowsort label-517 @@ -9669,7 +9669,7 @@ SELECT + col2 * - 74 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 0 and "min\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 0 and "min\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2, MIN ( col2 ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -20410,7 +20410,7 @@ SELECT DISTINCT - SUM ( DISTINCT - + 10 ) AS col2, - COUNT ( * ) FROM tab2, tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - col0 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -21209,7 +21209,7 @@ SELECT DISTINCT + col2 * + col2 * - col2 AS col2, 25 - + col2 + - col0 AS col0 F # Datafusion - Expected - 10 # Datafusion - Expected - -9603 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) AS col1" at position 0 and "CAST\(tab0\.col2 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) AS col1" at position 0 and "CAST\(tab0\.col2 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 * - col0 AS col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 # Datafusion - Types were automatically converted from: @@ -22638,7 +22638,7 @@ SELECT - MIN ( - 84 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- max\(DISTINCT \(\- tab2\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- max\(DISTINCT \(\- tab2\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT - col0 ) AS col2 FROM tab2 query I rowsort label-3728 @@ -22859,7 +22859,7 @@ SELECT * FROM tab1 cor0 WHERE NOT + 11 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col0 / \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col0 / \(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 AS col0, col0 / + - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -24206,7 +24206,7 @@ SELECT + col1 - + 84 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(61\) \* count\(Int64\(45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(61\) \* count\(Int64\(45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, 61 * + COUNT ( ALL + 45 ) col2 FROM tab1 cor0 CROSS JOIN tab2 cor1 query I rowsort @@ -24703,7 +24703,7 @@ SELECT 75 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) / Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) / 91 AS col0 FROM tab1 cor0 query I rowsort @@ -41596,7 +41596,7 @@ SELECT 28 * + col1 * + col2 * - + col0 + + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( col2 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort label-6838 @@ -42063,7 +42063,7 @@ SELECT DISTINCT 99 * + col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(39\) / cor0\.col2 \- \(\- cor0\.col0\) \+ cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col1 / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(39\) / cor0\.col2 \- \(\- cor0\.col0\) \+ cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col1 / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 + + 39 / + col2 - - col0 + + col1 + - col0 AS col1, + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -46296,7 +46296,7 @@ NULL # Datafusion - Expected - 1123 # Datafusion - Expected - 81 # Datafusion - Expected - 4340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(cor0\.col1 AS Int32\) AS Int32\) AS col2" at position 0 and "Int64\(53\) \* cor0\.col1 \- \(\- CAST\(cor0\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(cor0\.col1 AS Int64\) AS Int64\) AS col2" at position 0 and "Int64\(53\) \* cor0\.col1 \- \(\- CAST\(cor0\.col2 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( CAST ( + ( col1 ) AS INTEGER ) AS INTEGER ) AS col2, 53 * col1 - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort label-7598 @@ -53296,7 +53296,7 @@ SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 * - col2 * + - # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_101.slt b/data/sqlite/random/aggregates/slt_good_101.slt index 4bf615e..8753f7a 100644 --- a/data/sqlite/random/aggregates/slt_good_101.slt +++ b/data/sqlite/random/aggregates/slt_good_101.slt @@ -5165,7 +5165,7 @@ SELECT ALL + - col2 * - - col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 282 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- sum\(\(\- cor0\.col1\)\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* max\(\(\- Int64\(\-12\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- sum\(\(\- cor0\.col1\)\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* max\(\(\- Int64\(\-12\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 87 + - SUM ( - col1 ) col1, CAST ( ( + + COUNT ( * ) ) AS INTEGER ) * MAX ( - - 12 ) AS col1 FROM tab2 AS cor0 query I rowsort label-846 @@ -13750,7 +13750,7 @@ SELECT DISTINCT col1 * + + col2 + + 5 col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 20 AS col1, - col0 * - ( + CAST ( NULL AS INTEGER ) ) + + - col1 * + col0 AS col1 FROM tab2 AS cor0 query I rowsort @@ -16967,7 +16967,7 @@ SELECT + 52 * - - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2 query I rowsort @@ -19640,7 +19640,7 @@ SELECT DISTINCT - col1 * - 83 * + ( - col1 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- tab2\.col0\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-10\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- tab2\.col0\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-10\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MIN ( - - col0 ) AS col2, ( - CAST ( NULL AS INTEGER ) ) * + - 10 + - 79 AS col2 FROM tab2 query III rowsort @@ -19870,7 +19870,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 + - - ( + 42 ) NOT BETWEE # Datafusion - Expected - 72 # Datafusion - Expected - -81 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) AS col2" at position 0 and "Int64\(93\) \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int64\) AS col2" at position 0 and "Int64\(93\) \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - col1 AS INTEGER ) AS col2, 93 - + + col1 AS col2 FROM tab0 AS cor0 query I rowsort @@ -20977,7 +20977,7 @@ SELECT - col0 * + col1 + - - ( + col1 ) + - 41 AS col1 FROM tab0 AS cor0 WHERE c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-59\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-59\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 59 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort label-3440 @@ -21098,7 +21098,7 @@ SELECT + + 69 col0 FROM tab2 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* CAST\(NULL AS Int32\) AS col1" at position 0 and "tab0\.col2 \- \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* CAST\(NULL AS Int64\) AS col1" at position 0 and "tab0\.col2 \- \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 * ( + CAST ( NULL AS INTEGER ) ) AS col1, col2 - - + col0 AS col1 FROM tab0 query I rowsort label-3460 @@ -23791,7 +23791,7 @@ SELECT ALL - 29 * - ( - + MIN ( - ( - col0 ) ) ) + - ( 8 ) FROM tab0 -443 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col0 AS INTEGER ) AS col1, + 4 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL # Datafusion - Datafusion expected results: @@ -25137,7 +25137,7 @@ SELECT DISTINCT + col0 AS col2, 18 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) \+ cor0\.col2 / \(\- cor0\.col0\) \+ cor0\.col0 \+ Int64\(\-32\) \* cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \+ CAST\(NULL AS Int64\) \+ cor0\.col2 / \(\- cor0\.col0\) \+ cor0\.col0 \+ Int64\(\-32\) \* cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 27 AS col2, + col2 + - col2 + + CAST ( NULL AS INTEGER ) + col2 / + - col0 + + col0 + - 32 * + + col1 * - col2 AS col2 FROM tab2 AS cor0 query I rowsort label-4116 @@ -27290,7 +27290,7 @@ SELECT 0 * COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 AS col2, + ( - col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort @@ -33516,7 +33516,7 @@ SELECT + + 26 * - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 0 and "count\(DISTINCT cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col2" at position 0 and "count\(DISTINCT cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, COUNT ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -33536,7 +33536,7 @@ SELECT ALL * FROM tab1 WHERE + - col2 * - col1 + - - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(Int64\(74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(Int64\(74\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, ( + + ( CAST ( + 74 AS INTEGER ) ) ) AS col0 FROM tab1 query I rowsort @@ -33756,7 +33756,7 @@ SELECT + CAST ( ( + col1 ) AS INTEGER ) + - - 22 - + 52 AS col2 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-47\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-47\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) + - 47 AS col0, - col2 AS col0 FROM tab0 AS cor0 query I rowsort label-5537 @@ -37938,7 +37938,7 @@ SELECT ALL - 36 + + col2 FROM tab2 AS cor0 # Datafusion - Expected - 7552 # Datafusion - Expected - -3243 # Datafusion - Expected - 9316 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) \- cor0\.col1 AS col0" at position 0 and "cor0\.col2 \* cor0\.col2 \+ \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) \- cor0\.col1 AS col0" at position 0 and "cor0\.col2 \* cor0\.col2 \+ \(\- \(\- CAST\(cor0\.col2 AS Int64\)\)\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col2 * - col1 - col1 AS col0, col2 * + ( + col2 ) + - ( + - ( CAST ( col2 AS INTEGER ) ) ) * + 69 AS col0 FROM tab1 AS cor0 query I rowsort label-6234 @@ -46956,7 +46956,7 @@ SELECT - 69 * col0 AS col1 FROM tab2 WHERE - col2 IS NOT NULL # Datafusion - Expected - 22 # Datafusion - Expected - NULL # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- tab0\.col2\) \* \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- tab0\.col2\) \* \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + - + col2 * - col0 AS col0, 22 AS col0 FROM tab0 query I rowsort label-7694 @@ -47272,7 +47272,7 @@ SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NULL < NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(23\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "cor0\.col0 / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(23\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "cor0\.col0 / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col0 * + 23 / - ( - CAST ( NULL AS INTEGER ) ) AS col0, col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort label-7743 @@ -48049,7 +48049,7 @@ SELECT 93 FROM tab2 AS cor0 WHERE NOT ( NOT 32 BETWEEN NULL AND NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(58\)\)\) AS col0" at position 0 and "CAST\(Int64\(\-42\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(58\)\)\) AS col0" at position 0 and "CAST\(Int64\(\-42\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST ( + - 42 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL ) query I rowsort @@ -50379,7 +50379,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + 15 + col0 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - col2 col2 FROM tab0 AS cor0 query I rowsort label-8243 @@ -50658,7 +50658,7 @@ SELECT DISTINCT + - MIN ( DISTINCT 8 ) AS col2, ( SUM ( - col0 ) ) FROM tab2 AS # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(19\) \* Int64\(\-90\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(19\) \* Int64\(\-90\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 col1, + ( + 19 ) * - 90 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query II rowsort @@ -56682,7 +56682,7 @@ SELECT ALL 56, col0 * 4 col1 FROM tab0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "CAST\(\(\- tab1\.col0\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "CAST\(\(\- tab1\.col0\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0, CAST ( + - col0 AS INTEGER ) FROM tab1 query I rowsort @@ -59793,7 +59793,7 @@ SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) > + # Datafusion - Expected - 13828594 # Datafusion - Expected - -81 # Datafusion - Expected - 273503 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col0 \+ cor0\.col0 \- CAST\(\(\- cor0\.col2\) AS Int32\) \+ cor0\.col0 \* \(\- cor0\.col0\) \* \(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col0 \+ cor0\.col0 \- CAST\(\(\- cor0\.col2\) AS Int64\) \+ cor0\.col0 \* \(\- cor0\.col0\) \* \(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col1 AS col2, + col1 - col0 + col0 - + + CAST ( - col2 AS INTEGER ) + + + col0 * - col0 * - - col0 * - col1 AS col2 FROM tab0 cor0 query II rowsort @@ -60064,7 +60064,7 @@ SELECT ALL + 40, 9 col1 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(94\) \+ \(\- Int64\(72\)\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(94\) \+ \(\- Int64\(72\)\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) / + + 94 + - + 72 AS col1, col0 AS col1 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_102.slt b/data/sqlite/random/aggregates/slt_good_102.slt index 849f564..09d837c 100644 --- a/data/sqlite/random/aggregates/slt_good_102.slt +++ b/data/sqlite/random/aggregates/slt_good_102.slt @@ -2696,7 +2696,7 @@ SELECT - + 68 col2, col2 * col2 * - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-16\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-16\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( - 16 ) + - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query II rowsort label-437 @@ -4414,7 +4414,7 @@ SELECT DISTINCT + col2 * col2, - col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col1\) 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\. SELECT MAX ( DISTINCT col1 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -6890,7 +6890,7 @@ SELECT - - ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL <= + col2 * - col0 # Datafusion - Expected - 87 # Datafusion - Expected - 55 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ cor0\.col0 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ cor0\.col0 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 42 + + col0 AS col1, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 cor0 query I rowsort @@ -9984,7 +9984,7 @@ SELECT + ( + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -747 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "CAST\(\(\- sum\(Int64\(83\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "CAST\(\(\- sum\(Int64\(83\)\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 AS col0, CAST ( - SUM ( + + 83 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query II rowsort @@ -14807,7 +14807,7 @@ SELECT DISTINCT - + ( + + 71 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-98\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-98\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 29 AS col1, - 98 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -15681,7 +15681,7 @@ SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col2 - ( - 51 ) - - - 38 BETW # Datafusion - Expected - -484 # Datafusion - Expected - NULL # Datafusion - Expected - -810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, - col0 * col1 - ( + + col2 ) col1 FROM tab1 cor0 query I rowsort @@ -25530,7 +25530,7 @@ SELECT SUM ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 query I rowsort @@ -26169,7 +26169,7 @@ SELECT DISTINCT - MIN ( - + col0 ) FROM tab2 75 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 col1, col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL query I rowsort @@ -48605,7 +48605,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 + - col2 ) IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int64\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + CAST ( - col2 AS INTEGER ) ) col2, + col0 AS col2 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_103.slt b/data/sqlite/random/aggregates/slt_good_103.slt index b7be320..517e496 100644 --- a/data/sqlite/random/aggregates/slt_good_103.slt +++ b/data/sqlite/random/aggregates/slt_good_103.slt @@ -10921,7 +10921,7 @@ SELECT + col2 AS col0, 56 FROM tab2 # Datafusion - Expected - 3 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-43\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-43\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, - 43 + 46 AS col2 FROM tab0 query I rowsort label-1795 @@ -11366,7 +11366,7 @@ SELECT ALL - col0 + ( col0 ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - col0 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -13278,7 +13278,7 @@ SELECT ALL col0 FROM tab0 AS cor0 WHERE - 34 + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-19\)\) \* count\(CAST\(Int64\(93\) AS Int32\)\) \+ max\(\(\- tab2\.col0\)\) \+ Int64\(\-51\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-19\)\) \* count\(CAST\(Int64\(93\) AS Int64\)\) \+ max\(\(\- tab2\.col0\)\) \+ Int64\(\-51\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 98 AS col1, ( + MAX ( DISTINCT + - 19 ) ) * COUNT ( + CAST ( 93 AS INTEGER ) ) + MAX ( ALL - col0 ) + - 51 / COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort label-2186 @@ -20170,7 +20170,7 @@ SELECT ALL 72 + - CAST ( - 28 AS INTEGER ) col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(95\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(95\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - + col1 ) AS col0, + 95 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort label-3321 @@ -23842,7 +23842,7 @@ SELECT - COUNT ( * ) + - 23 / + 85 + 98 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col0 \* cor0\.col1 \* Int64\(\-90\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ cor0\.col0 \* cor0\.col1 \* Int64\(\-90\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + col0 * col1 * - 90 AS col1, - col2 AS col1 FROM tab1 cor0 query III rowsort label-3924 @@ -43562,7 +43562,7 @@ SELECT ALL - + col1 * col2 + + + col2 col1 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int64\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + col1 AS INTEGER ) AS col1, col0 col1 FROM tab1 query III rowsort @@ -47057,7 +47057,7 @@ SELECT - 5 AS col0, + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) 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\. SELECT ALL - col0 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query II rowsort label-7744 @@ -48696,7 +48696,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(tab2\.col0\) \* CAST\(min\(tab2\.col2\) AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(73\) AS col1" at position 0 and "Int64\(99\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(tab2\.col0\) \* CAST\(min\(tab2\.col2\) AS Int64\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(73\) AS col1" at position 0 and "Int64\(99\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + AVG ( col0 ) * CAST ( MIN ( + + col2 ) AS INTEGER ) - + COUNT ( * ) / 73 AS col1, + 99 * - 56 AS col1 FROM tab2 WHERE NOT NULL > NULL query II rowsort @@ -52672,7 +52672,7 @@ SELECT DISTINCT - col0 * - col1 + + 0 * + col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "CAST\(avg\(DISTINCT Int64\(82\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "CAST\(avg\(DISTINCT Int64\(82\)\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 AS col1, + CAST ( + AVG ( DISTINCT 82 ) AS INTEGER ) * - COUNT ( * ) + 96 AS col1 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_104.slt b/data/sqlite/random/aggregates/slt_good_104.slt index c99b8b4..5cb7c75 100644 --- a/data/sqlite/random/aggregates/slt_good_104.slt +++ b/data/sqlite/random/aggregates/slt_good_104.slt @@ -4693,7 +4693,7 @@ SELECT + 64 + + - COUNT ( * ) col0 FROM tab1 AS cor0 # Datafusion - Expected - -297024 # Datafusion - Expected - 80 # Datafusion - Expected - -257712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(Int64\(52\) AS Int32\) \* Int64\(\-84\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(Int64\(52\) AS Int64\) \* Int64\(\-84\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 + - + col1 AS col2, CAST ( 52 AS INTEGER ) * - 84 * + ( col2 ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -14098,7 +14098,7 @@ SELECT - col2 * - ( + - col0 ) * - col2 * - + 31 + + + 12 FROM tab0 AS cor0 -29471595 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 97 AS col1, + CAST ( NULL AS INTEGER ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL query I rowsort @@ -14733,7 +14733,7 @@ SELECT DISTINCT - + ( - + col0 ) AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-99\)\) AS col0" at position 0 and "\(\- CAST\(CAST\(min\(DISTINCT Int64\(\-75\)\) AS Int32\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-99\)\) AS col0" at position 0 and "\(\- CAST\(CAST\(min\(DISTINCT Int64\(\-75\)\) AS Int64\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 99 AS col0, - CAST ( + CAST ( MIN ( DISTINCT - 75 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-2418 @@ -22027,7 +22027,7 @@ SELECT - SUM ( ALL - col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(\(\- CAST\(NULL AS Int32\)\)\) AS Int32\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(\(\- CAST\(NULL AS Int64\)\)\) AS Int64\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + COUNT ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, 8 AS col1 FROM tab2 AS cor0 query II rowsort label-3637 @@ -22054,7 +22054,7 @@ SELECT DISTINCT - ( + + col1 ) + - 54 col0 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab0 AS cor0 query I rowsort label-3640 @@ -22694,7 +22694,7 @@ SELECT col0 + 37 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(27\) AS col1" at position 0 and "tab2\.col0 \+ \(\- CAST\(NULL AS Int32\)\) \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(27\) AS col1" at position 0 and "tab2\.col0 \+ \(\- CAST\(NULL AS Int64\)\) \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 + + 27 AS col1, col0 + - CAST ( NULL AS INTEGER ) + col1 col1 FROM tab2 query I rowsort @@ -24595,7 +24595,7 @@ SELECT ALL - 65 - + + 55 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -3480 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* tab2\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* tab2\.col2 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 60 * + col2 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query I rowsort @@ -34167,7 +34167,7 @@ SELECT DISTINCT + 69 * + col2 AS col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int64\)\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + col2 * + - CAST ( NULL AS INTEGER ) * + col1 AS col1, col2 AS col1 FROM tab1 cor0 query I rowsort @@ -58803,7 +58803,7 @@ SELECT COUNT ( * ) / + 70 FROM tab2 # Datafusion - Expected - 217 # Datafusion - Expected - 0 # Datafusion - Expected - 626 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / Int64\(92\) AS col1" at position 0 and "tab0\.col2 \* \(\- CAST\(Int64\(\-13\) AS Int32\)\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / Int64\(92\) AS col1" at position 0 and "tab0\.col2 \* \(\- CAST\(Int64\(\-13\) AS Int64\)\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 / + 92 AS col1, col2 * + - CAST ( - 13 AS INTEGER ) + + col0 AS col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_105.slt b/data/sqlite/random/aggregates/slt_good_105.slt index 7462d5a..2a5dd13 100644 --- a/data/sqlite/random/aggregates/slt_good_105.slt +++ b/data/sqlite/random/aggregates/slt_good_105.slt @@ -600,7 +600,7 @@ SELECT 19 / 51 AS col0 FROM tab2 # Datafusion - Expected - -79 # Datafusion - Expected - 49107 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) \* cor0\.col2 \* Int64\(86\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(20\) \- CAST\(cor0\.col2 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) \* cor0\.col2 \* Int64\(86\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(20\) \- CAST\(cor0\.col2 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - 57 ) * + col2 * 86 + col0 AS col0, + 20 - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -12118,7 +12118,7 @@ SELECT DISTINCT + col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE CAST ( col0 AS I # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0 cor0 query I rowsort label-1963 @@ -14255,7 +14255,7 @@ NULL # Datafusion - Expected - 181 # Datafusion - Expected - -81 # Datafusion - Expected - 155629 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(94\) \+ cor0\.col0 \+ Int64\(74\) / cor0\.col0 \* cor0\.col1 \* Int64\(32\) \* CAST\(cor0\.col0 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(94\) \+ cor0\.col0 \+ Int64\(74\) / cor0\.col0 \* cor0\.col1 \* Int64\(32\) \* CAST\(cor0\.col0 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 col2, + 94 + + col0 + + 74 / col0 * + col1 * + 32 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0 query I rowsort @@ -15022,7 +15022,7 @@ SELECT ( + 70 ) + - col2 * + col0 * + col1 AS col2 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 + + - CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab1 query I rowsort label-2443 @@ -15586,7 +15586,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 35 * - col2 IS NOT NULL # Datafusion - Expected - -8514 # Datafusion - Expected - 73 # Datafusion - Expected - -860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(\-86\) \* \(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(\-86\) \* \(\- CAST\(\(\- cor0\.col2\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 AS col0, - 86 * - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-2533 @@ -24409,7 +24409,7 @@ SELECT ALL + col1 * + col0 AS col2 FROM tab2 WHERE col0 BETWEEN ( + 34 ) AND NUL # Datafusion - Expected - 24 # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(3\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(3\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * - + 3 AS col2, 24 col2 FROM tab2 query II rowsort @@ -26515,7 +26515,7 @@ SELECT ALL + col0 + col0 AS col1, - col1 + col2 FROM tab0 # Datafusion - Expected - 5766 # Datafusion - Expected - 96 # Datafusion - Expected - 5766 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int32\) AS col1" at position 0 and "Int64\(62\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int64\) AS col1" at position 0 and "Int64\(62\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col2 AS INTEGER ) AS col1, 62 * + 93 AS col1 FROM tab1 query I rowsort label-4353 @@ -30389,7 +30389,7 @@ SELECT - + CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT + col2 + + - col1 + + co # Datafusion - Expected - NULL # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- tab2\.col0\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / \(\- tab2\.col0\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 33 AS col1, CAST ( NULL AS INTEGER ) / - col0 * 71 AS col1 FROM tab2 query II rowsort label-4987 @@ -30873,7 +30873,7 @@ SELECT ALL - 41 - + col0 / col1 FROM tab2 cor0 # Datafusion - Expected - 49 # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col0" at position 0 and "cor0\.col2 / cor0\.col1 \- Int64\(\-48\) \+ Int64\(68\) / \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\) AS col0" at position 0 and "cor0\.col2 / cor0\.col1 \- Int64\(\-48\) \+ Int64\(68\) / \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, ( col2 ) / ( col1 ) - - 48 + + + 68 / - - col2 col0 FROM tab0 AS cor0 query I rowsort label-5062 @@ -36752,7 +36752,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 AS col1, ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1 query III rowsort label-6023 @@ -37712,7 +37712,7 @@ SELECT col1 + + 62 * 35 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( + 57 AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 71 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 query II rowsort label-6178 @@ -37732,7 +37732,7 @@ SELECT ALL - - col2 AS col2, 96 FROM tab2 AS cor0 WHERE ( NOT col1 BETWEEN + CAS # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int32\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int64\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - col2 AS INTEGER ) AS col2, ( - col1 ) AS col2 FROM tab2 query I rowsort label-6180 @@ -41476,7 +41476,7 @@ SELECT - col2 + - + 18 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) \- CAST\(NULL AS Int32\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int64\) \- CAST\(NULL AS Int64\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - col1 AS INTEGER ) - + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2, ( + ( - col1 ) ) AS col2 FROM tab2 AS cor0 query I rowsort label-6803 @@ -58923,7 +58923,7 @@ SELECT - COUNT ( * ) + 81 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- Int64\(92\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- Int64\(92\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - col2 + - ( + 92 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -59705,7 +59705,7 @@ SELECT - 70 * + + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a2c7a5fae246d46bc0e76733d3ee75e5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 24 AS col2, col0 * + col0 * + col0 AS col1, + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_106.slt b/data/sqlite/random/aggregates/slt_good_106.slt index 9ae4b91..e6486e0 100644 --- a/data/sqlite/random/aggregates/slt_good_106.slt +++ b/data/sqlite/random/aggregates/slt_good_106.slt @@ -672,7 +672,7 @@ SELECT DISTINCT 71 AS col1, 94 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -153 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- sum\(DISTINCT Int64\(71\)\)\) AS Int32\) \- \(\- Int64\(\-82\)\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- sum\(DISTINCT Int64\(71\)\)\) AS Int64\) \- \(\- Int64\(\-82\)\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - + SUM ( DISTINCT 71 ) AS INTEGER ) - - - 82 AS col2, - 84 AS col2 FROM tab2 AS cor0 query I rowsort label-104 @@ -3070,7 +3070,7 @@ SELECT col1 + + - col2 AS col0 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ CAST\(NULL AS Int32\) \+ tab0\.col1 \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ CAST\(NULL AS Int64\) \+ tab0\.col1 \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 + CAST ( NULL AS INTEGER ) + col1 + + CAST ( NULL AS FLOAT8 ) AS col1, + 91 AS col1 FROM tab0 query III rowsort @@ -7977,7 +7977,7 @@ SELECT MAX ( 35 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ CAST\(\(\- tab0\.col2\) AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ CAST\(\(\- tab0\.col2\) AS Int64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 + CAST ( - col2 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-1318 @@ -8395,7 +8395,7 @@ SELECT DISTINCT - col1 * + 72 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4713223f76514fbfea4ccf3a3877a728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "CAST\(Int64\(55\) AS Int32\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "CAST\(Int64\(55\) AS Int64\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 11 AS col0, CAST ( + 55 AS INTEGER ) + - col1 col0, 69 FROM tab0 query I rowsort label-1387 @@ -15375,7 +15375,7 @@ NULL # Datafusion - Expected - -6208 # Datafusion - Expected - NULL # Datafusion - Expected - -960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(64\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(64\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + - col1 * - col1 AS col2, + 64 * - col0 AS col2 FROM tab0 AS cor0 query I rowsort @@ -17138,7 +17138,7 @@ SELECT - col2 * 27 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT CAST\(\(\- Int64\(\-9\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT CAST\(\(\- Int64\(\-9\)\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + SUM ( DISTINCT CAST ( - + ( - 9 ) AS INTEGER ) ) AS col2, - 89 AS col2 FROM tab0 WHERE NULL IS NOT NULL query I rowsort @@ -20518,7 +20518,7 @@ SELECT ALL - col2 * - 88 + - col0 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "CAST\(cor0\.col2 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "CAST\(cor0\.col2 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - col2 col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 query II rowsort @@ -20555,7 +20555,7 @@ SELECT + col0 * + - 19 AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(NULL AS Int64\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab0 AS cor0 query I rowsort label-3394 @@ -27724,7 +27724,7 @@ SELECT ALL col1 + + + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL 42 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col2\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - col1 AS col2, - CAST ( + + ( - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 * + - col0 * - col2 ) AND - col2 query III rowsort @@ -28292,7 +28292,7 @@ SELECT + + 53 + ( + col0 ) AS col1 FROM tab2 cor0 # Datafusion - Expected - 25 # Datafusion - Expected - 24 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(5\) \+ CAST\(Int64\(20\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(5\) \+ CAST\(Int64\(20\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 + col0 AS col2, 5 + + CAST ( + 20 AS INTEGER ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -28892,7 +28892,7 @@ SELECT DISTINCT + col1 - ( - + ( col2 ) ) + + 31 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 714 # Datafusion - Expected - -90 # Datafusion - Expected - 425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int32\)\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int64\)\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( col1 AS INTEGER ) + + - col0 AS col2, col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE - col1 * + - 98 IS NOT NULL AND col2 + + CAST ( NULL AS INTEGER ) + ( + - col2 ) IS NULL # Datafusion - Datafusion expected results: @@ -38936,7 +38936,7 @@ SELECT DISTINCT - SUM ( - 93 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to b6f9fbd7394c6f68254dcdd8d66dc8a9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-5\) AS Int32\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-5\) AS Int64\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + - 5 AS INTEGER ) AS col1, + 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort @@ -51907,7 +51907,7 @@ SELECT COUNT ( * ) / - ( + ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 query III rowsort @@ -57626,7 +57626,7 @@ SELECT DISTINCT COUNT ( DISTINCT + col2 ) * + + 32 FROM tab0 AS cor0 96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ cor0\.col1 \+ Int64\(74\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ cor0\.col1 \+ Int64\(74\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 + + 74 AS col2, 8 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2 query I rowsort label-9519 diff --git a/data/sqlite/random/aggregates/slt_good_107.slt b/data/sqlite/random/aggregates/slt_good_107.slt index 15b92ca..5249a1d 100644 --- a/data/sqlite/random/aggregates/slt_good_107.slt +++ b/data/sqlite/random/aggregates/slt_good_107.slt @@ -1907,7 +1907,7 @@ SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab1 cor0 # Datafusion - Expected - 199 # Datafusion - Expected - -81 # Datafusion - Expected - 3773 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col2 \- CAST\(\(\- cor0\.col2\) AS Int32\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col2 \- CAST\(\(\- cor0\.col2\) AS Int64\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 AS col0, col1 * col2 - + CAST ( + - col2 AS INTEGER ) + - col1 AS col0 FROM tab0 cor0 query II rowsort @@ -2508,7 +2508,7 @@ SELECT DISTINCT 29 AS col2, - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + col2 col0, col0 + - col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0 query I rowsort label-408 @@ -7725,7 +7725,7 @@ SELECT - COUNT ( * ) - + - 53 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-69\) AS Int32\) \- Int64\(\-3\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-69\) AS Int64\) \- Int64\(\-3\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 69 AS INTEGER ) - - 3 AS col2, - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-1288 @@ -7907,7 +7907,7 @@ SELECT DISTINCT + 82 + 53 - - COUNT ( * ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) * ( + 41 ) AS col1 FROM tab0 query I rowsort @@ -11379,7 +11379,7 @@ SELECT ALL - col2 AS col1, + 19 + + col0 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 395c55cd8298226f9b5071376fc7bd0c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ tab2\.col2 AS col1" at position 0 and "tab2\.col2 \+ tab2\.col2 \- tab2\.col1 \* Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ tab2\.col2 AS col1" at position 0 and "tab2\.col2 \+ tab2\.col2 \- tab2\.col1 \* Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + col2 AS col1, 15 * - col2 + col0, + col2 + + col2 - col1 * 94 AS col1 FROM tab2 query I rowsort @@ -19422,7 +19422,7 @@ SELECT ALL + ( - col2 ) - - - col2 + + + col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- \(\- tab0\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- \(\- tab0\.col2\) 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\. SELECT + col2 - - col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort label-3232 @@ -19684,7 +19684,7 @@ SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / + SUM ( DISTINCT + + 78 ) / + COUNT # Datafusion - Expected - 15 # Datafusion - Expected - -4 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) / cor0\.col1 AS col2" at position 0 and "CAST\(Int64\(15\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) / cor0\.col1 AS col2" at position 0 and "CAST\(Int64\(15\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 64 / col1 AS col2, CAST ( 15 AS INTEGER ) col2 FROM tab1 AS cor0 query I rowsort label-3273 @@ -23309,7 +23309,7 @@ SELECT * FROM tab1 WHERE NOT NULL < - col0 / 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-3885 @@ -31999,7 +31999,7 @@ SELECT DISTINCT - + col0 AS col0, + 22 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) col0, COUNT ( + col2 ) AS col0 FROM tab2 cor0 query III rowsort @@ -32354,7 +32354,7 @@ SELECT DISTINCT - 42 * + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ebab27bdb7c78fbe73cb3e580807d05b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* CAST\(NULL AS Int32\) \+ \(\- Int64\(77\)\) AS col2" at position 0 and "Int64\(62\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* CAST\(NULL AS Int64\) \+ \(\- Int64\(77\)\) AS col2" at position 0 and "Int64\(62\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 * + CAST ( NULL AS INTEGER ) + - ( + 77 ) AS col2, 62 + + col2 AS col2, + col2 AS col1 FROM tab0 cor0 query I rowsort @@ -36575,7 +36575,7 @@ SELECT + COUNT ( * ) / 80 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) \* Int64\(\-24\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ sum\(Int64\(5\)\) AS col2" at position 0 and "count\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) \* Int64\(\-24\) \- \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ sum\(Int64\(5\)\) AS col2" at position 0 and "count\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 15 * - 24 - - - CAST ( NULL AS INTEGER ) + + SUM ( ALL + 5 ) col2, COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0 query I rowsort label-6099 @@ -37064,7 +37064,7 @@ SELECT DISTINCT + + col1 AS col2, col1 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- tab0\.col2\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- tab0\.col2\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( ALL - col2 ) AS col0, CAST ( NULL AS INTEGER ) + - 73 AS col0 FROM tab0 query III rowsort @@ -47183,7 +47183,7 @@ SELECT 75 - col2 - col1 FROM tab1 # Datafusion - Expected - -4096 # Datafusion - Expected - -30 # Datafusion - Expected - -5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / Int64\(97\) \+ \(\- tab2\.col0\) \+ Int64\(45\) AS col2" at position 0 and "\(\- CAST\(tab2\.col0 AS Int32\)\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / Int64\(97\) \+ \(\- tab2\.col0\) \+ Int64\(45\) AS col2" at position 0 and "\(\- CAST\(tab2\.col0 AS Int64\)\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 / 97 + - col0 + 45 AS col2, - CAST ( + col0 AS INTEGER ) * + col0 AS col2 FROM tab2 query I rowsort label-7862 @@ -49650,7 +49650,7 @@ SELECT ALL 29 + - + 34 AS col1 FROM tab2 # Datafusion - Expected - 4277 # Datafusion - Expected - NULL # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-93\) \+ \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-93\) \+ \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) * - 93 + + + ( - col1 ) AS col0, + col0 * col1 AS col0 FROM tab1 query I rowsort @@ -52267,7 +52267,7 @@ SELECT + col0 * + 83 AS col1 FROM tab1 AS cor0 WHERE NOT + 2 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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\. SELECT ALL + col2 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-8708 @@ -53294,7 +53294,7 @@ NULL # Datafusion - Expected - 111 # Datafusion - Expected - NULL # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \+ cor0\.col0 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 \+ cor0\.col0 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + col1 + col0 + - - col0 AS col2 FROM tab0 AS cor0 query I rowsort label-8876 diff --git a/data/sqlite/random/aggregates/slt_good_108.slt b/data/sqlite/random/aggregates/slt_good_108.slt index da3ba37..3ad3091 100644 --- a/data/sqlite/random/aggregates/slt_good_108.slt +++ b/data/sqlite/random/aggregates/slt_good_108.slt @@ -7454,7 +7454,7 @@ SELECT DISTINCT CAST ( 33 AS INTEGER ), 6 * 22 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 3364 # Datafusion - Expected - NULL # Datafusion - Expected - 529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col1 \* Int64\(20\) AS col2" at position 0 and "\(\- tab2\.col2\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* tab2\.col1 \* Int64\(20\) AS col2" at position 0 and "\(\- tab2\.col2\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * col1 * + 20 AS col2, - col2 * + - col2 AS col2 FROM tab2 query I rowsort label-1225 @@ -11735,7 +11735,7 @@ SELECT - col0 FROM tab0 WHERE NOT 57 <> - col0 + - 50 # Datafusion - Expected - NULL # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col0 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* cor0\.col0 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 61 + - col2 AS col2, - CAST ( NULL AS INTEGER ) * col0 / - col1 AS col2 FROM tab2 AS cor0 query I rowsort label-1920 @@ -15333,7 +15333,7 @@ SELECT DISTINCT - col1, col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort label-2509 @@ -24170,7 +24170,7 @@ SELECT + 44 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL query III rowsort @@ -24370,7 +24370,7 @@ SELECT ALL + 60 + - 72 FROM tab0 cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 58 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 58 AS col0, CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0 query I rowsort @@ -26024,7 +26024,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col1 # Datafusion - Expected - 92 # Datafusion - Expected - 58 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int64\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col2 AS INTEGER ) AS col2, 92 AS col2 FROM tab2 query I rowsort label-4263 @@ -32193,7 +32193,7 @@ SELECT ALL 8 * + MAX ( - col0 ) AS col1, ( + MIN ( - col1 ) ) FROM tab2 # Datafusion - Expected - -705 # Datafusion - Expected - 61 # Datafusion - Expected - -870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ CAST\(Int64\(71\) AS Int32\) AS col0" at position 0 and "tab0\.col0 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ CAST\(Int64\(71\) AS Int64\) AS col0" at position 0 and "tab0\.col0 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 + CAST ( + 71 AS INTEGER ) AS col0, col0 * - ( + col2 ) AS col0 FROM tab0 query III rowsort @@ -37403,7 +37403,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE 24 + + CAST ( NULL AS INTEGER ) IS NOT # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( col2 AS INTEGER ), + col2 AS col2 FROM tab2 AS cor0 query II rowsort @@ -37574,7 +37574,7 @@ SELECT + col1 * + 23 AS col1 FROM tab0 # Datafusion - Expected - 23 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab1\.col2\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- tab1\.col2\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, - col2 + col0 AS col1 FROM tab1 query III rowsort @@ -38674,7 +38674,7 @@ SELECT DISTINCT + - col1 / - - col0 + - col1 FROM tab1 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 59846 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- CAST\(\(\- tab2\.col1\) AS Int32\) \* \(\- tab2\.col2\) \* \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- CAST\(\(\- tab2\.col1\) AS Int64\) \* \(\- tab2\.col2\) \* \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 - CAST ( - col1 AS INTEGER ) * - col2 * - col1 AS col1, col0 AS col1 FROM tab2 query III rowsort @@ -39863,7 +39863,7 @@ SELECT DISTINCT col0 AS col2 FROM tab2 WHERE ( - 12 ) IS NULL # Datafusion - Expected - 131 # Datafusion - Expected - 5499 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(69\) \+ Int64\(15\) \- Int64\(36\) AS col0" at position 0 and "cor0\.col2 \+ CAST\(Int64\(91\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(69\) \+ Int64\(15\) \- Int64\(36\) AS col0" at position 0 and "cor0\.col2 \+ CAST\(Int64\(91\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 80 * 69 + + 15 - + 36 col0, col2 + CAST ( 91 AS INTEGER ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -40167,7 +40167,7 @@ SELECT COUNT ( * ) * + MIN ( - + col1 ) AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-6601 @@ -41756,7 +41756,7 @@ SELECT DISTINCT - col0 + col2 * + col0 + 86 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) \+ Int64\(15\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) \+ Int64\(15\) / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, 6 + + + 15 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-6855 @@ -42753,7 +42753,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 68 col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 query I rowsort @@ -46615,7 +46615,7 @@ SELECT - ( - - col0 ) col2 FROM tab1 -91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(\-44\) AS col2" at position 0 and "\(\- CAST\(tab2\.col0 AS Int32\)\) / \(\- tab2\.col1\) \+ \(\- Int64\(43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(\-44\) AS col2" at position 0 and "\(\- CAST\(tab2\.col0 AS Int64\)\) / \(\- tab2\.col1\) \+ \(\- Int64\(43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col2 * - 44 AS col2, - CAST ( + col0 AS INTEGER ) / - col1 + - + 43 AS col2 FROM tab2 WHERE - + col1 * - 5 + 10 + + 17 IS NULL query III rowsort @@ -59608,7 +59608,7 @@ SELECT - 94 col1, col2 + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 117 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(60\) AS col1" at position 0 and "\(\- \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(60\) AS col1" at position 0 and "\(\- \(\- \(\- CAST\(cor0\.col2 AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 57 + 60 AS col1, - ( - ( - + CAST ( col2 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_109.slt b/data/sqlite/random/aggregates/slt_good_109.slt index 5ddebce..d1058ad 100644 --- a/data/sqlite/random/aggregates/slt_good_109.slt +++ b/data/sqlite/random/aggregates/slt_good_109.slt @@ -5318,7 +5318,7 @@ SELECT col2 FROM tab1 AS cor0 WHERE NOT 60 <= NULL # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -5938,7 +5938,7 @@ SELECT - col0 - - 93 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 291 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-97\)\)\) AS col1" at position 0 and "Int64\(\-10\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-97\)\)\) AS col1" at position 0 and "Int64\(\-10\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( ALL - 97 ) AS col1, - 10 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort @@ -10348,7 +10348,7 @@ SELECT + ( col2 ) AS col0 FROM tab2 WHERE NOT + - col1 = NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* cor0\.col0 \- cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \* CAST\(NULL AS Int32\) \* Int64\(62\) \- cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-74\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* cor0\.col0 \- cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \* CAST\(NULL AS Int64\) \* Int64\(62\) \- cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-74\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 21 * + col0 - + + col1 + - - col0 * ( + + CAST ( NULL AS INTEGER ) ) * + 62 - + col2 AS col2, - col1 + - 74 - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 - - 81 IS NOT NULL query II rowsort label-1708 @@ -16039,7 +16039,7 @@ SELECT - col1 AS col1, - col0 * - col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 9409 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 \- Int64\(39\) \+ \(\- tab0\.col2\) \- tab0\.col2 \+ CAST\(NULL AS Int32\) \* tab0\.col1 \* \(\- Int64\(89\)\) \* \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 \- Int64\(39\) \+ \(\- tab0\.col2\) \- tab0\.col2 \+ CAST\(NULL AS Int64\) \* tab0\.col1 \* \(\- Int64\(89\)\) \* \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 * + - col0 AS col1, + col0 - 39 + + ( - + col2 ) - col2 + + CAST ( NULL AS INTEGER ) * col1 * ( - ( + + 89 ) ) * - col0 col1 FROM tab0 query I rowsort label-2648 @@ -18738,7 +18738,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(Int64\(\-14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(Int64\(\-14\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, + CAST ( - 14 AS INTEGER ) AS col2 FROM tab0 WHERE NOT col2 BETWEEN - 14 / + col1 + col2 AND NULL query I rowsort label-3091 @@ -22670,7 +22670,7 @@ SELECT DISTINCT col0 * + + 9 AS col0 FROM tab2 cor0 # Datafusion - Expected - 154 # Datafusion - Expected - -75 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col0\) AS Int32\) AS col1" at position 0 and "tab2\.col1 \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col0\) AS Int64\) AS col1" at position 0 and "tab2\.col1 \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - col0 AS INTEGER ) AS col1, col1 + + col1 AS col1 FROM tab2 query I rowsort label-3744 @@ -25951,7 +25951,7 @@ SELECT ALL - col2 - - col0 * + CAST ( 59 AS INTEGER ) + col1 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2, CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 query I rowsort @@ -27122,7 +27122,7 @@ SELECT DISTINCT + MAX ( ( 58 ) ) * + ( - + 10 ) col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort label-4483 @@ -34633,7 +34633,7 @@ SELECT - - 36 / + 43 FROM tab1 AS cor0 # Datafusion - Expected - 2000 # Datafusion - Expected - NULL # Datafusion - Expected - 2900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col2 \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, + col2 * 50 col0 FROM tab2 AS cor0 query I rowsort @@ -41001,7 +41001,7 @@ SELECT DISTINCT - col1 + + + col0 + - 29 * - col0 * 99 * + col1 AS col1 FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(DISTINCT Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(DISTINCT Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 + + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT + + 2 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -45840,7 +45840,7 @@ SELECT ALL - 28 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(86\) / \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(21\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(86\) / \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(21\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 86 * 86 / + ( - col0 ) AS col1, 21 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query III rowsort @@ -58322,7 +58322,7 @@ SELECT DISTINCT + MAX ( + + CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab1 AS # Datafusion - Expected - 54 # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-52\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-52\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * - 52 AS col1, 54 AS col1 FROM tab1 query I rowsort label-9626 diff --git a/data/sqlite/random/aggregates/slt_good_11.slt b/data/sqlite/random/aggregates/slt_good_11.slt index 4d8cfe6..dbe1915 100644 --- a/data/sqlite/random/aggregates/slt_good_11.slt +++ b/data/sqlite/random/aggregates/slt_good_11.slt @@ -4137,7 +4137,7 @@ SELECT ALL + col0 + 55 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 query II rowsort @@ -9064,7 +9064,7 @@ SELECT + - col2 - + col0 * - - 13 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -135 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 45 * + ( COUNT ( * ) ) AS col0, + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col0 FROM tab2 query I rowsort label-1471 @@ -15157,13 +15157,13 @@ SELECT DISTINCT - - col0 / + + col0 AS col1, col1 * + + 65 AS col2 FROM tab2 AS # Datafusion - Expected - 23 # Datafusion - Expected - 90 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(\(\- Int64\(\-23\)\) AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(\(\- Int64\(\-23\)\) AS Int64\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 + CAST ( - - 23 AS INTEGER ) AS col1, col2 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(DISTINCT cor0\.col1\)\) AS Int32\)\)\) AS col2" at position 0 and "\(\- count\(DISTINCT Int64\(93\)\)\) \* \(\- CAST\(\(\- min\(DISTINCT cor0\.col1\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(DISTINCT cor0\.col1\)\) AS Int64\)\)\) AS col2" at position 0 and "\(\- count\(DISTINCT Int64\(93\)\)\) \* \(\- CAST\(\(\- min\(DISTINCT cor0\.col1\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) AS col2, - COUNT ( DISTINCT 93 ) * - CAST ( - MIN ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 query II rowsort label-2485 @@ -17887,7 +17887,7 @@ SELECT ALL SUM ( - 97 ) AS col2 FROM tab1 AS cor0 WHERE col1 + + + col2 IS NOT N # Datafusion - Expected - 23 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, col0 + + - col2 AS col1 FROM tab1 AS cor0 query I rowsort @@ -20350,7 +20350,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + col2 A # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) * 35 + + COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0 query I rowsort @@ -26530,7 +26530,7 @@ SELECT - + MAX ( col0 ) * - 25 * - MIN ( + 27 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -43 # Datafusion - Expected - NULL # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-25\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(\-25\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col0 * - - CAST ( NULL AS INTEGER ) + - 25 AS col0, - 43 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL query I rowsort @@ -35479,7 +35479,7 @@ SELECT ALL + col0 AS col0, + 55 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, - CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1 query I rowsort label-5843 @@ -36754,7 +36754,7 @@ SELECT 60 * - ( COUNT ( * ) ) FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(14\) AS Int32\) / Int64\(16\) \+ CAST\(NULL AS Int32\) \+ \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(14\) AS Int64\) / Int64\(16\) \+ CAST\(NULL AS Int64\) \+ \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 14 AS INTEGER ) / 16 + + CAST ( NULL AS INTEGER ) + - + col0 AS col1, col2 AS col1 FROM tab2 query I rowsort @@ -39321,7 +39321,7 @@ SELECT - - COUNT ( + CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col1 AS col2, - CAST ( - + col0 AS INTEGER ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: @@ -44794,7 +44794,7 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(NULL AS Int32\) \+ tab0\.col2 AS col1" at position 0 and "Int64\(68\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(NULL AS Int64\) \+ tab0\.col2 AS col1" at position 0 and "Int64\(68\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + + + col2 AS col1, + 68 + - col2 AS col1 FROM tab0 query I rowsort @@ -50448,7 +50448,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL # Datafusion - Expected - 40 # Datafusion - Expected - -57 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col2\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 57 AS col1, - ( + CAST ( - col2 AS INTEGER ) ) col1 FROM tab2 AS cor0 query I rowsort label-8299 @@ -58519,7 +58519,7 @@ SELECT col2 + - 10 * - + col2 - - col2 AS col1 FROM tab2 # Datafusion - Expected - 93 # Datafusion - Expected - 5 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(\(\- Int64\(\-93\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(\(\- Int64\(\-93\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 AS col2, + CAST ( - ( - 93 ) AS INTEGER ) AS col2 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_110.slt b/data/sqlite/random/aggregates/slt_good_110.slt index a372a18..ba84cf8 100644 --- a/data/sqlite/random/aggregates/slt_good_110.slt +++ b/data/sqlite/random/aggregates/slt_good_110.slt @@ -6885,7 +6885,7 @@ SELECT ALL + 82 AS col0, col2 * - ( - ( col2 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 64 AS col1 FROM tab2 query I rowsort @@ -8533,7 +8533,7 @@ SELECT ALL col0 AS col1, - 29 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -4640 # Datafusion - Expected - -77 # Datafusion - Expected - -3200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(79\) \* CAST\(\(\- cor0\.col2\) AS Int32\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(79\) \* CAST\(\(\- cor0\.col2\) AS Int64\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 AS col0, 79 * CAST ( - col2 AS INTEGER ) - + + col2 AS col0 FROM tab2 AS cor0 query I rowsort label-1407 @@ -8685,7 +8685,7 @@ SELECT - col2 * - 77 * 29 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "tab2\.col1 \* \(\- tab2\.col2\) \* \(\- tab2\.col2\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "tab2\.col1 \* \(\- tab2\.col2\) \* \(\- tab2\.col2\) \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 35 AS col1, col1 * - col2 * + - col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query II rowsort label-1430 @@ -9765,7 +9765,7 @@ SELECT + col0 + col1 + + col1 * col2 + col1 FROM tab0 AS cor0 3984 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) 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\. SELECT DISTINCT - + col0 AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT 26 - col2 BETWEEN NULL AND - ( col1 ) + + CAST ( NULL AS INTEGER ) query I rowsort @@ -18633,7 +18633,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 6 IS NOT NULL # Datafusion - Expected - 564 # Datafusion - Expected - 98 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-12\) \* \(\- CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-12\) \* \(\- CAST\(\(\- \(\- cor0\.col1\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col0, - 12 * - + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 cor0 query I rowsort @@ -26257,7 +26257,7 @@ SELECT DISTINCT + MAX ( + ( - CAST ( col1 AS INTEGER ) ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(8\) / min\(\(\- cor0\.col1\)\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(8\) / min\(\(\- cor0\.col1\)\) \- CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, + 8 / MIN ( - col1 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-4339 @@ -31232,7 +31232,7 @@ SELECT * FROM tab0 WHERE + + col2 * + col2 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int64\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col1 AS INTEGER ) AS col1, col0 AS col1 FROM tab1 query I rowsort label-5176 @@ -31670,7 +31670,7 @@ SELECT col1 * - col2 + - + ( - 3 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\) / Int64\(29\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(DISTINCT \(\- \(\- CAST\(NULL AS Int64\)\)\)\)\) / Int64\(29\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col0, COUNT ( * ) * - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) / + + ( + 29 ) * - 45 AS col0 FROM tab2 AS cor0 query I rowsort label-5251 @@ -37434,7 +37434,7 @@ SELECT - col0 * + col1 FROM tab1 WHERE NOT - col0 * + 83 * - 64 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 33 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort @@ -38661,7 +38661,7 @@ SELECT ALL - col1 * ( - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -8 # Datafusion - Expected - -5 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int64\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - col1 AS INTEGER ) AS col0, - 8 AS col0 FROM tab1 AS cor0 query I rowsort label-6406 @@ -43845,7 +43845,7 @@ SELECT DISTINCT - COUNT ( * ) + - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort label-7260 @@ -45373,7 +45373,7 @@ SELECT + + col2 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(cor0\.col0 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col0, + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-7507 diff --git a/data/sqlite/random/aggregates/slt_good_111.slt b/data/sqlite/random/aggregates/slt_good_111.slt index 1fe0156..127fc1b 100644 --- a/data/sqlite/random/aggregates/slt_good_111.slt +++ b/data/sqlite/random/aggregates/slt_good_111.slt @@ -6193,13 +6193,13 @@ SELECT DISTINCT - 95 * + ( - - ( col0 ) ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- max\(Int64\(\-63\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- max\(Int64\(\-63\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, CAST ( + - MAX ( - 63 ) AS INTEGER ) col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(54\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(54\) / avg\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 73 AS col0, 54 / + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-1006 @@ -8825,7 +8825,7 @@ SELECT DISTINCT 28 * + 53 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 AS col1, + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 query I rowsort label-1442 @@ -9047,7 +9047,7 @@ SELECT * FROM tab1 AS cor0 WHERE 20 <= - col1 # Datafusion - Expected - NULL # Datafusion - Expected - -3 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) + + + COUNT ( * ) AS col0, - COUNT ( * ) AS col0, + 61 FROM tab1 AS cor0 query I rowsort @@ -10594,7 +10594,7 @@ SELECT DISTINCT - 54 * col1 - - + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -17793,7 +17793,7 @@ SELECT ALL - 87 / - col0 FROM tab1 # Datafusion - Expected - 4125 # Datafusion - Expected - 97 # Datafusion - Expected - 2530 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col0 AS col0" at position 0 and "CAST\(\(\- \(\- tab2\.col0\)\) AS Int32\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col0 AS col0" at position 0 and "CAST\(\(\- \(\- tab2\.col0\)\) AS Int64\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 + + col0 AS col0, + CAST ( - - col0 AS INTEGER ) * 55 AS col0 FROM tab2 query I rowsort label-2904 @@ -20436,7 +20436,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ \(\- cor0\.col1\) \+ Int64\(76\) AS col2" at position 0 and "cor0\.col2 / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ \(\- cor0\.col1\) \+ Int64\(76\) AS col2" at position 0 and "cor0\.col2 / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 + - col1 + ( 76 ) col2, + col2 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort label-3343 @@ -20612,7 +20612,7 @@ SELECT DISTINCT - MIN ( DISTINCT + 54 ) * + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10730 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* sum\(CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* sum\(CAST\(tab2\.col0 AS Int64\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 * + SUM ( + CAST ( + + col0 AS INTEGER ) ) AS col1, - COUNT ( * ) AS col1 FROM tab2 query II rowsort label-3369 @@ -22750,7 +22750,7 @@ SELECT - col0 FROM tab0 cor0 WHERE NOT + col1 IN ( + ( - col2 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-20\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-20\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - MAX ( - 20 ) ) col2, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 query II rowsort @@ -29541,7 +29541,7 @@ SELECT + 15 * - - 59, + col1 + - 77 - - col0 * + - 53 - - 56 + - 52 + col0 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT cor0\.col2\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT cor0\.col2\)\) 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\. SELECT ALL - MIN ( DISTINCT + col2 ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE CAST ( - CAST ( + 87 AS INTEGER ) AS INTEGER ) + + 72 BETWEEN + col0 AND + ( - - 80 ) query I rowsort @@ -31129,7 +31129,7 @@ SELECT DISTINCT - + 10 + + ( col0 ) FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col0, + CAST ( NULL AS INTEGER ) * - col1 * - col0 AS col0 FROM tab0 AS cor0 query I rowsort label-5082 @@ -42351,7 +42351,7 @@ SELECT ALL + 28, + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- CAST\(cor0\.col1 AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- CAST\(cor0\.col1 AS Int64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + col1, - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 query II rowsort @@ -45892,7 +45892,7 @@ SELECT ALL + - 4 + + + ( MAX ( + CAST ( - - col1 AS INTEGER ) ) ) AS col1 FROM t # Datafusion - Expected - 206 # Datafusion - Expected - 47 # Datafusion - Expected - 3446 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "cor0\.col1 \+ cor0\.col0 \* CAST\(\(\- cor0\.col2\) AS Int32\) \+ cor0\.col1 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "cor0\.col1 \+ cor0\.col0 \* CAST\(\(\- cor0\.col2\) AS Int64\) \+ cor0\.col1 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 47 AS col0, col1 + col0 * + + CAST ( - col2 AS INTEGER ) + + col1 * col1 AS col0 FROM tab2 AS cor0 query III rowsort @@ -46645,7 +46645,7 @@ SELECT * FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- max\(cor0\.col2\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \- max\(cor0\.col2\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) - MAX ( col2 ) - - COUNT ( * ) AS col2, 3 AS col2 FROM tab2 AS cor0 query I rowsort label-7622 @@ -47705,7 +47705,7 @@ SELECT - 25 / 35 + - col2 - 52 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 33 AS col1, + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 query I rowsort @@ -49322,7 +49322,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -686 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) \* cor0\.col1 \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) \* cor0\.col1 \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col1 + - col0 * col1 + col1 AS col0, col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -50922,7 +50922,7 @@ SELECT col0 col1 FROM tab0 WHERE NOT + 60 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - -20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(86\) \+ \(\- Int64\(20\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(86\) \+ \(\- Int64\(20\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 / 86 + ( - ( + 20 ) ) AS col2, + CAST ( NULL AS INTEGER ) + - + 99 AS col2 FROM tab0 AS cor0 query I rowsort @@ -54313,7 +54313,7 @@ SELECT ALL 14 + - + col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col0 \+ CAST\(NULL AS Int32\) / \(\- \(\- cor0\.col0\)\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col0 \+ CAST\(NULL AS Int64\) / \(\- \(\- cor0\.col0\)\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 AS col2, + col2 * col0 + CAST ( NULL AS INTEGER ) / - ( - col0 ) - ( col0 ) AS col2 FROM tab1 AS cor0 query I rowsort label-8874 @@ -57770,7 +57770,7 @@ SELECT ALL - + 3 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 5488 # Datafusion - Expected - NULL # Datafusion - Expected - 5488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(98\) \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(98\) \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col1, + 98 * + 56 AS col1 FROM tab0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_112.slt b/data/sqlite/random/aggregates/slt_good_112.slt index be11cfd..2d2b426 100644 --- a/data/sqlite/random/aggregates/slt_good_112.slt +++ b/data/sqlite/random/aggregates/slt_good_112.slt @@ -5921,7 +5921,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + col1 AS col2, - col0 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -15266,7 +15266,7 @@ SELECT DISTINCT col2 + + + col1 + - 3 col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \- \(\- cor0\.col0\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \- \(\- cor0\.col0\) 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\. SELECT DISTINCT ( - - col1 ) - - + col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-2527 @@ -18823,7 +18823,7 @@ SELECT * FROM tab0 AS cor0 WHERE + 66 * - + col1 + - col2 * + ( + col1 ) <= + co # Datafusion - Expected - -1600 # Datafusion - Expected - NULL # Datafusion - Expected - -1875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(19\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(25\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) \- Int64\(19\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(25\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( NULL AS INTEGER ) - 19 + col1 AS col0, + ( + + 25 ) * - col0 AS col0 FROM tab2 AS cor0 query I rowsort @@ -26921,7 +26921,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + col0 * - col0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "CAST\(tab1\.col1 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "CAST\(tab1\.col1 AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 AS col1, + CAST ( + col1 AS INTEGER ) FROM tab1 query III rowsort @@ -31171,7 +31171,7 @@ SELECT ALL + + CAST ( - - CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab1 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0, 69 AS col0 FROM tab0 AS cor0 query III rowsort label-5135 @@ -34748,7 +34748,7 @@ SELECT ALL 24 * col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL # Datafusion - Expected - 89 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + + col0 + + ( - + col0 ) AS col1, col0 + + col1 / + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: @@ -38361,7 +38361,7 @@ SELECT 80 * + 21 - + col0 AS col0 FROM tab1 # Datafusion - Expected - -20 # Datafusion - Expected - -188 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \- tab1\.col0 AS col0" at position 0 and "CAST\(Int64\(\-20\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \- tab1\.col0 AS col0" at position 0 and "CAST\(Int64\(\-20\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 97 - + col0 AS col0, CAST ( - 20 AS INTEGER ) AS col0 FROM tab1 query III rowsort label-6314 @@ -48278,7 +48278,7 @@ SELECT DISTINCT - - ( ( + col2 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( COUNT ( * ) ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( col0 * 64 ) query III rowsort @@ -49376,7 +49376,7 @@ SELECT DISTINCT + 71 - 34 - - col0 * - col2 AS col0, + col2 * - - col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- \(\- tab0\.col0\)\) \+ \(\- tab0\.col1\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / \(\- \(\- tab0\.col0\)\) \+ \(\- tab0\.col1\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 AS col2, - CAST ( NULL AS INTEGER ) / - - col0 + - + col1 * col0 AS col2 FROM tab0 query III rowsort @@ -50817,7 +50817,7 @@ SELECT DISTINCT col1, + 9 + - + col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + col2 AS INTEGER ), col2 AS col2 FROM tab1 AS cor0 query I rowsort label-8377 @@ -53334,7 +53334,7 @@ SELECT - 11 + - 12 AS col1, - col1 * - col2 / - - col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( + col2 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort label-8808 @@ -56382,7 +56382,7 @@ SELECT DISTINCT CAST ( - MIN ( ALL + 43 ) AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-26\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-26\) \+ \(\- CAST\(NULL AS Int64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 62 * + - 26 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1, - 40 * - + ( + COUNT ( * ) ) * MAX ( - 6 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_113.slt b/data/sqlite/random/aggregates/slt_good_113.slt index 33df064..a83c6c9 100644 --- a/data/sqlite/random/aggregates/slt_good_113.slt +++ b/data/sqlite/random/aggregates/slt_good_113.slt @@ -2490,7 +2490,7 @@ SELECT DISTINCT 87 - 73 AS col2, col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT tab2\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT tab2\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int64\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( DISTINCT col2 ) AS col2, CAST ( NULL AS INTEGER ) / 83 AS col2 FROM tab2 query I rowsort label-395 @@ -8782,7 +8782,7 @@ SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 > NULL # Datafusion - Expected - 144 # Datafusion - Expected - 79 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(12\) AS Int32\)\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(12\) AS Int64\)\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + 12 AS INTEGER ) + + col0 AS col2, + col0 + + + col2 col2 FROM tab1 AS cor0 query IIIIII rowsort @@ -14127,7 +14127,7 @@ SELECT + + MAX ( ALL - - ( + 77 ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col0 AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* cor0\.col0 AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col2, 33 col2 FROM tab2 AS cor0 query I rowsort @@ -17953,7 +17953,7 @@ SELECT DISTINCT SUM ( DISTINCT + col2 ) * + - 95 AS col1 FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - 260 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* CAST\(tab0\.col2 AS Int64\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 * + + CAST ( + col2 AS INTEGER ) AS col0, col1 AS col0 FROM tab0 query I rowsort @@ -18754,7 +18754,7 @@ SELECT ALL col0 * - + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to efec4b640fa30203ea416d9fc305658b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 * + col0 + CAST ( NULL AS INTEGER ) AS col0, - 13 - + col1 + + - col2, + + 35 AS col0 FROM tab2 AS cor0 query II rowsort label-3104 @@ -21189,7 +21189,7 @@ NULL # Datafusion - Expected - -291450 # Datafusion - Expected - NULL # Datafusion - Expected - -53958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col0" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col1\) \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-74\) AS col0" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col1\) \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 74 AS col0, - col0 * - + col1 * - col2 AS col0 FROM tab2 query I rowsort @@ -23830,7 +23830,7 @@ SELECT - ( - + 21 ) AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -2574 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-26\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-26\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 * - 26 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query III rowsort @@ -27686,7 +27686,7 @@ SELECT - 7 FROM tab1 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 99 AND NULL # Datafusion - Expected - 720 # Datafusion - Expected - -99 # Datafusion - Expected - 9700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 \+ CAST\(cor0\.col0 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 \+ CAST\(cor0\.col0 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 AS col2, + col0 * + col2 + CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -28226,7 +28226,7 @@ SELECT - - ( + col0 ) * + col0 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(Int64\(\-84\)\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(Int64\(\-84\)\) AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( + + AVG ( - 84 ) AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-4658 @@ -28917,7 +28917,7 @@ SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* CAST\(NULL AS Int32\) \+ \(\- min\(Int64\(10\)\)\) \- \(\- count\(\(\- tab2\.col1\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* CAST\(NULL AS Int64\) \+ \(\- min\(Int64\(10\)\)\) \- \(\- count\(\(\- tab2\.col1\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 29 * + + CAST ( NULL AS INTEGER ) + - MIN ( 10 ) - - COUNT ( - col1 ) AS col0, ( COUNT ( * ) ) AS col0 FROM tab2 query I rowsort label-4769 @@ -31740,7 +31740,7 @@ SELECT ALL + MAX ( ALL - col1 ) * - COUNT ( * ) col1 FROM tab2 # Datafusion - Expected - 126 # Datafusion - Expected - 96 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int32\) AS col1" at position 0 and "Int64\(68\) \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int64\) AS col1" at position 0 and "Int64\(68\) \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + 96 AS INTEGER ) AS col1, 68 + + col2 AS col1 FROM tab2 query III rowsort @@ -31763,7 +31763,7 @@ SELECT SUM ( + 45 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) 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\. SELECT DISTINCT 4 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -37508,7 +37508,7 @@ SELECT ALL + 78 + - + 39 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT tab1\.col0\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT tab1\.col0\)\) 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\. SELECT - ( + SUM ( DISTINCT col0 ) ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -40756,7 +40756,7 @@ SELECT ALL + col1 - - col1 + + col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query II rowsort label-6718 @@ -44673,7 +44673,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - CAST ( col2 AS INTEGER ) AND NUL # Datafusion - Expected - 153 # Datafusion - Expected - 97 # Datafusion - Expected - 193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ \(\- CAST\(cor0\.col1 AS Int32\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ \(\- CAST\(cor0\.col1 AS Int64\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + col0 ) AS col2, + col0 + - CAST ( col1 AS INTEGER ) + + col0 col2 FROM tab0 cor0 query I rowsort label-7350 @@ -50389,7 +50389,7 @@ SELECT DISTINCT - 64 * + 68 + + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, col1 - + col1 AS col2 FROM tab2 AS cor0 query I rowsort label-8297 @@ -53232,7 +53232,7 @@ SELECT ALL - col2 + - 15 col0, 0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - ( - ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col0 AS Int32\)\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col0 AS Int64\)\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - CAST ( col0 AS INTEGER ) ), - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND + col0 * + + col1 query I rowsort @@ -54753,7 +54753,7 @@ SELECT 16 * + col1 / - col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -54768,7 +54768,7 @@ SELECT DISTINCT * FROM tab2 WHERE - 27 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(66\) \+ \(\- \(\- cor0\.col1\)\) \+ \(\- Int64\(\-13\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) / Int64\(66\) \+ \(\- \(\- cor0\.col1\)\) \+ \(\- Int64\(\-13\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + col2 * - ( - CAST ( NULL AS INTEGER ) ) / + 66 + - - col1 + - - 13 AS col1, - 85 AS col1 FROM tab1 AS cor0 query I rowsort label-9016 @@ -57152,7 +57152,7 @@ SELECT ALL - + 98 AS col1 FROM tab0 AS cor0 -98 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* \(\- Int64\(\-26\)\) \* \(\- CAST\(Int64\(39\) AS Int32\)\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* \(\- Int64\(\-26\)\) \* \(\- CAST\(Int64\(39\) AS Int64\)\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 35 * - - 26 * - CAST ( + 39 AS INTEGER ) AS col0, col2 col0 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: @@ -57587,7 +57587,7 @@ SELECT - col1 / col2 + + + col0 * - + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col2\) \+ Int64\(26\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col2\) \+ Int64\(26\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 + - ( col2 ) + + 26 AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0 query I rowsort label-9480 @@ -59458,7 +59458,7 @@ SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER # Datafusion - Expected - NULL # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 53 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_114.slt b/data/sqlite/random/aggregates/slt_good_114.slt index 08c8645..4db4a70 100644 --- a/data/sqlite/random/aggregates/slt_good_114.slt +++ b/data/sqlite/random/aggregates/slt_good_114.slt @@ -2183,7 +2183,7 @@ SELECT - 65 * - - 11 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3280 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(40\)\) \* Int64\(82\) AS col2" at position 0 and "\(\- CAST\(\(\- \(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(40\)\) \* Int64\(82\) AS col2" at position 0 and "\(\- CAST\(\(\- \(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\)\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( ALL + 40 ) * 82 AS col2, - CAST ( - - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0 query II rowsort @@ -9143,7 +9143,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - 20 * - + col1 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int64\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + col1 AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -10274,7 +10274,7 @@ SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 query II rowsort @@ -10717,7 +10717,7 @@ SELECT ALL ( + + 4 ) / - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ), COUNT ( * ) FROM tab1 query I rowsort @@ -11175,7 +11175,7 @@ SELECT DISTINCT + - 38 + 12 + + - col2 AS col1, + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * - 59 AS col1 FROM tab0 AS cor0 query II rowsort @@ -13001,7 +13001,7 @@ SELECT ALL - 31 * - + col2 col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to dc45e674a7fe272537b91698e269813c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(50\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(50\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) / + 50 col2, 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort @@ -29000,7 +29000,7 @@ SELECT DISTINCT COUNT ( * ) / + ( + MAX ( - - col1 ) ) * - 4 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 query I rowsort @@ -29356,7 +29356,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - 28 NOT BETWEEN NULL AND 38 / col1 # Datafusion - Expected - -44 # Datafusion - Expected - NULL # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ cor0\.col0 AS col0" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ cor0\.col0 AS col0" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col0, + col1 + - col0 AS col0 FROM tab1 cor0 query I rowsort @@ -30576,7 +30576,7 @@ SELECT + 60 * - - 70 - - col2 * 18 FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + col1 ), CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0 query III rowsort @@ -34909,7 +34909,7 @@ SELECT col1 * + 28 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -2346 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(51\)\)\) \* \(\- Int64\(46\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(51\)\)\) \* \(\- Int64\(46\)\) 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\. SELECT - - ( + + 51 ) * - + 46 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-5766 @@ -39763,7 +39763,7 @@ SELECT col2 FROM tab1 WHERE ( NOT NULL IS NOT NULL ) # Datafusion - Expected - 531441 # Datafusion - Expected - NULL # Datafusion - Expected - 9261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ tab0\.col2 AS col0" at position 0 and "tab0\.col1 \* tab0\.col1 \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ tab0\.col2 AS col0" at position 0 and "tab0\.col1 \* tab0\.col1 \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + col2 AS col0, col1 * + + col1 * + col1 AS col0 FROM tab0 query II rowsort @@ -48061,7 +48061,7 @@ SELECT + COUNT ( - 79 ) * + - COUNT ( * ) FROM tab0 # Datafusion - Expected - 4277 # Datafusion - Expected - NULL # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int32\) \* \(\- \(\- tab1\.col2\)\) \+ tab1\.col2 / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(78\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int64\) \* \(\- \(\- tab1\.col2\)\) \+ tab1\.col2 / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(78\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + CAST ( + + 38 AS INTEGER ) ) * - - col2 + + col2 / - CAST ( NULL AS INTEGER ) + 78 AS col0, + col0 * + col1 AS col0 FROM tab1 query I rowsort @@ -49776,7 +49776,7 @@ SELECT + col2 + - 71 - - 16 + - col0 col1, 36 FROM tab2 WHERE NOT NULL IS NOT NU # Datafusion - Expected - 68 # Datafusion - Expected - -4 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "CAST\(tab1\.col2 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "CAST\(tab1\.col2 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 4 AS col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 query II rowsort @@ -54693,7 +54693,7 @@ SELECT DISTINCT ( - 85 ) + 18 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col2\) 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\. SELECT ALL SUM ( ALL col2 ) col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort label-9047 @@ -59913,7 +59913,7 @@ SELECT + 68 AS col2, 81 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col0\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 AS col0, CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_115.slt b/data/sqlite/random/aggregates/slt_good_115.slt index d51fb95..a107e12 100644 --- a/data/sqlite/random/aggregates/slt_good_115.slt +++ b/data/sqlite/random/aggregates/slt_good_115.slt @@ -1805,7 +1805,7 @@ SELECT DISTINCT 90 + - + col2 * col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 5508 # Datafusion - Expected - -11 # Datafusion - Expected - 7776 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col1" at position 0 and "CAST\(Int64\(\-81\) AS Int32\) \* \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col1" at position 0 and "CAST\(Int64\(\-81\) AS Int64\) \* \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 11 AS col1, CAST ( + - 81 AS INTEGER ) * - + col2 AS col1 FROM tab1 query I rowsort label-298 @@ -24275,7 +24275,7 @@ SELECT col0 AS col0, col2 col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col2, + 45 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-4011 @@ -40058,7 +40058,7 @@ SELECT col2 + + + col1 FROM tab0 # Datafusion - Expected - 44 # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col1\) \+ \(\- \(\- tab1\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col1\) \+ \(\- \(\- tab1\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - ( + col1 ) AS col1, - col1 + - - col0 AS col1 FROM tab1 query I rowsort @@ -42712,7 +42712,7 @@ SELECT DISTINCT 37 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(63\) \* \(\- \(\- sum\(\(\- cor0\.col2\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(63\) \* \(\- \(\- sum\(\(\- cor0\.col2\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 56 AS col0, CAST ( NULL AS INTEGER ) * 63 * - - SUM ( - col2 ) col0 FROM tab1 AS cor0 query I rowsort label-7065 @@ -50376,7 +50376,7 @@ SELECT ALL + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( + + col0 <> 59 + + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-54\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-54\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 61 + - - COUNT ( * ) AS col1, - 54 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -54629,7 +54629,7 @@ SELECT DISTINCT - - MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 116 # Datafusion - Expected - -79 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-79\)\) AS Int32\)\) AS col0" at position 0 and "cor0\.col1 / Int64\(52\) \- \(\- CAST\(Int64\(93\) AS Int32\)\) \+ Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-79\)\) AS Int64\)\) AS col0" at position 0 and "cor0\.col1 / Int64\(52\) \- \(\- CAST\(Int64\(93\) AS Int64\)\) \+ Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( - - 79 AS INTEGER ) AS col0, + col1 / + 52 - + - CAST ( 93 AS INTEGER ) + 23 AS col0 FROM tab0 AS cor0 WHERE - col1 * - + 12 + 35 IS NOT NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_116.slt b/data/sqlite/random/aggregates/slt_good_116.slt index e343579..9c80153 100644 --- a/data/sqlite/random/aggregates/slt_good_116.slt +++ b/data/sqlite/random/aggregates/slt_good_116.slt @@ -2114,7 +2114,7 @@ SELECT * FROM tab0 WHERE NOT + col1 = 30 * - + col2 + + 77 + - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 40 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + 12 AS col0 FROM tab0 query I rowsort label-341 @@ -2142,7 +2142,7 @@ SELECT - ( + + 13 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7a6879701b905ebd485a81332ccec585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col0, col2 AS col1, ( - col2 ) AS col0 FROM tab1 cor0 query I rowsort label-346 @@ -24598,7 +24598,7 @@ SELECT DISTINCT - ( col0 ) * + col0 FROM tab1 # Datafusion - Expected - 2 # Datafusion - Expected - -58 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int32\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int64\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - col2 AS INTEGER ) AS col2, + 2 AS col2 FROM tab2 query I rowsort @@ -26218,7 +26218,7 @@ SELECT * FROM tab1 WHERE ( NOT 69 <= NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - -910 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 / Int64\(11\) \+ \(\- tab1\.col2\) / \(\- tab1\.col0\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 / Int64\(11\) \+ \(\- tab1\.col2\) / \(\- tab1\.col0\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 * - col1 AS col2, + col1 / 11 + - col2 / - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: @@ -27586,7 +27586,7 @@ NULL # Datafusion - Expected - -3080 # Datafusion - Expected - NULL # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(15\) \* Int64\(92\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(15\) \* Int64\(92\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * + 15 * 92 + - - col1 AS col2, col1 * - + ( col2 ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -33275,7 +33275,7 @@ SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col0 IN ( - + col2 ) # Datafusion - Expected - 65 # Datafusion - Expected - -11 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-11\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-11\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - ( - - 11 ) AS col2, - CAST ( - col1 AS INTEGER ) + + + col0 col2 FROM tab1 AS cor0 query I rowsort @@ -48561,7 +48561,7 @@ SELECT + col1, - 97 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 AS col2, CAST ( NULL AS INTEGER ) + + - 2 col2 FROM tab1 query I rowsort @@ -54050,7 +54050,7 @@ SELECT ALL - col0, + col0 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 8 * + CAST ( NULL AS INTEGER ) AS col0, col2 col0 FROM tab2 # Datafusion - Types were automatically converted from: @@ -54099,7 +54099,7 @@ SELECT ALL 53 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- CAST\(tab1\.col0 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- CAST\(tab1\.col0 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 AS col2, - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -58912,7 +58912,7 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - 81 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int32\) \+ Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int64\) \+ Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 AS col2, + CAST ( + - col0 AS INTEGER ) + 47 AS col2 FROM tab0 query I rowsort label-9724 diff --git a/data/sqlite/random/aggregates/slt_good_117.slt b/data/sqlite/random/aggregates/slt_good_117.slt index a22bcdf..cc1ae8e 100644 --- a/data/sqlite/random/aggregates/slt_good_117.slt +++ b/data/sqlite/random/aggregates/slt_good_117.slt @@ -141,7 +141,7 @@ SELECT + - col1 AS col0, + col2 / + - ( - col1 ) FROM tab2 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0 query I rowsort @@ -1330,7 +1330,7 @@ SELECT ALL - 25 FROM tab1 AS cor0 WHERE NOT + col1 / 53 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 72 AS col1, CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-217 @@ -5302,7 +5302,7 @@ SELECT DISTINCT col0 / - col2 + + col0 + - - col0 + + col0 FROM tab2 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- cor0\.col1\) / Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- cor0\.col1\) / Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, - col1 / + - 38 AS col0 FROM tab0 AS cor0 query I rowsort label-866 @@ -7062,7 +7062,7 @@ SELECT * FROM tab1 WHERE NOT + ( - 66 ) IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- tab2\.col0\) / \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- tab2\.col0\) / \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2, - col0 / + - col1 AS col2 FROM tab2 query I rowsort @@ -7805,7 +7805,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - 76 * + col0 / + CAST ( NULL # Datafusion - Expected - 84 # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(21\) \* CAST\(NULL AS Int32\) \- Int64\(\-47\) \* Int64\(97\) \* cor0\.col1 \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(21\) \* CAST\(NULL AS Int64\) \- Int64\(\-47\) \* Int64\(97\) \* cor0\.col1 \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 2 + + 21 * CAST ( NULL AS INTEGER ) - + - 47 * + 97 * + col1 + - col0 AS col2, 84 AS col2 FROM tab2 AS cor0 WHERE - 72 <> 69 query I rowsort @@ -10259,7 +10259,7 @@ SELECT COUNT ( * ) + - 37 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col1\) / \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col1\) / \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 col1, - col1 / - - col2 AS col1 FROM tab1 AS cor0 query I rowsort label-1682 @@ -11297,7 +11297,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 96 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / sum\(DISTINCT \(\- \(\- cor0\.col1\)\)\) \+ Int64\(\-15\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / sum\(DISTINCT \(\- \(\- cor0\.col1\)\)\) \+ Int64\(\-15\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) / SUM ( DISTINCT - - col1 ) + - 15 AS col1, CAST ( NULL AS FLOAT8 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -24279,7 +24279,7 @@ SELECT COUNT ( * ) * - + 88 FROM tab0 AS cor0 # Datafusion - Expected - 57 # Datafusion - Expected - -58 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int32\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int64\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + CAST ( + + 58 AS INTEGER ) ) AS col1, 57 AS col1 FROM tab1 AS cor0 query I rowsort label-4010 @@ -37208,7 +37208,7 @@ SELECT DISTINCT + 52 col2 FROM tab1 cor0 # Datafusion - Expected - -705 # Datafusion - Expected - -99 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col2 AS Int32\)\) AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col2 AS Int64\)\) AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( + col2 AS INTEGER ) AS col2, + CAST ( - col2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 query I rowsort label-6148 @@ -37816,7 +37816,7 @@ SELECT DISTINCT + 31 + + - col2 + + - col2 AS col0 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int64\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + col1 AS INTEGER ), col1 col1 FROM tab0 query I rowsort label-6251 @@ -38437,7 +38437,7 @@ SELECT ALL col0, + col0 * - ( - - col1 ) + col1 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col1 / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col1 / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 AS col1, col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query III rowsort @@ -39150,7 +39150,7 @@ SELECT DISTINCT - - 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -41 # Datafusion - Expected - 64 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(41\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(41\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 + + + col2 AS col1, - CAST ( + 41 AS INTEGER ) AS col1 FROM tab1 query I rowsort @@ -39493,7 +39493,7 @@ SELECT ALL + - col2 FROM tab0 cor0 WHERE NOT ( + 49 ) IN ( 57, + col1 ) # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col0 AS Int32\)\)\)" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col0 AS Int64\)\)\)" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( col0 AS INTEGER ), - CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0 query II rowsort label-6526 @@ -40067,7 +40067,7 @@ SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 072000ef05741b572d5ec03bd064aee3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col1, 30 AS col2, - col1 AS col1 FROM tab0 cor0 query II rowsort @@ -42059,7 +42059,7 @@ SELECT col0, - 82 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - -40 # Datafusion - Expected - -3 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "CAST\(\(\- tab2\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "CAST\(\(\- tab2\.col2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 AS col2, CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 query I rowsort label-6949 @@ -43563,7 +43563,7 @@ SELECT ( + 29 ) + - col2 + - + col2 + ( - 0 ) * + col1 AS col0 FROM tab1 # Datafusion - Expected - 171 # Datafusion - Expected - NULL # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(86\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(86\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) col1, 86 + + col0 AS col1 FROM tab1 query II rowsort @@ -53364,7 +53364,7 @@ SELECT + ( + 95 ) + - 23 + + - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7004 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) \* Int64\(\-77\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* count\(\(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) \* Int64\(\-77\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* count\(\(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 91 * - 77 AS col2, + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - col2 ) AS col2 FROM tab1 query I rowsort label-8810 @@ -54784,7 +54784,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2145 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* sum\(DISTINCT \(\- CAST\(\(\- tab2\.col1\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* sum\(DISTINCT \(\- CAST\(\(\- tab2\.col1\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 * SUM ( DISTINCT + - CAST ( - col1 AS INTEGER ) ) AS col1, 95 AS col1 FROM tab2 # Datafusion - Types were automatically converted from: @@ -56070,7 +56070,7 @@ SELECT - COUNT ( * ) AS col0, - 60 + - ( 21 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 309 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(\(\- sum\(tab0\.col1\)\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(\(\- sum\(tab0\.col1\)\) AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, - CAST ( - SUM ( col1 ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_118.slt b/data/sqlite/random/aggregates/slt_good_118.slt index 3ffb554..a4efee2 100644 --- a/data/sqlite/random/aggregates/slt_good_118.slt +++ b/data/sqlite/random/aggregates/slt_good_118.slt @@ -5878,7 +5878,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( - 71 AS INTEGER ) ) IS NOT NUL # Datafusion - Expected - -437 # Datafusion - Expected - NULL # Datafusion - Expected - -760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col2 AS col0" at position 0 and "tab2\.col2 \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* tab2\.col2 AS col0" at position 0 and "tab2\.col2 \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * col2 col0, + col2 * - 19 AS col0 FROM tab2 query II rowsort label-991 @@ -9357,7 +9357,7 @@ SELECT - col2 * 22 * - - col0 AS col1 FROM tab2 # Datafusion - Expected - -7533 # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- CAST\(NULL AS Int64\)\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 50 * - CAST ( NULL AS INTEGER ) * col0 col2, col1 * - 93 AS col2 FROM tab0 AS cor0 query I rowsort label-1570 @@ -10704,7 +10704,7 @@ SELECT - COUNT ( * ), + ( + COUNT ( * ) ) AS col0 FROM tab0 # Datafusion - Expected - -88 # Datafusion - Expected - 44 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "CAST\(Int64\(\-88\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "CAST\(Int64\(\-88\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44 AS col2, + CAST ( - 88 AS INTEGER ) col2 FROM tab2 AS cor0 query I rowsort @@ -10757,7 +10757,7 @@ SELECT DISTINCT + - 81 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-1795 @@ -15156,7 +15156,7 @@ SELECT 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 42ddb5f495e10c555584bdda95360320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* cor0\.col2 \+ \(\- cor0\.col1\) \* cor0\.col2 AS col2" at position 0 and "Int64\(67\) \- cor0\.col2 \+ CAST\(NULL AS Int32\) \+ Int64\(17\) \* cor0\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* cor0\.col2 \+ \(\- cor0\.col1\) \* cor0\.col2 AS col2" at position 0 and "Int64\(67\) \- cor0\.col2 \+ CAST\(NULL AS Int64\) \+ Int64\(17\) \* cor0\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 13 * col2 + + - col1 * + col2 AS col2, - 68, + 67 - col2 + + CAST ( NULL AS INTEGER ) + + 17 * col2 AS col2 FROM tab2 AS cor0 query I rowsort @@ -31014,7 +31014,7 @@ SELECT - col2 * + - ( + col2 ) - + 19 + - col1 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort @@ -33354,7 +33354,7 @@ SELECT + ( 37 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "max\(CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 query II rowsort @@ -36839,7 +36839,7 @@ SELECT DISTINCT + - col1 / + - col0 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 97 + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -40173,7 +40173,7 @@ SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 28 # Datafusion - Expected - 5929 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* CAST\(\(\- tab2\.col1\) AS Int32\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* CAST\(\(\- tab2\.col1\) AS Int64\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 * CAST ( - col1 AS INTEGER ) col0, 28 col0 FROM tab2 query I rowsort label-6696 @@ -42505,7 +42505,7 @@ SELECT DISTINCT + 42 col0 FROM tab1 # Datafusion - Expected - 39 # Datafusion - Expected - 70 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "CAST\(Int64\(39\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "CAST\(Int64\(39\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 70 AS col0, CAST ( 39 AS INTEGER ) AS col0 FROM tab2 query I rowsort label-7083 @@ -53073,7 +53073,7 @@ SELECT ALL 83 + - 82 + col1 FROM tab2 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 query III rowsort @@ -54848,7 +54848,7 @@ SELECT DISTINCT + + col0 / + 7 + col1 + - col0 col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 \* tab0\.col0 \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 \* tab0\.col0 \- CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 AS col2, col0 * col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort @@ -55867,7 +55867,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 45 < NULL # Datafusion - Expected - -1455 # Datafusion - Expected - NULL # Datafusion - Expected - -225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(15\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(15\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) AS col0, 15 * - col0 AS col0 FROM tab0 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_119.slt b/data/sqlite/random/aggregates/slt_good_119.slt index 165a263..bea7adf 100644 --- a/data/sqlite/random/aggregates/slt_good_119.slt +++ b/data/sqlite/random/aggregates/slt_good_119.slt @@ -7866,7 +7866,7 @@ SELECT COUNT ( * ) * COUNT ( ALL + col1 ) AS col2 FROM tab1 WHERE NOT ( - 23 ) I # Datafusion - Expected - 3825 # Datafusion - Expected - 77 # Datafusion - Expected - 3264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\) AS col1" at position 0 and "Int64\(51\) \* tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int64\) AS col1" at position 0 and "Int64\(51\) \* tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + col1 AS INTEGER ) col1, 51 * col0 AS col1 FROM tab2 query I rowsort @@ -7980,7 +7980,7 @@ SELECT ALL 33 * - COUNT ( ALL - 46 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 -102 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + ( + col2 ) AS col1, col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL query I rowsort @@ -8092,7 +8092,7 @@ SELECT CAST ( - + 26 AS INTEGER ) col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* min\(DISTINCT cor0\.col2\) AS col0" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* min\(DISTINCT cor0\.col2\) AS col0" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + col2 ) col0, - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 query II rowsort label-1323 @@ -9454,7 +9454,7 @@ SELECT ALL + col2 col0 FROM tab0 WHERE NULL NOT BETWEEN col0 AND NULL # Datafusion - Expected - -375 # Datafusion - Expected - 77 # Datafusion - Expected - -320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\) AS col0" at position 0 and "Int64\(5\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int64\) AS col0" at position 0 and "Int64\(5\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col1 AS INTEGER ) AS col0, 5 * - col0 AS col0 FROM tab2 query I rowsort label-1555 @@ -11595,7 +11595,7 @@ SELECT DISTINCT 48 - - 86 AS col2, - 6 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 283974 # Datafusion - Expected - 0 # Datafusion - Expected - 283985 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 0 and "CAST\(Int64\(\-55\) AS Int32\) \* Int64\(58\) \* \(\- Int64\(89\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 0 and "CAST\(Int64\(\-55\) AS Int64\) \* Int64\(58\) \* \(\- Int64\(89\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 + - col0 AS col2, CAST ( - 55 AS INTEGER ) * 58 * - + 89 + + col0 AS col2 FROM tab2 AS cor0 query I rowsort label-1901 @@ -21043,7 +21043,7 @@ SELECT ALL 25 * 20 FROM tab0 # Datafusion - Expected - -2125 # Datafusion - Expected - 91 # Datafusion - Expected - -201019 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col1 \* tab1\.col0 \* CAST\(\(\- tab1\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col1 \* tab1\.col0 \* CAST\(\(\- tab1\.col1\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( col0 ) AS col1, + col1 * + col0 * CAST ( - + col1 AS INTEGER ) col1 FROM tab1 query I rowsort label-3451 @@ -25976,7 +25976,7 @@ SELECT ALL * FROM tab1 WHERE NOT - - col1 - - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "max\(Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "max\(Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0, + MAX ( + 79 ) AS col0 FROM tab0 query I rowsort label-4259 @@ -42840,7 +42840,7 @@ SELECT ALL + - 37 * + col0 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) / Int64\(38\) AS col2" at position 0 and "Int64\(\-8\) / \(\- CAST\(Int64\(98\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) / Int64\(38\) AS col2" at position 0 and "Int64\(\-8\) / \(\- CAST\(Int64\(98\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 / 38 AS col2, - 8 / - CAST ( 98 AS INTEGER ) col2 FROM tab2 AS cor0 query I rowsort label-7044 @@ -50233,7 +50233,7 @@ SELECT ALL * FROM tab2 WHERE - + col2 NOT IN ( - - col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(67\) AS Int32\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(67\) AS Int64\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 67 AS INTEGER ) AS col0, - COUNT ( * ) AS col0 FROM tab2 query I rowsort label-8274 @@ -53310,7 +53310,7 @@ SELECT col2 FROM tab2 WHERE - + col0 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query I rowsort @@ -60188,7 +60188,7 @@ SELECT - 11 * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ CAST\(NULL AS Int32\) \- \(\- Int64\(\-11\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ CAST\(NULL AS Int64\) \- \(\- Int64\(\-11\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 58 + CAST ( NULL AS INTEGER ) - - + ( ( - 11 ) ) AS col1, ( + 12 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/aggregates/slt_good_12.slt b/data/sqlite/random/aggregates/slt_good_12.slt index ec0fbf9..eef7a98 100644 --- a/data/sqlite/random/aggregates/slt_good_12.slt +++ b/data/sqlite/random/aggregates/slt_good_12.slt @@ -1771,7 +1771,7 @@ SELECT + col0 + + + col2 AS col2 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col2 AS col0, col2 + - - CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab0 AS cor0 query I rowsort @@ -16629,7 +16629,7 @@ SELECT - + CAST ( + 65 AS INTEGER ) + 91 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -3903 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 \+ cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(3\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 \+ cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(3\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - col0 ) + + col2 + col2 * - col1 AS col1, 3 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 query I rowsort @@ -22004,7 +22004,7 @@ SELECT ALL * FROM tab0 WHERE - col1 + - col1 / + - col1 BETWEEN ( + 30 ) AND NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 query II rowsort @@ -22942,7 +22942,7 @@ SELECT DISTINCT - + col2 + + col2 + + 38 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 95 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT col1 IS NULL query I rowsort label-3748 @@ -23865,7 +23865,7 @@ SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 AND + - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(78\) AS Int32\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(78\) AS Int64\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + 78 AS INTEGER ) col0, 22 AS col0 FROM tab0 query I rowsort label-3899 @@ -29525,7 +29525,7 @@ SELECT ALL - 59 * - col1 AS col2 FROM tab2 WHERE NOT - + col1 + - - CAST ( NULL # Datafusion - Expected - -912673 # Datafusion - Expected - 0 # Datafusion - Expected - -3375 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 \* tab0\.col0 \* \(\- CAST\(tab0\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 \* tab0\.col0 \* \(\- CAST\(tab0\.col0 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 48 / - col1 col1, col0 * col0 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 query I rowsort label-4810 @@ -34557,7 +34557,7 @@ SELECT col0 AS col2, - col2 - + - 92 * + col1 col1 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - -1808 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- tab2\.col0\) \- \(\- tab2\.col1\) AS col0" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- tab2\.col0\) \- \(\- tab2\.col1\) AS col0" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 25 * - col0 - - + col1 AS col0, + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -35263,7 +35263,7 @@ SELECT - ( 59 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query II rowsort label-5738 @@ -40668,7 +40668,7 @@ SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( col2 ) # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + col2 AS col0 FROM tab1 query III rowsort @@ -44887,7 +44887,7 @@ SELECT DISTINCT + 24 + 72 + col0 * 29 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col2 \* CAST\(NULL AS Int32\) \- Int64\(\-99\) \+ cor0\.col2 \* Int64\(\-30\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col2 \* CAST\(NULL AS Int64\) \- Int64\(\-99\) \+ cor0\.col2 \* Int64\(\-30\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 84 * ( + col2 ) * + CAST ( NULL AS INTEGER ) - - 99 + col2 * - 30 AS col1, col2 AS col1 FROM tab0 cor0 query I rowsort @@ -45398,7 +45398,7 @@ SELECT DISTINCT 98 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(max\(CAST\(NULL AS Int32\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(max\(CAST\(NULL AS Int64\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, CAST ( + MAX ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab2 query I rowsort @@ -59141,7 +59141,7 @@ SELECT DISTINCT col0 + + - col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 6557 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(98\) \- Int64\(32\) \* Int64\(40\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(98\) \- Int64\(32\) \* Int64\(40\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + + 98 - 32 * + 40 * + - col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort label-9680 diff --git a/data/sqlite/random/aggregates/slt_good_120.slt b/data/sqlite/random/aggregates/slt_good_120.slt index 21e2cd8..8f124f9 100644 --- a/data/sqlite/random/aggregates/slt_good_120.slt +++ b/data/sqlite/random/aggregates/slt_good_120.slt @@ -8061,7 +8061,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 * + + col0 / + + CAST ( - col0 # Datafusion - Expected - 85 # Datafusion - Expected - -1160 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* CAST\(Int64\(58\) AS Int32\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* CAST\(Int64\(58\) AS Int64\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 20 * + CAST ( + 58 AS INTEGER ) AS col1, col0 AS col1 FROM tab1 AS cor0 query III rowsort @@ -21255,7 +21255,7 @@ SELECT ( - - 73 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 49 AS col0 FROM tab0 AS cor0 query I rowsort @@ -23755,7 +23755,7 @@ SELECT + ( - ( + 59 ) ) AS col1 FROM tab2 # Datafusion - Expected - 24 # Datafusion - Expected - -75 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \+ CAST\(\(\- tab2\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \+ CAST\(\(\- tab2\.col2\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col0, + col0 + + CAST ( - col2 AS INTEGER ) col0 FROM tab2 query II rowsort @@ -27491,7 +27491,7 @@ SELECT DISTINCT - + col2 * - + col2 * + + col1 FROM tab2 WHERE NOT - - col1 IS N # Datafusion - Expected - 80 # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 80 AS col2 FROM tab1 query I rowsort label-4518 @@ -33294,7 +33294,7 @@ SELECT + col0 + - col2 * + 21 col0 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col0 \* tab2\.col2 / tab2\.col0 / CAST\(NULL AS Int32\) \+ tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col0 \* tab2\.col2 / tab2\.col0 / CAST\(NULL AS Int64\) \+ tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 * col0 * + col2 / ( col0 ) / + CAST ( NULL AS INTEGER ) + + col1 AS col2, + col0 AS col2 FROM tab2 query I rowsort label-5478 @@ -35764,7 +35764,7 @@ SELECT + col0 * + + col1 * - col1 AS col2 FROM tab0 WHERE - col1 + + col2 IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(83\) AS Int32\) \* Int64\(89\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(83\) AS Int64\) \* Int64\(89\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + + CAST ( 83 AS INTEGER ) * 89 / CAST ( NULL AS INTEGER ) AS col1, - 12 AS col1 FROM tab2 query I rowsort @@ -39272,7 +39272,7 @@ SELECT * FROM tab0 WHERE 46 * - - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 183 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-61\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-61\) AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - 61 AS INTEGER ) * + COUNT ( * ) AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab2 query I rowsort label-6472 @@ -40114,7 +40114,7 @@ SELECT DISTINCT col1, col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(DISTINCT Int64\(62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(DISTINCT Int64\(62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( DISTINCT 62 ) AS col2 FROM tab1 AS cor0 query I rowsort label-6612 @@ -46482,7 +46482,7 @@ SELECT ALL + SUM ( - col0 ) + - MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "cor0\.col0 \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 92 ) AS col0, col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query III rowsort @@ -48650,7 +48650,7 @@ SELECT - col0 * + 96 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -363 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * + SUM ( DISTINCT + col2 ) AS col1, + ( CAST ( NULL AS INTEGER ) ) + - + ( 93 ) AS col1 FROM tab2 query I rowsort label-8014 @@ -52776,7 +52776,7 @@ SELECT 71 * - col1 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -711 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-79\)\) \* count\(DISTINCT \(\- CAST\(cor0\.col1 AS Int32\)\)\) AS col2" at position 0 and "max\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-79\)\) \* count\(DISTINCT \(\- CAST\(cor0\.col1 AS Int64\)\)\) AS col2" at position 0 and "max\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( ALL - 79 ) * COUNT ( DISTINCT - CAST ( col1 AS INTEGER ) ) AS col2, MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0 query I rowsort label-8695 @@ -57431,7 +57431,7 @@ SELECT DISTINCT + - COUNT ( * ) AS col1, 46 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) 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\. SELECT 89 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -59981,7 +59981,7 @@ SELECT ALL - 60 + 26 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(NULL AS Int32\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col0\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(NULL AS Int64\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col0\) 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\. SELECT col1 + CAST ( NULL AS INTEGER ) + - col1 * + - col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_121.slt b/data/sqlite/random/aggregates/slt_good_121.slt index affa980..b149ac3 100644 --- a/data/sqlite/random/aggregates/slt_good_121.slt +++ b/data/sqlite/random/aggregates/slt_good_121.slt @@ -3643,7 +3643,7 @@ SELECT ALL * FROM tab2 WHERE ( - - 39 * + 44 ) IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 70 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "\(\- CAST\(\(\- tab2\.col0\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "\(\- CAST\(\(\- tab2\.col0\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 70 AS col0, - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 query I rowsort label-604 @@ -4526,7 +4526,7 @@ SELECT + 66 AS col0, col1 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "min\(CAST\(\(\- tab2\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "min\(CAST\(\(\- tab2\.col2\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 11 AS col2, MIN ( + CAST ( - col2 AS INTEGER ) ) col2 FROM tab2 query I rowsort label-744 @@ -18952,7 +18952,7 @@ SELECT DISTINCT - col2 AS col0, 96 - + - 17 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "max\(tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "max\(tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, + MAX ( ALL col1 ) AS col2 FROM tab2 query II rowsort @@ -21702,7 +21702,7 @@ SELECT DISTINCT - 83 AS col1 FROM tab1 AS cor0 WHERE + col1 * 36 >= NULL # Datafusion - Expected - 47 # Datafusion - Expected - 24 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(24\) AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(24\) AS Int64\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + + 24 AS INTEGER ) AS col1, + col2 col1 FROM tab0 AS cor0 query I rowsort @@ -23029,7 +23029,7 @@ SELECT COUNT ( * ) * 3 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- max\(CAST\(Int64\(\-15\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- max\(CAST\(Int64\(\-15\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 AS col2, - MAX ( + CAST ( + - 15 AS INTEGER ) ) AS col2 FROM tab1 cor0 query I rowsort @@ -31069,7 +31069,7 @@ SELECT ALL - MIN ( 11 ) - 11 + 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 54 AS col1 FROM tab0 query I rowsort label-5112 @@ -40283,7 +40283,7 @@ SELECT + MIN ( DISTINCT - col0 ) AS col1 FROM tab2 -75 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \- \(\- CAST\(Int64\(73\) AS Int32\)\) AS col2" at position 0 and "cor0\.col0 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \- \(\- CAST\(Int64\(73\) AS Int64\)\) AS col2" at position 0 and "cor0\.col0 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 72 - - + CAST ( + 73 AS INTEGER ) AS col2, + col0 / + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL query I rowsort label-6629 @@ -40846,7 +40846,7 @@ SELECT ALL - 98 * - 62 AS col1 FROM tab0 WHERE NULL = 21 / + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -117390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab2\.col0\) AS col1" at position 0 and "CAST\(\(\- avg\(DISTINCT \(\- tab2\.col1\)\)\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab2\.col0\) AS col1" at position 0 and "CAST\(\(\- avg\(DISTINCT \(\- tab2\.col1\)\)\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( ALL col0 ) AS col1, + ( + CAST ( + - AVG ( DISTINCT - col1 ) AS INTEGER ) ) * + COUNT ( * ) * + 43 * - 14 AS col1 FROM tab2 query I rowsort @@ -45333,7 +45333,7 @@ SELECT ALL + col0 / 78 FROM tab1 # Datafusion - Expected - 7830 # Datafusion - Expected - 73 # Datafusion - Expected - 8730 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(73\) AS Int32\) AS col2" at position 0 and "Int64\(90\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(73\) AS Int64\) AS col2" at position 0 and "Int64\(90\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + 73 AS INTEGER ) AS col2, 90 * col0 AS col2 FROM tab0 query I rowsort @@ -46321,7 +46321,7 @@ SELECT DISTINCT + COUNT ( * ) + - 89 col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4f3211e31d459f18a4248b4e71d761ad -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) \* \(\- Int64\(61\)\) / CAST\(NULL AS Int32\) \+ cor0\.col0 \- Int64\(98\) \+ \(\- cor0\.col0\) \+ \(\- cor0\.col2\) \* cor0\.col0 \* \(\- cor0\.col2\) \* Int64\(15\) \* cor0\.col0 \- \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(62\) \* Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) \* \(\- Int64\(61\)\) / CAST\(NULL AS Int64\) \+ cor0\.col0 \- Int64\(98\) \+ \(\- cor0\.col0\) \+ \(\- cor0\.col2\) \* cor0\.col0 \* \(\- cor0\.col2\) \* Int64\(15\) \* cor0\.col0 \- \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(62\) \* Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 98 * - ( + 61 ) / CAST ( NULL AS INTEGER ) + + col0 - + 98 + - col0 + - + col2 * col0 * + - col2 * 15 * col0 - ( - col2 ) col2, + 62 * - 36 AS col2, col2 FROM tab0 AS cor0 query I rowsort label-7627 @@ -47011,7 +47011,7 @@ SELECT ( - col0 ) AS col1, + col1 / + 32 FROM tab2 AS cor0 # Datafusion - Expected - -465 # Datafusion - Expected - -2912 # Datafusion - Expected - -4371 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(Int64\(\-32\) AS Int32\) AS col1" at position 0 and "\(\- tab1\.col1\) \* \(\- Int64\(\-93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(Int64\(\-32\) AS Int64\) AS col1" at position 0 and "\(\- tab1\.col1\) \* \(\- Int64\(\-93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( col0 ) * CAST ( - 32 AS INTEGER ) AS col1, - col1 * - - 93 AS col1 FROM tab1 query I rowsort label-7736 @@ -47417,7 +47417,7 @@ SELECT DISTINCT * FROM tab0 WHERE - - 36 NOT IN ( - 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- tab2\.col2\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- tab2\.col2\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT - col2 ) AS col1, - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 query I rowsort label-7810 @@ -48444,7 +48444,7 @@ SELECT * FROM tab2 WHERE NULL <> col2 # Datafusion - Expected - -2560 # Datafusion - Expected - NULL # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, col2 * - col0 col2 FROM tab2 query I rowsort @@ -49409,7 +49409,7 @@ SELECT DISTINCT - 83 col1 FROM tab0 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(\-74\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(\-74\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 * - - 74 AS col1, - CAST ( NULL AS INTEGER ) + - + col0 AS col1 FROM tab0 AS cor0 query I rowsort label-8135 @@ -52667,7 +52667,7 @@ SELECT col1 / + col2 + col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) / Int64\(\-99\) \+ \(\- CAST\(tab0\.col0 AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "\(\- \(\- tab0\.col1\)\) / \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) / Int64\(\-99\) \+ \(\- CAST\(tab0\.col0 AS Int64\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "\(\- \(\- tab0\.col1\)\) / \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 12 / + - 99 + - CAST ( + col0 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col2, - ( - + col1 ) / - + col1 AS col2 FROM tab0 WHERE NOT ( + col2 = 86 * + + col1 ) query I rowsort @@ -59257,7 +59257,7 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col1 col1 FROM tab2 query I rowsort label-9753 diff --git a/data/sqlite/random/aggregates/slt_good_122.slt b/data/sqlite/random/aggregates/slt_good_122.slt index 1bab29e..5822a75 100644 --- a/data/sqlite/random/aggregates/slt_good_122.slt +++ b/data/sqlite/random/aggregates/slt_good_122.slt @@ -3864,7 +3864,7 @@ SELECT DISTINCT col1 col1, + col0 * + + 60 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS FLOAT8 ), + CAST ( NULL AS INTEGER ) FROM tab2 query I rowsort @@ -4910,7 +4910,7 @@ SELECT ( 16 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- \(\- cor0\.col2\)\)\)\) / \(\- max\(Int64\(\-86\)\)\) \+ \(\- max\(\(\- cor0\.col0\)\)\) \- CAST\(\(\- count\(Int64\(2\)\)\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- \(\- cor0\.col2\)\)\)\) / \(\- max\(Int64\(\-86\)\)\) \+ \(\- max\(\(\- cor0\.col0\)\)\) \- CAST\(\(\- count\(Int64\(2\)\)\) AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( SUM ( - - col2 ) ) / - MAX ( ALL + - 86 ) + - MAX ( - col0 ) - + CAST ( - COUNT ( ALL 2 ) AS INTEGER ) col0, COUNT ( * ) * + + COUNT ( * ) col0 FROM tab1 AS cor0 query I rowsort label-807 @@ -7119,7 +7119,7 @@ SELECT ALL 32 * COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * - col2 AS col2, + 75 AS col2 FROM tab2 query I rowsort @@ -11980,7 +11980,7 @@ SELECT COUNT ( * ), 25 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ tab1\.col1 \* \(\- tab1\.col1\) AS col1" at position 0 and "Int64\(\-37\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* tab1\.col1 \* Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ tab1\.col1 \* \(\- tab1\.col1\) AS col1" at position 0 and "Int64\(\-37\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \* tab1\.col1 \* Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 61 + + col1 * - col1 AS col1, - 37 * - - CAST ( NULL AS INTEGER ) * + col1 * + 22 AS col1 FROM tab1 query II rowsort @@ -13133,7 +13133,7 @@ SELECT - 30 / - MAX ( DISTINCT - + 74 ) FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int32\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int64\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col1, + col0 AS col1 FROM tab1 cor0 query I rowsort label-2159 @@ -15891,7 +15891,7 @@ SELECT - + col0 - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ sum\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ sum\(CAST\(NULL AS Int64\)\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 32 + + SUM ( CAST ( NULL AS INTEGER ) ) AS col1, MAX ( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0 query I rowsort label-2609 @@ -31803,7 +31803,7 @@ SELECT + ( - COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT + - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query II rowsort label-5250 @@ -34014,7 +34014,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( - 37 + 1 * col0 <> col2 * - + col0 * + co # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( COUNT ( * ) ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -38426,7 +38426,7 @@ SELECT DISTINCT 39 * col1 * - + ( - - col2 ) AS col0 FROM tab1 # Datafusion - Expected - -91 # Datafusion - Expected - 3796104 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* tab2\.col0 \* tab2\.col0 \* tab2\.col2 AS col1" at position 0 and "CAST\(Int64\(\-91\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* tab2\.col0 \* tab2\.col0 \* tab2\.col2 AS col1" at position 0 and "CAST\(Int64\(\-91\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 * col0 * col0 * col2 AS col1, CAST ( + - 91 AS INTEGER ) AS col1 FROM tab2 query I rowsort label-6337 @@ -38894,7 +38894,7 @@ SELECT DISTINCT col2 AS col2, + 44 FROM tab1 # Datafusion - Expected - -1782 # Datafusion - Expected - -962 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ CAST\(Int64\(\-85\) AS Int32\) \+ \(\- tab0\.col2\) \* Int64\(78\) \- tab0\.col0 AS col0" at position 0 and "Int64\(18\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ CAST\(Int64\(\-85\) AS Int64\) \+ \(\- tab0\.col2\) \* Int64\(78\) \- tab0\.col0 AS col0" at position 0 and "Int64\(18\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - col2 ) + + CAST ( - 85 AS INTEGER ) + - col2 * ( 78 ) - + + col0 col0, 18 * - + col2 AS col0 FROM tab0 query I rowsort @@ -46087,7 +46087,7 @@ SELECT + + 99 + - 11 * + col0 + + ( 87 ) + 68 / col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ sum\(DISTINCT cor0\.col0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ sum\(DISTINCT cor0\.col0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT col0 ) AS col0, COUNT ( * ) col0 FROM tab2 AS cor0 query I rowsort @@ -47136,7 +47136,7 @@ SELECT + MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -46 # Datafusion - Expected - -97 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab0\.col0\) AS Int32\) AS col2" at position 0 and "Int64\(\-34\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab0\.col0\) AS Int64\) AS col2" at position 0 and "Int64\(\-34\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - col0 AS INTEGER ) AS col2, - 34 + - 12 AS col2 FROM tab0 query II rowsort label-7776 @@ -51557,7 +51557,7 @@ SELECT col2 + + col2 + + col0 * col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-54\) AS Int32\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-54\) AS Int64\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + ( - 54 ) AS INTEGER ) AS col2, + 62 col2 FROM tab0 AS cor0 query I rowsort @@ -57893,7 +57893,7 @@ SELECT DISTINCT - COUNT ( ALL 67 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- min\(\(\- tab2\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- min\(\(\- tab2\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, - MIN ( ALL - col2 ) AS col1 FROM tab2 query II rowsort @@ -58027,7 +58027,7 @@ SELECT DISTINCT + + 20 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \- \(\- Int64\(97\)\) \+ \(\- CAST\(count\(Int64\(24\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \- \(\- Int64\(97\)\) \+ \(\- CAST\(count\(Int64\(24\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 33 - - + 97 + - CAST ( + COUNT ( + ( + 24 ) ) AS INTEGER ) AS col1, 12 AS col1 FROM tab0 AS cor0 query I rowsort label-9574 diff --git a/data/sqlite/random/aggregates/slt_good_123.slt b/data/sqlite/random/aggregates/slt_good_123.slt index 5f2bb8f..0f2d063 100644 --- a/data/sqlite/random/aggregates/slt_good_123.slt +++ b/data/sqlite/random/aggregates/slt_good_123.slt @@ -6844,7 +6844,7 @@ SELECT + 83 * - + COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(58\) / Int64\(\-57\) \* Int64\(61\) \* tab2\.col1 \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(58\) / Int64\(\-57\) \* Int64\(61\) \* tab2\.col1 \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 AS col1, + CAST ( NULL AS INTEGER ) + + 58 / + - 57 * + 61 * col1 * - 76 AS col1 FROM tab2 query I rowsort @@ -7345,7 +7345,7 @@ SELECT ALL - ( + col2 ) + - col1 col0 FROM tab1 # Datafusion - Expected - -8019 # Datafusion - Expected - NULL # Datafusion - Expected - -810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ tab0\.col0 AS col2" at position 0 and "Int64\(81\) \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ tab0\.col0 AS col2" at position 0 and "Int64\(81\) \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col2, + 81 * - col2 AS col2 FROM tab0 query I rowsort @@ -11883,7 +11883,7 @@ SELECT - 53 + col0 AS col1 FROM tab2 # Datafusion - Expected - 11107 # Datafusion - Expected - 30 # Datafusion - Expected - 2559 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* Int64\(90\) \+ Int64\(24\) \* cor0\.col2 \+ CAST\(cor0\.col1 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* Int64\(90\) \+ Int64\(24\) \* cor0\.col2 \+ CAST\(cor0\.col1 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 + col0 AS col1, col0 * 90 + + 24 * col2 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -16467,7 +16467,7 @@ SELECT DISTINCT - + 28 * + col2 * - + col1 FROM tab1 AS cor0 WHERE col0 <> - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(max\(CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(max\(CAST\(NULL AS Int64\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( MAX ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, 97 AS col1 FROM tab1 AS cor0 query II rowsort label-2696 @@ -17471,7 +17471,7 @@ SELECT + - col0, col0 FROM tab0 AS cor0 # Datafusion - Expected - 115 # Datafusion - Expected - 96 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(cor0\.col1 AS Int64\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 AS col0, CAST ( ( col1 ) AS INTEGER ) + + col2 col0 FROM tab1 AS cor0 query I rowsort label-2860 @@ -25704,7 +25704,7 @@ SELECT col0 + 72 FROM tab1 # Datafusion - Expected - -57 # Datafusion - Expected - -43 # Datafusion - Expected - -102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 / CAST\(tab2\.col1 AS Int32\) \- tab2\.col0 \+ Int64\(\-35\) AS col1" at position 0 and "\(\- tab2\.col1\) \+ Int64\(40\) \- tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 / CAST\(tab2\.col1 AS Int64\) \- tab2\.col0 \+ Int64\(\-35\) AS col1" at position 0 and "\(\- tab2\.col1\) \+ Int64\(40\) \- tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 * col1 / + CAST ( + + col1 AS INTEGER ) - col0 + - 35 AS col1, - col1 + 40 - + col0 AS col1 FROM tab2 query I rowsort label-4221 @@ -30401,7 +30401,7 @@ SELECT DISTINCT + col0 FROM tab1 WHERE - ( col2 ) <> + + col2 # Datafusion - Expected - -68 # Datafusion - Expected - -11 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-11\) AS Int32\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-11\) AS Int64\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 11 AS INTEGER ) AS col2, - col2 col2 FROM tab1 AS cor0 query I rowsort @@ -32972,7 +32972,7 @@ SELECT DISTINCT - 5 * + 49 + + 89 FROM tab0 # Datafusion - Expected - -16 # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / tab0\.col0 \+ \(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / tab0\.col0 \+ \(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) / + col0 + - + 75 col0, - 16 AS col0 FROM tab0 WHERE - + col2 IS NOT NULL query III rowsort label-5422 @@ -34257,7 +34257,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( + + col0 AS INTEGER ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col0 col1, ( + - 30 ) AS col1 FROM tab2 query I rowsort label-5637 @@ -35956,7 +35956,7 @@ SELECT ALL + col0, - col1 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0, tab0 AS cor0 # Datafusion - Datafusion expected results: @@ -36606,7 +36606,7 @@ SELECT + col2 / + - col0 AS col1 FROM tab0 # Datafusion - Expected - 25 # Datafusion - Expected - 81 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int64\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col1 AS INTEGER ) AS col0, 25 AS col0 FROM tab0 query III rowsort @@ -38270,7 +38270,7 @@ SELECT col1 FROM tab1 AS cor0 WHERE 66 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col2 \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col2 \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 7 AS col0, col0 * + + col2 * - ( - CAST ( NULL AS INTEGER ) ) + col1 * col2 * - col1 AS col0 FROM tab1 AS cor0 query I rowsort label-6297 @@ -38684,7 +38684,7 @@ SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 55 * + 89 <= - + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Float64\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Float64\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + + CAST ( - - COUNT ( * ) AS FLOAT8 ) ) * - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -41110,7 +41110,7 @@ SELECT + ( - - 24 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 4950 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\) \* cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int64\) \* cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + col1 AS INTEGER ) * col0 + - col0 AS col2, + col1 AS col2 FROM tab2 AS cor0 query I rowsort label-6761 @@ -46309,7 +46309,7 @@ SELECT DISTINCT + col1 FROM tab0 WHERE NOT col2 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -56543,7 +56543,7 @@ SELECT + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( NULL IS NULL ) ) # Datafusion - Expected - -3807 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab0\.col1 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "tab0\.col1 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col1 * + - col2 AS col0 FROM tab0 query I rowsort @@ -57260,7 +57260,7 @@ SELECT ALL 67, + COUNT ( * ) * 1 col1 FROM tab1 AS cor0 # Datafusion - Expected - 654276 # Datafusion - Expected - NULL # Datafusion - Expected - 729476 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- CAST\(Int64\(80\) AS Int32\)\) \* Int64\(\-94\) \* cor0\.col0 \+ Int64\(3\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- CAST\(Int64\(80\) AS Int64\)\) \* Int64\(\-94\) \* cor0\.col0 \+ Int64\(3\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - CAST ( + 80 AS INTEGER ) * - 94 * + col0 + + + 3 * + 12 col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/aggregates/slt_good_124.slt b/data/sqlite/random/aggregates/slt_good_124.slt index e72ccd7..4894c7d 100644 --- a/data/sqlite/random/aggregates/slt_good_124.slt +++ b/data/sqlite/random/aggregates/slt_good_124.slt @@ -7624,7 +7624,7 @@ SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + col0 * - col1 AND + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c03e6344091de533d45298455510f395 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 \+ \(\- \(\- cor0\.col1\)\) \* Int64\(40\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 \+ \(\- \(\- cor0\.col1\)\) \* Int64\(40\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + col2 ) + + + col2 + - - col1 * + 40 AS col2, - ( CAST ( col0 AS INTEGER ) ), - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort label-1262 @@ -10972,7 +10972,7 @@ SELECT - + 20 + - + col0 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 7287 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(71\)\)\) AS Int32\) \+ \(\- \(\- max\(cor0\.col1\)\)\) \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(71\)\)\) AS Int64\) \+ \(\- \(\- max\(cor0\.col1\)\)\) \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, CAST ( - COUNT ( 71 ) AS INTEGER ) + - - MAX ( ALL col1 ) * ( 90 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -13651,7 +13651,7 @@ SELECT + col1 / + 94 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -13747,7 +13747,7 @@ SELECT DISTINCT - ( COUNT ( DISTINCT - - col0 ) ) + - 73 FROM tab1 AS cor0 # Datafusion - Expected - -141 # Datafusion - Expected - 217 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 \+ cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 \+ cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int64\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 + + col0 + col1 AS col2, + CAST ( - col1 AS INTEGER ) + + - col0 AS col2 FROM tab2 cor0 query I rowsort @@ -16071,7 +16071,7 @@ SELECT DISTINCT col0, col0 FROM tab2 WHERE - - col0 NOT BETWEEN + - col2 AND + 1 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- CAST\(tab0\.col1 AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- CAST\(tab0\.col1 AS Int64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( col1 ), - CAST ( + col1 AS INTEGER ) FROM tab0 query III rowsort @@ -19776,7 +19776,7 @@ SELECT DISTINCT - col2 * - 66 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, - col0 col1 FROM tab0 AS cor0 query I rowsort @@ -21380,7 +21380,7 @@ SELECT DISTINCT - ( + COUNT ( * ) ) / - 33 FROM tab2 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col2 AS Int32\)\) AS col2" at position 0 and "tab2\.col1 \+ \(\- tab2\.col1\) \- tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col2 AS Int64\)\) AS col2" at position 0 and "tab2\.col1 \+ \(\- tab2\.col1\) \- tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( CAST ( col2 AS INTEGER ) ) AS col2, + col1 + - col1 - col1 AS col2 FROM tab2 query II rowsort @@ -25192,7 +25192,7 @@ SELECT ALL COUNT ( col0 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 71 # Datafusion - Expected - -29 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "CAST\(Int64\(71\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "CAST\(Int64\(71\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 29 AS col1, CAST ( + 71 AS INTEGER ) col1 FROM tab1 AS cor0 query I rowsort @@ -33397,7 +33397,7 @@ SELECT SUM ( 18 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 430 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* tab0\.col2 AS col1" at position 0 and "Int64\(42\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* tab0\.col2 AS col1" at position 0 and "Int64\(42\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 43 * + col2 AS col1, 42 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-5468 @@ -45066,7 +45066,7 @@ SELECT + col2 / + - 13 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col0 AS Int32\)\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col0 AS Int64\)\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( col0 AS INTEGER ) col1, col0 AS col1 FROM tab0 AS cor0 query I rowsort label-7415 @@ -51396,7 +51396,7 @@ SELECT DISTINCT - + CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col0 AS col0, - CAST ( NULL AS INTEGER ) * 34 AS col0 FROM tab2 AS cor0 query I rowsort @@ -60565,7 +60565,7 @@ SELECT DISTINCT + ( + 69 ) * - COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + ( COUNT ( 83 ) ) col2 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_125.slt b/data/sqlite/random/aggregates/slt_good_125.slt index 9c7bd90..a60a032 100644 --- a/data/sqlite/random/aggregates/slt_good_125.slt +++ b/data/sqlite/random/aggregates/slt_good_125.slt @@ -2107,7 +2107,7 @@ SELECT DISTINCT COUNT ( * ) / + COUNT ( col1 ) FROM tab0 # Datafusion - Expected - 76 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(\-52\) / \(\- tab2\.col2\) \+ \(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(\-52\) / \(\- tab2\.col2\) \+ \(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) + - col2 col1, - 52 / ( - col2 ) + - - 75 AS col1 FROM tab2 query I rowsort label-350 @@ -2824,7 +2824,7 @@ SELECT ALL + - col1 + + 0 * - + 10 AS col2 FROM tab1 WHERE - col1 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query II rowsort label-465 @@ -12531,7 +12531,7 @@ SELECT + ( + col0 ) + + col2 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- \(\- count\(Int64\(49\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \- \(\- count\(Int64\(49\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 AS col0, CAST ( NULL AS INTEGER ) - + - COUNT ( 49 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL query I rowsort label-2071 @@ -14815,7 +14815,7 @@ SELECT * FROM tab0 WHERE col0 * - 3 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(\-32\) \+ \(\- tab2\.col2\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(\-32\) \+ \(\- tab2\.col2\) \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + col1 ) * - 32 + + - col2 - - CAST ( NULL AS INTEGER ) AS col2, + 30 col2 FROM tab2 query III rowsort @@ -14898,7 +14898,7 @@ SELECT + col2 * + 64 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- tab0\.col0\) \- Int64\(93\) \* \(\- CAST\(NULL AS Int32\)\) \+ tab0\.col0 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- tab0\.col0\) \- Int64\(93\) \* \(\- CAST\(NULL AS Int64\)\) \+ tab0\.col0 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + - 18 ) * + - col0 - + + 93 * - CAST ( NULL AS INTEGER ) + + col0 col0, + col2 AS col0 FROM tab0 query II rowsort label-2469 @@ -18028,7 +18028,7 @@ NULL # Datafusion - Expected - 52 # Datafusion - Expected - NULL # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* tab0\.col1 / \(\- CAST\(NULL AS Int32\)\) \+ tab0\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(\-99\) AS Int32\)\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* tab0\.col1 / \(\- CAST\(NULL AS Int64\)\) \+ tab0\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(\-99\) AS Int64\)\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 38 * col1 / - CAST ( NULL AS INTEGER ) + + col2 AS col1, - CAST ( - 99 AS INTEGER ) + - col2 AS col1 FROM tab0 query I rowsort @@ -18364,7 +18364,7 @@ SELECT - SUM ( - 15 ) AS col1, SUM ( DISTINCT - col2 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col1, - col1 AS col1 FROM tab0 AS cor0 query I rowsort label-3035 @@ -18433,7 +18433,7 @@ SELECT ALL + + ( CAST ( - 74 AS INTEGER ) ) col0 FROM tab0 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - 2977 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(53\) AS Int32\)\)\) \* cor0\.col2 \+ Int64\(\-97\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(53\) AS Int64\)\)\) \* cor0\.col2 \+ Int64\(\-97\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - ( - CAST ( 53 AS INTEGER ) ) * + col2 + - 97 AS col1, 33 AS col1 FROM tab2 AS cor0 query I rowsort label-3046 @@ -21353,7 +21353,7 @@ SELECT ALL + 48 + + ( + col0 ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 col1, col0 AS col1 FROM tab2 query III rowsort @@ -26321,7 +26321,7 @@ SELECT DISTINCT - COUNT ( * ) / + 90 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL query I rowsort label-4342 @@ -32728,7 +32728,7 @@ SELECT DISTINCT - 63 * - col0 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col2, col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query III rowsort @@ -35775,7 +35775,7 @@ SELECT - - MIN ( + - 91 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 AS col0, + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -38102,7 +38102,7 @@ SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(\(\- tab2\.col1\)\)\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- \(\- count\(\(\- tab2\.col1\)\)\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( + - col1 ) AS col1, 99 AS col1 FROM tab2 query I rowsort @@ -46610,7 +46610,7 @@ SELECT DISTINCT - ( COUNT ( ALL - 39 ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 6 # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col0\)\) \+ \(\- Int64\(25\)\) \+ Int64\(84\) \* \(\- CAST\(NULL AS Int32\)\) / CAST\(Int64\(17\) AS Int32\) \* \(\- Int64\(27\)\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col0\)\) \+ \(\- Int64\(25\)\) \+ Int64\(84\) \* \(\- CAST\(NULL AS Int64\)\) / CAST\(Int64\(17\) AS Int64\) \* \(\- Int64\(27\)\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 * - - col0 + - + 25 + + 84 * - CAST ( NULL AS INTEGER ) / + CAST ( 17 AS INTEGER ) * - + 27 + col2 AS col0, 6 AS col0 FROM tab2 AS cor0 query I rowsort @@ -47893,7 +47893,7 @@ SELECT DISTINCT * FROM tab2 WHERE - - col2 / - col2 + 53 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col0" at position 0 and "sum\(\(\- CAST\(Int64\(\-11\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\) AS col0" at position 0 and "sum\(\(\- CAST\(Int64\(\-11\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, SUM ( - CAST ( - 11 AS INTEGER ) ) AS col0 FROM tab0 cor0 query II rowsort label-7912 @@ -47938,7 +47938,7 @@ SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL # Datafusion - Expected - -72 # Datafusion - Expected - 40 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 0 and "\(\- Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* CAST\(\(\- cor0\.col2\) AS Int64\) AS col0" at position 0 and "\(\- Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 4 * CAST ( - col2 AS INTEGER ) AS col0, - ( + 72 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -48422,7 +48422,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 23 <> - col0 # Datafusion - Expected - -3685 # Datafusion - Expected - -53 # Datafusion - Expected - -4235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(55\) \* CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(55\) \* CAST\(\(\- cor0\.col1\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 53 AS col1, + 55 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort label-7994 @@ -48598,7 +48598,7 @@ SELECT 32 + MIN ( ALL + - col1 ) FROM tab2 -45 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "CAST\(\(\- tab1\.col1\) AS Int32\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "CAST\(\(\- tab1\.col1\) AS Int64\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, CAST ( - col1 AS INTEGER ) * col2 col1 FROM tab1 WHERE + - col2 IS NULL query I rowsort @@ -53157,7 +53157,7 @@ SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 32 IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "CAST\(cor0\.col1 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "CAST\(cor0\.col1 AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1, CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 query II rowsort @@ -56227,7 +56227,7 @@ NULL # Datafusion - Expected - 1063 # Datafusion - Expected - 5 # Datafusion - Expected - 3397 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(\-63\) \* \(\- tab1\.col2\) \- CAST\(Int64\(25\) AS Int32\) \+ tab1\.col1 \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(\-63\) \* \(\- tab1\.col2\) \- CAST\(Int64\(25\) AS Int64\) \+ tab1\.col1 \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 col2, - 63 * - col2 - + + CAST ( 25 AS INTEGER ) + col1 * - col2 AS col2 FROM tab1 # Datafusion - Types were automatically converted from: @@ -57848,7 +57848,7 @@ SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE 38 + + col2 NOT IN ( - 30, - 52 -58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col2 \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 85 + - CAST ( NULL AS INTEGER ) AS col0, col2 * - 91 col0 FROM tab2 AS cor0 WHERE - 5 > 49 query I rowsort label-9544 diff --git a/data/sqlite/random/aggregates/slt_good_126.slt b/data/sqlite/random/aggregates/slt_good_126.slt index 19f8872..66aafbe 100644 --- a/data/sqlite/random/aggregates/slt_good_126.slt +++ b/data/sqlite/random/aggregates/slt_good_126.slt @@ -3856,7 +3856,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) AS col1" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) AS col1" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 74 col1, col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-638 @@ -7138,7 +7138,7 @@ SELECT CAST ( NULL AS INTEGER ) * col2 * + col0 + col0 AS col1 FROM tab0 cor0 WH # Datafusion - Expected - -3 # Datafusion - Expected - 97 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(Int64\(84\) AS Int32\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(Int64\(84\) AS Int64\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 AS col1, CAST ( + 84 AS INTEGER ) + - + col0 AS col1 FROM tab0 AS cor0 query III rowsort @@ -9959,7 +9959,7 @@ SELECT 39 + MAX ( - - 21 ) FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col2 + + CAST ( NULL AS INTEGER ) col1, - col2 AS col1 FROM tab1 AS cor0 query I rowsort @@ -12968,7 +12968,7 @@ SELECT DISTINCT - - col0 + + - 58 / + col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query I rowsort @@ -15032,7 +15032,7 @@ SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT 27 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "CAST\(cor0\.col0 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "CAST\(cor0\.col0 AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0, CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 query III rowsort @@ -16387,7 +16387,7 @@ SELECT ALL - col0, 84 col0 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 3886 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( + + col2 AS INTEGER ) * + col1 AS col2, col1 col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -18313,7 +18313,7 @@ SELECT DISTINCT col2 AS col0, - 67 * + 9 + + col2 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) 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\. SELECT - col1 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab0 query I rowsort label-3024 @@ -21819,7 +21819,7 @@ SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4017 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col2\)\) \* Int64\(18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(17\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col2\)\) \* Int64\(18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(17\) \* CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - col2 ) * + ( + + 18 ) + - COUNT ( * ) AS col2, + 17 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 cor0 query II rowsort label-3596 @@ -29912,7 +29912,7 @@ SELECT + COUNT ( col0 ), + 25 col2 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - 3886 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col1 AS col0" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col1 AS col0" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 * + + col1 AS col0, + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 query I rowsort label-4943 @@ -32041,7 +32041,7 @@ SELECT DISTINCT - col0 + col1 AS col2, - 0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(99\) \* Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(99\) \* Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 30 AS col0, + CAST ( NULL AS INTEGER ) + + 99 * + 87 col0 FROM tab1 cor0 query I rowsort @@ -48930,7 +48930,7 @@ SELECT ALL ( + - col0 ) + - col1 * + + col2 col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(\-14\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- tab1\.col2\) \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(\-14\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- tab1\.col2\) \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 - - 14 AS col1, - ( + + CAST ( NULL AS INTEGER ) ) * - col2 + - + col1 AS col1 FROM tab1 query III rowsort @@ -53328,7 +53328,7 @@ SELECT - 15 * - CAST ( - col1 AS INTEGER ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -26979 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* \(\- tab2\.col2\) \* \(\- tab2\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* \(\- tab2\.col2\) \* \(\- tab2\.col1\) 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\. SELECT ALL - col2 * - col2 * - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort label-8779 diff --git a/data/sqlite/random/aggregates/slt_good_127.slt b/data/sqlite/random/aggregates/slt_good_127.slt index 6f47960..2fa37b1 100644 --- a/data/sqlite/random/aggregates/slt_good_127.slt +++ b/data/sqlite/random/aggregates/slt_good_127.slt @@ -4733,7 +4733,7 @@ SELECT DISTINCT - 10 - COUNT ( * ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col2 \+ cor0\.col0 \+ Int64\(\-72\) \+ Int64\(\-43\) \* cor0\.col2 \* Int64\(81\) \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col2 \+ cor0\.col0 \+ Int64\(\-72\) \+ Int64\(\-43\) \* cor0\.col2 \* Int64\(81\) \- CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + ( + - col2 ) AS col0, col0 + + col2 + + col0 + - 72 + + - 43 * col2 * + 81 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 query III rowsort @@ -5726,7 +5726,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( - - col2 ) * - 80 ) NOT IN ( col2 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 47 AS col0, + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0 query I rowsort label-929 @@ -9085,7 +9085,7 @@ SELECT * FROM tab2 WHERE NULL < + col2 + + col0 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- \(\- \(\- CAST\(tab0\.col2 AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- \(\- \(\- CAST\(tab0\.col2 AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col2, - ( - - CAST ( + + col2 AS INTEGER ) ) AS col2 FROM tab0 query I rowsort label-1472 @@ -9786,7 +9786,7 @@ SELECT col2, 45 + col1 FROM tab0 # Datafusion - Expected - 46 # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 FROM tab2 query I rowsort label-1584 @@ -12189,7 +12189,7 @@ SELECT 54 * + - 89 + 82 AS col1 FROM tab0 AS cor0 -4724 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 col1, CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL query II rowsort @@ -14151,7 +14151,7 @@ SELECT DISTINCT - COUNT ( * ) * - 8 FROM tab0 WHERE NOT NULL = ( - col2 * + - co # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 434 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "CAST\(Int64\(40\) AS Int32\) \* \(\- max\(CAST\(\(\- tab0\.col2\) AS Int32\)\)\) \+ Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "CAST\(Int64\(40\) AS Int64\) \* \(\- max\(CAST\(\(\- tab0\.col2\) AS Int64\)\)\) \+ Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 col2, CAST ( + 40 AS INTEGER ) * - MAX ( + CAST ( - col2 AS INTEGER ) ) + 34 col2 FROM tab0 query I rowsort label-2298 @@ -17338,7 +17338,7 @@ SELECT + 27, col0 FROM tab0 cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(cor0\.col1 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 AS col1, CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 query II rowsort label-2821 @@ -18952,7 +18952,7 @@ SELECT + - ( + 49 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-80\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-80\) AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - 80 AS INTEGER ) AS col1, COUNT ( * ) * + + 74 col1 FROM tab2 WHERE NOT NULL <= - col1 query II rowsort @@ -26671,7 +26671,7 @@ SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(\(\- tab1\.col1\) AS Int32\)\) \+ \(\- count\(DISTINCT Int64\(\-4\)\)\) \* count\(DISTINCT \(\- tab1\.col0\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(\(\- tab1\.col1\) AS Int64\)\) \+ \(\- count\(DISTINCT Int64\(\-4\)\)\) \* count\(DISTINCT \(\- tab1\.col0\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( + + CAST ( - col1 AS INTEGER ) ) + + - COUNT ( DISTINCT - 4 ) * + COUNT ( DISTINCT - col0 ) AS col2, CAST ( NULL AS INTEGER ) * 75 AS col2 FROM tab1 query II rowsort @@ -34175,7 +34175,7 @@ SELECT ALL - 38 + - - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(\-23\) AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(\-23\) AS Int64\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 * - - COUNT ( * ) + - CAST ( + - 23 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query III rowsort @@ -39079,7 +39079,7 @@ SELECT DISTINCT * FROM tab1 WHERE ( - - 47 - + col1 + - 96 * - + CAST ( NULL AS 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - col1 * - CAST ( NULL AS INTEGER ) col0, + col1 col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL query III rowsort @@ -40706,7 +40706,7 @@ SELECT - + ( + col0 ) + col0 FROM tab0 AS cor0 # Datafusion - Expected - -161 # Datafusion - Expected - 81 # Datafusion - Expected - -739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* Int64\(\-15\) \- CAST\(cor0\.col1 AS Int32\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* Int64\(\-15\) \- CAST\(cor0\.col1 AS Int64\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col2, ( + col2 ) * + - 15 - CAST ( + col1 AS INTEGER ) + ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT + ( + 3 ) + col1 + + + col0 * + col1 IS NULL query I rowsort @@ -59631,7 +59631,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col2 AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\)" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int64\)" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( col1 AS INTEGER ), + col1 FROM tab1 AS cor0 query I rowsort label-9784 diff --git a/data/sqlite/random/aggregates/slt_good_128.slt b/data/sqlite/random/aggregates/slt_good_128.slt index 1fdb8b3..b858e0e 100644 --- a/data/sqlite/random/aggregates/slt_good_128.slt +++ b/data/sqlite/random/aggregates/slt_good_128.slt @@ -1724,7 +1724,7 @@ SELECT DISTINCT - SUM ( DISTINCT 19 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -4906,7 +4906,7 @@ SELECT + 71 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a51174c6922a9600aae47a0b5eb50f26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab0\.col0 \* \(\- tab0\.col0\) \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "tab0\.col0 \* \(\- tab0\.col0\) \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col0 * - col0 + col2 AS col2, col1 * - col0 FROM tab0 query I rowsort label-801 @@ -6660,7 +6660,7 @@ SELECT col2 * + 40 * - + col1 / + col1 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 20 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(20\) AS Int32\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(20\) AS Int64\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + + 20 AS INTEGER ) AS col1, col0 AS col1 FROM tab0 AS cor0 query II rowsort label-1085 @@ -9247,7 +9247,7 @@ SELECT 79, - MAX ( - + col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \* \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(DISTINCT cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \* \(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(DISTINCT cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 58 * - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1, + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -10647,7 +10647,7 @@ SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + - 14 IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 63 AS col1 FROM tab1 cor0 query I rowsort @@ -15640,7 +15640,7 @@ SELECT * FROM tab0 WHERE - - 79 NOT BETWEEN - col1 AND NULL # Datafusion - Expected - NULL # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) \+ \(\- Int64\(61\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) \+ \(\- Int64\(61\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + - col1 ) + - + 61 AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab2 query I rowsort label-2549 @@ -16762,7 +16762,7 @@ SELECT + + 43 + + ( + 3 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(max\(tab0\.col1\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(max\(tab0\.col1\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 + + - COUNT ( * ) AS col2, - CAST ( + MAX ( + col1 ) AS INTEGER ) col2 FROM tab0 query I rowsort label-2738 @@ -17880,7 +17880,7 @@ SELECT - + col2 - + 1 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-29\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-29\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) * - 29 AS col2, col0 AS col2 FROM tab1 cor0 query I rowsort label-2923 @@ -19135,7 +19135,7 @@ SELECT + col2 + - col2 - col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \- \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 18 AS col2, CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab0 query III rowsort @@ -28443,7 +28443,7 @@ SELECT + 67 * col0 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 48 AS col0, COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query III rowsort @@ -31762,7 +31762,7 @@ SELECT col1 + ( - + 9 ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 + + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort label-5209 @@ -33480,7 +33480,7 @@ SELECT DISTINCT - col0 * - ( + col1 ) * - + col0 AS col1, + 60 * + 5 + - 14 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-56\)\) AS Int32\) AS col0" at position 0 and "\(\- \(\- sum\(\(\- tab1\.col1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-56\)\) AS Int64\) AS col0" at position 0 and "\(\- \(\- sum\(\(\- tab1\.col1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - - 56 AS INTEGER ) AS col0, - ( - SUM ( - col1 ) ) AS col0 FROM tab1 query III rowsort label-5497 @@ -34048,7 +34048,7 @@ SELECT DISTINCT - - col0 * - - col1 - + + col2 AS col2, 78 AS col0 FROM tab1 AS # Datafusion - Expected - 51 # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ tab2\.col2 AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ tab2\.col2 AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col0, 51 AS col0 FROM tab2 query I rowsort @@ -41269,7 +41269,7 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 + - ( + col0 ) BETWEEN NULL AND NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2, - COUNT ( * ) * 4 AS col2 FROM tab2 AS cor0 query II rowsort label-6764 @@ -42939,7 +42939,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - - col2 AND NULL # Datafusion - Expected - -30 # Datafusion - Expected - 41 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(41\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(41\) AS Int64\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + + 41 AS INTEGER ) AS col1, - col1 + + + 47 AS col1 FROM tab2 AS cor0 query III rowsort @@ -48609,7 +48609,7 @@ SELECT ALL col1 * - + 48 FROM tab0 AS cor0 -48 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ cor0\.col0 AS col2" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ cor0\.col0 AS col2" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - col1 ) + + col0 AS col2, CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL query I rowsort @@ -49517,7 +49517,7 @@ SELECT ALL + COUNT ( * ) / + MIN ( ALL - 37 ), COUNT ( * ) col2 FROM tab1 cor0 # Datafusion - Expected - 893 # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col2 \* Int64\(53\) \- Int64\(\-16\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* cor0\.col2 \* Int64\(53\) \- Int64\(\-16\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col2 * + 53 - + - 16 + - col2 AS col2, - col1 * - + 19 AS col2 FROM tab1 AS cor0 query I rowsort label-8135 @@ -54920,7 +54920,7 @@ SELECT ALL col1 * + ( - + 71 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 9506 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \- \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \- \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 * + col2 - - - col0 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -57372,7 +57372,7 @@ SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) < + - 71 * col0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int64\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col2 AS INTEGER ) AS col0, col1 AS col0 FROM tab0 query III rowsort label-9411 @@ -58271,7 +58271,7 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2 FROM tab2 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_13.slt b/data/sqlite/random/aggregates/slt_good_13.slt index 2020100..6610269 100644 --- a/data/sqlite/random/aggregates/slt_good_13.slt +++ b/data/sqlite/random/aggregates/slt_good_13.slt @@ -8649,7 +8649,7 @@ SELECT ALL - col1 * - + 51 AS col0 FROM tab1 cor0 # Datafusion - Expected - 157 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(10\) \+ \(\- \(\- cor0\.col0\)\) \+ Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(10\) \+ \(\- \(\- cor0\.col0\)\) \+ Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col1, 10 + - - col0 + 50 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: @@ -9795,7 +9795,7 @@ SELECT - + 27 FROM tab1 cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 70686 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* CAST\(cor0\.col0 AS Int32\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* CAST\(cor0\.col0 AS Int64\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 99 * CAST ( + col0 AS INTEGER ) * + col1 AS col0, + ( - + col0 ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -12250,7 +12250,7 @@ SELECT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4418 # Datafusion - Expected - -243 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(26\)\)\) \+ Int64\(32\) \* min\(Int64\(\-84\)\) \+ Int64\(16\) \+ Int64\(\-20\) \* min\(Int64\(86\)\) AS col0" at position 0 and "Int64\(81\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(26\)\)\) \+ Int64\(32\) \* min\(Int64\(\-84\)\) \+ Int64\(16\) \+ Int64\(\-20\) \* min\(Int64\(86\)\) AS col0" at position 0 and "Int64\(81\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - SUM ( DISTINCT + 26 ) + + 32 * MIN ( ALL - 84 ) + 16 + - 20 * + MIN ( + 86 ) AS col0, 81 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -19839,7 +19839,7 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE col0 IS NULL # Datafusion - Expected - -4896 # Datafusion - Expected - 6 # Datafusion - Expected - -5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) \+ Int64\(96\) \- cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int64\) \+ Int64\(96\) \- cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - col1 AS INTEGER ) + 96 - + + col0 AS col2, col2 * - col0 AS col2 FROM tab1 AS cor0 query I rowsort @@ -20061,7 +20061,7 @@ SELECT ALL MIN ( ALL 72 ) FROM tab2 # Datafusion - Expected - -66 # Datafusion - Expected - -99 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "\(\- CAST\(Int64\(66\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "\(\- CAST\(Int64\(66\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 AS col2, - CAST ( + 66 AS INTEGER ) col2 FROM tab0 query I rowsort label-3334 @@ -24631,7 +24631,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * ( - - col0 ) IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col0 AS col2, + CAST ( NULL AS INTEGER ) * - 83 AS col2 FROM tab0 AS cor0 query I rowsort @@ -35721,7 +35721,7 @@ SELECT 29 AS col2, COUNT ( ALL + + 36 ) / + MAX ( DISTINCT 55 * 2 ) FROM tab2 AS # Datafusion - Expected - 94 # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- tab1\.col2\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* \(\- tab1\.col2\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * - col2 col1, 94 AS col1 FROM tab1 query I rowsort @@ -35925,7 +35925,7 @@ SELECT DISTINCT ( col1 ) * + - col2 * + col2 + col0 - col2 FROM tab1 cor0 # Datafusion - Expected - 98 # Datafusion - Expected - -2850 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-38\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-34\) AS Int32\)\) \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-38\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-34\) AS Int64\)\) \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 * - 38 col0, - CAST ( - 34 AS INTEGER ) + + + col0 AS col0 FROM tab2 query I rowsort @@ -37095,7 +37095,7 @@ SELECT ALL - COUNT ( + + col2 ) col0 FROM tab2 # Datafusion - Expected - -4 # Datafusion - Expected - -7488 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int32\) \* Int64\(\-78\) AS col2" at position 0 and "tab1\.col0 / Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int64\) \* Int64\(\-78\) AS col2" at position 0 and "tab1\.col0 / Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + col2 AS INTEGER ) * - 78 AS col2, + col0 / - 19 AS col2 FROM tab1 query I rowsort label-6168 @@ -39226,7 +39226,7 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - 9603 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- CAST\(cor0\.col0 AS Int32\)\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- CAST\(cor0\.col0 AS Int64\)\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col2 * - - CAST ( col0 AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0 query III rowsort @@ -45859,7 +45859,7 @@ SELECT + col0 * - 79 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -11 # Datafusion - Expected - 75 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "CAST\(Int64\(\-11\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "CAST\(Int64\(\-11\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 75 col0, + CAST ( - 11 AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-7609 @@ -49785,7 +49785,7 @@ SELECT DISTINCT - col2 AS col2, - col2 + - CAST ( + + col1 AS INTEGER ) FROM tab # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(31\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(31\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 AS col1, + 31 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -57203,7 +57203,7 @@ SELECT + - ( - 50 ) FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(27\) \- Int64\(63\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(27\) \- Int64\(63\) / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 AS col1, 27 - 63 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort @@ -58247,7 +58247,7 @@ SELECT * FROM tab0 WHERE NOT + - col1 + col0 * + - col1 * - + col0 > + col1 # Datafusion - Expected - -98 # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, - 98 AS col2 FROM tab1 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_14.slt b/data/sqlite/random/aggregates/slt_good_14.slt index 7e61c5b..bc3ad31 100644 --- a/data/sqlite/random/aggregates/slt_good_14.slt +++ b/data/sqlite/random/aggregates/slt_good_14.slt @@ -927,7 +927,7 @@ SELECT ALL 97 + - col2 * + - 34 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "sum\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "sum\(CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 56 AS col2, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 # Datafusion - Types were automatically converted from: @@ -7646,7 +7646,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( col2 AS INTEGER ) AS col1, col2 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL query I rowsort label-1248 @@ -7977,7 +7977,7 @@ SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - - CAST ( NULL AS INTEGER ) AND + c # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(40\) \* CAST\(NULL AS Int32\) \- Int64\(9\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(40\) \* CAST\(NULL AS Int64\) \- Int64\(9\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 col1, + 40 * + CAST ( NULL AS INTEGER ) - + 9 + + 46 AS col1 FROM tab2 query I rowsort label-1300 @@ -12223,7 +12223,7 @@ SELECT * FROM tab2 cor0 WHERE NOT - col0 >= - col0 + - + col2 # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( col1 ) AS col0, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -20849,7 +20849,7 @@ SELECT ALL ( - MAX ( ALL + col0 ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-3412 @@ -28545,7 +28545,7 @@ SELECT 24 AS col0, + col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 182642 # Datafusion - Expected - NULL # Datafusion - Expected - 55131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col2 \* Int64\(47\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "cor0\.col2 \* Int64\(47\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, + col2 * + 47 * col1 AS col2 FROM tab2 AS cor0 query I rowsort @@ -32762,7 +32762,7 @@ SELECT DISTINCT - MIN ( DISTINCT col1 ) FROM tab2 AS cor0 # Datafusion - Expected - 4725 # Datafusion - Expected - -77 # Datafusion - Expected - 4032 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col1 AS Int32\)\) AS col1" at position 0 and "Int64\(62\) \* tab2\.col0 \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col1 AS Int64\)\) AS col1" at position 0 and "Int64\(62\) \* tab2\.col0 \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( col1 AS INTEGER ) AS col1, + ( + 62 ) * col0 + col0 AS col1 FROM tab2 query I rowsort label-5361 @@ -43492,7 +43492,7 @@ SELECT ALL - 25 + + - col0 AS col1 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "tab0\.col0 / tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int64\) AS col0" at position 0 and "tab0\.col0 / tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( col2 AS INTEGER ) col0, + col0 / col2 AS col0 FROM tab0 query II rowsort @@ -55205,7 +55205,7 @@ SELECT DISTINCT - col1 * 83 AS col2 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0 query III rowsort label-9049 @@ -59047,7 +59047,7 @@ SELECT DISTINCT - 72 + + col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col0, col2 * - + CAST ( NULL AS INTEGER ) col0 FROM tab0 query III rowsort @@ -60638,7 +60638,7 @@ SELECT + - col0 * - + col0 + + 56 col1 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -39 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "cor0\.col1 \- CAST\(Int64\(48\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "cor0\.col1 \- CAST\(Int64\(48\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 39 AS col2, + col1 - CAST ( 48 AS INTEGER ) AS col2 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/aggregates/slt_good_15.slt b/data/sqlite/random/aggregates/slt_good_15.slt index 9236940..73b765f 100644 --- a/data/sqlite/random/aggregates/slt_good_15.slt +++ b/data/sqlite/random/aggregates/slt_good_15.slt @@ -2128,7 +2128,7 @@ SELECT + ( + 47 ) FROM tab2 AS cor0 # Datafusion - Expected - -5929 # Datafusion - Expected - 58 # Datafusion - Expected - -4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col2\)\) AS Int64\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - col2 AS INTEGER ) AS col0, + col1 * - col1 AS col0 FROM tab2 AS cor0 query III rowsort @@ -7927,7 +7927,7 @@ SELECT - + col2 + - ( + - col2 ) FROM tab1 AS cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(22\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(22\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 31 * + + 22 AS col1, col2 + - col1 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT ( - 33 - + ( - - 83 ) + + + col2 - + - 23 - - 71 + col0 + - 60 + + - col1 + - col1 * col0 + col0 ) IS NOT NULL query I rowsort @@ -8086,7 +8086,7 @@ SELECT * FROM tab1 WHERE NOT col1 * - col1 * 1 + - + col2 BETWEEN - col1 * - col # Datafusion - Expected - NULL # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "tab0\.col1 \- \(\- tab0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "tab0\.col1 \- \(\- tab0\.col0\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 78 + - - col0 col1, col1 - - col0 * - CAST ( NULL AS INTEGER ) + + + 77 AS col1 FROM tab0 query I rowsort @@ -10784,7 +10784,7 @@ SELECT + + col0 AS col2 FROM tab2 WHERE NOT col1 * col1 / - col2 IS NOT NULL # Datafusion - Expected - 28 # Datafusion - Expected - -96 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int64\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col2, + 28 AS col2 FROM tab1 AS cor0 query III rowsort @@ -12180,7 +12180,7 @@ SELECT DISTINCT MAX ( ALL ( + col0 ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 query II rowsort @@ -18635,7 +18635,7 @@ SELECT + COUNT ( * ) / + COUNT ( * ) - - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ sum\(tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ sum\(tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + SUM ( col1 ) AS col1 FROM tab2 query II rowsort @@ -20939,7 +20939,7 @@ SELECT ALL + col0 + + col1 + + col0 / + col1 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(\(\- tab0\.col2\) AS Int32\)\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(\(\- tab0\.col2\) AS Int64\)\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( CAST ( - col2 AS INTEGER ) ) AS col1, 58 AS col1 FROM tab0 query III rowsort @@ -23128,7 +23128,7 @@ SELECT DISTINCT 33 AS col2, - 43 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 query III rowsort label-3782 @@ -24812,7 +24812,7 @@ SELECT ALL 56 AS col1 FROM tab1 WHERE ( + CAST ( - + col1 AS INTEGER ) * + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) 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\. SELECT DISTINCT + 95 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0 query I rowsort label-4049 @@ -29031,7 +29031,7 @@ SELECT COUNT ( * ) - - - 93 * - + ( - COUNT ( * ) ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1862 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(49\) AS Int32\)\) \* Int64\(38\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(49\) AS Int64\)\) \* Int64\(38\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + + 49 AS INTEGER ) * + + 38 AS col2, + ( 69 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -33067,7 +33067,7 @@ SELECT - 50 * - 7 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int64\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + col1 AS INTEGER ), col1 FROM tab0 query II rowsort label-5402 @@ -37912,7 +37912,7 @@ SELECT DISTINCT + 19, + col1 * + col1 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 31 AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort label-6197 @@ -38087,7 +38087,7 @@ SELECT COUNT ( ALL + 54 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query II rowsort label-6227 @@ -42344,7 +42344,7 @@ SELECT col2 * 21 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 AS col1, + col0 + + - CAST ( NULL AS INTEGER ) * - col1 col1 FROM tab2 AS cor0 query III rowsort @@ -46057,7 +46057,7 @@ SELECT col1 * + 98 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS FLOAT8 ) - + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col0 FROM tab2 query I rowsort label-7536 @@ -46259,7 +46259,7 @@ SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 query I rowsort label-7570 @@ -57693,7 +57693,7 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col2 \+ CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "cor0\.col2 \+ CAST\(\(\- cor0\.col2\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) AS col1, col2 + ( + CAST ( - col2 AS INTEGER ) ) col1 FROM tab0 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_16.slt b/data/sqlite/random/aggregates/slt_good_16.slt index 11fd29b..406e98d 100644 --- a/data/sqlite/random/aggregates/slt_good_16.slt +++ b/data/sqlite/random/aggregates/slt_good_16.slt @@ -1234,7 +1234,7 @@ SELECT + 24 * - + ( - - col1 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -98 # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, - 98 AS col2 FROM tab2 query I rowsort label-199 @@ -3361,7 +3361,7 @@ SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * - col2 BETWE # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col0 col2, col1 * - + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 query I rowsort @@ -5433,7 +5433,7 @@ SELECT - + 76 col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 query I rowsort label-900 @@ -6439,7 +6439,7 @@ SELECT 25 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / \(\- \(\- tab1\.col0\)\) AS col1" at position 0 and "Int64\(87\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / \(\- \(\- tab1\.col0\)\) AS col1" at position 0 and "Int64\(87\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 / - - col0 col1, 87 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query II rowsort @@ -6897,7 +6897,7 @@ SELECT 43 * - - col1 AS col1, - col1 FROM tab1 WHERE NOT ( ( NOT NULL IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 69 AS col0 FROM tab0 query I rowsort @@ -17539,7 +17539,7 @@ SELECT ( - SUM ( DISTINCT + col1 ) ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c54344399f428ea394425a7b67de710f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col0" at position 1 and "\(\- cor0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int64\)\) AS col0" at position 1 and "\(\- cor0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2, ( + - CAST ( - col2 AS INTEGER ) ) AS col0, + - col0 col0 FROM tab1 AS cor0 query I rowsort label-2871 @@ -19193,7 +19193,7 @@ SELECT ALL col1 - + col2 + + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 4 # Datafusion - Expected - 97 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0, 4 AS col0 FROM tab0 cor0 query I rowsort @@ -19906,7 +19906,7 @@ SELECT ALL * FROM tab1 WHERE - 94 <= - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1751 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-46\) \* \(\- Int64\(36\)\) AS col1" at position 0 and "Int64\(\-69\) / \(\- CAST\(NULL AS Int32\)\) \* tab1\.col1 \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-46\) \* \(\- Int64\(36\)\) AS col1" at position 0 and "Int64\(\-69\) / \(\- CAST\(NULL AS Int64\)\) \* tab1\.col1 \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST ( NULL AS INTEGER ) * + col1 * + col2 AS col1 FROM tab1 query I rowsort @@ -28475,7 +28475,7 @@ SELECT col2 * col1 AS col2, - ( - + 85 ) * + col0 FROM tab2 # Datafusion - Expected - -5 # Datafusion - Expected - 144 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(48\) AS col2" at position 0 and "CAST\(Int64\(\-5\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(48\) AS col2" at position 0 and "CAST\(Int64\(\-5\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 + + 48 col2, + CAST ( + - 5 AS INTEGER ) AS col2 FROM tab1 query I rowsort label-4677 @@ -31881,7 +31881,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "Int64\(\-60\) \- \(\- Int64\(25\)\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 0 and "Int64\(\-60\) \- \(\- Int64\(25\)\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, - 60 - - ( 25 ) - ( + 42 ) AS col1 FROM tab1 query I rowsort @@ -41219,7 +41219,7 @@ SELECT ALL ( + + 4 ) + + col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- max\(CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 query I rowsort @@ -42905,7 +42905,7 @@ SELECT - + 85 - - + 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - 13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "\(\- tab0\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "\(\- tab0\.col0\) \+ \(\- CAST\(NULL AS Int64\)\) / \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 13 AS col2, - col0 + - CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab0 query I rowsort label-7085 @@ -43453,7 +43453,7 @@ SELECT DISTINCT - col1 * - + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(\(\- cor0\.col1\)\)\)\) / \(\- min\(DISTINCT \(\- CAST\(\(\- Int64\(99\)\) AS Int32\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(5\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(\(\- cor0\.col1\)\)\)\) / \(\- min\(DISTINCT \(\- CAST\(\(\- Int64\(99\)\) AS Int64\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(5\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - SUM ( ALL - col1 ) / - + MIN ( DISTINCT + - CAST ( - ( 99 ) AS INTEGER ) ) + + COUNT ( * ) + MAX ( 5 ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort @@ -44556,7 +44556,7 @@ SELECT - - col2 * - col2 - col1 FROM tab1 cor0 # Datafusion - Expected - -5712 # Datafusion - Expected - 15 # Datafusion - Expected - -8064 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "CAST\(\(\- Int64\(85\)\) AS Int32\) \* cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "CAST\(\(\- Int64\(85\)\) AS Int64\) \* cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 15 AS col0, CAST ( - + 85 AS INTEGER ) * + + col2 + + + col2 AS col0 FROM tab1 AS cor0 query II rowsort @@ -46546,7 +46546,7 @@ SELECT DISTINCT 75 + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -49 # Datafusion - Expected - 91 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + col0 AS INTEGER ) col2, - 49 AS col2 FROM tab1 AS cor0 query I rowsort label-7685 @@ -48926,7 +48926,7 @@ SELECT DISTINCT + 83 - + 87 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ min\(DISTINCT \(\- tab1\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ min\(DISTINCT \(\- tab1\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT - col0 ) + - COUNT ( * ) AS col0, + 16 AS col0 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_17.slt b/data/sqlite/random/aggregates/slt_good_17.slt index 167a193..965cd4d 100644 --- a/data/sqlite/random/aggregates/slt_good_17.slt +++ b/data/sqlite/random/aggregates/slt_good_17.slt @@ -3994,7 +3994,7 @@ SELECT DISTINCT - + 12 + 3 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ \(\- Int64\(25\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ \(\- Int64\(25\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 33 + ( - + 25 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 query I rowsort label-651 @@ -9141,7 +9141,7 @@ SELECT - 10 * - ( - COUNT ( * ) ) * - + 66 + + COUNT ( * ) AS col2 FROM tab0 AS # Datafusion - Expected - NULL # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - col0 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -10328,7 +10328,7 @@ SELECT ALL + 16 + COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - 71 # Datafusion - Expected - 5634 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- cor0\.col2\) \+ \(\- CAST\(cor0\.col0 AS Int32\)\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- cor0\.col2\) \+ \(\- CAST\(cor0\.col0 AS Int64\)\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - col1 + - col2 + - CAST ( + + ( col0 ) AS INTEGER ) * - col0 AS col1, + 71 AS col1 FROM tab2 cor0 query I rowsort @@ -13792,7 +13792,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 75 IS NOT NULL # Datafusion - Expected - -87 # Datafusion - Expected - -61 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- CAST\(Int64\(61\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- CAST\(Int64\(61\) AS Int64\)\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 * - CAST ( + + 61 AS INTEGER ) AS col1, - 87 AS col1 FROM tab0 AS cor0 query III rowsort @@ -17515,7 +17515,7 @@ SELECT + 2 * + col1 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - -91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- CAST\(Int64\(47\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- CAST\(Int64\(47\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col2, - CAST ( + + 47 AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort label-2873 @@ -20864,7 +20864,7 @@ SELECT DISTINCT col1 * + + 72 col2 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, 21 AS col0 FROM tab0 query I rowsort label-3415 @@ -22074,7 +22074,7 @@ SELECT DISTINCT - 29 * + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 282 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(Int64\(\-94\) AS Int32\) \* \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "CAST\(Int64\(\-94\) AS Int64\) \* \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( - 94 AS INTEGER ) * - - ( - COUNT ( * ) ) AS col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: @@ -30777,7 +30777,7 @@ SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL # Datafusion - Expected - 29 # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) col2, + 29 col2 FROM tab1 AS cor0 query II rowsort @@ -30885,7 +30885,7 @@ SELECT 12 / + col0 col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \- cor0\.col1 / cor0\.col1 AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \- cor0\.col1 / cor0\.col1 AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( 13 ) - + col1 / + col1 col1, col0 + - col2 * - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0 query III rowsort @@ -41190,7 +41190,7 @@ SELECT + CAST ( + 76 AS INTEGER ) + - col0 col0 FROM tab1 AS cor0 WHERE NULL IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int64\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( - col2 ) AS col0, - COUNT ( * ) + + + ( - CAST ( NULL AS INTEGER ) ) / + - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -45507,7 +45507,7 @@ SELECT DISTINCT - 95 AS col1 FROM tab0 WHERE + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(max\(cor0\.col1\) AS Int32\) AS col1" at position 0 and "Int64\(23\) \+ \(\- \(\- max\(cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(max\(cor0\.col1\) AS Int64\) AS col1" at position 0 and "Int64\(23\) \+ \(\- \(\- max\(cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + CAST ( + MAX ( ALL col1 ) AS INTEGER ) AS col1, + 23 + - - MAX ( + col0 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -51166,7 +51166,7 @@ SELECT - 94 + col0 * + + col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ tab2\.col0 \+ \(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ tab2\.col0 \+ \(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 + col0 + + - col0 AS col1, - col1 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort label-8395 @@ -56514,7 +56514,7 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - 17 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 17 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -56676,7 +56676,7 @@ SELECT DISTINCT ( col2 ) / col0 + - col1 FROM tab2 WHERE - col2 * - CAST ( NULL # Datafusion - Expected - NULL # Datafusion - Expected - 197539 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ \(\- tab2\.col2\) \+ tab2\.col0 \* Int64\(31\) \* Int64\(85\) AS col0" at position 0 and "tab2\.col2 \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ \(\- tab2\.col2\) \+ tab2\.col0 \* Int64\(31\) \* Int64\(85\) AS col0" at position 0 and "tab2\.col2 \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 28 ) + - col2 + + + col0 * 31 * + + 85 AS col0, col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_18.slt b/data/sqlite/random/aggregates/slt_good_18.slt index a31fbcb..1c4eedd 100644 --- a/data/sqlite/random/aggregates/slt_good_18.slt +++ b/data/sqlite/random/aggregates/slt_good_18.slt @@ -1604,7 +1604,7 @@ SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - -117 # Datafusion - Expected - 3779 # Datafusion - Expected - -125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(63\) \- \(\- cor0\.col1\) \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \- CAST\(cor0\.col2 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(63\) \- \(\- cor0\.col1\) \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \- CAST\(cor0\.col2 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 * 63 - + - col1 + col2 AS col2, - col1 - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - 5 IS NOT NULL query II rowsort @@ -2943,7 +2943,7 @@ SELECT + ( + - 46 ) / - 28 AS col0, SUM ( DISTINCT col1 ) * 70 / + + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- cor0\.col0\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- cor0\.col0\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( DISTINCT - + col0 ) AS col0, CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -11504,7 +11504,7 @@ SELECT + 7 * - COUNT ( * ) col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(CAST\(cor0\.col2 AS Int32\)\)\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(CAST\(cor0\.col2 AS Int64\)\)\) AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - + AVG ( CAST ( + col2 AS INTEGER ) ) AS INTEGER ) AS col2, ( + - COUNT ( * ) ) / COUNT ( * ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -16775,7 +16775,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( 20 ) IS NOT NULL # Datafusion - Expected - 7 # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 7 AS col0 FROM tab2 AS cor0 query II rowsort label-2778 @@ -19638,7 +19638,7 @@ SELECT col0, + 48 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 355 # Datafusion - Expected - NULL # Datafusion - Expected - 373 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* tab2\.col2 \+ Int64\(20\) AS col0" at position 0 and "tab2\.col2 \- Int64\(\-33\) \* \(\- Int64\(\-12\)\) \+ Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* tab2\.col2 \+ Int64\(20\) AS col0" at position 0 and "tab2\.col2 \- Int64\(\-33\) \* \(\- Int64\(\-12\)\) \+ Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 + + + 20 AS col0, + col2 - - 33 * - - 12 + - 81 AS col0 FROM tab2 query III rowsort label-3261 @@ -31175,7 +31175,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) - col2 IN ( - - CAST # Datafusion - Expected - -40 # Datafusion - Expected - -75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( col0 AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 AS cor0 query II rowsort label-5160 @@ -39095,7 +39095,7 @@ SELECT + COUNT ( * ) * + 47 AS col2 FROM tab2 cor0 # Datafusion - Expected - -3040 # Datafusion - Expected - 5092 # Datafusion - Expected - -4408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 \* cor0\.col0 AS col1" at position 0 and "\(\- CAST\(cor0\.col2 AS Int32\)\) \* Int64\(75\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 \* cor0\.col0 AS col1" at position 0 and "\(\- CAST\(cor0\.col2 AS Int64\)\) \* Int64\(75\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 + + col1 * col0 col1, - CAST ( + col2 AS INTEGER ) * 75 + - col2 AS col1 FROM tab2 AS cor0 query I rowsort label-6474 @@ -41554,7 +41554,7 @@ SELECT ALL - MIN ( col2 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - -2448 # Datafusion - Expected - NULL # Datafusion - Expected - -3456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(36\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(36\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col2, 36 * - col2 AS col2 FROM tab1 query I rowsort @@ -44527,7 +44527,7 @@ SELECT - 81 + - col1 * + + col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + + COUNT ( * ) ) AS col0, + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort label-7364 @@ -47280,7 +47280,7 @@ SELECT + col2 + - - ( - col2 ) AS col2, 39 + col0 FROM tab1 AS cor0 WHERE + col2 # Datafusion - Expected - -18 # Datafusion - Expected - NULL # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ tab1\.col0 \+ tab1\.col0 / \(\- CAST\(NULL AS Int32\)\) / Int64\(\-66\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ tab1\.col0 \+ tab1\.col0 / \(\- CAST\(NULL AS Int64\)\) / Int64\(\-66\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 51 + + ( col0 ) + + col0 / - CAST ( NULL AS INTEGER ) / - 66 AS col1, - 18 AS col1 FROM tab1 query I rowsort label-7811 @@ -48019,7 +48019,7 @@ SELECT - 15 * - + 99 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col1\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col1\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( - col1 ) col2, + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 query III rowsort @@ -59532,7 +59532,7 @@ SELECT * FROM tab2 WHERE NOT - col2 + col0 BETWEEN 21 + - + col2 * + 46 AND col0 # Datafusion - Expected - -388 # Datafusion - Expected - -81 # Datafusion - Expected - -1828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(78\) \+ CAST\(Int64\(8\) AS Int32\) \* Int64\(\-3\) \* tab0\.col1 \- Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(78\) \+ CAST\(Int64\(8\) AS Int64\) \* Int64\(\-3\) \* tab0\.col1 \- Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + col1 ) col0, 78 + + CAST ( + 8 AS INTEGER ) * - 3 * + col1 - + - 38 AS col0 FROM tab0 WHERE NOT - 55 IS NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_19.slt b/data/sqlite/random/aggregates/slt_good_19.slt index 3776f07..d69dd0a 100644 --- a/data/sqlite/random/aggregates/slt_good_19.slt +++ b/data/sqlite/random/aggregates/slt_good_19.slt @@ -5994,7 +5994,7 @@ SELECT - MAX ( DISTINCT + ( col1 ) ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(51\) AS col2" at position 0 and "\(\- tab2\.col2\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(51\) AS col2" at position 0 and "\(\- tab2\.col2\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 0 + + + 51 col2, - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NULL query I rowsort label-973 @@ -8260,7 +8260,7 @@ SELECT - ( + + 98 ) + - col1 col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 + + + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort label-1353 @@ -15586,7 +15586,7 @@ SELECT + - 1 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(99\) \* Int64\(83\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(99\) \* Int64\(83\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, - CAST ( NULL AS INTEGER ) * ( + ( + + 99 ) ) * 83 * 1 AS col1 FROM tab1 query I rowsort label-2560 @@ -21802,7 +21802,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 46 * + 17 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + CAST ( + ( + ( - - COUNT ( * ) ) ) AS INTEGER ) ) AS col1, - 88 AS col1 FROM tab1 query I rowsort label-3580 @@ -24648,7 +24648,7 @@ SELECT 10 - - + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-83\) \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col2" at position 0 and "Int64\(\-83\) \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + COUNT ( * ) AS INTEGER ) col2, - 83 * - 2 AS col2 FROM tab2 query I rowsort @@ -28054,7 +28054,7 @@ SELECT ALL + col1 * - 85 * + 57 col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( - - col2 AS INTEGER ) col1, - col2 AS col1 FROM tab1 AS cor0 query I rowsort label-4612 @@ -31425,7 +31425,7 @@ SELECT 62 * + 10 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 query I rowsort label-5173 @@ -31460,7 +31460,7 @@ SELECT - - col0 * + 83 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-19\) \+ \(\- cor0\.col2\) \+ \(\- Int64\(11\)\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-19\) \+ \(\- cor0\.col2\) \+ \(\- Int64\(11\)\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 51 AS col0, CAST ( NULL AS INTEGER ) + - 19 + - + col2 + - + 11 * + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -31514,7 +31514,7 @@ SELECT DISTINCT - 36 + - + col1 + col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(72\) \+ Int64\(\-38\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(72\) \+ Int64\(\-38\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 / + + 72 + - 38 AS col1, CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0 query I rowsort label-5186 @@ -31607,7 +31607,7 @@ SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 64 AND ( + col1 / - 50 / + col0 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 AS col0, + MIN ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 query I rowsort @@ -33941,7 +33941,7 @@ SELECT + + COUNT ( + - ( + ( + 73 ) ) ) AS col1 FROM tab0 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - col2 col0, ( + CAST ( ( col1 ) AS INTEGER ) ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 * + col2 + - col0 + + col1 query II rowsort @@ -42038,7 +42038,7 @@ SELECT 73 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 33 # Datafusion - Expected - 84 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "CAST\(Int64\(33\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "CAST\(Int64\(33\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 84 AS col0, CAST ( + ( + 33 ) AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -44567,7 +44567,7 @@ SELECT 80 + col0 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-6\) \+ \(\- Int64\(88\)\) \* \(\- cor0\.col2\) / cor0\.col2 AS col1" at position 0 and "\(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \* cor0\.col1 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-6\) \+ \(\- Int64\(88\)\) \* \(\- cor0\.col2\) / cor0\.col2 AS col1" at position 0 and "\(\- \(\- \(\- CAST\(NULL AS Int64\)\)\)\) \* cor0\.col1 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col1 + - 6 + + - ( 88 ) * - col2 / col2 AS col1, - ( - - CAST ( NULL AS INTEGER ) ) * + col1 + + + col0 AS col1 FROM tab2 AS cor0 query II rowsort label-7337 @@ -44816,7 +44816,7 @@ SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) * - + 21 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 * + - CAST ( NULL AS INTEGER ) col1, - col1 AS col1 FROM tab0 query I rowsort @@ -46039,7 +46039,7 @@ SELECT + col1 * col2 + + col1 + - - col0 col1 FROM tab0 AS cor0 # Datafusion - Expected - -2526 # Datafusion - Expected - NULL # Datafusion - Expected - -4327 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) \+ Int64\(98\) \+ \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) \+ Int64\(98\) \+ \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 * + - CAST ( NULL AS INTEGER ) AS col0, col2 * - col0 + + + 98 + - col0 AS col0 FROM tab2 query III rowsort @@ -51664,7 +51664,7 @@ SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col1, + CAST ( NULL AS INTEGER ) * + ( + 74 ) col1 FROM tab1 query III rowsort @@ -57991,7 +57991,7 @@ SELECT ALL col2 / + col1 + - 29 FROM tab0 AS cor0 WHERE NOT + 14 IS NOT NULL # Datafusion - Expected - 139200 # Datafusion - Expected - -4341 # Datafusion - Expected - 292667 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ \(\- cor0\.col2\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 / CAST\(\(\- cor0\.col1\) AS Int32\) \+ Int64\(87\) \* cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ \(\- cor0\.col2\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 / CAST\(\(\- cor0\.col1\) AS Int64\) \+ Int64\(87\) \* cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 * + - col0 + - + col2 + col1 AS col1, col0 / + CAST ( + - col1 AS INTEGER ) + + 87 * + col2 * + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -59015,7 +59015,7 @@ SELECT DISTINCT 89 + + - col1 AS col2 FROM tab0 AS cor0 WHERE col0 >= NULL # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col0\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( col0 ) AS col0, CAST ( - ( + - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_2.slt b/data/sqlite/random/aggregates/slt_good_2.slt index c892935..d039c66 100644 --- a/data/sqlite/random/aggregates/slt_good_2.slt +++ b/data/sqlite/random/aggregates/slt_good_2.slt @@ -2534,7 +2534,7 @@ SELECT DISTINCT - ( + + MIN ( DISTINCT ( col1 ) ) ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( + - ( col2 ) ) AS col2, + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 WHERE NOT + col1 * 48 * col2 IS NULL query I rowsort label-413 @@ -8557,7 +8557,7 @@ SELECT MAX ( ALL 76 ) + - MIN ( DISTINCT ( + 69 ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(10\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-2\) AS col1" at position 0 and "CAST\(cor0\.col2 AS Int32\) / CAST\(NULL AS Int32\) \* Int64\(\-69\) \- Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(10\) \+ \(\- CAST\(NULL AS Int64\)\) \- Int64\(\-2\) AS col1" at position 0 and "CAST\(cor0\.col2 AS Int64\) / CAST\(NULL AS Int64\) \* Int64\(\-69\) \- Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 + + 10 + - ( + CAST ( NULL AS INTEGER ) ) - + - 2 AS col1, CAST ( col2 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * - 69 - - 4 col1 FROM tab0 AS cor0 query I rowsort label-1403 @@ -11454,7 +11454,7 @@ SELECT + col0 AS col1, - col0 / 79 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "tab2\.col0 \* \(\- CAST\(NULL AS Float64\)\) \* \(\- CAST\(\(\- tab2\.col0\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "tab2\.col0 \* \(\- CAST\(NULL AS Float64\)\) \* \(\- CAST\(\(\- tab2\.col0\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 10 AS col0, col0 * + - CAST ( NULL AS FLOAT8 ) * - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -19601,7 +19601,7 @@ SELECT + col2 * - - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 AS col2, - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 query III rowsort @@ -22881,7 +22881,7 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 * - col0 < - col2 * + 31 + + - col1 # Datafusion - Expected - 2 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- CAST\(NULL AS Int32\)\) \+ cor0\.col0 \+ \(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- CAST\(NULL AS Int64\)\) \+ cor0\.col0 \+ \(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) + + col0 + - - col2 + - col2 AS col0, 2 AS col0 FROM tab0 cor0 query III rowsort label-3784 @@ -25255,7 +25255,7 @@ SELECT ALL 63 * col0 / - col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 73 # Datafusion - Expected - -580 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(Int64\(58\) AS Int32\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(Int64\(58\) AS Int64\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col2 * + CAST ( + 58 AS INTEGER ) AS col1, 73 AS col1 FROM tab0 AS cor0 query I rowsort label-4184 @@ -26534,7 +26534,7 @@ SELECT DISTINCT - col2 + 16 + + 87 * - col1 FROM tab2 AS cor0 # Datafusion - Expected - -29 # Datafusion - Expected - 9 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "CAST\(Int64\(\-29\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "CAST\(Int64\(\-29\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( + 9 ) AS col0, CAST ( - 29 AS INTEGER ) col0 FROM tab1 AS cor0 query I rowsort label-4387 @@ -34743,7 +34743,7 @@ SELECT + col2 * + col2 + + 36 FROM tab1 AS cor0 # Datafusion - Expected - -5722 # Datafusion - Expected - NULL # Datafusion - Expected - -934 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col0 \+ cor0\.col2 \- \(\- Int64\(\-61\)\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col0 \+ cor0\.col2 \- \(\- Int64\(\-61\)\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) col1, - col1 + ( col0 ) + + + col2 - - - 61 * col0 AS col1 FROM tab0 AS cor0 query I rowsort label-5765 @@ -36554,7 +36554,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= NULL # Datafusion - Expected - -36800 # Datafusion - Expected - 4377 # Datafusion - Expected - -36800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(Int64\(\-50\) AS Float64\) AS Int32\)\) \* Int64\(86\) \- \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-46\) \* Int64\(80\) \* \(\- Int64\(\-10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(Int64\(\-50\) AS Float64\) AS Int64\)\) \* Int64\(86\) \- \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-46\) \* Int64\(80\) \* \(\- Int64\(\-10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( CAST ( - 50 AS FLOAT8 ) AS INTEGER ) * 86 - + - col1 AS col1, + ( - 46 ) * 80 * - ( - 10 ) AS col1 FROM tab2 query II rowsort @@ -53181,7 +53181,7 @@ SELECT DISTINCT * FROM tab2 WHERE - 19 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 34 * + + CAST ( NULL AS INTEGER ) AS col0, col1 AS col0 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_20.slt b/data/sqlite/random/aggregates/slt_good_20.slt index 4a00f15..95d91ae 100644 --- a/data/sqlite/random/aggregates/slt_good_20.slt +++ b/data/sqlite/random/aggregates/slt_good_20.slt @@ -10952,7 +10952,7 @@ SELECT ALL - MAX ( ALL col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -219 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(min\(Int64\(\-1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(min\(Int64\(\-1\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 73 * - COUNT ( * ) AS col0, + CAST ( + + MIN ( + - 1 ) AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -16092,7 +16092,7 @@ SELECT ALL MIN ( + 30 ) FROM tab2 # Datafusion - Expected - 55 # Datafusion - Expected - -96 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-55\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-55\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 col2, - CAST ( - 55 AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL query I rowsort label-2633 @@ -22136,7 +22136,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 65 * - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d5aa5275597b1b244ad90c688909bf2d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) col0, 80, - 17 AS col0 FROM tab2 AS cor0 query I rowsort @@ -25531,7 +25531,7 @@ SELECT COUNT ( * ), + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -2537 # Datafusion - Expected - NULL # Datafusion - Expected - -4327 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(23\) \+ \(\- cor0\.col2\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(23\) \+ \(\- cor0\.col2\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 23 + + ( + - col2 ) * + col0 AS col0 FROM tab2 AS cor0 query II rowsort @@ -27470,7 +27470,7 @@ SELECT ALL 14, - ( - col2 ) * + col0 - + - col0 col0 FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 75 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int32\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int64\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + + 75 AS INTEGER ) AS col2, - col0 col2 FROM tab1 query II rowsort label-4493 @@ -34953,7 +34953,7 @@ SELECT ALL * FROM tab2 WHERE NOT ( + 57 + - ( col2 ) ) BETWEEN ( + col0 ) AND NU # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- cor0\.col0\)\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- cor0\.col0\)\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( - - col0 ) AS col2, - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -48975,7 +48975,7 @@ SELECT ALL + MIN ( DISTINCT + + col0 ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 AS col1, col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort label-8059 @@ -53262,7 +53262,7 @@ SELECT ALL col2 + - - 25 col0 FROM tab2 # Datafusion - Expected - -23 # Datafusion - Expected - 54 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) \+ Int64\(56\) AS col2" at position 0 and "CAST\(Int64\(\-56\) AS Int32\) \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) \+ Int64\(56\) AS col2" at position 0 and "CAST\(Int64\(\-56\) AS Int64\) \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 + - + col1 + + 56 col2, CAST ( - 56 AS INTEGER ) + 33 AS col2 FROM tab0 AS cor0 query II rowsort @@ -57498,7 +57498,7 @@ SELECT DISTINCT - MIN ( col1 ) + MAX ( DISTINCT - + 39 ) + + + COUNT ( * ) AS co -87 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(98\)\) AS Int32\)\) \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(98\)\) AS Int64\)\) \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 44 AS col1, - CAST ( ( - + 98 ) AS INTEGER ) - col1 AS col1 FROM tab0 AS cor0 WHERE - 13 = NULL query I rowsort label-9437 diff --git a/data/sqlite/random/aggregates/slt_good_21.slt b/data/sqlite/random/aggregates/slt_good_21.slt index 15d638a..858ebd3 100644 --- a/data/sqlite/random/aggregates/slt_good_21.slt +++ b/data/sqlite/random/aggregates/slt_good_21.slt @@ -13142,7 +13142,7 @@ SELECT MIN ( - + 93 ) AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- tab1\.col1\) \* Int64\(69\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / \(\- tab1\.col1\) \* Int64\(69\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col1, CAST ( NULL AS INTEGER ) / + - col1 * 69 + col0 AS col1 FROM tab1 query I rowsort label-2170 @@ -16329,7 +16329,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2, + COUNT ( * ) AS col2 FROM tab1 cor0 query I rowsort @@ -16786,7 +16786,7 @@ SELECT * FROM tab2 WHERE + + col0 + - 64 NOT IN ( + 61 * + col1 - + 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(42\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(42\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 42 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query III rowsort @@ -33145,7 +33145,7 @@ SELECT ALL - col0 + - col0 * + - col1 FROM tab1 663 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 34 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL >= - col0 query I rowsort @@ -35068,7 +35068,7 @@ SELECT - 63 * + - col1, col0 / ( - - col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - -194308 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- Int64\(\-23\)\) \* \(\- cor0\.col2\) \+ \(\- CAST\(Int64\(4\) AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \- cor0\.col1 / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- Int64\(\-23\)\) \* \(\- cor0\.col2\) \+ \(\- CAST\(Int64\(4\) AS Int64\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \- cor0\.col1 / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 88 * - + ( - 23 ) * - col2 + - CAST ( 4 AS INTEGER ) AS col0, + ( - col0 ) - + col1 / + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL query I rowsort label-5794 @@ -42789,7 +42789,7 @@ SELECT ALL - + ( + 36 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 6561 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + col1 * - col1 col2, + CAST ( - + col0 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0 query III rowsort @@ -50067,7 +50067,7 @@ SELECT ALL 32 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) col1, 13 AS col1 FROM tab2 AS cor0 query I rowsort @@ -53583,7 +53583,7 @@ SELECT SUM ( - - col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) / \(\- max\(tab1\.col0\)\) AS col0" at position 0 and "Int64\(\-62\) \- \(\- CAST\(Int64\(\-93\) AS Int32\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) / \(\- max\(tab1\.col0\)\) AS col0" at position 0 and "Int64\(\-62\) \- \(\- CAST\(Int64\(\-93\) AS Int64\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( COUNT ( * ) ) + + 1 / - MAX ( ALL + col0 ) AS col0, - 62 - - CAST ( - 93 AS INTEGER ) + 33 AS col0 FROM tab1 query III rowsort @@ -57136,7 +57136,7 @@ SELECT + ( - col2 ) * - col0 FROM tab2 WHERE + - 9 <> - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(18\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, 18 * COUNT ( * ) - + 50 AS col0 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_22.slt b/data/sqlite/random/aggregates/slt_good_22.slt index 8952396..72958db 100644 --- a/data/sqlite/random/aggregates/slt_good_22.slt +++ b/data/sqlite/random/aggregates/slt_good_22.slt @@ -600,7 +600,7 @@ SELECT col0 + - 55 AS col2 FROM tab1 # Datafusion - Expected - -4623 # Datafusion - Expected - 99 # Datafusion - Expected - -915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "CAST\(Int64\(12\) AS Int32\) \* Int64\(\-68\) \+ tab0\.col2 \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "CAST\(Int64\(12\) AS Int64\) \* Int64\(\-68\) \+ tab0\.col2 \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 AS col0, + CAST ( 12 AS INTEGER ) * + - 68 + col2 * - col1 AS col0 FROM tab0 query I rowsort label-89 @@ -8842,7 +8842,7 @@ SELECT ALL + COUNT ( * ) + - 63 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 AS col0, - col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 query II rowsort @@ -9109,7 +9109,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-35\) / \(\- Int64\(37\)\) / \(\- cor0\.col2\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-35\) / \(\- Int64\(37\)\) / \(\- cor0\.col2\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 42 + - col0 AS col1, - 35 / - + 37 / - + col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -17141,7 +17141,7 @@ SELECT ALL - col0 * 52 * col2 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( col1 ) ) # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int64\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - ( col0 ) AS INTEGER ) AS col2, col1 AS col2 FROM tab0 AS cor0 query I rowsort @@ -17281,7 +17281,7 @@ SELECT DISTINCT + 97 col0 FROM tab0 # Datafusion - Expected - -198 # Datafusion - Expected - 91 # Datafusion - Expected - -207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(Int64\(\-58\) AS Int32\) \+ Int64\(\-81\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(Int64\(\-58\) AS Int64\) \+ Int64\(\-81\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 AS col1, CAST ( - 58 AS INTEGER ) + - 81 + - col2 AS col1 FROM tab1 query II rowsort @@ -25553,7 +25553,7 @@ SELECT MAX ( DISTINCT - ( col0 ) ) AS col1 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * col0 AS col0, col1 AS col0 FROM tab2 AS cor0 query I rowsort @@ -26684,7 +26684,7 @@ SELECT - col2 + - 52 * + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -214 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col2" at position 0 and "CAST\(\(\- sum\(DISTINCT tab1\.col2\)\) AS Int32\) \- Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col2" at position 0 and "CAST\(\(\- sum\(DISTINCT tab1\.col2\)\) AS Int64\) \- Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + 79 AS col2, CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) - - 9 AS col2 FROM tab1 query I rowsort @@ -29002,7 +29002,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 51450 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(14\) \* Int64\(49\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(14\) \* Int64\(49\) 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\. SELECT + col0 * + 14 * 49 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -38564,7 +38564,7 @@ SELECT + COUNT ( * ) + - + COUNT ( ( + 81 ) ) * + - COUNT ( * ) + + - 84 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col1 \* \(\- CAST\(NULL AS Int32\)\) / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col1 \* \(\- CAST\(NULL AS Int64\)\) / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 + - col2 AS col2, + col1 - + col1 * - CAST ( NULL AS INTEGER ) / col2 col2 FROM tab0 AS cor0 query I rowsort label-6341 @@ -44783,7 +44783,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) col2, + 63 AS col2 FROM tab0 WHERE NOT col1 IS NULL query III rowsort @@ -46405,7 +46405,7 @@ SELECT - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WH # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col2, - CAST ( NULL AS INTEGER ) / - 66 AS col2 FROM tab1 AS cor0 query II rowsort @@ -48558,7 +48558,7 @@ SELECT * FROM tab2 WHERE NOT + col2 IN ( col1, col0 ) # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(74\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(74\)\) 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\. SELECT - CAST ( NULL AS INTEGER ) * - + 74 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -52955,7 +52955,7 @@ SELECT ALL - 65 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) / 14 AS col0, + COUNT ( * ) AS col0 FROM tab1 query I rowsort @@ -53196,7 +53196,7 @@ SELECT - 18 AS col2, ( + col0 ) + - col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query III rowsort @@ -56774,7 +56774,7 @@ SELECT col0 * - - col0 * col2 * - col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 0 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / tab2\.col0 AS col2" at position 0 and "\(\- CAST\(\(\- tab2\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / tab2\.col0 AS col2" at position 0 and "\(\- CAST\(\(\- tab2\.col2\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 / + + col0 AS col2, - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 query III rowsort @@ -57526,7 +57526,7 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT 0 * + + col0 * + 67 + - col0 >= NULL # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( 5 ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -57743,7 +57743,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> col1 # Datafusion - Expected - 23 # Datafusion - Expected - 450 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-90\) AS Int32\)\) \* Int64\(5\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-90\) AS Int64\)\) \* Int64\(5\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 90 AS INTEGER ) * + 5 AS col2, + 23 AS col2 FROM tab1 AS cor0 query I rowsort label-9490 @@ -58554,7 +58554,7 @@ SELECT * FROM tab0 WHERE NOT col2 * + 45 + col1 + - - col2 / + 8 + - col0 + - co # Datafusion - Expected - -29 # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 29 AS col0 FROM tab0 query I rowsort label-9616 diff --git a/data/sqlite/random/aggregates/slt_good_23.slt b/data/sqlite/random/aggregates/slt_good_23.slt index e382f1c..2e965c6 100644 --- a/data/sqlite/random/aggregates/slt_good_23.slt +++ b/data/sqlite/random/aggregates/slt_good_23.slt @@ -2648,7 +2648,7 @@ SELECT col0 + - col0 + + 71 + col0 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 AS col2, - col1 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query I rowsort label-427 @@ -13273,7 +13273,7 @@ SELECT * FROM tab2 AS cor0 WHERE 35 + + - 35 IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 47 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(62\)\) AS Int32\)\) \- \(\- cor0\.col1\) \- Int64\(96\) AS col0" at position 0 and "Int64\(\-52\) \- Int64\(16\) \+ Int64\(36\) / \(\- Int64\(77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(62\)\) AS Int64\)\) \- \(\- cor0\.col1\) \- Int64\(96\) AS col0" at position 0 and "Int64\(\-52\) \- Int64\(16\) \+ Int64\(36\) / \(\- Int64\(77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - + 62 AS INTEGER ) - - col1 - 96 AS col0, ( - 52 ) - + 16 + 36 / - + 77 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: @@ -14541,7 +14541,7 @@ SELECT + - col2, + col2 FROM tab2 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -10 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 10 col1, CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 query II rowsort @@ -20969,7 +20969,7 @@ SELECT ALL - ( - col1 ) * - col0 * - ( + col2 ) + + + 46 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab1\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab1\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( ALL + + col1 ) AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 query I rowsort label-3469 @@ -33965,7 +33965,7 @@ SELECT + MIN ( DISTINCT col2 ) AS col1 FROM tab0 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab0\.col1\) AS Int32\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab0\.col1\) AS Int64\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) AS col0, + col1 AS col0 FROM tab0 query I rowsort label-5603 @@ -36729,7 +36729,7 @@ SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col0 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* cor0\.col0 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 col0, + 54 AS col0 FROM tab1 AS cor0 query I rowsort @@ -37859,7 +37859,7 @@ SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - ( col0 ) * - + col0 * # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col0, CAST ( NULL AS INTEGER ) * ( + col2 ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -40706,7 +40706,7 @@ SELECT DISTINCT + COUNT ( ALL + + ( - 75 ) ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + + CAST ( NULL AS INTEGER ) * - col0 AS col0, - col1 AS col0 FROM tab1 AS cor0 query III rowsort @@ -50757,7 +50757,7 @@ SELECT DISTINCT + col0 * + 76 * + col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "\(\- tab1\.col0\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "\(\- tab1\.col0\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col0, - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort label-8384 @@ -55427,7 +55427,7 @@ SELECT ALL MIN ( + - col0 ) AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / Int64\(\-40\) AS col2" at position 0 and "Int64\(\-84\) / tab1\.col1 \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / Int64\(\-40\) AS col2" at position 0 and "Int64\(\-84\) / tab1\.col1 \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 / + - 40 AS col2, - 84 / col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort label-9150 @@ -56392,7 +56392,7 @@ SELECT ALL - 2 AS col1, 98 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(74\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(74\)\)\) 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\. SELECT COUNT ( ALL - + 74 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + 5 IS NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_24.slt b/data/sqlite/random/aggregates/slt_good_24.slt index 6881c24..df9c0aa 100644 --- a/data/sqlite/random/aggregates/slt_good_24.slt +++ b/data/sqlite/random/aggregates/slt_good_24.slt @@ -1504,7 +1504,7 @@ SELECT ALL + - 48 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(3\) AS Int32\) AS col2" at position 0 and "\(\- max\(Int64\(16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(3\) AS Int64\) AS col2" at position 0 and "\(\- max\(Int64\(16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - COUNT ( * ) ) * - + COUNT ( * ) * CAST ( + 3 AS INTEGER ) AS col2, - MAX ( 16 ) AS col2 FROM tab2 AS cor0 query I rowsort label-230 @@ -20058,7 +20058,7 @@ SELECT COUNT ( * ) + - 75 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(38\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(81\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(38\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(81\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( ALL + + 38 ) AS col1, - CAST ( + 81 AS INTEGER ) AS col1 FROM tab1 query I rowsort label-3316 @@ -21837,7 +21837,7 @@ SELECT + 70 col2 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 query I rowsort @@ -21987,7 +21987,7 @@ SELECT ALL - MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0 # Datafusion - Expected - -24 # Datafusion - Expected - -15 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-15\) AS Int32\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-15\) AS Int64\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - 15 AS INTEGER ) AS col1, - 24 AS col1 FROM tab1 cor0 query I rowsort label-3630 @@ -23369,7 +23369,7 @@ SELECT + 74 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col0 \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(63\) \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col0 \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(63\) \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 AS col2, col0 + - CAST ( NULL AS INTEGER ) * ( 63 ) + + + col0 AS col2 FROM tab2 query II rowsort @@ -44831,7 +44831,7 @@ SELECT DISTINCT + 44 + - col1 + - col0 + col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 99 AS col2, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 query II rowsort @@ -47495,7 +47495,7 @@ SELECT DISTINCT - COUNT ( * ) * 98 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(74\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(74\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + COUNT ( * ) * - + 10 col1, CAST ( - + 74 AS INTEGER ) AS col1 FROM tab2 query III rowsort @@ -57126,7 +57126,7 @@ SELECT ALL + 33 / 93 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 800e7552a8caeea3c5bc737fd157a9c3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ CAST\(NULL AS Int32\) \+ \(\- tab1\.col2\) AS col1" at position 1 and "Int64\(\-72\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ CAST\(NULL AS Int64\) \+ \(\- tab1\.col2\) AS col1" at position 1 and "Int64\(\-72\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 / - - 3 AS col0, + col0 + CAST ( NULL AS INTEGER ) + - col2 col1, - 72 AS col1 FROM tab1 query I rowsort @@ -59980,7 +59980,7 @@ SELECT + + 75 * + + col0 * col1, col2 * - 39 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- CAST\(NULL AS Int64\)\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) * + + col1 AS col0, - col1 AS col0 FROM tab2 AS cor0 query I rowsort label-9939 diff --git a/data/sqlite/random/aggregates/slt_good_25.slt b/data/sqlite/random/aggregates/slt_good_25.slt index 17a3d02..d638d8b 100644 --- a/data/sqlite/random/aggregates/slt_good_25.slt +++ b/data/sqlite/random/aggregates/slt_good_25.slt @@ -738,7 +738,7 @@ SELECT 82 * col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort label-114 @@ -5846,12 +5846,12 @@ SELECT MAX ( DISTINCT - 14 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -96 # Datafusion - Expected - -910 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- \(\- CAST\(\(\- Int64\(10\)\) AS Int32\)\)\) AS col0" at position 0 and "\(\- tab1\.col0\) \+ Int64\(\-6\) \+ \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- \(\- CAST\(\(\- Int64\(10\)\) AS Int64\)\)\) AS col0" at position 0 and "\(\- tab1\.col0\) \+ Int64\(\-6\) \+ \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 * - - CAST ( - + 10 AS INTEGER ) AS col0, - col0 + - 6 + - col1 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ebc6054aecf868683b328990b7d4e94f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- Int64\(73\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- Int64\(73\)\) 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\. SELECT 75 * + - ( 73 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab2 query II rowsort @@ -9507,7 +9507,7 @@ SELECT ALL + + SUM ( ALL col2 ) col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* avg\(Int64\(81\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* avg\(Int64\(81\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( ALL 81 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 cor0 query I rowsort label-1558 @@ -11676,7 +11676,7 @@ SELECT DISTINCT 8, - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 AS col1, CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -21476,7 +21476,7 @@ SELECT 3 + + MAX ( DISTINCT - 39 ) FROM tab2 AS cor0 # Datafusion - Expected - -5293 # Datafusion - Expected - NULL # Datafusion - Expected - -6083 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(79\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(79\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 79 * - col1 AS col0 FROM tab2 AS cor0 query I rowsort label-3557 @@ -24879,7 +24879,7 @@ SELECT + - COUNT ( * ) + - - COUNT ( * ) * 87 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -2726 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(2\) \* Int64\(\-23\) \* cor0\.col2 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(2\) \* Int64\(\-23\) \* cor0\.col2 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\. SELECT - + col2 + + 2 * - 23 * + + col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-4127 @@ -30398,7 +30398,7 @@ SELECT + 77 / - COUNT ( * ) FROM tab2 # Datafusion - Expected - -59 # Datafusion - Expected - NULL # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 / + - CAST ( NULL AS INTEGER ) AS col2, - 59 AS col2 FROM tab1 query I rowsort @@ -30745,7 +30745,7 @@ SELECT - col2 * + + col1 col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- Int64\(6\)\) AS col2" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int32\) \+ Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- Int64\(6\)\) AS col2" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int64\) \+ Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - - col2 ) + - + 6 AS col2, + 11 * CAST ( NULL AS INTEGER ) + - 4 AS col2 FROM tab0 AS cor0 query II rowsort @@ -40826,7 +40826,7 @@ SELECT DISTINCT - - ( - + col2 ) / + 96 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 71 AS col2, - CAST ( NULL AS INTEGER ) + + 95 col2 FROM tab0 AS cor0 query I rowsort label-6772 @@ -46133,7 +46133,7 @@ SELECT ALL col2 * ( - 85 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 14 AS col0 FROM tab2 AS cor0 query I rowsort label-7646 @@ -50941,7 +50941,7 @@ SELECT * FROM tab0 WHERE NOT - + col2 * + 29 IS NOT NULL # Datafusion - Expected - -3157 # Datafusion - Expected - 5 # Datafusion - Expected - -3953 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) \- \(\- CAST\(\(\- tab2\.col1\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) \- \(\- CAST\(\(\- tab2\.col1\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 5 col2, col2 * + ( - col1 ) - + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_26.slt b/data/sqlite/random/aggregates/slt_good_26.slt index 8fecdc0..e5b221d 100644 --- a/data/sqlite/random/aggregates/slt_good_26.slt +++ b/data/sqlite/random/aggregates/slt_good_26.slt @@ -1348,7 +1348,7 @@ SELECT DISTINCT + COUNT ( * ) / 22 AS col1 FROM tab1 # Datafusion - Expected - -1738 # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab0\.col1\) \* tab0\.col0 \- Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- tab0\.col1\) \* tab0\.col0 \- Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col0, - col1 * col0 - - 89 AS col0 FROM tab0 query I rowsort label-219 @@ -11753,7 +11753,7 @@ SELECT - ( - col1 ) - + + CAST ( col1 AS INTEGER ) * - 2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col2, + ( CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -17641,7 +17641,7 @@ SELECT ALL + - col0 * 12 FROM tab2 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col0\)\) AS Int64\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - - col0 AS INTEGER ) AS col2, col1 AS col2 FROM tab0 AS cor0 query I rowsort @@ -20111,7 +20111,7 @@ SELECT DISTINCT - 21 AS col1, SUM ( ALL + 78 ) FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -581 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- cor0\.col2\) \- cor0\.col1 \+ cor0\.col2 \* Int64\(0\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col1 \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(18\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- cor0\.col2\) \- cor0\.col1 \+ cor0\.col2 \* Int64\(0\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col1 \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(18\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 56 * + - col2 - + col1 + + col2 * + 0 * col1 AS col1, col1 * - - CAST ( NULL AS INTEGER ) + + 18 + - col2 AS col1 FROM tab0 AS cor0 query II rowsort @@ -29987,7 +29987,7 @@ SELECT ALL - 55 * 85 * - col2 / + - CAST ( - col2 AS FLOAT8 ), ( + col1 ) AS col # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 \* CAST\(NULL AS Int32\) \+ \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 \* CAST\(NULL AS Int64\) \+ \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 col1, col2 * CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 query I rowsort label-4939 @@ -30639,7 +30639,7 @@ SELECT DISTINCT col0 * - 99 * - 37 - 48, col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d132d63615fd6384b1b64c57c6715418 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(Int64\(45\) AS Int32\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(Int64\(45\) AS Int64\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 AS col1, CAST ( + + 45 AS INTEGER ) * + 69 col1, col0 AS col2 FROM tab0 query I rowsort label-5052 @@ -33954,7 +33954,7 @@ SELECT + col2 * + CAST ( 18 AS INTEGER ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- tab0\.col2 AS col0" at position 0 and "tab0\.col2 \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- tab0\.col2 AS col0" at position 0 and "tab0\.col2 \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 - + col2 AS col0, + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL query I rowsort label-5600 @@ -37966,7 +37966,7 @@ SELECT ALL col2 * - col1 * + - 62 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ tab0\.col0 AS col0" at position 0 and "CAST\(NULL AS Float64\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ tab0\.col0 AS col0" at position 0 and "CAST\(NULL AS Float64\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col0, + CAST ( NULL AS FLOAT8 ) * col0 AS col0 FROM tab0 query I rowsort label-6268 @@ -42774,7 +42774,7 @@ SELECT DISTINCT - + col0 + - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(\(\- Int64\(32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- \(\- \(\- CAST\(NULL AS Int64\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(\(\- Int64\(32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 44 + - - ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1, MAX ( ALL - + 32 ) AS col1 FROM tab2 cor0 query I rowsort label-7063 @@ -49548,7 +49548,7 @@ SELECT + AVG ( + col0 ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( col2 ) AS col0, col1 AS col0 FROM tab0 query I rowsort label-8189 @@ -50699,7 +50699,7 @@ SELECT - 88, MIN ( ALL - 41 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -51257,7 +51257,7 @@ SELECT col2 * - 11 FROM tab1 AS cor0 # Datafusion - Expected - 80 # Datafusion - Expected - NULL # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, col0 + 34 AS col0 FROM tab2 AS cor0 query I rowsort label-8465 @@ -55840,7 +55840,7 @@ SELECT + 31 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -3675 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-49\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-49\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 * - 49 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_27.slt b/data/sqlite/random/aggregates/slt_good_27.slt index 0151863..ef4fbf1 100644 --- a/data/sqlite/random/aggregates/slt_good_27.slt +++ b/data/sqlite/random/aggregates/slt_good_27.slt @@ -77,7 +77,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 * + 22 IN ( + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 * col0 * - CAST ( NULL AS INTEGER ) AS col2, + ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 19 AS col2 FROM tab2 AS cor0 query I rowsort @@ -325,7 +325,7 @@ SELECT DISTINCT - - col0 * - col2 * - - col0 FROM tab1 cor0 WHERE NOT + 71 <> NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(81\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(81\)\) 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\. SELECT + MAX ( + + 81 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -1290,7 +1290,7 @@ SELECT + COUNT ( * ) AS col1, + 29 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2ce5bbbe03e61c9789b68b67abf55232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int32\) \* tab1\.col0 AS col2" at position 1 and "\(\- Int64\(\-22\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int64\) \* tab1\.col0 AS col2" at position 1 and "\(\- Int64\(\-22\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85, CAST ( col1 AS INTEGER ) * + col0 AS col2, - - 22 AS col2 FROM tab1 query II rowsort @@ -7386,7 +7386,7 @@ SELECT 89 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to aa8825985985f0f0b2abdf95d29e0c5a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col2\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 / - col2 + + CAST ( NULL AS INTEGER ) AS col2, + col1 + - + col2 AS col2, - col1 * - col1 col1 FROM tab2 AS cor0 query I rowsort @@ -7782,7 +7782,7 @@ SELECT DISTINCT + SUM ( col2 ) * - + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 582 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- min\(\(\- tab0\.col0\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- min\(\(\- tab0\.col0\)\)\) 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\. SELECT ALL 6 * - MIN ( ALL - col0 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -13332,7 +13332,7 @@ SELECT ALL - col2 * ( - col2 ) * - col0 + 77 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ sum\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ sum\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 72 AS col1, + CAST ( NULL AS INTEGER ) + + SUM ( + + col1 ) AS col1 FROM tab0 AS cor0 query IIIIII rowsort @@ -16556,7 +16556,7 @@ SELECT ALL + SUM ( + - col0 ) - - MAX ( ALL 43 ) FROM tab0 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2 query III rowsort @@ -19447,7 +19447,7 @@ SELECT + col1 + + 34 * - col0 - - - 24 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 45 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ Int64\(\-54\) AS col0" at position 0 and "tab0\.col0 / CAST\(tab0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ Int64\(\-54\) AS col0" at position 0 and "tab0\.col0 / CAST\(tab0\.col1 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + - 54 AS col0, + col0 / + ( + CAST ( col1 AS INTEGER ) ) col0 FROM tab0 query III rowsort @@ -22499,7 +22499,7 @@ SELECT DISTINCT + col1 + 87 + - + col1 * + 95 + 14 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) \* Int64\(\-1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) \* Int64\(\-1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( - col2 ) * - 1 + + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -26400,7 +26400,7 @@ SELECT ALL + 2, + col2 * + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) / + 80 col0 FROM tab0 AS cor0 query II rowsort @@ -30630,7 +30630,7 @@ SELECT DISTINCT col1 col2, - 83 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 223 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT cor0\.col2\) AS col0" at position 0 and "CAST\(Int64\(8\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT cor0\.col2\) AS col0" at position 0 and "CAST\(Int64\(8\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT col2 ) AS col0, CAST ( 8 AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -31745,7 +31745,7 @@ SELECT - 17 * 41 * - - col0 FROM tab0 # Datafusion - Expected - 1833 # Datafusion - Expected - -5 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "CAST\(tab1\.col1 AS Int32\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "CAST\(tab1\.col1 AS Int64\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 col1, ( CAST ( + col1 AS INTEGER ) ) * + + 39 col1 FROM tab1 query I rowsort @@ -33275,7 +33275,7 @@ SELECT ALL 60 FROM tab0 cor0 CROSS JOIN tab1 cor1 # Datafusion - Expected - 4489 # Datafusion - Expected - NULL # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 AS col1, col1 * col1 AS col1 FROM tab2 AS cor0 query I rowsort label-5482 @@ -37425,7 +37425,7 @@ SELECT * FROM tab0 cor0 WHERE - 16 IS NOT NULL # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) \+ cor0\.col0 / cor0\.col1 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) \+ cor0\.col0 / cor0\.col1 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + col1 * - + ( + - CAST ( NULL AS INTEGER ) ) AS col0, - col2 + - col1 + col0 / col1 + + + col1 AS col0 FROM tab1 AS cor0 query I rowsort label-6188 @@ -39816,7 +39816,7 @@ SELECT ALL - COUNT ( 77 ) AS col0 FROM tab1 # Datafusion - Expected - -31 # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS Int32\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\) AS Int64\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1, - 31 AS col1 FROM tab0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_28.slt b/data/sqlite/random/aggregates/slt_good_28.slt index adbd87a..2f7dcb9 100644 --- a/data/sqlite/random/aggregates/slt_good_28.slt +++ b/data/sqlite/random/aggregates/slt_good_28.slt @@ -1423,7 +1423,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 60 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 4368 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(cor0\.col1 AS Int32\)\) AS col1" at position 0 and "Int64\(\-91\) \* Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(cor0\.col1 AS Int64\)\) AS col1" at position 0 and "Int64\(\-91\) \* Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( ALL CAST ( col1 AS INTEGER ) ) AS col1, - 91 * - 48 AS col1 FROM tab1 cor0 query III rowsort @@ -3361,7 +3361,7 @@ SELECT - col0 * - 15 + + col1 + ( - col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- CAST\(Int64\(22\) AS Int32\)\) AS col0" at position 0 and "sum\(\(\- Int64\(22\)\)\) / \(\- count\(DISTINCT tab2\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- CAST\(Int64\(22\) AS Int64\)\) AS col0" at position 0 and "sum\(\(\- Int64\(22\)\)\) / \(\- count\(DISTINCT tab2\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 + + - CAST ( + 22 AS INTEGER ) AS col0, SUM ( ALL - + 22 ) / - COUNT ( DISTINCT + + col1 ) AS col0 FROM tab2 query III rowsort @@ -8147,7 +8147,7 @@ SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 * + col2 + # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. SELECT - + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -9094,7 +9094,7 @@ SELECT DISTINCT - 73 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 192 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- \(\- tab1\.col2\)\) AS col0" at position 0 and "tab1\.col0 \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- \(\- tab1\.col2\)\) AS col0" at position 0 and "tab1\.col0 \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + - - col2 AS col0, + col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort label-1471 @@ -9361,7 +9361,7 @@ SELECT ALL + + ( + ( - col2 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 4489 # Datafusion - Expected - NULL # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ CAST\(NULL AS Int32\) / \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \* CAST\(cor0\.col1 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ CAST\(NULL AS Int64\) / \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \* CAST\(cor0\.col1 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 10 + CAST ( NULL AS INTEGER ) / - + col1 AS col2, col1 * + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0 query III rowsort @@ -10887,7 +10887,7 @@ SELECT ALL - CAST ( + - 16 AS INTEGER ) * + col2 - col2 + + - col0, + 76 * + + c # Datafusion - Expected - 77 # Datafusion - Expected - 96 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(\-77\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(\-77\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, - CAST ( - 77 AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -13406,7 +13406,7 @@ SELECT ALL COUNT ( * ) + - 66 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e96b6fb02145eeec9ba70fa6e9d922b1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(9\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(9\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 * + 9 + - CAST ( NULL AS INTEGER ) AS col0, + col0 * + 46, - col1 AS col0 FROM tab0 query I rowsort label-2192 @@ -17070,7 +17070,7 @@ SELECT ALL + ( - col2 ) / - + col0 + + 84 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8d7a2d0e8ae0e6021d96efb1888e66d7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 1 and "\(\- \(\- tab1\.col0\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 1 and "\(\- \(\- tab1\.col0\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0, CAST ( NULL AS INTEGER ) AS col2, - - col0 AS col2 FROM tab1 query I rowsort @@ -29985,7 +29985,7 @@ SELECT DISTINCT col0 * + - ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\)" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int64\)" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + col1 AS INTEGER ), ( + col1 ) FROM tab2 query I rowsort label-4915 @@ -36572,7 +36572,7 @@ SELECT ALL - - 59 * 42 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(76\)\) \+ Int64\(68\) \* count\(\(\- Int64\(62\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(80\) \+ \(\- count\(DISTINCT \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(76\)\) \+ Int64\(68\) \* count\(\(\- Int64\(62\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(80\) \+ \(\- count\(DISTINCT \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( ALL 76 ) + 68 * + COUNT ( - + 62 ) col0, CAST ( NULL AS INTEGER ) / - COUNT ( * ) * 80 + + - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 cor0 query I rowsort @@ -37068,7 +37068,7 @@ SELECT ALL + col1, - 40 + 96 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fe3b5c02a824e9abf82dbeaf51c3cf9b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int32\) \+ Int64\(8\) AS col2" at position 1 and "tab0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int64\) \+ Int64\(8\) AS col2" at position 1 and "tab0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col2, + CAST ( + col0 AS INTEGER ) + 8 AS col2, + col1 AS col2 FROM tab0 query III rowsort @@ -40711,7 +40711,7 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - 96 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(max\(cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(max\(cor0\.col2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col2, + CAST ( MAX ( + col2 ) AS INTEGER ) AS col2, + - 13 FROM tab1 AS cor0 query I rowsort @@ -40842,7 +40842,7 @@ SELECT DISTINCT - 11 / col2 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- CAST\(NULL AS Float64\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- CAST\(NULL AS Float64\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 - CAST ( NULL AS FLOAT8 ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-6700 @@ -48919,7 +48919,7 @@ SELECT ALL + 90 * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) * + col1 AS col2, + col0 AS col2 FROM tab2 AS cor0 query I rowsort @@ -50140,7 +50140,7 @@ SELECT ALL + 53 AS col2, 33 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 88 col1, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 query I rowsort @@ -53096,7 +53096,7 @@ SELECT + MAX ( + col2 ) - + - 30 * + COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- tab0\.col2 AS col0" at position 0 and "Int64\(55\) \* \(\- CAST\(NULL AS Int32\)\) \* tab0\.col1 \+ \(\- \(\- tab0\.col2\)\) \- \(\- tab0\.col0\) \* \(\- tab0\.col1\) \+ \(\- tab0\.col1\) / Int64\(4\) \* tab0\.col1 \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- tab0\.col2 AS col0" at position 0 and "Int64\(55\) \* \(\- CAST\(NULL AS Int64\)\) \* tab0\.col1 \+ \(\- \(\- tab0\.col2\)\) \- \(\- tab0\.col0\) \* \(\- tab0\.col1\) \+ \(\- tab0\.col1\) / Int64\(4\) \* tab0\.col1 \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 - + col2 AS col0, + 55 * - CAST ( NULL AS INTEGER ) * col1 + - - col2 - - col0 * - col1 + - col1 / + 4 * + col1 + - 58 AS col0 FROM tab0 query I rowsort label-8727 @@ -54013,7 +54013,7 @@ SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( - col0 + col2 ) IS NOT NULL # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 63 * - ( CAST ( NULL AS INTEGER ) ) AS col0, - col2 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -54788,7 +54788,7 @@ SELECT ALL - COUNT ( * ) * - + 20 AS col1 FROM tab1 # Datafusion - Expected - 5 # Datafusion - Expected - -3196 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* CAST\(\(\- tab1\.col1\) AS Int32\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* CAST\(\(\- tab1\.col1\) AS Int64\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 * + CAST ( - + col1 AS INTEGER ) AS col0, col1 AS col0 FROM tab1 query II rowsort label-9006 @@ -57241,7 +57241,7 @@ SELECT ALL 30 * - + COUNT ( * ) FROM tab1 -90 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / Int64\(91\) AS col2" at position 0 and "tab0\.col1 \+ \(\- CAST\(Int64\(93\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / Int64\(91\) AS col2" at position 0 and "tab0\.col1 \+ \(\- CAST\(Int64\(93\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 / + 91 col2, + col1 + + - CAST ( + 93 AS INTEGER ) AS col2, ( + col2 ) * - + 9 FROM tab0 WHERE NOT - - col2 IS NOT NULL query I rowsort @@ -58320,7 +58320,7 @@ SELECT DISTINCT + 61 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3e296d347d1003400e97646e345ca1b7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- Int64\(39\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- Int64\(39\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col1, 4 AS col0, - ( + 39 ) AS col1 FROM tab2 query I rowsort label-9592 @@ -59401,7 +59401,7 @@ SELECT ALL - 52 / + - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_29.slt b/data/sqlite/random/aggregates/slt_good_29.slt index 717a20e..ae5cfbb 100644 --- a/data/sqlite/random/aggregates/slt_good_29.slt +++ b/data/sqlite/random/aggregates/slt_good_29.slt @@ -2635,7 +2635,7 @@ SELECT - col1 FROM tab2 WHERE - + 81 <> + + col0 # Datafusion - Expected - NULL # Datafusion - Expected - 980 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 70 * - ( + col1 ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -7795,7 +7795,7 @@ SELECT + + 99 + + ( - - col2 ) * + col0 * - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f795a1e2d51e68c30ed475ca39b89ac7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ cor0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ cor0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 + col2 AS col2, 19 / - - 55 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -8147,7 +8147,7 @@ SELECT DISTINCT 53 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + - CAST ( COUNT ( * ) AS INTEGER ) ) col2, + ( - 6 ) AS col2 FROM tab0 query I rowsort @@ -13269,7 +13269,7 @@ SELECT + COUNT ( * ) AS col1, + MIN ( - 69 ) FROM tab0 # Datafusion - Expected - 2688 # Datafusion - Expected - -89 # Datafusion - Expected - 5568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(\-35\) \* Int64\(\-48\) \- tab0\.col1 \* \(\- CAST\(Int64\(48\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(\-35\) \* Int64\(\-48\) \- tab0\.col1 \* \(\- CAST\(Int64\(48\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 89 AS col1, - 35 * - 48 - + col1 * - CAST ( + 48 AS INTEGER ) AS col1 FROM tab0 query II rowsort label-2195 @@ -14613,7 +14613,7 @@ SELECT - - 68 col1 FROM tab0 cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 84 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- tab0\.col1\) \* Int64\(83\) AS col0" at position 0 and "tab0\.col0 / \(\- Int64\(25\)\) \+ CAST\(Int64\(41\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- tab0\.col1\) \* Int64\(83\) AS col0" at position 0 and "tab0\.col0 / \(\- Int64\(25\)\) \+ CAST\(Int64\(41\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1 - + + ( - col1 ) * + 83 AS col0, col0 / - + 25 + + CAST ( 41 AS INTEGER ) AS col0 FROM tab0 query III rowsort label-2409 @@ -17125,7 +17125,7 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 25 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \+ cor0\.col0 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \+ cor0\.col0 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 66 + col0 AS col1, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -17152,7 +17152,7 @@ SELECT ALL 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "count\(CAST\(cor0\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "count\(CAST\(cor0\.col2 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 31 AS col2, COUNT ( + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= NULL query I rowsort @@ -17770,7 +17770,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-2935 @@ -19557,7 +19557,7 @@ SELECT + col0 - + col2 * col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 46 AS col0, CAST ( NULL AS INTEGER ) + - COUNT ( * ) col0 FROM tab1 query III rowsort @@ -21471,7 +21471,7 @@ NULL # Datafusion - Expected - 34 # Datafusion - Expected - -4350 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col2\) \+ Int64\(76\) \- CAST\(\(\- \(\- tab2\.col1\)\) AS Int32\) / CAST\(Int64\(26\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col2\) \+ Int64\(76\) \- CAST\(\(\- \(\- tab2\.col1\)\) AS Int64\) / CAST\(Int64\(26\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 * - col2 AS col2, - col2 + + 76 - + CAST ( - - col1 AS INTEGER ) / CAST ( + 26 AS INTEGER ) AS col2 FROM tab2 query I rowsort @@ -22659,7 +22659,7 @@ SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "CAST\(tab1\.col0 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "CAST\(tab1\.col0 AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0, CAST ( + + col0 AS INTEGER ) FROM tab1 query I rowsort label-3727 @@ -27268,7 +27268,7 @@ SELECT ALL - col1 / + col2 AS col2, - col2 * + col1 + - - 12 FROM tab1 AS cor0 # Datafusion - Expected - -161 # Datafusion - Expected - -44 # Datafusion - Expected - -109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-29\) AS col0" at position 0 and "Int64\(\-62\) \+ CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-29\) AS col0" at position 0 and "Int64\(\-62\) \+ CAST\(\(\- cor0\.col2\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 + - 29 AS col0, - 62 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -35007,7 +35007,7 @@ SELECT + + col1 / ( + col0 ) + - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 3434 # Datafusion - Expected - NULL # Datafusion - Expected - 4806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab1\.col2 \+ Int64\(33\) \+ \(\- tab1\.col2\) \+ Int64\(69\) \+ Int64\(49\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "tab1\.col2 \+ Int64\(33\) \+ \(\- tab1\.col2\) \+ Int64\(69\) \+ Int64\(49\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, col2 + + 33 + - col2 + + 69 + + 49 * + col2 AS col2 FROM tab1 query I rowsort label-5754 @@ -37855,7 +37855,7 @@ SELECT - 11 / - MAX ( ALL + col0 ) AS col1 FROM tab0 cor0 WHERE 21 NOT BETWEEN N 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(63\) \* \(\- CAST\(Int64\(83\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(63\) \* \(\- CAST\(Int64\(83\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 AS col1, 63 * + - CAST ( 83 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + - col1 NOT IN ( + 59 ) query II rowsort @@ -49773,7 +49773,7 @@ SELECT ALL - 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 5460 # Datafusion - Expected - -97 # Datafusion - Expected - 2574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(26\) \* cor0\.col1 \* \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(26\) \* cor0\.col1 \* \(\- \(\- CAST\(cor0\.col2 AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( - + col0 ) AS col0, ( + 26 ) * + col1 * - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -54680,7 +54680,7 @@ SELECT ALL + 37 * COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 * - - CAST ( ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col2, - col2 AS col2 FROM tab2 AS cor0 query I rowsort label-8999 @@ -56762,7 +56762,7 @@ SELECT col0 * 57 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0 query III rowsort label-9341 @@ -56900,7 +56900,7 @@ SELECT col1 - + + col0 * col1 * + + col2 * col1 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "tab0\.col0 / tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "tab0\.col0 / tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( ( - col2 ) ) - - CAST ( NULL AS INTEGER ) col2, + col0 / + col2 AS col2 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_3.slt b/data/sqlite/random/aggregates/slt_good_3.slt index 28c5fc3..37ab1de 100644 --- a/data/sqlite/random/aggregates/slt_good_3.slt +++ b/data/sqlite/random/aggregates/slt_good_3.slt @@ -120,7 +120,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. SELECT DISTINCT - + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-14 @@ -14910,7 +14910,7 @@ SELECT ALL - ( - 32 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, + 70 AS col2 FROM tab1 AS cor0 query I rowsort @@ -16738,7 +16738,7 @@ SELECT ALL + col1 * + col2 * + + 51 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "\(\- cor0\.col1\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "\(\- cor0\.col1\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 3 AS col0, - col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 query I rowsort label-2743 @@ -23691,7 +23691,7 @@ SELECT - COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 768240 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \* Int64\(80\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \* Int64\(80\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - col0 ) * + - col2 * + 80 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -31913,7 +31913,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 80 # Datafusion - Expected - NULL # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-36\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(63\)\) \* cor0\.col1 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-36\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(63\)\) \* cor0\.col1 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 + - 36 AS col2, - CAST ( NULL AS INTEGER ) * + - ( 63 ) * + col1 + + + col2 col2 FROM tab1 AS cor0 WHERE NOT + 81 IS NULL query II rowsort label-5233 @@ -32185,7 +32185,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(DISTINCT CAST\(cor0\.col0 AS Int32\)\) \+ CAST\(Int64\(\-33\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(DISTINCT CAST\(cor0\.col0 AS Int64\)\) \+ CAST\(Int64\(\-33\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col0, + SUM ( DISTINCT + CAST ( col0 AS INTEGER ) ) + CAST ( + - 33 AS INTEGER ) col0 FROM tab0 AS cor0 query I rowsort @@ -33875,7 +33875,7 @@ SELECT ALL + col2 / 44 + col1 AS col0 FROM tab2 # Datafusion - Expected - 34 # Datafusion - Expected - -75 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(Int64\(34\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(Int64\(34\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col2, + CAST ( + 34 AS INTEGER ) AS col2 FROM tab2 query III rowsort @@ -40107,7 +40107,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + ( - + col0 ) + - - col2 AND # Datafusion - Expected - -68 # Datafusion - Expected - -99 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 0 and "\(\- CAST\(Int64\(68\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int64\) AS col1" at position 0 and "\(\- CAST\(Int64\(68\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + - col2 AS INTEGER ) AS col1, - CAST ( + 68 AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -41601,7 +41601,7 @@ NULL # Datafusion - Expected - -3 # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 and "max\(cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 and "max\(cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, + MAX ( + col1 ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -44664,7 +44664,7 @@ SELECT - MAX ( + col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2, + 29 AS col2 FROM tab1 query I rowsort label-7340 @@ -44768,7 +44768,7 @@ SELECT DISTINCT 28 * 60 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 96 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int32\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int64\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 96 AS INTEGER ) AS col1, col0 AS col1 FROM tab0 query I rowsort label-7358 @@ -45600,7 +45600,7 @@ SELECT DISTINCT 43 * + col1 * - col1 AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) \* CAST\(NULL AS Int64\) \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1 col2, + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * col2 col2 FROM tab2 query I rowsort @@ -45617,7 +45617,7 @@ SELECT ALL ( + 19 ) FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col0 AS Int32\)\) \* tab1\.col2 \* Int64\(84\) \* \(\- \(\- tab1\.col0\)\) \+ CAST\(NULL AS Int32\) / Int64\(23\) \* tab1\.col2 \* \(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col0 AS Int64\)\) \* tab1\.col2 \* Int64\(84\) \* \(\- \(\- tab1\.col0\)\) \+ CAST\(NULL AS Int64\) / Int64\(23\) \* tab1\.col2 \* \(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( + col0 AS INTEGER ) * col2 * + + 84 * - - col0 + CAST ( NULL AS INTEGER ) / + + 23 * col2 * - col0 AS col1, - col2 AS col1 FROM tab1 WHERE NOT - col0 = col1 query I rowsort label-7493 @@ -47990,7 +47990,7 @@ NULL # Datafusion - Expected - 71 # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, 71 col0 FROM tab1 cor0 query I rowsort label-7878 @@ -52163,7 +52163,7 @@ SELECT - + SUM ( + + 57 ) AS col1, SUM ( - col1 ) + - 33 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 14 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -52305,7 +52305,7 @@ SELECT col2 - 29 + - 52 * + CAST ( col1 AS INTEGER ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "min\(\(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "min\(\(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, MIN ( ALL + - col0 ) AS col0 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_30.slt b/data/sqlite/random/aggregates/slt_good_30.slt index a3efc42..b51b269 100644 --- a/data/sqlite/random/aggregates/slt_good_30.slt +++ b/data/sqlite/random/aggregates/slt_good_30.slt @@ -3050,7 +3050,7 @@ SELECT ALL + SUM ( 53 ) FROM tab1 # Datafusion - Expected - -3 # Datafusion - Expected - NULL # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(51\) \+ sum\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "Int64\(51\) \+ sum\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - ( COUNT ( * ) ) AS INTEGER ) col0, 51 + + + SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( DISTINCT + + col2 ) - COUNT ( * ) * 31 FROM tab1 query I rowsort @@ -8280,7 +8280,7 @@ SELECT + COUNT ( ALL + 71 ) + + 34 AS col1 FROM tab2 WHERE ( - col2 ) NOT BETWEE # Datafusion - Expected - -74 # Datafusion - Expected - 22 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "\(\- tab2\.col0\) \+ tab2\.col2 \- CAST\(tab2\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "\(\- tab2\.col0\) \+ tab2\.col2 \- CAST\(tab2\.col1 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 22 col0, - col0 + col2 - + CAST ( + + col1 AS INTEGER ) col0 FROM tab2 query I rowsort @@ -14133,7 +14133,7 @@ SELECT ALL - COUNT ( - col2 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 col2, + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -17536,7 +17536,7 @@ SELECT col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL # Datafusion - Expected - 7 # Datafusion - Expected - 5 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- \(\- CAST\(\(\- cor0\.col1\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + col0 - - - CAST ( - col1 AS INTEGER ) AS col2, 7 AS col2 FROM tab2 AS cor0 query I rowsort @@ -21695,7 +21695,7 @@ SELECT 86 + - + col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col2\) \- \(\- Int64\(\-42\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col2\) \- \(\- Int64\(\-42\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( ALL col2 ) - - - 42 AS col1, CAST ( NULL AS INTEGER ) * - 87 AS col1 FROM tab0 AS cor0 query I rowsort @@ -38312,7 +38312,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 30 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col1\)\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col1\)\) \* \(\- CAST\(NULL AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - SUM ( ALL col1 ) * - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 query I rowsort label-6329 @@ -42713,7 +42713,7 @@ SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * - col1 IS NO # Datafusion - Expected - 247690 # Datafusion - Expected - 485 # Datafusion - Expected - 26350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(54\) / \(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col1\) \* CAST\(Int64\(62\) \* Int64\(\-85\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(54\) / \(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col1\) \* CAST\(Int64\(62\) \* Int64\(\-85\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 97 * - + col1 AS col2, 54 / - - col2 + - col1 * CAST ( + 62 * - 85 AS INTEGER ) AS col2 FROM tab1 AS cor0 query II rowsort label-7069 @@ -47388,7 +47388,7 @@ SELECT ALL 28 - + 66 AS col2, col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / count\(Int64\(72\)\) AS col0" at position 0 and "\(\- Int64\(71\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / count\(Int64\(72\)\) AS col0" at position 0 and "\(\- Int64\(71\)\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + CAST ( NULL AS INTEGER ) ) / + COUNT ( + + 72 ) col0, + ( - + 71 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query III rowsort @@ -54164,7 +54164,7 @@ SELECT ALL + 95 FROM tab1 AS cor0 WHERE NOT - col1 < NULL # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 77 + + ( + CAST ( NULL AS INTEGER ) ) AS col1, col2 col1 FROM tab2 query I rowsort @@ -57671,7 +57671,7 @@ SELECT DISTINCT - + MAX ( ALL + col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "avg\(\(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 29 AS col1, AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_31.slt b/data/sqlite/random/aggregates/slt_good_31.slt index b121309..0207477 100644 --- a/data/sqlite/random/aggregates/slt_good_31.slt +++ b/data/sqlite/random/aggregates/slt_good_31.slt @@ -4062,7 +4062,7 @@ SELECT DISTINCT 8 - + 82 / col0 * + ( 61 ) FROM tab2 # Datafusion - Expected - 44 # Datafusion - Expected - -2982 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(88\)\) AS Int32\) \* cor0\.col0 \+ Int64\(54\) \* cor0\.col1 AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(88\)\) AS Int64\) \* cor0\.col0 \+ Int64\(54\) \* cor0\.col1 AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - + 88 AS INTEGER ) * col0 + + 54 * col1 AS col0, 44 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -18562,7 +18562,7 @@ SELECT DISTINCT - + col1 * - 27 * + col2 + - 88 * col2 + + + 4 FROM tab1 AS cor0 80312 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int64\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 82 AS INTEGER ) AS col0, - col0 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL query I rowsort label-3049 @@ -21416,7 +21416,7 @@ SELECT ALL - + COUNT ( DISTINCT + 0 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col1, ( + ( col0 ) ) col1 FROM tab0 query I rowsort @@ -22795,7 +22795,7 @@ SELECT DISTINCT 62 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- tab1\.col0\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- tab1\.col0\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( - col0 ) AS col1, + CAST ( NULL AS INTEGER ) col1 FROM tab1 query I rowsort label-3746 @@ -23882,7 +23882,7 @@ SELECT DISTINCT - col1 - - - col1 AS col0 FROM tab1 # Datafusion - Expected - 129 # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(32\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(32\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 + CAST ( NULL AS INTEGER ) AS col1, + 32 + + + col0 AS col1 FROM tab0 query I rowsort @@ -26638,7 +26638,7 @@ SELECT + 20 * + - 78 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b54a6acacd38d68d7357ea9a0e028193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col2\) \* Int64\(\-98\) \+ \(\- cor0\.col1\) \+ Int64\(82\) AS col1" at position 0 and "CAST\(CAST\(\(\- cor0\.col1\) AS Int32\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col2\) \* Int64\(\-98\) \+ \(\- cor0\.col1\) \+ Int64\(82\) AS col1" at position 0 and "CAST\(CAST\(\(\- cor0\.col1\) AS Int64\) AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1 * - + col2 * - 98 + - col1 + 82 AS col1, col1, + CAST ( + + CAST ( + - ( + col1 ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -35095,7 +35095,7 @@ SELECT + COUNT ( * ) * COUNT ( DISTINCT + + 69 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 58 AS col2, CAST ( NULL AS INTEGER ) + + + 16 col2 FROM tab1 query II rowsort @@ -42184,7 +42184,7 @@ SELECT - ( col1 ) * - - ( - col2 ) + + col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 query III rowsort @@ -47583,7 +47583,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 query I rowsort label-7822 @@ -52823,7 +52823,7 @@ SELECT COUNT ( * ), - SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab2 AS cor0 query I rowsort @@ -53001,7 +53001,7 @@ SELECT 72 * + + CAST ( 15 AS INTEGER ) * + col0 * - 34 + + 99 + col0 AS col1 FRO # Datafusion - Expected - NULL # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ Int64\(53\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ Int64\(53\) 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\. SELECT ALL - - col1 + 53 col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query III rowsort @@ -55521,7 +55521,7 @@ SELECT ALL + 11 + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5f6a776aaf3263fac809214868c3842a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* tab0\.col2 \* CAST\(Int64\(\-59\) AS Int32\) \* tab0\.col2 \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* tab0\.col2 \* CAST\(Int64\(\-59\) AS Int64\) \* tab0\.col2 \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 18 * + col2 * CAST ( - 59 AS INTEGER ) * + col2 * col1 AS col2, + col1 + col1 AS col2, col1 FROM tab0 query I rowsort @@ -56298,7 +56298,7 @@ SELECT CAST ( - 13 AS INTEGER ) AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query III rowsort @@ -58987,7 +58987,7 @@ SELECT ALL 25 + col2 col0, + col2 + + + col2 + - - col2 AS col0 FROM tab0 AS cor # Datafusion - Expected - NULL # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(10\) \+ \(\- CAST\(NULL AS Int32\)\) \- tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(10\) \+ \(\- CAST\(NULL AS Int64\)\) \- tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 98 AS col2, + 10 + + - CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab0 query II rowsort label-9709 diff --git a/data/sqlite/random/aggregates/slt_good_32.slt b/data/sqlite/random/aggregates/slt_good_32.slt index 5e38a44..fadda7f 100644 --- a/data/sqlite/random/aggregates/slt_good_32.slt +++ b/data/sqlite/random/aggregates/slt_good_32.slt @@ -3159,7 +3159,7 @@ SELECT + col1 + 40 + - col1 AS col1, col0 + 14 FROM tab2 AS cor0 WHERE NOT NULL # Datafusion - Expected - -8019 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(99\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(99\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 99 * - col1 AS col0 FROM tab0 cor0 # Datafusion - Types were automatically converted from: @@ -4964,7 +4964,7 @@ SELECT - col1 AS col2, 11 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 221164 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(44\) \* tab2\.col1 \- CAST\(\(\- Int64\(64\)\) AS Int32\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(44\) \* tab2\.col1 \- CAST\(\(\- Int64\(64\)\) AS Int64\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 * 44 * col1 - CAST ( - ( + 64 ) AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 query I rowsort label-801 @@ -8626,7 +8626,7 @@ SELECT + col0 FROM tab1 AS cor0 WHERE NOT + ( - col1 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - ( COUNT ( * ) ) col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -16747,7 +16747,7 @@ SELECT ALL + - ( - MIN ( ALL + ( - col2 ) ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 88 * + ( - COUNT ( * ) ) + COUNT ( * ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 query I rowsort label-2758 @@ -16860,7 +16860,7 @@ SELECT ALL SUM ( DISTINCT + + 77 ) FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col1 col2 FROM tab1 query I rowsort @@ -18167,7 +18167,7 @@ SELECT DISTINCT + col0, col0 + + col1 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2 query I rowsort label-2985 @@ -22233,7 +22233,7 @@ SELECT - col0 / + + col1 + + 88 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -1357 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "CAST\(Int64\(\-59\) AS Int32\) \* \(\- Int64\(\-23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "CAST\(Int64\(\-59\) AS Int64\) \* \(\- Int64\(\-23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 96 col2, + CAST ( - 59 AS INTEGER ) * - - 23 AS col2 FROM tab2 AS cor0 query I rowsort @@ -23099,7 +23099,7 @@ SELECT ALL - + col1 + - col0 * + + col0 FROM tab1 AS cor0 WHERE + col1 <= - col2 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT - col1 AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 query I rowsort label-3788 @@ -27350,7 +27350,7 @@ SELECT * FROM tab0 AS cor0 WHERE - 62 NOT IN ( + - col0 ) # Datafusion - Expected - NULL # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( col1 ) + + ( - col2 ) AS col1, col0 + ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0 query I rowsort @@ -31541,7 +31541,7 @@ SELECT ( - col2 ) + + - 74 + + - 99 * - + 97 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 6561 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int64\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( col1 AS INTEGER ) * + ( + + col1 ) AS col1, col2 AS col1 FROM tab0 AS cor0 query III rowsort @@ -33038,7 +33038,7 @@ SELECT + MAX ( - 31 ) + - 17 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\) \* tab0\.col2 \+ CAST\(NULL AS Float64\) \+ \(\- Int64\(7\)\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int64\) \* tab0\.col2 \+ CAST\(NULL AS Float64\) \+ \(\- Int64\(7\)\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + col1 AS INTEGER ) * col2 + CAST ( NULL AS FLOAT8 ) + - ( + 7 ) AS col2, - col0 AS col2 FROM tab0 query II rowsort label-5446 @@ -33590,7 +33590,7 @@ SELECT + col0 - + 5 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 152 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\) \+ Int64\(32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\) \+ Int64\(32\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 40 + + + 32 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query III rowsort @@ -40114,7 +40114,7 @@ SELECT DISTINCT - col1 + + ( 88 ) + + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-52\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-66\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-52\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-66\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - 52 - - COUNT ( * ) AS col1, - 66 + - COUNT ( * ) col1 FROM tab1 AS cor0 query I rowsort @@ -40812,7 +40812,7 @@ SELECT ALL - MIN ( - col2 ) + 54 AS col0 FROM tab0 # Datafusion - Expected - 96 # Datafusion - Expected - -943 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col1\) AS Int32\)\) \+ Int64\(\-79\) \* Int64\(12\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col1\) AS Int64\)\) \+ Int64\(\-79\) \* Int64\(12\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + - 79 * + 12 AS col0, + col2 AS col0 FROM tab1 query I rowsort label-6741 @@ -41589,7 +41589,7 @@ SELECT ALL - 36 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 144 # Datafusion - Expected - 7371 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* tab1\.col0 AS col2" at position 0 and "tab1\.col0 \+ CAST\(tab1\.col2 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* tab1\.col0 AS col2" at position 0 and "tab1\.col0 \+ CAST\(tab1\.col2 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 81 * col0 AS col2, + col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 query I rowsort label-6868 @@ -43065,7 +43065,7 @@ SELECT DISTINCT + + 53 + + MIN ( col0 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -260362 # Datafusion - Expected - NULL # Datafusion - Expected - -59823 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- cor0\.col1\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- cor0\.col1\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 22 * - + col1 + + + CAST ( NULL AS INTEGER ) col1, + col1 * - col1 * + col2 AS col1 FROM tab2 cor0 query I rowsort @@ -53360,7 +53360,7 @@ SELECT DISTINCT 56 + + col0 - + + col2 + + 32 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - 75 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\) AS col1" at position 0 and "CAST\(Int64\(91\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col0\)\) AS Int64\) AS col1" at position 0 and "CAST\(Int64\(91\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - col0 AS INTEGER ) col1, CAST ( + 91 AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -57015,7 +57015,7 @@ SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 13 + - col0 < 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-17\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(\-17\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, ( - 17 ) * + COUNT ( * ) AS col1 FROM tab1 cor0 query II rowsort @@ -57326,7 +57326,7 @@ SELECT ALL col2 AS col2, + ( - 46 ) / + + ( - + col1 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_33.slt b/data/sqlite/random/aggregates/slt_good_33.slt index e501dc2..36ceac0 100644 --- a/data/sqlite/random/aggregates/slt_good_33.slt +++ b/data/sqlite/random/aggregates/slt_good_33.slt @@ -3832,7 +3832,7 @@ SELECT - MIN ( + 64 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-82\) \* cor0\.col0 \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-82\) \* cor0\.col0 \- CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col1 * - col0 * - CAST ( NULL AS INTEGER ) * - 82 * + col0 - + CAST ( NULL AS INTEGER ) AS col2, + 54 AS col2 FROM tab1 AS cor0 query I rowsort label-654 @@ -29283,7 +29283,7 @@ SELECT ALL - - ( + ( + 71 ) ) AS col2, - col2 * - 15 AS col1 FROM tab0 AS cor0 705 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 \- cor0\.col2 / \(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 \- cor0\.col2 / \(\- CAST\(NULL AS Int64\)\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 + col1 - col2 / - CAST ( NULL AS INTEGER ) + - col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL query II rowsort label-4856 @@ -35826,7 +35826,7 @@ SELECT ALL - col1 + ( col1 ) * col2 * col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- tab1\.col2\) \+ Int64\(81\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- tab1\.col2\) \+ Int64\(81\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 + - col2 + + 81 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query III rowsort @@ -37534,7 +37534,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND 19 # Datafusion - Expected - NULL # Datafusion - Expected - -9700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col2 \+ \(\- tab0\.col0\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col2 \+ \(\- tab0\.col0\) 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\. SELECT DISTINCT - col0 * + col2 + + - col0 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort label-6222 @@ -44473,7 +44473,7 @@ SELECT ALL + 2 col2, 65 * col1 + - + 10 FROM tab2 cor0 WHERE - col1 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. SELECT + ( + - col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-7386 @@ -44504,7 +44504,7 @@ SELECT ALL - 88 col1, COUNT ( * ) + - 34 FROM tab2 WHERE NOT NULL > NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, + col1 AS col0 FROM tab2 # Datafusion - Types were automatically converted from: @@ -45513,7 +45513,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + col2 BETWEEN - col2 AND + 1 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(72\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(72\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col0 AS col2, ( + 72 ) / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 query I rowsort label-7552 @@ -51866,7 +51866,7 @@ SELECT CAST ( + - 51 AS INTEGER ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT ALL ( - col1 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-8598 @@ -59592,7 +59592,7 @@ SELECT ALL col1, + col1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 401649723247a56c6f5126caf27cae3f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 1 and "CAST\(tab2\.col2 AS Int32\) \- \(\- tab2\.col0\) \+ tab2\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 1 and "CAST\(tab2\.col2 AS Int64\) \- \(\- tab2\.col0\) \+ tab2\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 46 AS col2, - col0 AS col1, + ( + CAST ( + col2 AS INTEGER ) ) - - col0 + col2 AS col1 FROM tab2 query I rowsort label-9881 diff --git a/data/sqlite/random/aggregates/slt_good_34.slt b/data/sqlite/random/aggregates/slt_good_34.slt index fdf392c..c487138 100644 --- a/data/sqlite/random/aggregates/slt_good_34.slt +++ b/data/sqlite/random/aggregates/slt_good_34.slt @@ -1147,7 +1147,7 @@ NULL # Datafusion - Expected - 73 # Datafusion - Expected - -6041 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col2\) \* CAST\(Int64\(62\) AS Int32\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col2\) \* CAST\(Int64\(62\) AS Int64\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 + ( - col2 ) * + CAST ( 62 AS INTEGER ) AS col1, 73 AS col1 FROM tab0 query I rowsort label-179 @@ -1908,7 +1908,7 @@ SELECT * FROM tab0 WHERE + col0 - - 20 <> - col1 + + 71 - ( - 52 + - col0 ) # Datafusion - Expected - 6 # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(78\) / Int64\(\-27\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- CAST\(NULL AS Int64\)\) \- Int64\(78\) / Int64\(\-27\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 * - CAST ( NULL AS INTEGER ) - + + 78 / + - 27 AS col2, 6 AS col2 FROM tab0 query I rowsort @@ -3580,7 +3580,7 @@ SELECT * FROM tab0 WHERE col1 = + CAST ( NULL AS INTEGER ) + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5ef800af2856d3038f1f5d92a7c1da3a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(69\) / CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(69\) / CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 * + col2 + - - col0 AS col0, + 69 / + CAST ( NULL AS INTEGER ) * - col0 col0, col2 FROM tab0 cor0 query I rowsort label-580 @@ -3851,7 +3851,7 @@ SELECT ALL 26 - - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(cor0\.col1\)\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(cor0\.col1\)\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - AVG ( ALL + col1 ) AS INTEGER ) col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -9237,7 +9237,7 @@ SELECT ALL + + 59 + - - col0 * + - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL query I rowsort @@ -27346,7 +27346,7 @@ SELECT DISTINCT + SUM ( + - col1 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* min\(cor0\.col0\) AS col1" at position 0 and "sum\(DISTINCT CAST\(cor0\.col1 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* min\(cor0\.col0\) AS col1" at position 0 and "sum\(DISTINCT CAST\(cor0\.col1 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * MIN ( ALL + col0 ) AS col1, + SUM ( DISTINCT CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 query I rowsort label-4528 @@ -37960,7 +37960,7 @@ NULL # Datafusion - Expected - 8911 # Datafusion - Expected - 154 # Datafusion - Expected - 8008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col1 AS col0" at position 0 and "tab2\.col2 \* tab2\.col1 \- CAST\(\(\- tab2\.col1\) AS Int32\) \* tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col1 AS col0" at position 0 and "tab2\.col2 \* tab2\.col1 \- CAST\(\(\- tab2\.col1\) AS Int64\) \* tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 + + + col1 AS col0, col2 * + + col1 - CAST ( - col1 AS INTEGER ) * col0 AS col0 FROM tab2 query I rowsort @@ -41949,7 +41949,7 @@ NULL # Datafusion - Expected - 96 # Datafusion - Expected - 65 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(57\) AS Int32\) \+ Int64\(8\) AS col2" at position 0 and "tab0\.col1 \- \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(57\) AS Int64\) \+ Int64\(8\) AS col2" at position 0 and "tab0\.col1 \- \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( 57 AS INTEGER ) + + 8 col2, col1 - - col0 AS col2 FROM tab0 query II rowsort @@ -42189,7 +42189,7 @@ SELECT + + col2 - col0 FROM tab0 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ Int64\(31\) / Int64\(23\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ Int64\(31\) / Int64\(23\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 + 31 / 23 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_35.slt b/data/sqlite/random/aggregates/slt_good_35.slt index 16bd55c..59544b3 100644 --- a/data/sqlite/random/aggregates/slt_good_35.slt +++ b/data/sqlite/random/aggregates/slt_good_35.slt @@ -3973,7 +3973,7 @@ SELECT * FROM tab1 WHERE NULL > - + col0 * + CAST ( NULL AS FLOAT8 ) * + col0 # Datafusion - Expected - 85 # Datafusion - Expected - -31 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- Int64\(19\)\) AS col2" at position 0 and "\(\- CAST\(\(\- tab1\.col0\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- Int64\(19\)\) AS col2" at position 0 and "\(\- CAST\(\(\- tab1\.col0\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 + - + 19 AS col2, - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 query I rowsort label-659 @@ -9214,7 +9214,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 / cor0\.col2 AS col1" at position 0 and "cor0\.col1 \* CAST\(NULL AS Int32\) \+ cor0\.col2 \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 / cor0\.col2 AS col1" at position 0 and "cor0\.col1 \* CAST\(NULL AS Int64\) \+ cor0\.col2 \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 + + + col0 / + col2 AS col1, col1 * CAST ( NULL AS INTEGER ) + col2 * + 80 AS col1 FROM tab2 AS cor0 query I rowsort label-1540 @@ -9567,7 +9567,7 @@ SELECT DISTINCT + col1 * col0 * + col0 * - - col1 - - 62 / ( + 54 ) * + + 27 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col0\) AS col0" at position 0 and "max\(\(\- tab0\.col1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-59\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col0\) AS col0" at position 0 and "max\(\(\- tab0\.col1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-59\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ( col0 ) ) AS col0, + ( MAX ( ALL - col1 ) ) * + COUNT ( * ) + CAST ( - 59 AS INTEGER ) col0 FROM tab0 query II rowsort @@ -14635,7 +14635,7 @@ SELECT * FROM tab0 AS cor0 WHERE ( - ( + - CAST ( NULL AS INTEGER ) ) ) + 64 * + # Datafusion - Expected - -4465 # Datafusion - Expected - NULL # Datafusion - Expected - -475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-66\) \* cor0\.col2 \+ cor0\.col1 AS col0" at position 0 and "Int64\(95\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- CAST\(NULL AS Int64\)\) \- Int64\(\-66\) \* cor0\.col2 \+ cor0\.col1 AS col0" at position 0 and "Int64\(95\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 - - + CAST ( NULL AS INTEGER ) - - 66 * + col2 + col1 AS col0, + 95 * - col1 AS col0 FROM tab1 AS cor0 query I rowsort @@ -18928,7 +18928,7 @@ SELECT DISTINCT - 89 FROM tab0, tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "CAST\(\(\- sum\(\(\- Int64\(\-3\)\)\)\) AS Int32\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "CAST\(\(\- sum\(\(\- Int64\(\-3\)\)\)\) AS Int64\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 74 col0, CAST ( - SUM ( ( - - 3 ) ) AS INTEGER ) - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 query II rowsort @@ -27869,7 +27869,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 5, col0 + + 86 ) OR + - col # Datafusion - Expected - 25 # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col2 * col0 * - CAST ( NULL AS INTEGER ) * - 79 AS col1, 25 AS col1 FROM tab2 cor0 query III rowsort @@ -47908,7 +47908,7 @@ SELECT - + col0 * + - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3315 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(1\) \* \(\- sum\(tab2\.col1\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(1\) \* \(\- sum\(tab2\.col1\)\) 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\. SELECT + 17 * + 1 * - + SUM ( col1 ) AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab2 query III rowsort @@ -55308,7 +55308,7 @@ SELECT ALL + 6 * - ( col2 ) + - col1 / - - col0 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 5692 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \- CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \- CAST\(\(\- cor0\.col1\) AS Int64\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 * - col0 - CAST ( - col1 AS INTEGER ) AS col1, - col0 AS col1 FROM tab2 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_36.slt b/data/sqlite/random/aggregates/slt_good_36.slt index f8f8c23..a591a1f 100644 --- a/data/sqlite/random/aggregates/slt_good_36.slt +++ b/data/sqlite/random/aggregates/slt_good_36.slt @@ -883,7 +883,7 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-11\) AS Int32\)\) / \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-11\) AS Int64\)\) / \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 78 ) AS col1, - CAST ( - 11 AS INTEGER ) / - col1 AS col1 FROM tab2 query I rowsort @@ -15268,7 +15268,7 @@ SELECT + + col0 col0 FROM tab1 WHERE NOT NULL < NULL # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-2516 @@ -20438,7 +20438,7 @@ SELECT DISTINCT + - 61 AS col0, + col2 col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(DISTINCT Int64\(74\)\) \+ \(\- Int64\(\-66\)\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(DISTINCT Int64\(74\)\) \+ \(\- Int64\(\-66\)\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT 74 ) + ( - - 66 ) + 83 AS col0 FROM tab1 AS cor0 query II rowsort @@ -21098,7 +21098,7 @@ SELECT col1 * col2 AS col1 FROM tab2 cor0 WHERE NOT NULL < NULL # Datafusion - Expected - -3367 # Datafusion - Expected - -25 # Datafusion - Expected - -3145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col1\) AS col2" at position 0 and "CAST\(Int64\(37\) AS Int32\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col1\) AS col2" at position 0 and "CAST\(Int64\(37\) AS Int64\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 * ( - col1 ) col2, + CAST ( 37 AS INTEGER ) * - col0 AS col2 FROM tab1 query I rowsort @@ -23346,7 +23346,7 @@ SELECT - + MAX ( - - 6 ) AS col1 FROM tab0 AS cor0 -6 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(10\) / CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(10\) / CAST\(\(\- cor0\.col1\) AS Int64\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 86 * + 10 / CAST ( - col1 AS INTEGER ) AS col1, - col1 col1 FROM tab2 AS cor0 WHERE NOT 20 = NULL query I rowsort @@ -28008,7 +28008,7 @@ SELECT ALL ( + MAX ( DISTINCT - col2 ) ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 10 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-4636 @@ -39350,7 +39350,7 @@ SELECT ALL ( + col2 ) * 15 + + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 17d7d73256802e32ad1415f5a096a217 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-75\) AS Int32\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-75\) AS Int64\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - 75 AS INTEGER ) AS col1, ( + col0 ) AS col0, - col2 AS col1 FROM tab1 query I rowsort label-6532 @@ -43289,7 +43289,7 @@ SELECT ALL + COUNT ( * ) * - 58 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "min\(DISTINCT \(\- tab2\.col0\)\) / Int64\(61\) \+ \(\- min\(tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "min\(DISTINCT \(\- tab2\.col0\)\) / Int64\(61\) \+ \(\- min\(tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, MIN ( DISTINCT - + col0 ) / 61 + - + MIN ( ALL + col1 ) AS col1 FROM tab2 query I rowsort @@ -53812,7 +53812,7 @@ SELECT - CAST ( + - col1 AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL > col1 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 query I rowsort label-8913 @@ -57485,7 +57485,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE col1 / + 34 IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) \+ \(\- \(\- cor0\.col2\)\) / Int64\(74\) AS col0" at position 0 and "\(\- Int64\(67\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int64\) \+ \(\- \(\- cor0\.col2\)\) / Int64\(74\) AS col0" at position 0 and "\(\- Int64\(67\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + + ( + - col1 ) AS INTEGER ) + - ( - col2 ) / 74 col0, - ( + 67 ) col0 FROM tab2 AS cor0 query I rowsort @@ -58395,7 +58395,7 @@ SELECT col0 AS col1, - col1 col0 FROM tab1 AS cor0 # Datafusion - Expected - -670 # Datafusion - Expected - 97 # Datafusion - Expected - -6633 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(Int64\(67\) AS Int32\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(Int64\(67\) AS Int64\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 col1, CAST ( + + 67 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_37.slt b/data/sqlite/random/aggregates/slt_good_37.slt index 6630a6b..501074d 100644 --- a/data/sqlite/random/aggregates/slt_good_37.slt +++ b/data/sqlite/random/aggregates/slt_good_37.slt @@ -7848,7 +7848,7 @@ SELECT DISTINCT + 42 * + ( col0 ) * - col2 AS col2 FROM tab1 -259896 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) / CAST\(Int64\(\-25\) AS Int32\) \+ tab0\.col2 AS col0" at position 0 and "CAST\(NULL AS Float64\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) / CAST\(Int64\(\-25\) AS Int64\) \+ tab0\.col2 AS col0" at position 0 and "CAST\(NULL AS Float64\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 / CAST ( - 25 AS INTEGER ) + + col2 AS col0, + CAST ( NULL AS FLOAT8 ) * col0 col0 FROM tab0 WHERE NOT NULL IS NULL query I rowsort @@ -13862,7 +13862,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1, - COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -26078,7 +26078,7 @@ SELECT DISTINCT * FROM tab1 WHERE 33 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- tab2\.col1\) \* \(\- tab2\.col1\) \* \(\- \(\- tab2\.col1\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- tab2\.col1\) \* \(\- tab2\.col1\) \* \(\- \(\- tab2\.col1\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 * - col1 * - - col1 AS col1, 44 AS col1 FROM tab2 query I rowsort @@ -28479,7 +28479,7 @@ SELECT ALL col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 \+ \(\- Int64\(\-22\)\) \+ CAST\(NULL AS Int32\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 \+ \(\- Int64\(\-22\)\) \+ CAST\(NULL AS Int64\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col1, + col0 + - - 22 + + CAST ( NULL AS INTEGER ) * 29 AS col1 FROM tab1 # Datafusion - Datafusion expected results: @@ -37363,7 +37363,7 @@ SELECT DISTINCT - 94 AS col2 FROM tab1 WHERE - + col1 <= - 55 - col1 # Datafusion - Expected - NULL # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "cor0\.col1 / Int64\(99\) \* CAST\(NULL AS Int32\) \+ Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "cor0\.col1 / Int64\(99\) \* CAST\(NULL AS Int64\) \+ Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 AS col1, + col1 / 99 * CAST ( NULL AS INTEGER ) + - 66 AS col1 FROM tab2 AS cor0 query II rowsort @@ -37568,7 +37568,7 @@ SELECT DISTINCT 10 * + + COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. SELECT + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -37578,7 +37578,7 @@ SELECT + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) 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\. SELECT ALL - 93 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -49212,7 +49212,7 @@ SELECT ALL MAX ( + col2 ) FROM tab2 # Datafusion - Expected - 88 # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(30\) \- \(\- tab1\.col0\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(30\) \- \(\- tab1\.col0\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + 30 - - col0 AS col1, 88 AS col1 FROM tab1 query III rowsort @@ -52233,7 +52233,7 @@ SELECT - MIN ( - 73 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_38.slt b/data/sqlite/random/aggregates/slt_good_38.slt index ed644b4..a0940a4 100644 --- a/data/sqlite/random/aggregates/slt_good_38.slt +++ b/data/sqlite/random/aggregates/slt_good_38.slt @@ -403,7 +403,7 @@ SELECT DISTINCT 19 AS col0, + COUNT ( * ) * - COUNT ( * ) * + + 79 AS col0 FROM # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \- Int64\(\-97\) \* \(\- tab0\.col0\) \* tab0\.col1 \* CAST\(NULL AS Int32\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \- Int64\(\-97\) \* \(\- tab0\.col0\) \* tab0\.col1 \* CAST\(NULL AS Int64\) 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\. SELECT - col1 - - 97 * - + col0 * col1 * CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -7207,7 +7207,7 @@ SELECT MIN ( DISTINCT - 22 ) + 26 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col2 AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0 query I rowsort @@ -9491,7 +9491,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 + col1 IN ( col0, co # Datafusion - Datafusion expected results: # Datafusion - Expected - 201 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(67\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-89\)\) \* sum\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(67\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-89\)\) \* sum\(DISTINCT CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( 67 ) AS col2, + COUNT ( * ) * - - 89 * SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -27692,7 +27692,7 @@ SELECT ALL 43 * col1 + - 34 AS col1 FROM tab0 # Datafusion - Expected - 43 # Datafusion - Expected - -3059 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(53\) \* Int64\(\-59\) AS col0" at position 0 and "CAST\(\(\- \(\- Int64\(43\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(53\) \* Int64\(\-59\) AS col0" at position 0 and "CAST\(\(\- \(\- Int64\(43\)\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 + + + 53 * + - 59 AS col0, CAST ( - - ( + 43 ) AS INTEGER ) AS col0 FROM tab0 query I rowsort label-4569 @@ -27830,7 +27830,7 @@ SELECT DISTINCT col2, 37 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-4591 @@ -31458,7 +31458,7 @@ SELECT * FROM tab2 AS cor0 WHERE ( 57 ) * + col0 * + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 76a5c231e86318e45766eaa292275691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 \+ \(\- Int64\(7\)\) AS col2" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 \+ \(\- Int64\(7\)\) AS col2" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1 - + col1 + - + 7 AS col2, col0 * + CAST ( NULL AS INTEGER ) AS col2, col2 AS col2 FROM tab2 AS cor0 query I rowsort @@ -41676,7 +41676,7 @@ SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(85\) \+ \(\- Int64\(\-20\)\) / \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(85\) \+ \(\- Int64\(\-20\)\) / \(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, 85 + - - 20 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 45 AS col0 FROM tab1 query I rowsort label-6885 @@ -41976,7 +41976,7 @@ SELECT ALL * FROM tab2 WHERE NOT 65 * - + 62 IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 83 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 query II rowsort @@ -45710,7 +45710,7 @@ SELECT DISTINCT + SUM ( ALL + + 80 ) AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) 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\. SELECT DISTINCT - + col0 col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query II rowsort label-7560 @@ -48991,7 +48991,7 @@ SELECT col1 + col1 + + ( + col0 ) + - 83 * + + 53 FROM tab0 # Datafusion - Expected - 33 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) \- \(\- cor0\.col2\) \+ Int64\(68\) \- cor0\.col2 AS col1" at position 0 and "cor0\.col2 \- Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* \(\- CAST\(NULL AS Int64\)\) \- \(\- cor0\.col2\) \+ Int64\(68\) \- cor0\.col2 AS col1" at position 0 and "cor0\.col2 \- Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 80 * - CAST ( NULL AS INTEGER ) - - col2 + 68 - col2 AS col1, + col2 - + 63 col1 FROM tab1 AS cor0 query I rowsort label-8105 @@ -51892,7 +51892,7 @@ SELECT ALL + col2 + 92 * + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 4964290 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ cor0\.col0 \* cor0\.col0 \* cor0\.col0 \* cor0\.col1 \+ Int64\(66\) \- \(\- cor0\.col0\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ cor0\.col0 \* cor0\.col0 \* cor0\.col0 \* cor0\.col1 \+ Int64\(66\) \- \(\- cor0\.col0\) 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\. SELECT DISTINCT 42 + col0 * + col0 * col0 * col1 + 66 - - col0 AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 query I rowsort @@ -56222,7 +56222,7 @@ SELECT ( ( - + COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -4624 # Datafusion - Expected - NULL # Datafusion - Expected - -9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 * - col2 AS col0 FROM tab1 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_39.slt b/data/sqlite/random/aggregates/slt_good_39.slt index 1b17ba6..63f743d 100644 --- a/data/sqlite/random/aggregates/slt_good_39.slt +++ b/data/sqlite/random/aggregates/slt_good_39.slt @@ -2071,7 +2071,7 @@ SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT 14 IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL query II rowsort @@ -2721,7 +2721,7 @@ SELECT ALL + - CAST ( col2 AS INTEGER ) + - + col2 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 WHERE NOT - ( + col1 ) * - + 45 < + col1 * - 52 query I rowsort label-447 @@ -6634,7 +6634,7 @@ NULL # Datafusion - Expected - -5642 # Datafusion - Expected - 141 # Datafusion - Expected - -5464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\) \+ Int64\(64\) AS col0" at position 0 and "tab2\.col0 \* \(\- CAST\(tab2\.col1 AS Int32\)\) \* tab2\.col2 / tab2\.col2 \- Int64\(9\) \* tab2\.col0 \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int64\) \+ Int64\(64\) AS col0" at position 0 and "tab2\.col0 \* \(\- CAST\(tab2\.col1 AS Int64\)\) \* tab2\.col2 / tab2\.col2 \- Int64\(9\) \* tab2\.col0 \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( col1 AS INTEGER ) + 64 col0, col0 * - CAST ( ( + col1 ) AS INTEGER ) * col2 / col2 - + 9 * col0 + + col2 col0 FROM tab2 query I rowsort @@ -12486,7 +12486,7 @@ SELECT DISTINCT + col0 * + ( - - col2 ) * + 6 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int32\) / \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int64\) / \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - col0 AS col1, + col0 * CAST ( NULL AS INTEGER ) / - - col2 AS col1 FROM tab1 cor0 query II rowsort label-2060 @@ -16555,7 +16555,7 @@ SELECT DISTINCT + col0, col0 + col1 AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(73\) \+ tab2\.col1 \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(73\) \+ tab2\.col1 \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 AS col2, 73 + + ( col1 ) - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: @@ -22022,7 +22022,7 @@ SELECT DISTINCT col2, col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-3613 @@ -22762,7 +22762,7 @@ SELECT + col0, + col1 + - + 61 + - 95 + + - col1 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int32\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int64\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - col2 AS INTEGER ) col0, - col2 col0 FROM tab2 query III rowsort @@ -25164,7 +25164,7 @@ SELECT ALL SUM ( + + ( + ( + - col2 ) ) ) * + - 1 * - 42 AS col2 FROM tab1 # Datafusion - Expected - 4277 # Datafusion - Expected - 6426 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- CAST\(tab1\.col1 AS Int32\)\) \* \(\- Int64\(9\)\) AS col0" at position 0 and "tab1\.col0 \* \(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- CAST\(tab1\.col1 AS Int64\)\) \* \(\- Int64\(9\)\) AS col0" at position 0 and "tab1\.col0 \* \(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 * - CAST ( col1 AS INTEGER ) * - ( + 9 ) AS col0, col0 * - - col1 AS col0 FROM tab1 query III rowsort @@ -33561,7 +33561,7 @@ SELECT ALL 46 * - - col0 / - col1 + - col0 FROM tab0 AS cor0 WHERE NOT col0 IS N # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 2 AS col0, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT + col2 = NULL query I rowsort @@ -34165,7 +34165,7 @@ SELECT MAX ( ALL - - 83 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 9 AS col1 FROM tab2 query I rowsort label-5595 @@ -38481,7 +38481,7 @@ SELECT col2 * - 36 FROM tab1 # Datafusion - Expected - 91 # Datafusion - Expected - 8816568 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* tab1\.col0 \* CAST\(Int64\(98\) AS Int32\) \* Int64\(63\) \+ tab1\.col2 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* tab1\.col0 \* CAST\(Int64\(98\) AS Int64\) \* Int64\(63\) \+ tab1\.col2 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 * col0 * + CAST ( + 98 AS INTEGER ) * + 63 + col2 AS col2, col0 AS col2 FROM tab1 query I rowsort @@ -43268,7 +43268,7 @@ SELECT ALL + ( + col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- CAST\(tab1\.col0 AS Float64\)\) AS col0" at position 0 and "tab1\.col0 / tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- CAST\(tab1\.col0 AS Float64\)\) AS col0" at position 0 and "tab1\.col0 / tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + CAST ( col0 AS FLOAT8 ) AS col0, + col0 / + col2 AS col0 FROM tab1 query II rowsort label-7103 @@ -46920,7 +46920,7 @@ SELECT 30 - + 44 FROM tab1 # Datafusion - Expected - -15 # Datafusion - Expected - 2 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int32\) / \(\- Int64\(\-32\)\) \- tab0\.col1 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int64\) / \(\- Int64\(\-32\)\) \- tab0\.col1 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + 96 AS INTEGER ) / - - 32 - + ( + col1 ) AS col1, - col0 AS col1 FROM tab0 query I rowsort label-7696 @@ -56814,7 +56814,7 @@ SELECT DISTINCT col2 AS col2, col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1 query I rowsort label-9314 diff --git a/data/sqlite/random/aggregates/slt_good_4.slt b/data/sqlite/random/aggregates/slt_good_4.slt index 1726e19..8ad196b 100644 --- a/data/sqlite/random/aggregates/slt_good_4.slt +++ b/data/sqlite/random/aggregates/slt_good_4.slt @@ -292,7 +292,7 @@ SELECT + col1 + 63 FROM tab2 AS cor0 WHERE ( 45 ) >= ( - 43 ) # Datafusion - Expected - 64 # Datafusion - Expected - 5 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + col1 + - col0 AS col1, - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -5942,7 +5942,7 @@ SELECT + col0, 51 FROM tab1 AS cor0 # Datafusion - Expected - 38 # Datafusion - Expected - 59869 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) \+ \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\) \+ \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( col0 AS INTEGER ) + - ( - col2 ) * - + col1 * - col1 AS col2, 38 AS col2 FROM tab2 AS cor0 query II rowsort @@ -12144,7 +12144,7 @@ SELECT + col1 * + col1 + - 30 col2 FROM tab0 # Datafusion - Expected - -66 # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 / \(\- tab0\.col0\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 / \(\- tab0\.col0\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 * + + col2 / - col0 / CAST ( NULL AS INTEGER ) AS col2, ( + ( - + 66 ) ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: @@ -14564,7 +14564,7 @@ SELECT ALL - MAX ( DISTINCT + 89 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 39 # Datafusion - Expected - -99 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(Int64\(39\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(Int64\(39\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 col2, + CAST ( + + 39 AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -18913,7 +18913,7 @@ SELECT DISTINCT + col1, 43 * - col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NUL # Datafusion - Expected - 85 # Datafusion - Expected - 0 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + - col1 AS INTEGER ) + - + col1 AS col2, col0 AS col2 FROM tab1 cor0 query I rowsort label-3092 @@ -24509,7 +24509,7 @@ SELECT 84 / + ( + COUNT ( * ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(DISTINCT cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(DISTINCT cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 query I rowsort label-4000 @@ -32992,7 +32992,7 @@ SELECT + MIN ( ALL ( - + 68 ) ) AS col2 FROM tab2, tab2 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(62\)\) \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(62\)\) \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) * - + 62 * - + col1 AS col0, 96 AS col0 FROM tab0 query II rowsort @@ -33629,7 +33629,7 @@ SELECT ALL 22 + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) 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\. SELECT ALL - 52 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 query I rowsort label-5516 @@ -34618,7 +34618,7 @@ SELECT DISTINCT * FROM tab2 WHERE + 65 * + - 83 < - 39 * + + col0 + + col1 + + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 48 AS col2 FROM tab1 query III rowsort @@ -42702,7 +42702,7 @@ SELECT ALL col2 * 62 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / tab2\.col1 / \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(\-4\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / tab2\.col1 / \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(\-4\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 / - col0 AS col2, - 4 + + 75 AS col2 FROM tab2 query I rowsort label-7020 @@ -44410,7 +44410,7 @@ SELECT - col1 AS col1, + 49 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 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\. SELECT DISTINCT ( + + col1 ) col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query II rowsort @@ -48585,7 +48585,7 @@ SELECT ALL + col2 / col2 AS col1 FROM tab2 cor0 # Datafusion - Expected - 55 # Datafusion - Expected - 58 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(Int64\(55\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(Int64\(55\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, CAST ( 55 AS INTEGER ) AS col1 FROM tab2 cor0 query II rowsort label-8001 @@ -54336,7 +54336,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - CAST ( NULL AS INTEGER ) + ( - + # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col2, ( - col0 ) col2 FROM tab1 AS cor0 query I rowsort label-8933 @@ -55634,7 +55634,7 @@ SELECT DISTINCT + - ( + ( - 17 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ cor0\.col1 / Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ cor0\.col1 / Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - col2 AS col2, CAST ( NULL AS INTEGER ) + col1 / + 49 AS col2 FROM tab0 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_40.slt b/data/sqlite/random/aggregates/slt_good_40.slt index 0c36f99..8b5e6e4 100644 --- a/data/sqlite/random/aggregates/slt_good_40.slt +++ b/data/sqlite/random/aggregates/slt_good_40.slt @@ -159,7 +159,7 @@ SELECT + col0, col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "tab0\.col0 \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "tab0\.col0 \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 38 AS col0, col0 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -1833,7 +1833,7 @@ SELECT DISTINCT - col0 AS col0, col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(79\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(79\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, CAST ( 79 AS INTEGER ) AS col1 FROM tab2 query I rowsort @@ -14873,7 +14873,7 @@ SELECT 93 AS col1, + col1 + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 query III rowsort @@ -33893,7 +33893,7 @@ SELECT + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 # Datafusion - Expected - -70 # Datafusion - Expected - -98 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "tab1\.col2 \+ \(\- tab1\.col1\) \+ \(\- CAST\(tab1\.col0 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "tab1\.col2 \+ \(\- tab1\.col1\) \+ \(\- CAST\(tab1\.col0 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 98 AS col2, + col2 + + - col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 query II rowsort @@ -36270,7 +36270,7 @@ SELECT ALL + 26 + + - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col1, CAST ( NULL AS INTEGER ) * + - 36 AS col1 FROM tab2 query I rowsort label-5996 @@ -38644,7 +38644,7 @@ SELECT DISTINCT col0 AS col1, + 29 + + 96 * - col0 FROM tab1 cor0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 AS cor0 query II rowsort @@ -39402,7 +39402,7 @@ SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab1 query I rowsort @@ -48048,7 +48048,7 @@ SELECT - SUM ( ALL - - 20 ) + - 72 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- Int64\(\-7\)\) \+ CAST\(NULL AS Int32\) \+ \(\- cor0\.col2\) \* Int64\(2\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- Int64\(\-7\)\) \+ CAST\(NULL AS Int64\) \+ \(\- cor0\.col2\) \* Int64\(2\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + - - 7 + + CAST ( NULL AS INTEGER ) + - ( col2 ) * + 2 AS col1, + 47 AS col1 FROM tab2 AS cor0 query I rowsort @@ -50304,7 +50304,7 @@ SELECT SUM ( DISTINCT col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, ( - - col2 ) AS col0 FROM tab2 AS cor0 query II rowsort label-8322 @@ -53778,7 +53778,7 @@ SELECT ALL - col0 FROM tab0 AS cor0 WHERE ( + + col1 <> NULL ) # Datafusion - Expected - 2520 # Datafusion - Expected - -81 # Datafusion - Expected - 2520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) AS col0" at position 0 and "Int64\(45\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int64\) AS col0" at position 0 and "Int64\(45\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0, 45 * 56 col0 FROM tab0 AS cor0 WHERE NULL IS NULL query III rowsort label-8887 @@ -56260,7 +56260,7 @@ SELECT DISTINCT 57 + - - 8 AS col2 FROM tab1 # Datafusion - Expected - -94 # Datafusion - Expected - -99 # Datafusion - Expected - -177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-18\) AS col0" at position 0 and "\(\- cor0\.col1\) \- \(\- cor0\.col2\) \+ Int64\(\-62\) \+ CAST\(cor0\.col1 AS Int32\) \* \(\- cor0\.col1\) / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-18\) AS col0" at position 0 and "\(\- cor0\.col1\) \- \(\- cor0\.col2\) \+ Int64\(\-62\) \+ CAST\(cor0\.col1 AS Int64\) \* \(\- cor0\.col1\) / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 + - 18 AS col0, ( - col1 ) - - col2 + + - 62 + + CAST ( col1 AS INTEGER ) * - col1 / col1 col0 FROM tab0 cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_41.slt b/data/sqlite/random/aggregates/slt_good_41.slt index 60d18e0..1672b82 100644 --- a/data/sqlite/random/aggregates/slt_good_41.slt +++ b/data/sqlite/random/aggregates/slt_good_41.slt @@ -953,7 +953,7 @@ SELECT DISTINCT 82 * + - 92 - + 56 / COUNT ( * ) / - + MAX ( ALL - 89 ) FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 4044 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-56\) \- max\(CAST\(Int64\(\-12\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-56\) \- max\(CAST\(Int64\(\-12\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 AS col2, - 72 * - 56 - + MAX ( ALL CAST ( + - 12 AS INTEGER ) ) AS col2 FROM tab2 query I rowsort label-164 @@ -4879,7 +4879,7 @@ SELECT - col0 AS col1, - 26 AS col1 FROM tab1 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "CAST\(\(\- tab0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "CAST\(\(\- tab0\.col1\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 AS col1, CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 query II rowsort @@ -12060,7 +12060,7 @@ SELECT ALL col2 * + col0 + + 28, - 81 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 269786 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col1\) \- tab2\.col0 \- \(\- Int64\(\-69\)\) \* Int64\(\-53\) \* tab2\.col0 \+ CAST\(tab2\.col0 AS Int32\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col1\) \- tab2\.col0 \- \(\- Int64\(\-69\)\) \* Int64\(\-53\) \* tab2\.col0 \+ CAST\(tab2\.col0 AS Int64\) 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\. SELECT ALL + col1 * - col1 - col0 - - - 69 * - 53 * col0 + + CAST ( + col0 AS INTEGER ) AS col0, + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 query III rowsort @@ -14829,7 +14829,7 @@ SELECT col0 - + 25 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - 77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) / \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \- \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) / \(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) \- \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 36 / - + CAST ( - col1 AS INTEGER ) - - + col1 AS col0, - col1 + + col2 + col2 col0 FROM tab2 AS cor0 query I rowsort label-2481 @@ -22332,7 +22332,7 @@ SELECT + 56 AS col1, + 44 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* sum\(\(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* sum\(\(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) * + SUM ( ALL + - col0 ) AS col1, + 56 AS col1 FROM tab0 AS cor0 query III rowsort @@ -37519,7 +37519,7 @@ SELECT ALL 29 + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1, 5 AS col1 FROM tab0 AS cor0 # Datafusion - Types were automatically converted from: @@ -38974,7 +38974,7 @@ SELECT + 51 - 38 + 30, + 99 + 24 + - 36 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 6974 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ \(\- tab0\.col1\) \* Int64\(\-86\) \+ \(\- \(\- Int64\(23\)\)\) AS col0" at position 0 and "Int64\(55\) \* Int64\(88\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- tab0\.col0\) \+ Int64\(\-25\) \+ Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ \(\- tab0\.col1\) \* Int64\(\-86\) \+ \(\- \(\- Int64\(23\)\)\) AS col0" at position 0 and "Int64\(55\) \* Int64\(88\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ \(\- tab0\.col0\) \+ Int64\(\-25\) \+ Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 + - + col1 * - 86 + - ( - + 23 ) AS col0, 55 * + 88 + - - CAST ( NULL AS INTEGER ) + - col0 + - 25 + 4 col0 FROM tab0 query I rowsort label-6511 @@ -40112,7 +40112,7 @@ SELECT ALL 15 / col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 5625 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* \(\- tab2\.col0\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* \(\- tab2\.col0\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 * + ( - col0 ) col2, + CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab2 query II rowsort @@ -43768,7 +43768,7 @@ SELECT DISTINCT SUM ( + - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(98\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(98\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 12 AS col0, 98 * - - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0 query I rowsort label-7311 @@ -49540,7 +49540,7 @@ SELECT DISTINCT + - col2 * col0 * + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(\-84\)\)\)\) \- Int64\(\-45\) \- Int64\(25\) AS col1" at position 0 and "Int64\(29\) \- \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(\-84\)\)\)\) \- Int64\(\-45\) \- Int64\(25\) AS col1" at position 0 and "Int64\(29\) \- \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( ALL + + ( - - 84 ) ) - - 45 - 25 AS col1, 29 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-8282 @@ -50315,7 +50315,7 @@ SELECT ( COUNT ( col2 ) ) / - + 13 + + COUNT ( * ) FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 \* CAST\(NULL AS Int32\) \- Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 \* CAST\(NULL AS Int64\) \- Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col1, col0 * CAST ( NULL AS INTEGER ) - - 67 AS col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_42.slt b/data/sqlite/random/aggregates/slt_good_42.slt index 2c4c9f9..4168fed 100644 --- a/data/sqlite/random/aggregates/slt_good_42.slt +++ b/data/sqlite/random/aggregates/slt_good_42.slt @@ -6428,7 +6428,7 @@ SELECT ALL + + col1 * col1 * col0 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 1650 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* CAST\(Int64\(30\) AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* CAST\(Int64\(30\) AS Int64\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 55 * + CAST ( + + 30 AS INTEGER ) AS col2, col1 AS col2 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: @@ -16765,7 +16765,7 @@ NULL # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- tab1\.col0\) / Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- tab1\.col0\) / Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) col2, - col0 / 13 AS col2 FROM tab1 query II rowsort @@ -23332,7 +23332,7 @@ SELECT - 20 / - COUNT ( + - ( col2 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 48 # Datafusion - Expected - NULL # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, + 48 AS col1 FROM tab0 AS cor0 query I rowsort label-3866 @@ -29385,7 +29385,7 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) 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\. SELECT - + ( + col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + - col0 IS NULL query I rowsort @@ -30089,7 +30089,7 @@ SELECT ALL col2 * col1 * 71 + + 83 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ \(\- CAST\(count\(cor0\.col2\) AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ \(\- CAST\(count\(cor0\.col2\) AS Int64\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45 + - CAST ( COUNT ( col2 ) AS INTEGER ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -32920,7 +32920,7 @@ SELECT ALL + col2 * - 21 AS col2, - 95 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( - col1 AS INTEGER ) col1, col2 AS col1 FROM tab1 AS cor0 query I rowsort @@ -33715,7 +33715,7 @@ SELECT - 18 + + col2 + - - ( 32 ) * - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 98 # Datafusion - Expected - -250 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* CAST\(Int64\(25\) AS Int32\) AS col1" at position 0 and "tab0\.col2 \- \(\- \(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* CAST\(Int64\(25\) AS Int64\) AS col1" at position 0 and "tab0\.col2 \- \(\- \(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 * CAST ( 25 AS INTEGER ) AS col1, col2 - - - col1 AS col1 FROM tab0 query I rowsort @@ -34663,7 +34663,7 @@ SELECT + MAX ( ALL col0 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(cor0\.col1 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col2 col1, + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 64 <= - col2 query I rowsort @@ -35195,7 +35195,7 @@ SELECT + 92 + + - col1 / + + col0 + - + col0 col2 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- CAST\(cor0\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- CAST\(cor0\.col1 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col2, - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -39416,7 +39416,7 @@ SELECT ALL 86 AS col1, COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query II rowsort label-6526 @@ -40244,7 +40244,7 @@ SELECT * FROM tab0 WHERE + 21 < col1 + + - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9630c18fbfce4da237a5bb76024480ae -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 AS col1, col1 * + - col0 * + + CAST ( NULL AS INTEGER ) AS col1, + + col1 AS col2 FROM tab2 AS cor0 query III rowsort @@ -42620,7 +42620,7 @@ SELECT 14 * - col0 + col1 - + + col2 * col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8783bc9846f29f79c917d2e9266cdc64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int32\)\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int64\)\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 col0, col2 + - + CAST ( NULL AS INTEGER ) + + col1 AS col0, col2 AS col2 FROM tab2 AS cor0 query I rowsort @@ -43263,7 +43263,7 @@ SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(min\(Int64\(26\)\) AS Int32\) AS col1" at position 0 and "\(\- min\(cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(min\(Int64\(26\)\) AS Int64\) AS col1" at position 0 and "\(\- min\(cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + MIN ( ALL 26 ) AS INTEGER ) AS col1, - MIN ( col1 ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -46901,7 +46901,7 @@ NULL # Datafusion - Expected - 6188 # Datafusion - Expected - -96 # Datafusion - Expected - 4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* \(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* \(\- CAST\(\(\- cor0\.col2\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + col2 AS col2, col0 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -52072,7 +52072,7 @@ SELECT ( col0 ) / col0 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6aafb5810c03505ffc47313b8bda0846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col0 AS Int32\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col0 AS Int64\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( col0 AS INTEGER ) AS col2, 26 col2, + col1 * + 5 + - + col2 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_43.slt b/data/sqlite/random/aggregates/slt_good_43.slt index d7b12ae..3a7fcfb 100644 --- a/data/sqlite/random/aggregates/slt_good_43.slt +++ b/data/sqlite/random/aggregates/slt_good_43.slt @@ -926,7 +926,7 @@ SELECT ALL 18 + col0 + + 54 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col0" at position 0 and "sum\(DISTINCT CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col0" at position 0 and "sum\(DISTINCT CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 36 AS col0, SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0 # Datafusion - Types were automatically converted from: @@ -1053,7 +1053,7 @@ SELECT - col0 * 91 FROM tab1 -8281 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-23\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-23\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 65 col0, - 23 + CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE NOT 95 >= NULL query I rowsort label-162 @@ -2817,7 +2817,7 @@ SELECT * FROM tab1 WHERE NOT + + 62 / - col2 * 79 IN ( - - col0, + 47, + 57 ) # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(50\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(50\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 AS col1, 50 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query I rowsort label-457 @@ -17168,7 +17168,7 @@ SELECT + + MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) 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\. SELECT - - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -21386,7 +21386,7 @@ SELECT + + CAST ( + 36 AS INTEGER ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 6593 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col0\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(\-87\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col0\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(\-87\) / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - col1 ) * - col1 + + ( - col0 ) + col2 AS col1, - 87 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -28748,7 +28748,7 @@ SELECT col2, 16 AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -9409 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 * col0 col2, - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query III rowsort @@ -29661,7 +29661,7 @@ SELECT DISTINCT + 54 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - col2 col2, CAST ( NULL AS INTEGER ) * - 55 AS col2 FROM tab0 AS cor0 query II rowsort @@ -39690,7 +39690,7 @@ SELECT + COUNT ( DISTINCT - 24 ) AS col2, SUM ( + - col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 1 / + CAST ( NULL AS INTEGER ) AS col1, + 7 col1 FROM tab0 AS cor0 query I rowsort label-6516 @@ -52908,7 +52908,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 423 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * + 47 AS col2, + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0 query II rowsort label-8723 @@ -52968,7 +52968,7 @@ SELECT DISTINCT - COUNT ( 77 ) FROM tab0 # Datafusion - Expected - 3080 # Datafusion - Expected - 75 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col0 AS Int32\) AS col1" at position 0 and "tab2\.col1 \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col0 AS Int64\) AS col1" at position 0 and "tab2\.col1 \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + + col0 AS INTEGER ) col1, col1 * col2 AS col1 FROM tab2 query I rowsort @@ -59839,7 +59839,7 @@ SELECT ALL - + 37 + 80 FROM tab1 AS cor0 # Datafusion - Expected - 78 # Datafusion - Expected - 91 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( ( + col0 ) AS INTEGER ) AS col0, 78 AS col0 FROM tab1 cor0 query II rowsort @@ -60366,7 +60366,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* \(\- cor0\.col0\) \+ \(\- Int64\(\-62\)\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(64\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) \* \(\- cor0\.col0\) \+ \(\- Int64\(\-62\)\) \+ \(\- CAST\(NULL AS Int64\)\) \- Int64\(64\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 23 AS col1, ( - - CAST ( NULL AS INTEGER ) ) * - + col0 + ( - - 62 ) + - CAST ( NULL AS INTEGER ) - + + 64 * 10 AS col1 FROM tab1 AS cor0 query I rowsort label-9947 diff --git a/data/sqlite/random/aggregates/slt_good_44.slt b/data/sqlite/random/aggregates/slt_good_44.slt index 690d66b..f1984b7 100644 --- a/data/sqlite/random/aggregates/slt_good_44.slt +++ b/data/sqlite/random/aggregates/slt_good_44.slt @@ -4939,7 +4939,7 @@ SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 3859 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-52\) AS Int32\)\) \+ \(\- cor0\.col1\) \* \(\- CAST\(cor0\.col2 AS Int32\)\) AS col1" at position 0 and "cor0\.col2 / \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-52\) AS Int64\)\) \+ \(\- cor0\.col1\) \* \(\- CAST\(cor0\.col2 AS Int64\)\) AS col1" at position 0 and "cor0\.col2 / \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 52 AS INTEGER ) + - col1 * - CAST ( col2 AS INTEGER ) AS col1, col2 / - col0 AS col1 FROM tab0 AS cor0 query II rowsort label-813 @@ -8342,7 +8342,7 @@ SELECT + 77 * COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - -3080 # Datafusion - Expected - NULL # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- tab2\.col2\) \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- tab2\.col2\) \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 / CAST ( NULL AS INTEGER ) col2, - col2 * col1 AS col2 FROM tab2 query I rowsort label-1363 @@ -10849,7 +10849,7 @@ SELECT - 77 AS col0, MIN ( ALL - + col1 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "tab0\.col1 \+ \(\- CAST\(NULL AS Int32\)\) \* tab0\.col0 \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "tab0\.col1 \+ \(\- CAST\(NULL AS Int64\)\) \* tab0\.col0 \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 56 col2, col1 + - CAST ( NULL AS INTEGER ) * ( + col0 ) + - col1 AS col2 FROM tab0 query II rowsort label-1773 @@ -16576,7 +16576,7 @@ SELECT DISTINCT + col0 - + 32 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(67\) \+ count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(67\) \+ count\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 + + + COUNT ( * ) col1, ( + 67 ) + COUNT ( - - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 query I rowsort label-2718 @@ -28584,7 +28584,7 @@ SELECT + + 25 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - -135640 # Datafusion - Expected - -75 # Datafusion - Expected - -230492 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(tab2\.col0 AS Int32\) \* Int64\(53\) \* CAST\(\(\- tab2\.col2\) AS Int32\) \+ tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(tab2\.col0 AS Int64\) \* Int64\(53\) \* CAST\(\(\- tab2\.col2\) AS Int64\) \+ tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col2, CAST ( + col0 AS INTEGER ) * 53 * + CAST ( - col2 AS INTEGER ) + col2 AS col2 FROM tab2 query I rowsort label-4692 @@ -38779,7 +38779,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* sum\(Int64\(66\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* sum\(Int64\(66\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) * SUM ( + + 66 ) AS col1, 62 AS col1 FROM tab0 AS cor0 query I rowsort @@ -57101,7 +57101,7 @@ SELECT - + ( + - col0 ) * col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(cor0\.col2 AS Int32\) \* cor0\.col2 / \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(cor0\.col2 AS Int64\) \* cor0\.col2 / \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 col0, CAST ( + col2 AS INTEGER ) * + col2 / - col2 AS col0 FROM tab2 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_45.slt b/data/sqlite/random/aggregates/slt_good_45.slt index e5bf89e..ef90334 100644 --- a/data/sqlite/random/aggregates/slt_good_45.slt +++ b/data/sqlite/random/aggregates/slt_good_45.slt @@ -2737,7 +2737,7 @@ SELECT - 93 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 AS col0, + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -17564,7 +17564,7 @@ SELECT + col0 * 39 AS col2 FROM tab2 # Datafusion - Expected - -4624 # Datafusion - Expected - NULL # Datafusion - Expected - -9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col2 \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "tab1\.col2 \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, col2 * - col2 AS col0 FROM tab1 query I rowsort label-2888 @@ -19552,7 +19552,7 @@ SELECT - COUNT ( ALL - 73 ) FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col2 / Int64\(8\) \* \(\- Int64\(\-29\)\) \* Int64\(\-95\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* tab2\.col2 / Int64\(8\) \* \(\- Int64\(\-29\)\) \* Int64\(\-95\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * col2 / + 8 * - - 29 * + - 95 AS col0, 0 AS col0 FROM tab2 query I rowsort @@ -20911,7 +20911,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col1 - + col0 + + col1 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 AS col0 FROM tab1 AS cor0 query I rowsort label-3448 @@ -23523,7 +23523,7 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -81 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-81\) AS Int32\) AS col0" at position 0 and "cor0\.col0 / Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-81\) AS Int64\) AS col0" at position 0 and "cor0\.col0 / Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - 81 AS INTEGER ) AS col0, + col0 / + 21 AS col0 FROM tab0 AS cor0 query II rowsort @@ -33513,7 +33513,7 @@ SELECT DISTINCT 23 + col1 AS col0, - col1 col0 FROM tab1 # Datafusion - Expected - 8 # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(51\) \+ tab2\.col2 \* Int64\(53\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(51\) \+ tab2\.col2 \* Int64\(53\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * 51 + + col2 * 53 AS col0, 8 AS col0 FROM tab2 query III rowsort @@ -35851,7 +35851,7 @@ SELECT DISTINCT SUM ( ALL + + 84 ) FROM tab2 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- tab1\.col1\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- tab1\.col1\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( - col1 ) + - + CAST ( NULL AS INTEGER ) AS col1, + 74 col1 FROM tab1 query I rowsort @@ -38088,7 +38088,7 @@ SELECT DISTINCT 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col2" at position 0 and "cor0\.col2 \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\) AS col2" at position 0 and "cor0\.col2 \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2, col2 * 96 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT + col2 / + col2 IN ( + 13 ) query I rowsort @@ -47068,7 +47068,7 @@ SELECT DISTINCT + 41 AS col2, COUNT ( ALL + + col1 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort @@ -48421,7 +48421,7 @@ SELECT - ( + - ( - col2 ) ) * - - 54 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 80 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(80\) AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(80\) AS Int64\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( 80 AS INTEGER ) AS col2, + col1 AS col2 FROM tab0 AS cor0 query III rowsort @@ -54451,7 +54451,7 @@ SELECT * FROM tab1 WHERE NOT + col0 <> - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 78c3847c5db25f4c9adc60e0419412d5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) \* tab1\.col2 \+ \(\- \(\- tab1\.col0\)\) \- \(\- tab1\.col2\) \+ tab1\.col0 \+ CAST\(tab1\.col0 AS Int32\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) \* tab1\.col2 \+ \(\- \(\- tab1\.col0\)\) \- \(\- tab1\.col2\) \+ tab1\.col0 \+ CAST\(tab1\.col0 AS Int64\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 AS col0, - col2 * + col2 + - - col0 - - col2 + + + col0 + + CAST ( + col0 AS INTEGER ) * - col1 col0, ( + - col0 ) AS col0 FROM tab1 query III rowsort label-8986 diff --git a/data/sqlite/random/aggregates/slt_good_46.slt b/data/sqlite/random/aggregates/slt_good_46.slt index fcf252f..0a1ffb4 100644 --- a/data/sqlite/random/aggregates/slt_good_46.slt +++ b/data/sqlite/random/aggregates/slt_good_46.slt @@ -8484,7 +8484,7 @@ SELECT DISTINCT + - 40 * - - col1 AS col0 FROM tab1 WHERE NOT 49 IS NOT NULL # Datafusion - Expected - -3807 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- \(\- CAST\(NULL AS Int32\)\) / cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- \(\- CAST\(NULL AS Int64\)\) / cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 - - CAST ( NULL AS INTEGER ) / + col0 col1, col1 * - col2 AS col1 FROM tab0 AS cor0 query I rowsort label-1400 @@ -8894,7 +8894,7 @@ SELECT * FROM tab2 WHERE NULL NOT IN ( + col2 + - - col0 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, 78 AS col2 FROM tab1 WHERE + + 66 - - 4 * + col1 IS NULL query I rowsort @@ -10742,7 +10742,7 @@ SELECT ALL + col1 * 28 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) / \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) \- \(\- CAST\(cor0\.col2 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) / \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) \- \(\- CAST\(cor0\.col2 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 97 / - col0 col1, - col2 - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -14085,7 +14085,7 @@ SELECT + col1 * + - 56 + - col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 83 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(80\) / Int64\(91\) \- cor0\.col1 \+ \(\- CAST\(NULL AS Float64\)\) \+ CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(80\) / Int64\(91\) \- cor0\.col1 \+ \(\- CAST\(NULL AS Float64\)\) \+ CAST\(cor0\.col0 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + ( 83 ) ) AS col0, 80 / + 91 - + + col1 + - CAST ( NULL AS FLOAT8 ) + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -14315,7 +14315,7 @@ SELECT DISTINCT ( + + col2 ) * - col2 + + 82 + + + 68 * + 72 + - 37 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT ALL 6 * - + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT col2 / col0 IS NULL query III rowsort @@ -17728,7 +17728,7 @@ SELECT DISTINCT - col1 AS col0, - 46 FROM tab1 cor0 WHERE col0 = + 30 # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ tab1\.col0 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int64\)\) \+ tab1\.col0 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 + + - CAST ( NULL AS INTEGER ) + + + col0 AS col1, col2 AS col1 FROM tab1 query I rowsort @@ -19667,7 +19667,7 @@ SELECT + + col1 + - col0, col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f7ed2962e94c9d01c709313dbd3e1b6b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 AS col2" at position 0 and "Int64\(85\) \* CAST\(cor0\.col1 AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 AS col2" at position 0 and "Int64\(85\) \* CAST\(cor0\.col1 AS Int64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1 * + col2 AS col2, ( + - ( - - col2 ) ) * - + col1 - + col0, 85 * CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -24671,7 +24671,7 @@ SELECT ALL + 16 * COUNT ( + col2 * col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NU # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, ( col1 ) AS col2 FROM tab0 AS cor0 query II rowsort @@ -28503,7 +28503,7 @@ SELECT ALL * FROM tab2 WHERE NOT 91 IS NOT NULL # Datafusion - Expected - 4096 # Datafusion - Expected - NULL # Datafusion - Expected - 5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - col0 * - + ( + col0 ) AS col1 FROM tab2 query I rowsort label-4707 @@ -34080,7 +34080,7 @@ SELECT DISTINCT - COUNT ( + 48 ) AS col2 FROM tab1 WHERE ( - col2 * - - col0 - c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(CAST\(NULL AS Float64\)\)\) AS Int32\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(CAST\(NULL AS Float64\)\)\) AS Int64\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - AVG ( ALL + CAST ( NULL AS FLOAT8 ) ) AS INTEGER ) AS col0, + 77 col0 FROM tab2 query I rowsort @@ -42901,7 +42901,7 @@ SELECT + col2 * - - 89 AS col1 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - -96 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(96\)\) AS Int32\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(96\)\) AS Int64\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - + 96 AS INTEGER ) col2, col0 AS col2 FROM tab1 query II rowsort label-7056 @@ -46438,7 +46438,7 @@ SELECT col1 + - col1 * - - col2 AS col0 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col0 \+ tab2\.col1 \+ tab2\.col2 \- CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* tab2\.col0 \+ tab2\.col1 \+ tab2\.col2 \- CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + col0 + col1 + col2 - + CAST ( NULL AS FLOAT8 ) col2, - col0 col2 FROM tab2 # Datafusion - Datafusion expected results: @@ -50496,7 +50496,7 @@ SELECT DISTINCT + - 87 col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - col2 col2 FROM tab1 AS cor0 query I rowsort @@ -54414,7 +54414,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -308 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int32\) AS col0" at position 0 and "Int64\(\-11\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int64\) AS col0" at position 0 and "Int64\(\-11\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 66 AS INTEGER ) AS col0, - 11 * + 28 AS col0 FROM tab1 query III rowsort label-8951 @@ -57660,7 +57660,7 @@ SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - col2, + col2 ) # Datafusion - Expected - 94 # Datafusion - Expected - 65 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- \(\- tab1\.col1\)\) \+ tab1\.col1 \+ CAST\(Int64\(8\) AS Int32\) \* tab1\.col1 \- Int64\(70\) AS col2" at position 0 and "tab1\.col1 \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- \(\- tab1\.col1\)\) \+ tab1\.col1 \+ CAST\(Int64\(8\) AS Int64\) \* tab1\.col1 \- Int64\(70\) AS col2" at position 0 and "tab1\.col1 \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 + - - col1 + + ( col1 ) + ( CAST ( 8 AS INTEGER ) ) * col1 - 70 AS col2, + col1 + + col1 AS col2 FROM tab1 query II rowsort label-9507 @@ -59120,7 +59120,7 @@ SELECT * FROM tab2 AS cor0 WHERE 43 / + + 28 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-67\) AS col1" at position 0 and "min\(\(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-67\) AS col1" at position 0 and "min\(\(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 AS col1, MIN ( + - col1 ) AS col1 FROM tab2 query I rowsort @@ -60231,7 +60231,7 @@ SELECT DISTINCT 73 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ CAST\(NULL AS Int32\) \+ cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ CAST\(NULL AS Int64\) \+ cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col2 * - col0 + CAST ( NULL AS INTEGER ) + + col0 AS col0, - col1 AS col0 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_47.slt b/data/sqlite/random/aggregates/slt_good_47.slt index cb2368e..649d73a 100644 --- a/data/sqlite/random/aggregates/slt_good_47.slt +++ b/data/sqlite/random/aggregates/slt_good_47.slt @@ -5376,7 +5376,7 @@ SELECT 2 + - col2 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Float64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\)" at position 0 and "\(\- CAST\(NULL AS Float64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ), - CAST ( NULL AS FLOAT8 ) FROM tab2 cor0 query III rowsort @@ -14709,7 +14709,7 @@ SELECT ALL col1 col2, ( - col1 ) * - col1 AS col0 FROM tab2 # Datafusion - Expected - -6716 # Datafusion - Expected - 733708 # Datafusion - Expected - -6716 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- CAST\(\(\- tab0\.col0\) AS Int32\)\) \* Int64\(85\) \+ \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(92\) \* Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- CAST\(\(\- tab0\.col0\) AS Int64\)\) \* Int64\(85\) \+ \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(92\) \* Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 89 * - + CAST ( + - ( col0 ) AS INTEGER ) * + + ( + + 85 ) + - col0 AS col0, 92 * + - 73 AS col0 FROM tab0 query I rowsort @@ -17520,7 +17520,7 @@ SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 122 # Datafusion - Expected - 38 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col2" at position 0 and "cor0\.col1 \+ CAST\(Int64\(55\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col2" at position 0 and "cor0\.col1 \+ CAST\(Int64\(55\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( + - 38 ) AS col2, col1 + + + CAST ( + 55 AS INTEGER ) col2 FROM tab2 AS cor0 query I rowsort label-2861 @@ -19997,7 +19997,7 @@ SELECT DISTINCT col1 * + col2 - + col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col2\) / CAST\(NULL AS Int32\) \+ Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col2\) / CAST\(NULL AS Int64\) \+ Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col1, + ( - col2 ) / + + ( + ( CAST ( NULL AS INTEGER ) ) ) + - 3 AS col1 FROM tab1 query I rowsort @@ -20620,7 +20620,7 @@ SELECT ALL + 70 + - + 21 * + COUNT ( * ) + - - SUM ( + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + col0 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -21822,7 +21822,7 @@ SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0 - - + ( - col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "\(\- min\(DISTINCT \(\- tab0\.col2\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "\(\- min\(DISTINCT \(\- tab0\.col2\)\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 29 col0, - MIN ( DISTINCT - col2 ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NULL query III rowsort @@ -27251,7 +27251,7 @@ SELECT + 14, col0 + col2 AS col0 FROM tab0 97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col2 AS Int32\)\) \+ \(\- Int64\(30\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col2 AS Int64\)\) \+ \(\- Int64\(30\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + col2 AS INTEGER ) + - ( + ( + + 30 ) ) * + ( - + CAST ( NULL AS INTEGER ) ) AS col1, col2 AS col1 FROM tab0 WHERE - col2 - col0 IS NULL query I rowsort label-4459 @@ -27312,7 +27312,7 @@ SELECT DISTINCT + + MIN ( col2 ) FROM tab0 AS cor0 # Datafusion - Expected - -18 # Datafusion - Expected - NULL # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col0 AS col2" at position 0 and "Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* cor0\.col0 AS col2" at position 0 and "Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * + col0 AS col2, + ( - 18 ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -29679,7 +29679,7 @@ SELECT + col0, - col1 + - 86 FROM tab2 # Datafusion - Expected - 1 # Datafusion - Expected - 7008 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int32\)\) \* Int64\(73\) AS col2" at position 0 and "tab1\.col0 / tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int64\)\) \* Int64\(73\) AS col2" at position 0 and "tab1\.col0 / tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - col2 AS INTEGER ) * + 73 AS col2, col0 / col1 AS col2 FROM tab1 query I rowsort label-4863 @@ -36562,7 +36562,7 @@ SELECT DISTINCT - 77 + - col0 AS col2, + 4 AS col1 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\)" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\)" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( col0 AS INTEGER ), col0 col0 FROM tab0 AS cor0 query I rowsort @@ -39288,7 +39288,7 @@ SELECT DISTINCT + 19 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS Int32\)\) \- \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(81\) \* Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\) AS Int64\)\) \- \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(81\) \* Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + ( + - CAST ( - col0 AS INTEGER ) ) AS INTEGER ) - - + col2 AS col0, 81 * - 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL query I rowsort label-6438 @@ -40446,7 +40446,7 @@ SELECT 38 * + - 48 * + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) \+ Int64\(58\) \+ Int64\(56\) / \(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col0\) \+ Int64\(50\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) \+ Int64\(58\) \+ Int64\(56\) / \(\- CAST\(NULL AS Int64\)\) \* \(\- cor0\.col0\) \+ Int64\(50\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 AS col0, col2 + - col1 + 58 + + 56 / + - CAST ( NULL AS INTEGER ) * - ( col0 ) + + 50 * - col0 AS col0 FROM tab1 AS cor0 query I rowsort @@ -43190,7 +43190,7 @@ NULL # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col1\) AS Int32\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col1\) AS Int64\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - col1 AS INTEGER ) AS col2, col0 AS col2 FROM tab2 query I rowsort @@ -46957,7 +46957,7 @@ SELECT + - ( - + 42 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - -96 # Datafusion - Expected - 501 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* cor0\.col2 \+ CAST\(cor0\.col1 AS Int32\) AS col1" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* cor0\.col2 \+ CAST\(cor0\.col1 AS Int64\) AS col1" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 48 * col2 + + + CAST ( + col1 AS INTEGER ) AS col1, + col1 + + - col0 AS col1 FROM tab0 AS cor0 query I rowsort label-7717 @@ -49776,7 +49776,7 @@ SELECT ( + - col1 ) * - col1 AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col1 AS col1, col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query III rowsort @@ -50537,7 +50537,7 @@ SELECT ALL - ( col0 ) + + col2 + col1 * - 14 AS col1 FROM tab0 # Datafusion - Expected - -5589 # Datafusion - Expected - 0 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col2 AS col0" at position 0 and "Int64\(69\) \* CAST\(\(\- tab0\.col1\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col2 AS col0" at position 0 and "Int64\(69\) \* CAST\(\(\- tab0\.col1\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 + + col2 AS col0, + 69 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 query I rowsort label-8293 @@ -50649,7 +50649,7 @@ SELECT col0 + - + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1d75dfceb554d7f5fe6e418f0bbbd55a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "\(\- tab1\.col2\) \+ \(\- CAST\(Int64\(50\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "\(\- tab1\.col2\) \+ \(\- CAST\(Int64\(50\) AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 20 AS col1, - col1 AS col2, - col2 + - CAST ( + 50 AS INTEGER ) AS col1 FROM tab1 query I rowsort label-8312 diff --git a/data/sqlite/random/aggregates/slt_good_48.slt b/data/sqlite/random/aggregates/slt_good_48.slt index 3cd2d12..bfa287e 100644 --- a/data/sqlite/random/aggregates/slt_good_48.slt +++ b/data/sqlite/random/aggregates/slt_good_48.slt @@ -8220,7 +8220,7 @@ SELECT ALL col1 * col0 + + 44 + + - 55 AS col1, - col2 AS col2 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 16 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(tab2\.col0 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(tab2\.col0 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 AS col1, CAST ( col0 AS INTEGER ) AS col1 FROM tab2 query II rowsort @@ -8643,7 +8643,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab0 query I rowsort @@ -12969,7 +12969,7 @@ SELECT - + COUNT ( 43 ) AS col0 FROM tab1 AS cor0 -3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- CAST\(Int64\(32\) AS Int32\)\) \* Int64\(59\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- CAST\(Int64\(32\) AS Int64\)\) \* Int64\(59\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + col0 ) col0, - CAST ( ( + 32 ) AS INTEGER ) * + 59 * + 36 AS col0 FROM tab1 AS cor0 WHERE NOT 36 IS NOT NULL query II rowsort @@ -22844,7 +22844,7 @@ SELECT - col2 + + - 2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- avg\(DISTINCT tab0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- avg\(DISTINCT tab0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, - AVG ( DISTINCT ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - - col0 NOT BETWEEN 4 * 53 / + col1 - - col2 AND - col2 query III rowsort @@ -32464,7 +32464,7 @@ SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - 53 IS NOT NULL # Datafusion - Expected - -1 # Datafusion - Expected - -77 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col1\) AS Int32\) AS col2" at position 0 and "\(\- tab2\.col1\) / tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col1\) AS Int64\) AS col2" at position 0 and "\(\- tab2\.col1\) / tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - col1 AS INTEGER ) AS col2, - col1 / + col2 AS col2 FROM tab2 query I rowsort @@ -35930,7 +35930,7 @@ SELECT + SUM ( DISTINCT col1 ) FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int64\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( - col0 AS INTEGER ), - col0 FROM tab2 AS cor0 query I rowsort @@ -36004,7 +36004,7 @@ SELECT ALL COUNT ( + - col1 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - 81 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab2 AS cor0 query I rowsort label-5931 @@ -45557,7 +45557,7 @@ SELECT ALL - 80 * + - 72, 0 AS col1 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col2, col1 AS col2 FROM tab0 query I rowsort @@ -52647,7 +52647,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN 98 AND - col2 # Datafusion - Expected - -201019 # Datafusion - Expected - 5 # Datafusion - Expected - -2125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \* \(\- CAST\(cor0\.col0 AS Int32\)\) \+ cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \* \(\- CAST\(cor0\.col0 AS Int64\)\) \+ cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - col1 AS col1, - col1 * + ( + - col1 ) * - CAST ( + col0 AS INTEGER ) + + + col2 + - + col2 AS col1 FROM tab1 AS cor0 query I rowsort label-8675 @@ -52789,7 +52789,7 @@ SELECT col1 + + - col2 * + - col0 AS col2, - col1 * - + 82 AS col0 FROM tab0 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "tab2\.col2 \* CAST\(NULL AS Int32\) \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "tab2\.col2 \* CAST\(NULL AS Int64\) \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 6 col0, col2 * + + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 query I rowsort @@ -53122,7 +53122,7 @@ SELECT ALL col2 * col1 / + col2 FROM tab0 AS cor0 # Datafusion - Expected - 123264 # Datafusion - Expected - 78 # Datafusion - Expected - 225463 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-20\)\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 \* \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-20\)\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 \* \(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 20 + col2 AS col2, + col0 + col2 * + - CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0 query I rowsort @@ -53695,7 +53695,7 @@ SELECT + ( - col1 ) FROM tab2 WHERE NOT col1 BETWEEN - 35 AND + col1 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(\-69\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(\-69\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 AS col2, - 69 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query II rowsort label-8842 @@ -56260,7 +56260,7 @@ SELECT 99 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* max\(DISTINCT tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* max\(DISTINCT tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 69 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) * MAX ( DISTINCT col0 ) AS col1 FROM tab0 query III rowsort label-9268 @@ -58325,7 +58325,7 @@ SELECT COUNT ( * ) * 35 + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - -3886 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- \(\- tab2\.col2\)\) \+ \(\- Int64\(\-16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / \(\- \(\- tab2\.col2\)\) \+ \(\- Int64\(\-16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1 * - col2 AS col1, CAST ( NULL AS INTEGER ) / - - col2 + - ( - 16 ) AS col1 FROM tab2 query II rowsort label-9611 diff --git a/data/sqlite/random/aggregates/slt_good_49.slt b/data/sqlite/random/aggregates/slt_good_49.slt index 96d1a86..29ef634 100644 --- a/data/sqlite/random/aggregates/slt_good_49.slt +++ b/data/sqlite/random/aggregates/slt_good_49.slt @@ -5053,7 +5053,7 @@ SELECT + col1 FROM tab2 WHERE ( NULL <= + col0 ) # Datafusion - Expected - -1 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "tab0\.col0 \+ \(\- tab0\.col0\) \+ \(\- tab0\.col2\) / tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int64\) AS col0" at position 0 and "tab0\.col0 \+ \(\- tab0\.col0\) \+ \(\- tab0\.col2\) / tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + col2 AS INTEGER ) col0, col0 + - col0 + + - col2 / col2 AS col0 FROM tab0 query II rowsort label-824 @@ -6840,7 +6840,7 @@ SELECT DISTINCT - - CAST ( col0 AS INTEGER ) FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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\. SELECT - col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -21920,7 +21920,7 @@ SELECT ALL 58 * + col2 AS col1 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - 5576 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* \(\- CAST\(\(\- Int64\(16\)\) AS Int32\)\) \* Int64\(\-25\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(17\) / \(\- Int64\(68\)\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* \(\- CAST\(\(\- Int64\(16\)\) AS Int64\)\) \* Int64\(\-25\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(17\) / \(\- Int64\(68\)\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 * - + CAST ( - + 16 AS INTEGER ) * - 25 + - 24 AS col1, + 17 / - + 68 * + ( col1 ) AS col1 FROM tab1 query II rowsort @@ -36936,7 +36936,7 @@ SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 cor0 -3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) / \(\- cor0\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) / \(\- cor0\.col0\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( col2 ) * - col0 / + - col0 + - ( + CAST ( NULL AS INTEGER ) ) AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL query I rowsort label-6069 @@ -48009,7 +48009,7 @@ SELECT + 50 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- sum\(tab0\.col1\)\) AS Int32\) AS col1" at position 0 and "\(\- count\(\(\- tab0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- sum\(tab0\.col1\)\) AS Int64\) AS col1" at position 0 and "\(\- count\(\(\- tab0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - SUM ( ALL col1 ) AS INTEGER ) col1, - COUNT ( - + col0 ) AS col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_5.slt b/data/sqlite/random/aggregates/slt_good_5.slt index 3fe65df..112a4d4 100644 --- a/data/sqlite/random/aggregates/slt_good_5.slt +++ b/data/sqlite/random/aggregates/slt_good_5.slt @@ -2604,7 +2604,7 @@ SELECT + col2 * col2 + col2 * + col1 * col2 AS col1, - col2 * col1 * - + 6 * - c # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 48b39c5e2f448b1e45127d533c863680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(97\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(29\) \+ \(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(97\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(29\) \+ \(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - CAST ( 97 AS INTEGER ) AS col2, + col1 AS col1, 29 + - col2 AS col2 FROM tab2 AS cor0 query I rowsort @@ -4355,7 +4355,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NOT NULL >= + 99 / col0 + + - col1 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- min\(CAST\(NULL AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- min\(CAST\(NULL AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 75 * COUNT ( * ) col0, - CAST ( NULL AS INTEGER ) * - MIN ( CAST ( NULL AS FLOAT8 ) ) AS col0 FROM tab0 query III rowsort @@ -7565,7 +7565,7 @@ SELECT + COUNT ( * ) * + MAX ( DISTINCT - - col1 ) * - + 58 * + 33 AS col0 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-40\) AS Int32\) \+ min\(Int64\(\-59\)\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-40\) AS Int64\) \+ min\(Int64\(\-59\)\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( * ) * CAST ( - 40 AS INTEGER ) + + MIN ( - 59 ) * ( 99 ) AS col2 FROM tab0 query I rowsort @@ -11520,7 +11520,7 @@ SELECT - col0 + + + 11 + + col0 * - + 19 + 84 * 68 * + col2 AS col0 FROM tab2 WH # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col2 AS Int32\)\)" at position 0 and "\(\- tab1\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col2 AS Int64\)\)" at position 0 and "\(\- tab1\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( col2 AS INTEGER ), - col2 FROM tab1 WHERE NULL IS NULL query I rowsort @@ -12502,7 +12502,7 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab1 query I rowsort label-2051 @@ -15897,7 +15897,7 @@ SELECT ALL + 39 * - + SUM ( ALL + - col1 ) FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - -27 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(27\) AS Int32\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(27\) AS Int64\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 27 AS INTEGER ) AS col0, + col1 AS col0 FROM tab0 query I rowsort @@ -30917,7 +30917,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - col0 IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(cor0\.col1 AS Int32\) AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(cor0\.col1 AS Int64\) AS Int64\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + + CAST ( col1 AS INTEGER ) AS INTEGER ) AS col1, col2 AS col1 FROM tab2 cor0 query I rowsort label-5080 @@ -32327,7 +32327,7 @@ SELECT DISTINCT 49, 8 AS col2 FROM tab0 AS cor0 WHERE ( - 60 ) IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - col2 ) AS col1, + CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 query I rowsort @@ -60128,7 +60128,7 @@ SELECT COUNT ( * ) * - 63 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 363 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(sum\(cor0\.col2\) AS Int32\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(sum\(cor0\.col2\) AS Int64\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * CAST ( + SUM ( + col2 ) AS INTEGER ) AS col1, - 21 AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_50.slt b/data/sqlite/random/aggregates/slt_good_50.slt index bddc0a0..16619e4 100644 --- a/data/sqlite/random/aggregates/slt_good_50.slt +++ b/data/sqlite/random/aggregates/slt_good_50.slt @@ -1367,7 +1367,7 @@ SELECT * FROM tab2 AS cor0 WHERE - 0 NOT IN ( - + col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(70\) AS col1" at position 0 and "\(\- count\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(70\) AS col1" at position 0 and "\(\- count\(CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 27 * - ( - COUNT ( * ) ) + 70 AS col1, - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 query III rowsort label-228 @@ -5354,7 +5354,7 @@ SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - -59 # Datafusion - Expected - -3196 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int32\)\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int64\)\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + col1 AS INTEGER ) * col2 col1, - col2 AS col1 FROM tab1 AS cor0 query I rowsort @@ -12520,7 +12520,7 @@ SELECT + 87 * - 93 + - 2 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ avg\(tab0\.col1\) \+ \(\- max\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ avg\(tab0\.col1\) \+ \(\- max\(CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 + AVG ( + col1 ) + - MAX ( CAST ( NULL AS INTEGER ) ) col2, 27 col2 FROM tab0 query II rowsort @@ -13021,7 +13021,7 @@ SELECT ( - + COUNT ( * ) ) * 63 AS col1 FROM tab0 # Datafusion - Expected - 59 # Datafusion - Expected - 9 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(Int64\(59\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(Int64\(59\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 9 AS col1, + CAST ( + 59 AS INTEGER ) AS col1 FROM tab0 query I rowsort @@ -13604,7 +13604,7 @@ SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE + 45 NOT BETWEEN - 69 AND # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) / Int64\(11\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) / Int64\(11\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 89 / + 11 AS col1, + ( - col0 ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 query I rowsort label-2246 @@ -15169,7 +15169,7 @@ SELECT * FROM tab0 AS cor0 WHERE ( col1 + col2 ) < ( NULL ) # Datafusion - Expected - -66 # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-17\) \- Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-17\) \- Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col0, - 17 - + 49 AS col0 FROM tab0 AS cor0 query I rowsort label-2507 @@ -19665,7 +19665,7 @@ SELECT ALL col2 AS col2, col1 * 30 * - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col1\) / Int64\(35\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(28\) AS col1" at position 0 and "max\(\(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col1\) / Int64\(35\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(28\) AS col1" at position 0 and "max\(\(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( ALL + col1 ) / 35 + - + CAST ( NULL AS INTEGER ) * + 28 AS col1, MAX ( - col2 ) col1 FROM tab2 AS cor0 query I rowsort label-3238 @@ -28026,7 +28026,7 @@ SELECT ALL - + CAST ( - 84 AS INTEGER ) / - col0 AS col2 FROM tab2 AS cor0 -1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col0 AS col0, + CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab2 AS cor0 WHERE + col1 * col2 IS NULL # Datafusion - Types were automatically converted from: @@ -28059,7 +28059,7 @@ SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( + + ( + col0 ) ) IS NU # Datafusion - Expected - 3842 # Datafusion - Expected - -58 # Datafusion - Expected - 3342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(2\) / \(\- cor0\.col1\) AS col0" at position 0 and "CAST\(Int64\(\-50\) AS Int32\) \* \(\- cor0\.col1\) \- \(\- \(\- Int64\(8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(2\) / \(\- cor0\.col1\) AS col0" at position 0 and "CAST\(Int64\(\-50\) AS Int64\) \* \(\- cor0\.col1\) \- \(\- \(\- Int64\(8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - col2 + + 2 / - col1 col0, CAST ( + - 50 AS INTEGER ) * - col1 - - - ( 8 ) AS col0 FROM tab2 AS cor0 query III rowsort label-4620 @@ -33967,7 +33967,7 @@ SELECT ALL - ( + ( - 46 ) ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-77\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-77\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT - 77 ) AS col1, CAST ( COUNT ( * ) AS INTEGER ) + + + 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL query II rowsort @@ -39639,7 +39639,7 @@ SELECT DISTINCT - - 82 * 44 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col2\) / CAST\(NULL AS Int32\) \+ cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col2\) / CAST\(NULL AS Int64\) \+ cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + col2 * - col2 / ( CAST ( NULL AS INTEGER ) ) + col0 AS col1, CAST ( NULL AS INTEGER ) * - 34 AS col1 FROM tab1 cor0 query I rowsort label-6534 @@ -46796,7 +46796,7 @@ SELECT - col1 + + col2 / - col2 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 32ac8091526fd8992725ddc86f22283c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / cor0\.col2 / \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / cor0\.col2 / \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + col0 AS col2, - CAST ( NULL AS INTEGER ) / col2 / - - col1 AS col2, - - ( - + col2 ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -49315,7 +49315,7 @@ SELECT DISTINCT MAX ( ALL + - 81 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) 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\. SELECT DISTINCT - 12 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-8135 @@ -49946,7 +49946,7 @@ SELECT DISTINCT - col2 + - col2 + - col0 * + - col2 / col2 * + col1 + col1 * - - # Datafusion - Expected - 2175 # Datafusion - Expected - -97 # Datafusion - Expected - 2425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- CAST\(cor0\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- CAST\(cor0\.col0 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - col0 AS col1, - 25 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 cor0 query I rowsort @@ -50092,7 +50092,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 51 >= - col1 ) # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0 query I rowsort @@ -53075,7 +53075,7 @@ SELECT 25 * + col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1005 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- max\(\(\- tab0\.col0\)\)\) \* \(\- CAST\(Int64\(67\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- max\(\(\- tab0\.col0\)\)\) \* \(\- CAST\(Int64\(67\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 43 col0, - MAX ( + - col0 ) * - CAST ( + 67 AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -56867,7 +56867,7 @@ SELECT ALL * FROM tab1 WHERE NOT + 24 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "CAST\(Int64\(79\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "CAST\(Int64\(79\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 10 AS col2, CAST ( 79 AS INTEGER ) AS col2 FROM tab1 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_51.slt b/data/sqlite/random/aggregates/slt_good_51.slt index b0a3be9..73e8dac 100644 --- a/data/sqlite/random/aggregates/slt_good_51.slt +++ b/data/sqlite/random/aggregates/slt_good_51.slt @@ -7395,7 +7395,7 @@ SELECT col2 AS col2 FROM tab0 AS cor0 WHERE + 74 / col1 + + col0 <> col2 # Datafusion - Expected - 3917 # Datafusion - Expected - 95 # Datafusion - Expected - 5635 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "CAST\(cor0\.col2 AS Int32\) \* Int64\(96\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "CAST\(cor0\.col2 AS Int64\) \* Int64\(96\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col2, CAST ( + ( col2 ) AS INTEGER ) * 96 + col1 AS col2 FROM tab2 AS cor0 query I rowsort label-1207 @@ -7581,7 +7581,7 @@ SELECT ALL + 61 * ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 33 # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- CAST\(NULL AS Int64\)\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 * - CAST ( NULL AS INTEGER ) * col1 AS col0, col1 AS col0 FROM tab2 AS cor0 query I rowsort @@ -17669,7 +17669,7 @@ SELECT DISTINCT - col1 + + col1 AS col1, + col2 FROM tab2 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col1 AS Int32\)\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col1 AS Int64\)\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) AS col2, - col0 AS col2 FROM tab1 WHERE 55 IS NULL query III rowsort @@ -22569,7 +22569,7 @@ SELECT - ( + + col2 ) - - col0 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- tab2\.col2\)\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- tab2\.col2\)\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 * - 2 AS col2, - CAST ( NULL AS INTEGER ) * - - col2 + 93 AS col2 FROM tab2 query I rowsort label-3701 @@ -23180,7 +23180,7 @@ SELECT ALL - col1 * + - col0 + 62 FROM tab0 AS cor0 # Datafusion - Expected - 25 # Datafusion - Expected - -529 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 0 and "CAST\(Int64\(25\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 0 and "CAST\(Int64\(25\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 * col2 AS col2, CAST ( + 25 AS INTEGER ) AS col2 FROM tab2 cor0 query II rowsort label-3801 @@ -23305,7 +23305,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - 91 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 69 col0, CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -23707,7 +23707,7 @@ SELECT + - MAX ( + 74 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "sum\(cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "sum\(cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col2, SUM ( + + col1 ) col2 FROM tab0 AS cor0 query II rowsort label-3884 @@ -24391,7 +24391,7 @@ SELECT + col2 * + col2 - + - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 265 # Datafusion - Expected - 91 # Datafusion - Expected - 2491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col0\) AS Int32\)\) AS col0" at position 0 and "tab1\.col1 \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col0\) AS Int64\)\) AS col0" at position 0 and "tab1\.col1 \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0, col1 * 53 AS col0 FROM tab1 query I rowsort @@ -28868,7 +28868,7 @@ SELECT - ( + ( 83 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 267 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 0 and "Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, 89 * COUNT ( * ) col1 FROM tab1 cor0 query III rowsort @@ -51288,7 +51288,7 @@ SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - ( + col1 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(73\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(73\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( - + 73 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort label-8447 @@ -58853,7 +58853,7 @@ SELECT DISTINCT + ( COUNT ( ALL - col0 ) ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- Int64\(33\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "\(\- tab0\.col1\) / \(\- CAST\(NULL AS Int32\)\) \+ tab0\.col2 / tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- Int64\(33\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "\(\- tab0\.col1\) / \(\- CAST\(NULL AS Int64\)\) \+ tab0\.col2 / tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 46 - + 33 + - col1 AS col1, - col1 / - + CAST ( NULL AS INTEGER ) + col2 / + col2 AS col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_52.slt b/data/sqlite/random/aggregates/slt_good_52.slt index 17edf9a..7b515ad 100644 --- a/data/sqlite/random/aggregates/slt_good_52.slt +++ b/data/sqlite/random/aggregates/slt_good_52.slt @@ -7375,7 +7375,7 @@ SELECT MIN ( DISTINCT + 32 ) * - 41 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 query I rowsort label-1208 @@ -7627,7 +7627,7 @@ SELECT 58 AS col1, 46 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 9801 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( col2 ) * + + col2 AS col1, CAST ( NULL AS INTEGER ) * - 59 col1 FROM tab0 query I rowsort @@ -10581,7 +10581,7 @@ SELECT * FROM tab1 WHERE NOT NULL >= 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(2\) \* CAST\(Int64\(83\) AS Int32\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(2\) \* CAST\(Int64\(83\) AS Int64\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, 2 * CAST ( 83 AS INTEGER ) * + 92 AS col1 FROM tab1 query I rowsort label-1750 @@ -15893,7 +15893,7 @@ SELECT * FROM tab1 AS cor0 WHERE 4 * + CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - -142 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + - col0 ) + - col1 AS col1, CAST ( - ( col0 ) AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0 query I rowsort label-2632 @@ -16560,7 +16560,7 @@ SELECT * FROM tab0 WHERE NOT ( col0 NOT BETWEEN NULL AND NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int32\)\) \+ tab2\.col0 \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int64\)\) \+ tab2\.col0 \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1, col1 + - ( + CAST ( NULL AS INTEGER ) ) + col0 * + + ( + col1 ) col1 FROM tab2 query II rowsort label-2738 @@ -18978,7 +18978,7 @@ SELECT DISTINCT - - col0 + - - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 query III rowsort @@ -22202,7 +22202,7 @@ SELECT DISTINCT col0 + - - col0 / - - col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -177 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ Int64\(\-99\) AS col0" at position 0 and "CAST\(cor0\.col2 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ Int64\(\-99\) AS col0" at position 0 and "CAST\(cor0\.col2 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 78 + - 99 AS col0, CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -22567,7 +22567,7 @@ SELECT + ( - col2 ) * col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) 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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab2 query I rowsort @@ -31531,7 +31531,7 @@ SELECT ALL - - 83 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, MAX ( DISTINCT - col1 ) col1 FROM tab1 AS cor0 query II rowsort @@ -50419,7 +50419,7 @@ SELECT DISTINCT + - 9 + - - ( + + col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -188 # Datafusion - Expected - -315360 # Datafusion - Expected - -148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) \* Int64\(73\) \* Int64\(\-45\) AS col1" at position 0 and "Int64\(\-97\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\) \* Int64\(73\) \* Int64\(\-45\) AS col1" at position 0 and "Int64\(\-97\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + col2 AS INTEGER ) * 73 * + - 45 AS col1, - 97 - col0 AS col1 FROM tab1 AS cor0 query I rowsort label-8363 @@ -51051,7 +51051,7 @@ SELECT + - COUNT ( col2 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 55 AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-8466 @@ -53841,7 +53841,7 @@ SELECT * FROM tab1 WHERE + col1 / - col2 - 88 <= - ( + - col2 ) # Datafusion - Expected - 61 # Datafusion - Expected - 9702 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col2\) \+ tab0\.col2 AS col1" at position 0 and "CAST\(Int64\(61\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col2\) \+ tab0\.col2 AS col1" at position 0 and "CAST\(Int64\(61\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 * - col2 + + col2 AS col1, + CAST ( + 61 AS INTEGER ) AS col1 FROM tab0 query I rowsort @@ -55548,7 +55548,7 @@ SELECT - 1 * - col2 AS col1 FROM tab1 WHERE ( NOT NULL <= ( NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 66 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -56153,7 +56153,7 @@ SELECT * FROM tab2 cor0 WHERE NOT NULL = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col0\)\) AS col2" at position 0 and "CAST\(\(\- max\(DISTINCT \(\- cor0\.col0\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col0\)\) AS col2" at position 0 and "CAST\(\(\- max\(DISTINCT \(\- cor0\.col0\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( - + col0 ) AS col2, CAST ( - MAX ( DISTINCT - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-9324 @@ -56235,7 +56235,7 @@ SELECT ALL MIN ( DISTINCT col0 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) \+ Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) \+ Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 3 col2, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 64 + 25 AS col2 FROM tab1 query I rowsort label-9339 diff --git a/data/sqlite/random/aggregates/slt_good_53.slt b/data/sqlite/random/aggregates/slt_good_53.slt index 10fd2a4..f95415e 100644 --- a/data/sqlite/random/aggregates/slt_good_53.slt +++ b/data/sqlite/random/aggregates/slt_good_53.slt @@ -11341,7 +11341,7 @@ SELECT DISTINCT + + ( - 23 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 query I rowsort label-1891 @@ -11811,7 +11811,7 @@ SELECT DISTINCT - - ( - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 71 AS col0, CAST ( NULL AS INTEGER ) + + + col0 AS col0 FROM tab0 cor0 query I rowsort @@ -12381,7 +12381,7 @@ SELECT * FROM tab2 WHERE NOT ( NOT col2 * - + col0 * - - 29 IS NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - 8281 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col0 AS col0" at position 0 and "tab1\.col2 \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col0 AS col0" at position 0 and "tab1\.col2 \- CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( col0 ) * col0 AS col0, + col2 - CAST ( NULL AS INTEGER ) col0 FROM tab1 query I rowsort @@ -14856,7 +14856,7 @@ SELECT ALL + 40 + + - col1 * - - ( - col0 ) AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 88 + - col2 col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort @@ -27751,7 +27751,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND + 76 # Datafusion - Expected - -58 # Datafusion - Expected - -41791 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- \(\- tab2\.col2\)\) \* \(\- CAST\(tab2\.col2 AS Int32\)\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- \(\- tab2\.col2\)\) \* \(\- CAST\(tab2\.col2 AS Int64\)\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 * - - col2 * - CAST ( col2 AS INTEGER ) AS col0, - col2 AS col0 FROM tab2 query I rowsort label-4565 @@ -29203,7 +29203,7 @@ SELECT - + ( 4 ) * col1 * - 68 - + col0 * + + col1 * - col1 * + ( - col0 ) + - 2 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col0\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col0\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 AS col0, - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query III rowsort label-4809 @@ -31572,7 +31572,7 @@ SELECT DISTINCT + col1 * + 14 * 64 FROM tab0 AS cor0 WHERE + 58 = ( NULL ) # Datafusion - Expected - 6465 # Datafusion - Expected - 480345 # Datafusion - Expected - 6963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \* \(\- Int64\(58\)\) \+ \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col0 \* Int64\(76\) \- \(\- CAST\(cor0\.col1 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \* \(\- Int64\(58\)\) \+ \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col0 \* Int64\(76\) \- \(\- CAST\(cor0\.col1 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 * col0 * + - ( + 58 ) + - - col1 AS col1, col0 * + 76 - + - CAST ( + col1 AS INTEGER ) col1 FROM tab1 cor0 query I rowsort label-5202 @@ -42598,7 +42598,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 43 ) # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(68\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(68\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * 68 col1, col2 AS col1 FROM tab2 AS cor0 query III rowsort @@ -42752,7 +42752,7 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 query III rowsort @@ -44692,7 +44692,7 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "CAST\(tab0\.col0 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "CAST\(tab0\.col0 AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0, + CAST ( + col0 AS INTEGER ) FROM tab0 query II rowsort label-7346 @@ -52440,7 +52440,7 @@ SELECT + col0 / + 96 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- \(\- \(\- CAST\(\(\- tab2\.col1\) AS Int32\)\)\)\)\) AS col1" at position 0 and "Int64\(56\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- \(\- \(\- CAST\(\(\- tab2\.col1\) AS Int64\)\)\)\)\) AS col1" at position 0 and "Int64\(56\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( - - ( + ( - CAST ( - col1 AS INTEGER ) ) ) ) AS col1, 56 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query I rowsort label-8624 @@ -58743,7 +58743,7 @@ SELECT * FROM tab0 AS cor0 WHERE - col1 * - - col0 NOT IN ( ( - + col2 ) - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT \(\- cor0\.col0\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT \(\- cor0\.col0\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + + AVG ( DISTINCT - ( + col0 ) ) ) + - CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) col1 FROM tab2 AS cor0 query I rowsort label-9653 diff --git a/data/sqlite/random/aggregates/slt_good_54.slt b/data/sqlite/random/aggregates/slt_good_54.slt index 77173b9..c6c10b0 100644 --- a/data/sqlite/random/aggregates/slt_good_54.slt +++ b/data/sqlite/random/aggregates/slt_good_54.slt @@ -7092,7 +7092,7 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \- Int64\(64\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \- Int64\(64\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - + col0 ) - 64 / + CAST ( NULL AS INTEGER ) AS col1, + col2 AS col1 FROM tab0 query I rowsort @@ -9628,7 +9628,7 @@ SELECT ALL COUNT ( + - col0 ) * - - 89 col1 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 93 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(93\) AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(93\) AS Int64\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + 93 AS INTEGER ) AS col2, col1 AS col2 FROM tab2 AS cor0 query I rowsort label-1596 @@ -19791,7 +19791,7 @@ SELECT DISTINCT + ( - col1 ) * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 WHER # Datafusion - Expected - -92 # Datafusion - Expected - 77 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(Int64\(\-92\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(Int64\(\-92\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( col1 ) AS col0, CAST ( - 92 AS INTEGER ) AS col0 FROM tab2 cor0 query I rowsort @@ -26149,7 +26149,7 @@ SELECT DISTINCT * FROM tab0 WHERE - 40 * - col1 <= NULL # Datafusion - Expected - 230 # Datafusion - Expected - NULL # Datafusion - Expected - 644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(46\) \* \(\- \(\- tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(46\) \* \(\- \(\- tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 46 * - - col1 AS col2 FROM tab1 query I rowsort label-4322 @@ -31708,7 +31708,7 @@ SELECT * FROM tab0 WHERE NOT col1 + - - 15 < + 0 # Datafusion - Expected - NULL # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "tab2\.col2 \+ CAST\(NULL AS Int32\) \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "tab2\.col2 \+ CAST\(NULL AS Int64\) \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 93 ) AS col2, col2 + CAST ( NULL AS INTEGER ) + - + col1 AS col2 FROM tab2 query I rowsort label-5230 @@ -34122,7 +34122,7 @@ SELECT DISTINCT - col1 + 82 AS col1 FROM tab0 cor0 # Datafusion - Expected - -93 # Datafusion - Expected - 590 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- \(\- CAST\(cor0\.col2 AS Int64\)\)\) AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 59 * - - CAST ( col2 AS INTEGER ) AS col2, col1 + - + 94 AS col2 FROM tab0 AS cor0 query I rowsort @@ -41068,7 +41068,7 @@ SELECT - ( + col0 ) + + - col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - NULL # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- tab2\.col0\) / \(\- Int64\(13\)\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- tab2\.col0\) / \(\- Int64\(13\)\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - + col0 / - + 13 * + + 99 AS col2, - 15 AS col2 FROM tab2 query III rowsort @@ -42902,7 +42902,7 @@ SELECT DISTINCT 40 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort @@ -43257,7 +43257,7 @@ SELECT DISTINCT MAX ( DISTINCT - col1 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 529 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col2 AS col2" at position 0 and "\(\- tab2\.col2\) \* CAST\(NULL AS Int32\) \+ tab2\.col0 / Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col2 AS col2" at position 0 and "\(\- tab2\.col2\) \* CAST\(NULL AS Int64\) \+ tab2\.col0 / Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 * col2 AS col2, - col2 * + CAST ( NULL AS INTEGER ) + col0 / - 94 AS col2 FROM tab2 query I rowsort @@ -47338,7 +47338,7 @@ SELECT ALL - - col0 / col2 + - 35 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 85 + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 13 AS col0 FROM tab0 AS cor0 query I rowsort @@ -49589,7 +49589,7 @@ SELECT + + MAX ( + 47 ) FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int64\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) col1, + col0 col1 FROM tab0 AS cor0 query I rowsort label-8165 @@ -50526,7 +50526,7 @@ SELECT ALL - col1 AS col2, col2 * 43 AS col0 FROM tab1 # Datafusion - Expected - 23 # Datafusion - Expected - 2760 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) \* Int64\(\-46\) AS col0" at position 0 and "tab1\.col0 \+ \(\- CAST\(tab1\.col2 AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) \* Int64\(\-46\) AS col0" at position 0 and "tab1\.col0 \+ \(\- CAST\(tab1\.col2 AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 60 ) * - 46 AS col0, + ( col0 ) + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 query I rowsort label-8310 @@ -58543,7 +58543,7 @@ SELECT - 93 * - - col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4272 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(48\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- cor0\.col0\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(48\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- cor0\.col0\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 89 * + 48 AS col0, CAST ( NULL AS INTEGER ) + - col0 * col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL query I rowsort @@ -59415,7 +59415,7 @@ SELECT ALL col1 AS col0, 72 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) * 67 AS col1 FROM tab2 query I rowsort label-9757 @@ -59667,7 +59667,7 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - ( col0 ) / - col2 * - col2 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, 22 AS col1 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_55.slt b/data/sqlite/random/aggregates/slt_good_55.slt index 988975d..b4226d2 100644 --- a/data/sqlite/random/aggregates/slt_good_55.slt +++ b/data/sqlite/random/aggregates/slt_good_55.slt @@ -8428,7 +8428,7 @@ SELECT + ( - COUNT ( * ) ) * - 44 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 AS col2, CAST ( NULL AS INTEGER ) * - 48 AS col2 FROM tab2 AS cor0 query II rowsort @@ -10190,7 +10190,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 351 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(34\) \+ \(\- sum\(\(\- tab1\.col0\)\)\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \+ Int64\(34\) \+ \(\- sum\(\(\- tab1\.col0\)\)\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 66 col1, CAST ( + COUNT ( * ) AS INTEGER ) + 34 + - SUM ( - + col0 ) + + 87 col1 FROM tab1 query I rowsort label-1690 @@ -17612,7 +17612,7 @@ SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 38 * col0 = NULL # Datafusion - Expected - 95 # Datafusion - Expected - -71 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-24\) AS col0" at position 0 and "CAST\(Int64\(95\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-24\) AS col0" at position 0 and "CAST\(Int64\(95\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 + - 24 AS col0, CAST ( + 95 AS INTEGER ) AS col0 FROM tab1 cor0 query II rowsort @@ -17847,7 +17847,7 @@ SELECT - col2 + - - col2 FROM tab2 # Datafusion - Expected - -147 # Datafusion - Expected - 93 # Datafusion - Expected - -184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(79\) AS col1" at position 0 and "Int64\(\-62\) \+ \(\- CAST\(Int64\(26\) AS Int32\)\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(79\) AS col1" at position 0 and "Int64\(\-62\) \+ \(\- CAST\(Int64\(26\) AS Int64\)\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 + 79 AS col1, - 62 + + ( - CAST ( + 26 AS INTEGER ) ) + - col2 col1 FROM tab1 query I rowsort @@ -20192,7 +20192,7 @@ SELECT ALL 0 col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab1\.col1\) AS Int32\) \* Int64\(14\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col2 \- Int64\(18\) \- Int64\(\-82\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab1\.col1\) AS Int64\) \* Int64\(14\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col2 \- Int64\(18\) \- Int64\(\-82\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - col1 AS INTEGER ) * 14 AS col0, col0 * + col2 - 18 - - 82 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort label-3329 @@ -23036,7 +23036,7 @@ SELECT DISTINCT + - MIN ( ALL - + col2 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ \(\- cor0\.col0\) \+ cor0\.col0 \+ cor0\.col1 \+ cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ \(\- cor0\.col0\) \+ cor0\.col0 \+ cor0\.col1 \+ cor0\.col0 \* \(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 85 * + col0 + - col0 + - col0 + + col0 + + col1 + + + col0 * - CAST ( NULL AS INTEGER ) * - - col0 AS col1, ( col0 ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -24535,7 +24535,7 @@ SELECT ( - - col0 ) col0 FROM tab2 # Datafusion - Expected - 71 # Datafusion - Expected - -563108 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(\(\- tab1\.col0\) AS Int32\) \* tab1\.col2 AS col2" at position 0 and "Int64\(7\) \+ tab1\.col1 \- \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(\(\- tab1\.col0\) AS Int64\) \* tab1\.col2 AS col2" at position 0 and "Int64\(7\) \+ tab1\.col1 \- \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 * + CAST ( - + col0 AS INTEGER ) * col2 AS col2, 7 + + col1 - - + col2 col2 FROM tab1 query I rowsort @@ -26600,7 +26600,7 @@ SELECT - col2 FROM tab1 AS cor0 WHERE NOT 51 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - col0 AS col0, CAST ( NULL AS INTEGER ) * col1 * + + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: @@ -27542,7 +27542,7 @@ SELECT DISTINCT - MIN ( - col2 ) FROM tab2 # Datafusion - Expected - -3128 # Datafusion - Expected - -5 # Datafusion - Expected - -236 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 \+ tab1\.col1 \* CAST\(\(\- tab1\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 \+ tab1\.col1 \* CAST\(\(\- tab1\.col2\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 AS col0, + col2 + + col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -31324,7 +31324,7 @@ SELECT * FROM tab2 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) / + 74 IS NOT NUL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int64\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + col1 AS INTEGER ), + col1 FROM tab0 query II rowsort @@ -32978,7 +32978,7 @@ SELECT ALL CAST ( - col2 AS INTEGER ) + - col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-62\)\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-62\)\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT - 62 ) AS col2, CAST ( COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab1 query IIIIII rowsort @@ -43882,7 +43882,7 @@ SELECT DISTINCT - COUNT ( * ) - + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM # Datafusion - Expected - NULL # Datafusion - Expected - 637 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(\-11\) \- cor0\.col0 \+ Int64\(74\) AS col1" at position 0 and "cor0\.col2 \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(43\) \* cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(\-11\) \- cor0\.col0 \+ Int64\(74\) AS col1" at position 0 and "cor0\.col2 \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(43\) \* cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 * - 11 - + col0 + + ( + + 74 ) AS col1, col2 * - CAST ( NULL AS INTEGER ) * + + 43 * col2 + + col2 AS col1 FROM tab2 cor0 query III rowsort @@ -48680,7 +48680,7 @@ SELECT + + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\)" at position 0 and "CAST\(cor0\.col0 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\)" at position 0 and "CAST\(cor0\.col0 AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( + + col0 AS INTEGER ), + CAST ( + col0 AS INTEGER ) FROM tab2 cor0 query I rowsort label-8034 @@ -48764,7 +48764,7 @@ SELECT + col2, + 92 * 42 FROM tab1 AS cor0 # Datafusion - Expected - -4585 # Datafusion - Expected - NULL # Datafusion - Expected - -4909 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "cor0\.col0 \* Int64\(\-55\) \+ cor0\.col0 \- \(\- Int64\(5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "cor0\.col0 \* Int64\(\-55\) \+ cor0\.col0 \- \(\- Int64\(5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 70 + - - CAST ( NULL AS INTEGER ) col0, col0 * - 55 + col0 - - + 5 col0 FROM tab1 AS cor0 query I rowsort label-8047 @@ -52205,7 +52205,7 @@ SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) * + - 71 AS col1 FROM tab0 -639 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 AS col1, ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT ( NOT NULL = + col0 ) query I rowsort @@ -56727,7 +56727,7 @@ SELECT ALL - 38 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(DISTINCT \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(DISTINCT \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * 33 + + COUNT ( * ) AS col2, MAX ( DISTINCT - + col2 ) AS col2 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_56.slt b/data/sqlite/random/aggregates/slt_good_56.slt index 95d9089..1de0022 100644 --- a/data/sqlite/random/aggregates/slt_good_56.slt +++ b/data/sqlite/random/aggregates/slt_good_56.slt @@ -3163,7 +3163,7 @@ SELECT DISTINCT - 9 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: @@ -13350,7 +13350,7 @@ SELECT DISTINCT COUNT ( DISTINCT + 72 ) - - MIN ( ALL - col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- max\(\(\- tab0\.col1\)\)\) \- Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) / \(\- max\(\(\- tab0\.col1\)\)\) \- Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 19 AS col1, CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) / + ( - MAX ( - col1 ) ) - 9 AS col1 FROM tab0 query I rowsort @@ -13395,7 +13395,7 @@ SELECT DISTINCT - 61 / ( + - COUNT ( * ) ) FROM tab2 AS cor0 20 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- Int64\(94\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- Int64\(94\) / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 - + 94 / - CAST ( NULL AS INTEGER ) AS col2, + 78 col2 FROM tab0 AS cor0 WHERE NOT NULL = - CAST ( NULL AS FLOAT8 ) query III rowsort @@ -15435,7 +15435,7 @@ SELECT DISTINCT + - 92 AS col2, col1 * + col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d0f158eccf29918b16a2cd2ad94f83be -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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\. SELECT ALL + col2 AS col0, + CAST ( NULL AS INTEGER ) AS col0, + 81 * 5 + - + 58 AS col0 FROM tab0 AS cor0 query III rowsort @@ -16936,7 +16936,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 90 / - - 71 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) 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\. SELECT DISTINCT - - col1 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -23119,7 +23119,7 @@ SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( - - col0 * - + 5 * - col1 / - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4ef6952a3d0d47dff3023af0d6829b81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- tab2\.col1\)\) \+ \(\- tab2\.col2\) AS col0" at position 1 and "Int64\(46\) \+ \(\- \(\- tab2\.col2\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- \(\- tab2\.col1\)\) \+ \(\- tab2\.col2\) AS col0" at position 1 and "Int64\(46\) \+ \(\- \(\- tab2\.col2\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 * + - 47, + CAST ( NULL AS INTEGER ) + - - col1 + - col2 AS col0, 46 + + - ( - + col2 ) AS col0 FROM tab2 query I rowsort @@ -23191,7 +23191,7 @@ SELECT + col2 * 74 + - col0 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \* \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) \* \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - col2 AS col0, ( - col2 ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -24299,7 +24299,7 @@ SELECT col0 + + col0 + + - col1 + col2 + col0 * - + ( - - ( - 14 ) ) + 31 + 97 F # Datafusion - Expected - 54 # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-33\)\) \+ tab1\.col0 \* tab1\.col2 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(\-33\)\) \+ tab1\.col0 \* tab1\.col2 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - - 33 + + + col0 * + col2 AS col0, 54 AS col0 FROM tab1 query I rowsort @@ -25942,7 +25942,7 @@ SELECT col2 * + col1 * + col1 + 6 / + col2 AS col0 FROM tab2 AS cor0 WHERE + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- CAST\(tab0\.col1 AS Int32\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- CAST\(tab0\.col1 AS Int64\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MIN ( - CAST ( + + col1 AS INTEGER ) ) AS col0, CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -27673,7 +27673,7 @@ SELECT DISTINCT - 8 FROM tab2 WHERE NULL IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(52\)\) \+ tab1\.col2 \* Int64\(77\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(52\)\) \+ tab1\.col2 \* Int64\(77\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 32 * - CAST ( NULL AS INTEGER ) * - + 52 + col2 * + 77 AS col0, - col0 AS col0 FROM tab1 query I rowsort label-4572 @@ -32633,7 +32633,7 @@ SELECT ALL MIN ( DISTINCT - col2 ) + + 62 col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col2, COUNT ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL query II rowsort label-5388 @@ -40047,7 +40047,7 @@ SELECT DISTINCT - MAX ( + 72 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -1232 # Datafusion - Expected - 78 # Datafusion - Expected - -114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-17\) \+ cor0\.col0 \* CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-17\) \+ cor0\.col0 \* CAST\(\(\- cor0\.col1\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 * col1 AS col1, - 17 + + + col0 * + CAST ( - + col1 AS INTEGER ) col1 FROM tab0 AS cor0 query I rowsort @@ -40746,7 +40746,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + 43 AS col1, - COUNT ( * ) AS col1 FROM tab2 query I rowsort label-6744 @@ -41780,7 +41780,7 @@ SELECT ALL 60 * - col0 * + col1 * - - col1 + - 60 AS col2 FROM tab2 # Datafusion - Expected - 2209 # Datafusion - Expected - 78 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) AS col1" at position 0 and "tab1\.col1 \* CAST\(tab1\.col1 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) AS col1" at position 0 and "tab1\.col1 \* CAST\(tab1\.col1 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - 78 ) AS col1, col1 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 query I rowsort label-6912 @@ -45699,7 +45699,7 @@ SELECT + col1 AS col0 FROM tab2 cor0 WHERE + col0 IS NULL OR + col2 IS NULL # Datafusion - Expected - 42 # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + 42 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL query II rowsort @@ -47274,7 +47274,7 @@ SELECT DISTINCT + ( + - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab1 # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(66\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(66\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 66 + - col2 AS col1 FROM tab0 query II rowsort @@ -55291,7 +55291,7 @@ SELECT DISTINCT - 62 - + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bbe90c507ac52db1065091020c6a86aa -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(31\) AS Int32\) \* \(\- \(\- tab2\.col2\)\) AS col1" at position 1 and "tab2\.col1 \* \(\- \(\- CAST\(\(\- tab2\.col1\) AS Int32\)\)\) \* \(\- tab2\.col0\) \+ \(\- Int64\(58\)\) \* \(\- tab2\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(31\) AS Int64\) \* \(\- \(\- tab2\.col2\)\) AS col1" at position 1 and "tab2\.col1 \* \(\- \(\- CAST\(\(\- tab2\.col1\) AS Int64\)\)\) \* \(\- tab2\.col0\) \+ \(\- Int64\(58\)\) \* \(\- tab2\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 42 AS INTEGER ) * - col1 * + 30 col2, CAST ( 31 AS INTEGER ) * - - col2 AS col1, + col1 * - - CAST ( - col1 AS INTEGER ) * - col0 + + - ( 58 ) * - col2 AS col1 FROM tab2 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_57.slt b/data/sqlite/random/aggregates/slt_good_57.slt index b2d8519..914b61a 100644 --- a/data/sqlite/random/aggregates/slt_good_57.slt +++ b/data/sqlite/random/aggregates/slt_good_57.slt @@ -4660,7 +4660,7 @@ SELECT DISTINCT - col2 * col1 * + - col0 * - - col0 + 86 AS col0 FROM tab1 AS co # Datafusion - Expected - -10 # Datafusion - Expected - -9603 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int64\)\) \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( col0 AS INTEGER ) * + col2 AS col0, - col2 col0 FROM tab0 cor0 query III rowsort @@ -7568,7 +7568,7 @@ SELECT col1 * - + col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "max\(\(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "max\(\(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, MAX ( ALL - + col2 ) AS col1 FROM tab2 query I rowsort label-1243 @@ -11688,7 +11688,7 @@ SELECT + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col0 / tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "tab1\.col0 / tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, col0 / + col1 AS col0 FROM tab1 query I rowsort label-1924 @@ -19646,7 +19646,7 @@ SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - - col1 + - + col0 AND + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(81\) \+ \(\- sum\(DISTINCT \(\- tab1\.col0\)\)\) \* \(\- Int64\(6\)\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(81\) \+ \(\- sum\(DISTINCT \(\- tab1\.col0\)\)\) \* \(\- Int64\(6\)\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 81 + - SUM ( DISTINCT - col0 ) * - + 6 - 14 AS col1 FROM tab1 # Datafusion - Datafusion expected results: @@ -21692,7 +21692,7 @@ SELECT ALL - COUNT ( * ) + - + COUNT ( * ) FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int64\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - ( + col0 ) AS INTEGER ), - col0 FROM tab1 AS cor0 # Datafusion - Types were automatically converted from: @@ -23569,7 +23569,7 @@ SELECT - 66 / 28 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1, 13 AS col1 FROM tab2 AS cor0 query I rowsort label-3874 @@ -23589,7 +23589,7 @@ SELECT * FROM tab2 WHERE NOT + col0 * - + 58 > - col1 + - 71 + + 9 # Datafusion - Expected - NULL # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "tab0\.col2 \- \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "tab0\.col2 \- \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 AS col0, col2 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort label-3877 @@ -27914,7 +27914,7 @@ SELECT - - col0 * 98 col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 * - - col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -32458,7 +32458,7 @@ SELECT DISTINCT + col2 * 77 AS col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 26 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "tab2\.col0 \+ Int64\(34\) / Int64\(\-90\) \* \(\- CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "tab2\.col0 \+ Int64\(34\) / Int64\(\-90\) \* \(\- CAST\(tab2\.col0 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 26 AS col1, col0 + + 34 / + - 90 * + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 query I rowsort label-5338 @@ -41832,7 +41832,7 @@ SELECT ( + - 45 ) AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(30\) / tab2\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(30\) / tab2\.col2 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 57 * 30 / + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query II rowsort @@ -44763,7 +44763,7 @@ SELECT - col1 * + + 18 + + 16 AS col2 FROM tab1 AS cor0 -830 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(50\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(50\) 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\. SELECT DISTINCT col0 * + 50 AS col0, CAST ( NULL AS INTEGER ) AS col0, col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL query I rowsort @@ -45054,7 +45054,7 @@ SELECT ALL - ( col1 ) * + 85 FROM tab2 WHERE NOT ( NOT ( NULL NOT BETWEEN NULL A # Datafusion - Expected - NULL # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ \(\- tab2\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ \(\- tab2\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 + - col1 AS col0, CAST ( NULL AS INTEGER ) + + 7 AS col0 FROM tab2 query I rowsort label-7403 @@ -45085,7 +45085,7 @@ SELECT ALL + 19 - - col2 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "sum\(\(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 0 and "sum\(\(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1, SUM ( ALL - col1 ) AS col1 FROM tab1 query III rowsort @@ -53444,7 +53444,7 @@ SELECT - col2 * + 68 + + + col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -324 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-36\) AS col2" at position 0 and "tab1\.col0 \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-36\) AS col2" at position 0 and "tab1\.col0 \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 9 * - 36 col2, col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE 33 <> - CAST ( - - col2 AS INTEGER ) query I rowsort @@ -58213,7 +58213,7 @@ SELECT - col1 * col0 - - col1 + - + col0 AS col2 FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- CAST\(\(\- tab1\.col0\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- CAST\(\(\- tab1\.col0\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 col1, + ( - CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab1 query II rowsort @@ -59255,7 +59255,7 @@ SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col2 >= col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -270 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(Int64\(\-90\) AS Int32\)\) AS col0" at position 0 and "\(\- min\(cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(Int64\(\-90\) AS Int64\)\) AS col0" at position 0 and "\(\- min\(cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + SUM ( + CAST ( + - 90 AS INTEGER ) ) AS col0, - MIN ( + + col0 ) AS col0 FROM tab1 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_58.slt b/data/sqlite/random/aggregates/slt_good_58.slt index 1d18b2d..b88865f 100644 --- a/data/sqlite/random/aggregates/slt_good_58.slt +++ b/data/sqlite/random/aggregates/slt_good_58.slt @@ -984,7 +984,7 @@ SELECT col1, + col0 / + col2 FROM tab0 # Datafusion - Expected - 7425 # Datafusion - Expected - NULL # Datafusion - Expected - 750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(75\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(75\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col2, 75 * + col2 AS col2 FROM tab0 query III rowsort @@ -7616,7 +7616,7 @@ SELECT + 28 AS col1, - 81 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - -80 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(62\) \+ CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(62\) \+ CAST\(\(\- cor0\.col1\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + col1 ) / - + col2 + - col1 AS col1, + 62 + + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 cor0 query II rowsort @@ -9130,7 +9130,7 @@ SELECT DISTINCT + 72 - col1 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ), - COUNT ( * ) FROM tab1 query I rowsort @@ -16148,7 +16148,7 @@ SELECT ALL - + col1 / col2 + + col2 FROM tab2 AS cor0 # Datafusion - Expected - -672 # Datafusion - Expected - 34 # Datafusion - Expected - -2592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-32\) \* \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) AS col0" at position 0 and "Int64\(\-32\) \* \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 + + - CAST ( - ( + ( col1 ) ) AS INTEGER ) AS col0, - 32 * - - col1 col0 FROM tab0 AS cor0 query I rowsort label-2660 @@ -17274,7 +17274,7 @@ SELECT ALL - 34 * - - MIN ( DISTINCT - col2 ) AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 987 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(21\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(21\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 * + 21 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab0 query III rowsort @@ -42032,7 +42032,7 @@ SELECT ALL - ( MAX ( - + col2 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2652 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(52\) \* max\(DISTINCT \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(52\) \* max\(DISTINCT \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 52 * + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -42075,7 +42075,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(96\) \* Int64\(\-19\) \* Int64\(\-45\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(96\) \* Int64\(\-19\) \* Int64\(\-45\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, + col1 - - CAST ( NULL AS INTEGER ) * + + 96 * - 19 * + - 45 * - + col0 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -43299,7 +43299,7 @@ SELECT * FROM tab0 WHERE NULL = ( - ( + + 98 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query III rowsort @@ -43697,7 +43697,7 @@ SELECT ALL - ( - + 5 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 547 # Datafusion - Expected - NULL # Datafusion - Expected - 557 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(48\) \* Int64\(10\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(48\) \* Int64\(10\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 48 * 10 + col1 AS col0 FROM tab2 AS cor0 query I rowsort label-7231 @@ -48435,7 +48435,7 @@ SELECT + - col2 * + + 58 AS col2 FROM tab1 WHERE NOT ( - col1 ) < col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(90\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(90\) AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + 90 AS INTEGER ) AS col2, - COUNT ( * ) * + MIN ( DISTINCT + 73 ) + COUNT ( * ) AS col2 FROM tab1 query III rowsort @@ -52405,7 +52405,7 @@ SELECT col2 * + - 75 * + + col2 + + + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( COUNT ( * ) AS INTEGER ), + COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-8680 @@ -55304,7 +55304,7 @@ SELECT DISTINCT + 31 AS col0, 21 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) 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\. SELECT DISTINCT - MIN ( - col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( - 2 ) < - ( + col1 ) query III rowsort label-9162 @@ -55980,7 +55980,7 @@ SELECT col2 AS col2, col0 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort label-9275 diff --git a/data/sqlite/random/aggregates/slt_good_59.slt b/data/sqlite/random/aggregates/slt_good_59.slt index 45b744d..462eb99 100644 --- a/data/sqlite/random/aggregates/slt_good_59.slt +++ b/data/sqlite/random/aggregates/slt_good_59.slt @@ -2168,7 +2168,7 @@ SELECT ALL * FROM tab2 WHERE NOT ( ( NOT NULL IS NOT NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) AS col1 FROM tab2 query III rowsort @@ -9889,7 +9889,7 @@ SELECT ALL COUNT ( ALL + ( - + 43 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 91f95fa293efd44062f1087307955849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(\-60\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(\-60\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + col0 * + 25 * - 69, col1 + - 60 col2 FROM tab1 cor0 query I rowsort label-1618 @@ -15396,7 +15396,7 @@ SELECT DISTINCT - 41 col0 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 66 ) AS col0, + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab2 AS cor0 query III rowsort label-2529 @@ -31304,7 +31304,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) > col0 # Datafusion - Expected - NULL # Datafusion - Expected - -6975 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* CAST\(Int64\(\-93\) AS Int32\) AS col2" at position 0 and "\(\- tab2\.col2\) \* tab2\.col2 \* \(\- \(\- tab2\.col1\)\) \* tab2\.col1 \- CAST\(NULL AS Int32\) \- tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* CAST\(Int64\(\-93\) AS Int64\) AS col2" at position 0 and "\(\- tab2\.col2\) \* tab2\.col2 \* \(\- \(\- tab2\.col1\)\) \* tab2\.col1 \- CAST\(NULL AS Int64\) \- tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 * + CAST ( - 93 AS INTEGER ) AS col2, - col2 * + col2 * - - col1 * col1 - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab2 query I rowsort @@ -35231,7 +35231,7 @@ SELECT col2 + + 76 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 6 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ CAST\(Int64\(\-9\) AS Int32\) \* tab0\.col0 \+ tab0\.col2 \- \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ CAST\(Int64\(\-9\) AS Int64\) \* tab0\.col0 \+ tab0\.col2 \- \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 + + CAST ( - 9 AS INTEGER ) * + ( + col0 ) + + col2 - - col2 AS col0, col1 AS col0 FROM tab0 query II rowsort label-5802 @@ -36786,7 +36786,7 @@ SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + col2 * col2 * - - 10 + + 53 AND # Datafusion - Expected - 42 # Datafusion - Expected - -58 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int64\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col0, 42 AS col0 FROM tab2 AS cor0 query I rowsort label-6061 @@ -38284,7 +38284,7 @@ SELECT DISTINCT + 52 * - - col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -2079 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* Int64\(\-27\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* Int64\(\-27\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - col1 * - 27 AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0 query I rowsort label-6311 @@ -39391,7 +39391,7 @@ SELECT ALL SUM ( - ( col2 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2bdbe169ee8a5070238270a41f2e329d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- Int64\(\-36\)\) \* cor0\.col1 AS col2" at position 1 and "\(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / \(\- Int64\(\-36\)\) \* cor0\.col1 AS col2" at position 1 and "\(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 * + col1, CAST ( NULL AS INTEGER ) / - - 36 * + col1 AS col2, + + ( - col2 ) col2 FROM tab2 AS cor0 query I rowsort label-6502 @@ -40543,7 +40543,7 @@ SELECT DISTINCT + + col1 + - - col2 + col1 FROM tab0 cor0 # Datafusion - Expected - -26 # Datafusion - Expected - -96 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(Int64\(\-26\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(Int64\(\-26\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - col2 AS col1, CAST ( - 26 AS INTEGER ) AS col1 FROM tab1 AS cor0 query II rowsort @@ -45659,7 +45659,7 @@ SELECT + col1, col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 360 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(36\) AS col2" at position 0 and "Int64\(68\) \+ CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(36\) AS col2" at position 0 and "Int64\(68\) \+ CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 * + + 36 AS col2, 68 + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -57409,7 +57409,7 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* cor0\.col0 \+ \(\- cor0\.col1\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* cor0\.col0 \+ \(\- cor0\.col1\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 2 * + col0 + - col1 / - - CAST ( NULL AS INTEGER ) + - col1 AS col0, + col2 + - col2 - - col1 AS col0 FROM tab2 AS cor0 query I rowsort @@ -57987,7 +57987,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab1\.col2\) / Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- tab1\.col2\) / Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col1, - col2 / - 42 AS col1 FROM tab1 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_6.slt b/data/sqlite/random/aggregates/slt_good_6.slt index 07a0c83..c36c4bd 100644 --- a/data/sqlite/random/aggregates/slt_good_6.slt +++ b/data/sqlite/random/aggregates/slt_good_6.slt @@ -9543,7 +9543,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -9801 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) 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\. SELECT col2 * - + col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -11073,7 +11073,7 @@ SELECT + - 87 FROM tab2 cor0 WHERE ( NULL ) >= NULL # Datafusion - Expected - 58 # Datafusion - Expected - -77441 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* cor0\.col2 \* Int64\(\-37\) AS col2" at position 0 and "CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* cor0\.col2 \* Int64\(\-37\) AS col2" at position 0 and "CAST\(\(\- \(\- cor0\.col2\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 91 * + col2 * - 37 col2, + CAST ( - - col2 AS INTEGER ) col2 FROM tab2 cor0 query I rowsort @@ -13164,7 +13164,7 @@ SELECT DISTINCT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 2 = ( col2 ) * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) / - COUNT ( * ) * + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( ALL + col1 ) AS col1 FROM tab1 query I rowsort label-2152 @@ -18327,7 +18327,7 @@ SELECT + COUNT ( * ) * + 74 * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM # Datafusion - Expected - -16 # Datafusion - Expected - 58 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "CAST\(Int64\(\-16\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "CAST\(Int64\(\-16\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, + ( CAST ( - 16 AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT + 35 BETWEEN + col2 + + + col2 AND - + col0 query I rowsort label-3005 @@ -26966,7 +26966,7 @@ SELECT ALL - col1 * - col2 * - - col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* tab0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* tab0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 * col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query II rowsort label-4431 @@ -31774,7 +31774,7 @@ SELECT - + col0 AS col2, - col0 FROM tab2 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - -26 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \- Int64\(96\) AS col0" at position 1 and "\(\- max\(\(\- CAST\(cor0\.col1 AS Int32\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \- Int64\(96\) AS col0" at position 1 and "\(\- max\(\(\- CAST\(cor0\.col1 AS Int64\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51, + 70 - + ( + 96 ) AS col0, + - MAX ( - + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 query I rowsort label-5231 @@ -33826,7 +33826,7 @@ SELECT + + col1 + + 61 FROM tab1 AS cor0 # Datafusion - Expected - 37 # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab2\.col1 \- tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "tab2\.col1 \- tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, + col1 - + col2 AS col0 FROM tab2 query I rowsort @@ -36322,7 +36322,7 @@ SELECT ALL 38, + col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ Int64\(\-19\) / Int64\(68\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ Int64\(\-19\) / Int64\(68\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 + - 19 / + 68 col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query II rowsort @@ -44188,7 +44188,7 @@ SELECT 68 * col1 * + col2 + - - 0 AS col2, - ( col1 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(Int64\(52\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(Int64\(52\) AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - + COUNT ( * ) ) * CAST ( 52 AS INTEGER ) AS col2, COUNT ( * ) col2 FROM tab1 query I rowsort @@ -44637,7 +44637,7 @@ SELECT MAX ( 17 ) AS col0 FROM tab0 # Datafusion - Expected - 83 # Datafusion - Expected - 96 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int32\)\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int64\)\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + ( - col2 ) AS INTEGER ) AS col2, 83 col2 FROM tab1 query I rowsort label-7343 @@ -46510,7 +46510,7 @@ SELECT - col0, - col1 * - col1 AS col0 FROM tab0 # Datafusion - Expected - -12925 # Datafusion - Expected - 38 # Datafusion - Expected - -36190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "tab1\.col1 \* Int64\(47\) \* CAST\(Int64\(\-55\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "tab1\.col1 \* Int64\(47\) \* CAST\(Int64\(\-55\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 38 col1, col1 * 47 * CAST ( - 55 AS INTEGER ) col1 FROM tab1 query II rowsort @@ -54722,7 +54722,7 @@ SELECT col1 FROM tab2 WHERE NOT + 31 / col2 IN ( + col2 - col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Types were automatically converted from: @@ -55038,7 +55038,7 @@ SELECT DISTINCT + COUNT ( * ), 46 AS col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "CAST\(\(\- \(\- tab0\.col1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "CAST\(\(\- \(\- tab0\.col1\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col0, CAST ( - - ( + col1 ) AS INTEGER ) AS col0 FROM tab0 query I rowsort label-9061 @@ -60460,7 +60460,7 @@ SELECT SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - ( + col2 ) + - + col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort label-9960 diff --git a/data/sqlite/random/aggregates/slt_good_60.slt b/data/sqlite/random/aggregates/slt_good_60.slt index f6a9685..229abb8 100644 --- a/data/sqlite/random/aggregates/slt_good_60.slt +++ b/data/sqlite/random/aggregates/slt_good_60.slt @@ -8111,7 +8111,7 @@ SELECT ALL 31 * + - 33 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-56\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-56\) / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 90 AS col0, - 56 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort label-1331 @@ -11290,7 +11290,7 @@ SELECT 33 col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(9\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(9\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 9 AS col0, 69 AS col0 FROM tab1 AS cor0 query I rowsort @@ -27093,7 +27093,7 @@ SELECT + - MIN ( 47 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2, CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -34821,7 +34821,7 @@ SELECT 80 / + col2 FROM tab0 # Datafusion - Expected - 115 # Datafusion - Expected - 714 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "tab1\.col1 \- \(\- CAST\(tab1\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "tab1\.col1 \- \(\- CAST\(tab1\.col2 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 * - - col0 AS col2, + col1 - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 query I rowsort label-5734 @@ -38077,7 +38077,7 @@ SELECT ALL COUNT ( ALL - + 58 ) col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, col1 col2 FROM tab0 AS cor0 query I rowsort @@ -40207,7 +40207,7 @@ SELECT 78 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 58 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(58\) AS Int32\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(58\) AS Int64\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + 58 AS INTEGER ) AS col0, + col2 AS col0 FROM tab1 query I rowsort label-6626 @@ -41136,7 +41136,7 @@ SELECT + 44 / - 7 + + 35 AS col1 FROM tab1 cor0 # Datafusion - Expected - -26 # Datafusion - Expected - NULL # Datafusion - Expected - -546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-82\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(26\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-82\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(26\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 * - 82 * - CAST ( NULL AS INTEGER ) AS col2, 26 * + - col1 col2 FROM tab0 cor0 query I rowsort label-6770 @@ -41165,7 +41165,7 @@ SELECT - MAX ( ALL + 89 ) AS col1 FROM tab0 # Datafusion - Expected - 380160 # Datafusion - Expected - 53 # Datafusion - Expected - 806400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(64\) \* CAST\(\(\- tab0\.col1\) AS Int32\) \* Int64\(\-60\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(64\) \* CAST\(\(\- tab0\.col1\) AS Int64\) \* Int64\(\-60\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 col2, 64 * + CAST ( - col1 AS INTEGER ) * - 60 * + col2 AS col2 FROM tab0 query I rowsort label-6774 @@ -50161,7 +50161,7 @@ SELECT DISTINCT - col0 - 68 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5720 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(65\) AS Int32\) \* Int64\(88\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(65\) AS Int64\) \* Int64\(88\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + + 65 AS INTEGER ) * + 88 AS col2, COUNT ( * ) AS col2 FROM tab1 query I rowsort @@ -55291,7 +55291,7 @@ SELECT col2 / - - col2 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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\. SELECT ALL col2 AS col0, + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -59299,7 +59299,7 @@ SELECT ALL + + 69 - - col0 * + col1 + + col0 * - - col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(62\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(62\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 - + 62 AS col0, CAST ( NULL AS INTEGER ) * + - 65 AS col0 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_61.slt b/data/sqlite/random/aggregates/slt_good_61.slt index 6eec8b8..cbea39f 100644 --- a/data/sqlite/random/aggregates/slt_good_61.slt +++ b/data/sqlite/random/aggregates/slt_good_61.slt @@ -8063,7 +8063,7 @@ SELECT DISTINCT + - 58 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 7 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-79\) AS Int32\) / \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-79\) AS Int64\) / \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 79 AS INTEGER ) / - col2 AS col0, + col1 AS col0 FROM tab0 query I rowsort @@ -8385,7 +8385,7 @@ SELECT DISTINCT - col2 - + + 55 * col1 col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ \(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ \(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 1 ) + - - col1 AS col2, - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 query III rowsort @@ -8533,7 +8533,7 @@ SELECT ALL 36 * - - 78 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(CAST\(Int64\(90\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(CAST\(Int64\(90\) AS Int64\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - COUNT ( + CAST ( 90 AS INTEGER ) ) AS col0, + 23 AS col0 FROM tab2 AS cor0 query I rowsort @@ -10228,7 +10228,7 @@ SELECT DISTINCT + - ( + - ( 44 ) ) * - 14 * + 99 * COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + col2 * + col1 + + + CAST ( NULL AS INTEGER ) col1, + col2 AS col1 FROM tab0 AS cor0 query I rowsort @@ -25955,7 +25955,7 @@ SELECT ALL + ( + 28 ) / + 63 * + SUM ( + col0 ) FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -4599 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- Int64\(\-78\)\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- Int64\(\-78\)\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 * - - 78 + - col0 AS col0, + CAST ( NULL AS INTEGER ) * + + col2 AS col0 FROM tab2 AS cor0 query I rowsort label-4259 @@ -30580,7 +30580,7 @@ SELECT 58 AS col1, + 86 * + ( + COUNT ( * ) ) FROM tab0 AS cor0 # Datafusion - Expected - -870 # Datafusion - Expected - 6 # Datafusion - Expected - -705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col0 \- Int64\(\-68\) AS col2" at position 0 and "cor0\.col0 \* CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col0 \- Int64\(\-68\) AS col2" at position 0 and "cor0\.col0 \* CAST\(\(\- cor0\.col2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 - col0 - - 68 AS col2, + col0 * + CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0 query I rowsort label-5033 @@ -31033,7 +31033,7 @@ SELECT + MAX ( ALL + col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -3080 # Datafusion - Expected - -64 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "tab2\.col2 \* \(\- CAST\(tab2\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "tab2\.col2 \* \(\- CAST\(tab2\.col1 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 64 ) AS col2, + col2 * - CAST ( + + col1 AS INTEGER ) col2 FROM tab2 query II rowsort @@ -37167,7 +37167,7 @@ SELECT ALL - + MAX ( DISTINCT ( - col0 ) ) + - + SUM ( - 17 ) FROM tab2 AS cor0 # Datafusion - Expected - -56 # Datafusion - Expected - NULL # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) \* cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \* Int64\(55\) \+ \(\- cor0\.col2\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- Int64\(56\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) \* cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \* Int64\(55\) \+ \(\- cor0\.col2\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- Int64\(56\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 * + - col0 * + col1 + - - col0 * + 55 + - col2 + + - CAST ( NULL AS INTEGER ) col0, ( - ( + 56 ) ) AS col0 FROM tab0 AS cor0 query II rowsort label-6116 @@ -37787,7 +37787,7 @@ SELECT DISTINCT - col0 + - 91 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-92\) AS Int32\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-92\) AS Int64\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( CAST ( - 92 AS INTEGER ) ) AS col1, 91 AS col1 FROM tab2 query I rowsort @@ -40006,7 +40006,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 85 - col1 + - col0 - # Datafusion - Expected - 65 # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1, col0 + + col1 AS col1 FROM tab1 AS cor0 query I rowsort label-6582 @@ -53755,7 +53755,7 @@ SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT ( col2 ) * + CAST ( NULL AS I # Datafusion - Expected - -87 # Datafusion - Expected - -90 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 90 AS col0, CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -56976,7 +56976,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL ) # Datafusion - Expected - 1013 # Datafusion - Expected - -97 # Datafusion - Expected - 993 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "CAST\(Int64\(62\) AS Int32\) \* Int64\(16\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "CAST\(Int64\(62\) AS Int64\) \* Int64\(16\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col1, CAST ( 62 AS INTEGER ) * 16 + col1 AS col1 FROM tab0 AS cor0 query III rowsort @@ -59787,7 +59787,7 @@ SELECT DISTINCT - col2 AS col2, + 2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - -575 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col2 AS Int32\)\) \* cor0\.col2 \- cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col2 AS Int64\)\) \* cor0\.col2 \- cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + + col2 AS INTEGER ) * col2 - + col0 AS col1, - col2 AS col1 FROM tab2 AS cor0 query III rowsort @@ -60352,7 +60352,7 @@ SELECT DISTINCT col1 - + + col2 AS col0 FROM tab0 cor0 34 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(Int64\(53\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(Int64\(53\) AS Int64\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 * + CAST ( + 53 AS INTEGER ) col1, - col0 * - col2 AS col1 FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) = + col1 + + col0 + - col1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_62.slt b/data/sqlite/random/aggregates/slt_good_62.slt index 6081c4f..0e7c869 100644 --- a/data/sqlite/random/aggregates/slt_good_62.slt +++ b/data/sqlite/random/aggregates/slt_good_62.slt @@ -10951,7 +10951,7 @@ SELECT + - col2, + col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 66 AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -16563,7 +16563,7 @@ SELECT * FROM tab0 AS cor0 WHERE - col2 * 56 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + - 21 AS col2, + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort label-2730 @@ -18462,7 +18462,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(51\) \* CAST\(NULL AS Int32\) \+ min\(CAST\(\(\- Int64\(18\)\) AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(51\) \* CAST\(NULL AS Int64\) \+ min\(CAST\(\(\- Int64\(18\)\) AS Int64\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col1, 51 * CAST ( NULL AS INTEGER ) + MIN ( + CAST ( - + 18 AS INTEGER ) ) - + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-3038 @@ -19883,7 +19883,7 @@ SELECT ALL - col0 + col1 AS col2, + 38 AS col1 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - 55 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 AS col0, CAST ( - + col0 AS INTEGER ) col0 FROM tab0 query III rowsort @@ -23519,7 +23519,7 @@ SELECT DISTINCT col0 + 82 + 65 / + - col1 + col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4cc901afca68f43b1f19aa7c09ac896a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab0\.col1\) AS Int32\)\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab0\.col1\) AS Int64\)\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1, col2, ( - + col1 ) col1 FROM tab0 query I rowsort @@ -24080,7 +24080,7 @@ SELECT * FROM tab1 WHERE NOT - 38 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - -34 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(34\)\) AS Int32\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(34\)\) AS Int64\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - + 34 AS INTEGER ) AS col2, + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: @@ -27956,7 +27956,7 @@ SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( + col0 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "max\(\(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "max\(\(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, + MAX ( - col1 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -36499,7 +36499,7 @@ SELECT DISTINCT + col1 + + 30 col0 FROM tab1 WHERE - col1 IN ( + 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 79 AS col0, - CAST ( NULL AS INTEGER ) + 71 AS col0 FROM tab2 query II rowsort label-5993 @@ -44460,7 +44460,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL <= + col2 * - 29 + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- CAST\(Int64\(0\) AS Int32\)\) \- Int64\(13\) \+ Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- CAST\(Int64\(0\) AS Int64\)\) \- Int64\(13\) \+ Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - CAST ( - 0 AS INTEGER ) - + 13 + - 49 AS col2 FROM tab2 AS cor0 query III rowsort @@ -45510,7 +45510,7 @@ SELECT col2 * + 83 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -296 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(80\)\) \- CAST\(Int64\(56\) AS Int32\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(80\)\) \- CAST\(Int64\(56\) AS Int64\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - ( 80 ) - + CAST ( + + 56 AS INTEGER ) AS col0, - 26 AS col0 FROM tab2 query I rowsort label-7471 @@ -51706,7 +51706,7 @@ SELECT + + 43 * - 14 + - 70 AS col0 FROM tab2 WHERE - - col2 * + col2 + + 52 IS # Datafusion - Expected - 128 # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab0\.col2 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "tab0\.col2 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 30 - - CAST ( NULL AS INTEGER ) AS col0, col2 + col1 AS col0 FROM tab0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_63.slt b/data/sqlite/random/aggregates/slt_good_63.slt index e3c8d3f..20c9f3f 100644 --- a/data/sqlite/random/aggregates/slt_good_63.slt +++ b/data/sqlite/random/aggregates/slt_good_63.slt @@ -318,7 +318,7 @@ SELECT col1 + + - 31 - - - 43 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 16 # Datafusion - Expected - 15 # Datafusion - Expected - 1746 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(15\) AS Int32\) AS col0" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col1\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(15\) AS Int64\) AS col0" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col1\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + 15 AS INTEGER ) AS col0, - col0 * - col1 - 81 AS col0 FROM tab0 AS cor0 query I rowsort @@ -1845,7 +1845,7 @@ SELECT col2 + + - col2 + 35 AS col1 FROM tab2 WHERE NULL NOT IN ( - + col1 * - + # Datafusion - Expected - 441 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* CAST\(tab0\.col1 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* CAST\(tab0\.col1 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 col2, col1 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 query I rowsort label-297 @@ -2966,7 +2966,7 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(NULL AS Int32\) \* cor0\.col1 \+ Int64\(17\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(NULL AS Int64\) \* cor0\.col1 \+ Int64\(17\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 * + CAST ( NULL AS INTEGER ) * col1 + + 17 * col2 col1, + col2 AS col1 FROM tab1 cor0 query I rowsort @@ -5803,7 +5803,7 @@ SELECT ALL + 81 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - 7314 # Datafusion - Expected - -77 # Datafusion - Expected - 6247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(96\) \* \(\- \(\- cor0\.col0\)\) \+ cor0\.col0 \+ \(\- \(\- CAST\(Int64\(30\) AS Int32\)\)\) \+ Int64\(36\) / \(\- Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(96\) \* \(\- \(\- cor0\.col0\)\) \+ cor0\.col0 \+ \(\- \(\- CAST\(Int64\(30\) AS Int64\)\)\) \+ Int64\(36\) / \(\- Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col1 AS col2, 96 * - - col0 + col0 + - - CAST ( + 30 AS INTEGER ) + 36 / - ( - 4 ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -7013,7 +7013,7 @@ SELECT DISTINCT col2 * col1 + + col0 * 10 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1121 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- max\(\(\- tab1\.col2\)\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- max\(\(\- tab1\.col2\)\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 19 * - - MAX ( ALL - + col2 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query II rowsort label-1146 @@ -18317,7 +18317,7 @@ SELECT col2 AS col1, col2 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - ( col2 ) AS col0, CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -18939,7 +18939,7 @@ SELECT + 33 * - col0 FROM tab0 # Datafusion - Expected - 13130277 # Datafusion - Expected - -77 # Datafusion - Expected - 14798736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col1\) \* tab2\.col1 \* Int64\(\-39\) \* CAST\(tab2\.col0 AS Int32\) \+ Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col1\) \* tab2\.col1 \* Int64\(\-39\) \* CAST\(tab2\.col0 AS Int64\) \+ Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 AS col0, - col1 * col1 * - 39 * CAST ( + col0 AS INTEGER ) + + - 48 col0 FROM tab2 query I rowsort @@ -19425,7 +19425,7 @@ SELECT ALL + + ( + 17 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 681 # Datafusion - Expected - -97 # Datafusion - Expected - 6535 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(Int64\(66\) AS Int32\) \* cor0\.col2 \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(Int64\(66\) AS Int64\) \* cor0\.col2 \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col0 col0, CAST ( 66 AS INTEGER ) * col2 - - col1 AS col0 FROM tab0 AS cor0 query I rowsort @@ -20817,7 +20817,7 @@ SELECT + 2 + - col2 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 571ceb966bb67f7313d37b7ac1bed20d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(10\) AS col0" at position 0 and "tab0\.col2 \* tab0\.col1 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(10\) AS col0" at position 0 and "tab0\.col2 \* tab0\.col1 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 + - CAST ( NULL AS INTEGER ) + + + 10 AS col0, col2 * + col1 + col1 AS col0, - col1 / 30 - - 28 AS col1 FROM tab0 query III rowsort @@ -21768,7 +21768,7 @@ SELECT ALL 8 + + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1402a6c1ecd2dd88d5c50583683a0102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\) \- \(\- \(\- \(\- cor0\.col0\)\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int64\) \- \(\- \(\- \(\- cor0\.col0\)\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - col0 AS INTEGER ) - - - ( - col0 ) AS col1, - col1 AS col1, - ( - 23 ) FROM tab0 cor0 query I rowsort @@ -22393,7 +22393,7 @@ SELECT ALL col0 AS col0, + col1 FROM tab2 # Datafusion - Expected - 88 # Datafusion - Expected - 233 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ CAST\(Int64\(89\) AS Int32\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ CAST\(Int64\(89\) AS Int64\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + + CAST ( + 89 AS INTEGER ) + + 45 AS col0, + 88 AS col0 FROM tab0 query I rowsort @@ -25312,7 +25312,7 @@ SELECT DISTINCT 93 / + 82 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 37 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - - 57 AS col1, + 25 + - 56 AS col1 FROM tab0 query I rowsort @@ -26476,7 +26476,7 @@ SELECT ALL 10 * + COUNT ( * ) FROM tab2 WHERE NOT ( + + col1 ) NOT IN ( 63 * + c # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(22\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(22\) AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( + 22 AS INTEGER ) AS col0, + COUNT ( * ) * + 13 AS col0 FROM tab1 AS cor0 query I rowsort label-4411 @@ -27312,7 +27312,7 @@ SELECT - 98 AS col2, + ( + col0 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab1 query II rowsort label-4554 @@ -27571,7 +27571,7 @@ SELECT MIN ( - col1 ) AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - col0 AS col2, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -27986,7 +27986,7 @@ SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + col1 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0 AS cor0 query III rowsort @@ -29154,7 +29154,7 @@ SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL >= col0 ) # Datafusion - Expected - 20 # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab0\.col2 \- \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "tab0\.col2 \- \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + col2 - - col2 AS col0 FROM tab0 query II rowsort @@ -32042,7 +32042,7 @@ SELECT - SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - col1 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query III rowsort label-5320 @@ -33732,7 +33732,7 @@ SELECT ALL - - 87 * - + 97 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) 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\. SELECT + 69 col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -35140,7 +35140,7 @@ SELECT DISTINCT COUNT ( - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 # Datafusion - Expected - -66 # Datafusion - Expected - NULL # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 \+ tab2\.col1 \+ tab2\.col0 \* \(\- Int64\(79\)\) \* tab2\.col2 \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(0\) \+ tab2\.col0 \+ Int64\(59\) AS col1" at position 0 and "Int64\(62\) / tab2\.col2 \+ \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 \+ tab2\.col1 \+ tab2\.col0 \* \(\- Int64\(79\)\) \* tab2\.col2 \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(0\) \+ tab2\.col0 \+ Int64\(59\) AS col1" at position 0 and "Int64\(62\) / tab2\.col2 \+ \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 * col0 + col1 + col0 * - ( + + 79 ) * + col2 * + - CAST ( NULL AS INTEGER ) * + - 0 + + col0 + + 59 AS col1, 62 / col2 + - col1 AS col1 FROM tab2 query III rowsort @@ -37579,7 +37579,7 @@ SELECT ALL - + col0, col1 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 76 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort label-6245 @@ -38276,7 +38276,7 @@ SELECT col0 + - - ( + col2 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, - ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 WHERE - - CAST ( + 58 AS INTEGER ) NOT BETWEEN - + 35 / + col0 + 68 AND - col0 query I rowsort @@ -49673,7 +49673,7 @@ SELECT ALL + 95 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - + col1 ) AS col1, + col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query III rowsort @@ -55792,7 +55792,7 @@ SELECT DISTINCT col0 AS col1, 9 FROM tab2 # Datafusion - Expected - 194 # Datafusion - Expected - 660 # Datafusion - Expected - 174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(66\) AS Int32\) \* tab0\.col2 AS col1" at position 0 and "CAST\(tab0\.col0 AS Int32\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(66\) AS Int64\) \* tab0\.col2 AS col1" at position 0 and "CAST\(tab0\.col0 AS Int64\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 66 AS INTEGER ) * col2 col1, CAST ( + + col0 AS INTEGER ) + + col0 col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_64.slt b/data/sqlite/random/aggregates/slt_good_64.slt index 83866f2..83ed206 100644 --- a/data/sqlite/random/aggregates/slt_good_64.slt +++ b/data/sqlite/random/aggregates/slt_good_64.slt @@ -328,7 +328,7 @@ SELECT 25 AS col0 FROM tab2 WHERE - + ( - col1 ) IN ( + col0 ) # Datafusion - Expected - 3 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 + CAST ( NULL AS INTEGER ) AS col1, 3 AS col1 FROM tab2 query I rowsort label-52 @@ -465,7 +465,7 @@ SELECT DISTINCT + - col0 AS col1, - 52 AS col1 FROM tab1 cor0 # Datafusion - Expected - -48 # Datafusion - Expected - NULL # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, - 48 AS col2 FROM tab1 AS cor0 query II rowsort @@ -8280,7 +8280,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - col2 AS INTEGER ) / ( col0 ) + # Datafusion - Expected - -1920 # Datafusion - Expected - -75 # Datafusion - Expected - -2784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col0 AS Int32\)\) AS col2" at position 0 and "Int64\(48\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col0 AS Int64\)\) AS col2" at position 0 and "Int64\(48\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + col0 AS INTEGER ) col2, + 48 * + - col2 AS col2 FROM tab2 query I rowsort @@ -13781,7 +13781,7 @@ SELECT DISTINCT 36 * - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -326250 # Datafusion - Expected - NULL # Datafusion - Expected - -48668 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(37\) \* CAST\(NULL AS Int32\) / Int64\(\-77\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(37\) \* CAST\(NULL AS Int64\) / Int64\(\-77\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col2 * 37 * + CAST ( NULL AS INTEGER ) / - 77 * col2 AS col1, ( + col2 ) * + col0 * - + col0 col1 FROM tab2 AS cor0 query II rowsort @@ -20703,7 +20703,7 @@ SELECT DISTINCT + 51 AS col0 FROM tab0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int32\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int64\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col1, col2 AS col1 FROM tab0 query II rowsort @@ -22703,7 +22703,7 @@ SELECT - ( col0 ) + - + 77 * col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 query I rowsort @@ -22739,7 +22739,7 @@ SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / SUM ( ALL + col1 ) FROM tab2 # Datafusion - Expected - 5938 # Datafusion - Expected - NULL # Datafusion - Expected - 6358 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(12\)\) AS Int32\) \+ tab1\.col0 \* \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(12\)\) AS Int64\) \+ tab1\.col0 \* \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + CAST ( NULL AS INTEGER ) ) col1, CAST ( - + 12 AS INTEGER ) + + + col0 * - - 70 AS col1 FROM tab1 query I rowsort @@ -27462,7 +27462,7 @@ SELECT + col2 * - col0 col0 FROM tab1 WHERE NOT ( NOT CAST ( - + CAST ( col1 AS # Datafusion - Expected - -315 # Datafusion - Expected - NULL # Datafusion - Expected - -882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-63\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-63\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 63 * + + col1 AS col2 FROM tab1 query I rowsort label-4516 @@ -28322,7 +28322,7 @@ SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 195 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col1\)\)\) AS col2" at position 0 and "Int64\(77\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col1\)\)\) AS col2" at position 0 and "Int64\(77\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( ALL - col1 ) AS col2, 77 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -30025,7 +30025,7 @@ SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 14 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(77\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(77\) \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 47 col1, + 77 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-4950 @@ -33090,7 +33090,7 @@ SELECT * FROM tab1 WHERE NOT ( + col0 ) = col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 query I rowsort label-5453 @@ -33369,7 +33369,7 @@ SELECT ALL - 28 * col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) / tab2\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) / tab2\.col0 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 / + col0 col2, ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 query I rowsort label-5496 @@ -33634,7 +33634,7 @@ SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + - 22 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab1\.col2\) AS col2" at position 0 and "CAST\(Int64\(61\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab1\.col2\) AS col2" at position 0 and "CAST\(Int64\(61\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( + + col2 ) AS col2, + CAST ( + 61 AS INTEGER ) AS col2 FROM tab1 query I rowsort label-5538 @@ -34213,7 +34213,7 @@ SELECT + 82 + + 71 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col1" at position 0 and "CAST\(Int64\(\-64\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col1" at position 0 and "CAST\(Int64\(\-64\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 91 col1, CAST ( + ( - 64 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 query II rowsort label-5625 @@ -36504,7 +36504,7 @@ SELECT ALL * FROM tab2 cor0 WHERE ( col2 * - col1 + CAST ( NULL AS INTEGER ) ) I # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- Int64\(2\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- Int64\(2\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + SUM ( DISTINCT - + 2 ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort label-6003 @@ -37878,7 +37878,7 @@ SELECT ALL + 73 + - col2 * - col1 FROM tab1 AS cor0 # Datafusion - Expected - 4096 # Datafusion - Expected - -58 # Datafusion - Expected - 5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 0 and "cor0\.col0 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int64\) AS col1" at position 0 and "cor0\.col0 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - col2 AS INTEGER ) AS col1, col0 * + col0 AS col1 FROM tab2 AS cor0 query II rowsort @@ -40739,7 +40739,7 @@ SELECT DISTINCT + 41 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 91 AS col1 FROM tab0 AS cor0 query II rowsort label-6696 @@ -45112,7 +45112,7 @@ SELECT COUNT ( * ), 53 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(40\) \+ tab2\.col1 \+ tab2\.col2 / Int64\(44\) \* \(\- tab2\.col0\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(40\) \+ tab2\.col1 \+ tab2\.col2 / Int64\(44\) \* \(\- tab2\.col0\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 AS col2, + 40 + col1 + + + ( col2 ) / + + 44 * - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query I rowsort label-7420 @@ -46904,7 +46904,7 @@ SELECT ALL 11 col2 FROM tab1 # Datafusion - Expected - -1743 # Datafusion - Expected - 7348 # Datafusion - Expected - -6723 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(90\) \* cor0\.col1 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \* Int64\(\-82\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(90\) \* cor0\.col1 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) \* Int64\(\-82\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 58 + 90 * + col1 col1, - CAST ( + - ( + col1 ) AS INTEGER ) * - 82 + - + ( + col1 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -48463,7 +48463,7 @@ SELECT DISTINCT - 96 + - col2 AS col2, col0 * - 45 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- \(\- tab0\.col1\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- \(\- tab0\.col1\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( DISTINCT - - col1 ) + COUNT ( * ) AS col2, + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 query I rowsort label-7972 @@ -56123,7 +56123,7 @@ SELECT 76 * - col1 * + + col2, col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) 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\. SELECT DISTINCT - 66 AS col0, + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 query I rowsort label-9224 @@ -57499,7 +57499,7 @@ SELECT DISTINCT ( - 69 ) col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 89 col1, - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-9448 @@ -59099,7 +59099,7 @@ SELECT - COUNT ( ALL - - 98 ) AS col1 FROM tab2 WHERE NULL <> - CAST ( NULL AS I # Datafusion - Expected - NULL # Datafusion - Expected - 303555 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- Int64\(\-95\)\) \* tab1\.col2 \+ Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- Int64\(\-95\)\) \* tab1\.col2 \+ Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 * - ( - 95 ) * col2 + - 65 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query I rowsort @@ -60114,7 +60114,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 IS NULL AND + col0 = - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 707f860dfc4fe7764dbb5046cf75caa1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int32\) AS col0" at position 1 and "Int64\(72\) / \(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int64\) AS col0" at position 1 and "Int64\(72\) / \(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 + + 57, CAST ( 86 AS INTEGER ) AS col0, 72 / - + col2 AS col0 FROM tab2 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_65.slt b/data/sqlite/random/aggregates/slt_good_65.slt index d18f8f0..46deac3 100644 --- a/data/sqlite/random/aggregates/slt_good_65.slt +++ b/data/sqlite/random/aggregates/slt_good_65.slt @@ -1172,7 +1172,7 @@ SELECT DISTINCT * FROM tab1 WHERE 68 * - + col0 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1 AS col2, CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -6224,7 +6224,7 @@ SELECT ALL - ( + 63 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -5889 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- tab2\.col1 \* CAST\(tab2\.col1 AS Int32\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- tab2\.col1 \* CAST\(tab2\.col1 AS Int64\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 - + col1 * + + CAST ( col1 AS INTEGER ) AS col0, col1 col0 FROM tab2 query I rowsort @@ -10819,7 +10819,7 @@ SELECT 52 col0, + ( + - col0 ) FROM tab2 WHERE NOT col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- min\(DISTINCT \(\- tab1\.col2\)\)\) AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- min\(DISTINCT \(\- tab1\.col2\)\)\) AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - MIN ( DISTINCT - col2 ) AS INTEGER ) AS col1, - COUNT ( * ) col1 FROM tab1 query I rowsort @@ -12838,7 +12838,7 @@ SELECT + - col0 + + + 97 / + + col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query I rowsort @@ -15076,7 +15076,7 @@ SELECT + + ( - COUNT ( * ) ) FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 AS col1, + col1 - - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 query I rowsort @@ -16159,7 +16159,7 @@ NULL # Datafusion - Expected - -38 # Datafusion - Expected - 75 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int32\) \+ \(\- Int64\(\-26\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int64\) \+ \(\- Int64\(\-26\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 AS col2, CAST ( - col0 AS INTEGER ) + - - 26 AS col2 FROM tab2 # Datafusion - Datafusion expected results: @@ -26004,7 +26004,7 @@ SELECT DISTINCT - MIN ( DISTINCT - - ( - col0 ) ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(NULL AS Int32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(NULL AS Int64\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 * + + CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab1 query I rowsort @@ -36891,7 +36891,7 @@ SELECT + - col2 FROM tab1 WHERE NOT + - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2 query II rowsort @@ -37980,7 +37980,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, 66 AS col0 FROM tab2 AS cor0 query I rowsort @@ -48256,7 +48256,7 @@ SELECT + - 56 col0 FROM tab0 WHERE ( ( NULL ) IS NOT NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int32\) \* \(\- \(\- tab2\.col1\)\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int64\) \* \(\- \(\- tab2\.col1\)\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) * - ( - col1 ) AS col2, + col1 AS col2 FROM tab2 query II rowsort label-8032 @@ -51887,7 +51887,7 @@ SELECT DISTINCT col0 + ( - col0 ) + - 5 AS col0, 35 FROM tab2 # Datafusion - Expected - 3560 # Datafusion - Expected - NULL # Datafusion - Expected - 5162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-89\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-89\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, - 89 * + - col2 AS col2 FROM tab2 query I rowsort label-8628 @@ -57138,7 +57138,7 @@ SELECT ALL + 11 * - col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 18 AS col0, CAST ( NULL AS INTEGER ) * 4 AS col0 FROM tab0 cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_66.slt b/data/sqlite/random/aggregates/slt_good_66.slt index 9ed1508..7d70733 100644 --- a/data/sqlite/random/aggregates/slt_good_66.slt +++ b/data/sqlite/random/aggregates/slt_good_66.slt @@ -2266,7 +2266,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + col0 IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - -260 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \* CAST\(cor0\.col2 AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \* CAST\(cor0\.col2 AS Int64\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 26 * CAST ( + + col2 AS INTEGER ) col2, + ( + ( + ( col1 ) ) ) AS col2 FROM tab0 AS cor0 query I rowsort label-364 @@ -7564,7 +7564,7 @@ SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT NULL > - + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- \(\- tab2\.col0\)\)\) \* \(\- avg\(DISTINCT CAST\(NULL AS Int32\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- \(\- tab2\.col0\)\)\) \* \(\- avg\(DISTINCT CAST\(NULL AS Int64\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - - col0 ) * - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col0, - 38 AS col0 FROM tab2 query I rowsort label-1239 @@ -19917,7 +19917,7 @@ SELECT + 15 - 66 - + 34 * - - col1 + - 55 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6f25ae07739ef764cfbc373b1dfda5ec -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col1 * + - CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2, - 69 FROM tab0 AS cor0 query I rowsort @@ -20462,7 +20462,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 42 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, + col2 AS col1 FROM tab0 AS cor0 query I rowsort label-3383 @@ -23298,7 +23298,7 @@ SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( ALL + + col1 ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort label-3849 @@ -28486,7 +28486,7 @@ SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AN ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int64\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - + col0 AS INTEGER ) AS col0, 68 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL query I rowsort @@ -33963,7 +33963,7 @@ SELECT DISTINCT - + MIN ( - + col0 ) col2, - 6 AS col1 FROM tab0 AS cor0 -6 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col1, col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + - col0 ) ) query III rowsort @@ -40228,7 +40228,7 @@ SELECT ALL - col0 + - col1 * col0 AS col0 FROM tab2 AS cor0 WHERE + col1 + col2 # Datafusion - Expected - 240 # Datafusion - Expected - NULL # Datafusion - Expected - 348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(6\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(6\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( NULL AS INTEGER ) AS col1, 6 * col2 AS col1 FROM tab2 AS cor0 query II rowsort @@ -43293,7 +43293,7 @@ SELECT - ( MIN ( + 30 ) ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int64\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( col0 AS INTEGER ) AS col1, col0 AS col1 FROM tab2 AS cor0 query II rowsort @@ -49102,7 +49102,7 @@ SELECT - col2, - col1 col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \* \(\- CAST\(CAST\(NULL AS Float64\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \* \(\- CAST\(CAST\(NULL AS Float64\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col2, col0 * - CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col2 FROM tab0 query I rowsort label-8145 @@ -50612,7 +50612,7 @@ SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 70 + - col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5b41ace4572e9be4775153719d3ea5db -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \- \(\- cor0\.col0\) / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(NULL AS Int64\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \- \(\- cor0\.col0\) / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS FLOAT8 ) - - col0 / + col0 AS col0, + - col1 FROM tab2 AS cor0 query III rowsort @@ -50857,7 +50857,7 @@ SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 62 IS NOT NUL # Datafusion - Expected - 125 # Datafusion - Expected - -77 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \- \(\- CAST\(cor0\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \- \(\- CAST\(cor0\.col2 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 col2, + col1 - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -53353,7 +53353,7 @@ SELECT ALL col2 + + col0 + col1 * + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(49\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(49\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col0, 49 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_67.slt b/data/sqlite/random/aggregates/slt_good_67.slt index 4ab1e5a..ccc7771 100644 --- a/data/sqlite/random/aggregates/slt_good_67.slt +++ b/data/sqlite/random/aggregates/slt_good_67.slt @@ -1410,7 +1410,7 @@ SELECT col2 * col0, - col0 / ( col1 ) AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 + + col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 # Datafusion - Types were automatically converted from: @@ -1999,7 +1999,7 @@ SELECT + - MIN ( - - col2 ) / - 28 + + 89 AS col0 FROM tab2 cor0 # Datafusion - Expected - -536 # Datafusion - Expected - NULL # Datafusion - Expected - -795 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-14\) \* cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-14\) \* cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * col2 AS col1, col0 + - 14 * col2 + - col2 AS col1 FROM tab2 AS cor0 query III rowsort @@ -5005,7 +5005,7 @@ SELECT DISTINCT - ( - + CAST ( + + 77 AS INTEGER ) ) + col1 + - col1, col1 AS co # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, + col0 AS col2 FROM tab0 query I rowsort label-808 @@ -5489,7 +5489,7 @@ SELECT ALL SUM ( + 56 ) AS col0 FROM tab1, tab0 AS cor0 504 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(Int64\(38\) AS Int32\) AS col0" at position 0 and "Int64\(31\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(Int64\(38\) AS Int64\) AS col0" at position 0 and "Int64\(31\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 * CAST ( + + 38 AS INTEGER ) AS col0, 31 * + 97 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL query I rowsort label-890 @@ -5554,7 +5554,7 @@ SELECT - 84 * - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f3c7279959419d7da689d3aa3d10b1ed -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) AS col1" at position 1 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int64\) AS col1" at position 1 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col1, + CAST ( 46 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 query I rowsort @@ -6589,7 +6589,7 @@ SELECT DISTINCT 62 + - col1 AS col0 FROM tab0 WHERE NOT ( + col0 + + col2 ) <= N # Datafusion - Expected - NULL # Datafusion - Expected - -6992 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(87\)\) \- \(\- Int64\(55\)\) AS col2" at position 0 and "cor0\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(87\)\) \- \(\- Int64\(55\)\) AS col2" at position 0 and "cor0\.col1 \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1 * - + 87 - - + 55 AS col2, + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 query I rowsort label-1077 @@ -10635,7 +10635,7 @@ SELECT ALL - col1 FROM tab0 cor0 WHERE NOT col1 * - col0 * 68 * - 12 + 85 / + - # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 AS col1, CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab0 cor0 query I rowsort @@ -14392,7 +14392,7 @@ SELECT 1 * + 51 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- CAST\(Int64\(45\) AS Int32\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- CAST\(Int64\(45\) AS Int64\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 18 + - CAST ( + 45 AS INTEGER ) AS col1, 28 AS col1 FROM tab1 AS cor0 query I rowsort label-2356 @@ -14799,7 +14799,7 @@ SELECT DISTINCT - 88 AS col2, - 10 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) 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\. SELECT COUNT ( * ) + + 36 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 query I rowsort @@ -16318,7 +16318,7 @@ SELECT DISTINCT + SUM ( ALL - + 94 ) col2 FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -81 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int32\) \+ \(\- cor0\.col0\) \+ Int64\(36\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int64\) \+ \(\- cor0\.col0\) \+ Int64\(36\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + ( - 66 ) AS INTEGER ) + - col0 + 36 col0, col2 AS col0 FROM tab1 AS cor0 query I rowsort label-2675 @@ -17735,7 +17735,7 @@ SELECT DISTINCT + - ( + + 96 ) AS col0 FROM tab2, tab0 AS cor0 WHERE - 31 >= + 6 # Datafusion - Expected - 97 # Datafusion - Expected - -441 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(Int64\(\-21\) AS Int32\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(Int64\(\-21\) AS Int64\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 * + CAST ( - 21 AS INTEGER ) AS col2, col0 AS col2 FROM tab0 query I rowsort @@ -25944,7 +25944,7 @@ SELECT ALL + + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -196 # Datafusion - Expected - 74 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / cor0\.col1 \+ CAST\(Int64\(67\) AS Int32\) AS col0" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / cor0\.col1 \+ CAST\(Int64\(67\) AS Int64\) AS col0" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 / + col1 + CAST ( + 67 AS INTEGER ) AS col0, - col1 * + col1 AS col0 FROM tab1 cor0 WHERE NOT ( NOT col0 < + col0 - + + 5 + + - col1 + col0 ) query III rowsort label-4254 @@ -26940,7 +26940,7 @@ SELECT ALL + col0 + - 95 + - col1 * + 17 AS col0 FROM tab2 WHERE NOT NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- \(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- \(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * - - CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab1 query I rowsort label-4419 @@ -29299,7 +29299,7 @@ SELECT ALL * FROM tab1 WHERE NOT - - col2 * + col0 - - col1 IS NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, - 81 AS col2 FROM tab0 query I rowsort label-4795 @@ -31396,7 +31396,7 @@ SELECT ALL + col1, + 96 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col0 col1, + col2 / + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -34947,7 +34947,7 @@ SELECT ALL 52 / - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 32 # Datafusion - Expected - -5 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-32\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-32\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col1 AS col1, - CAST ( - 32 AS INTEGER ) AS col1 FROM tab1 cor0 query I rowsort label-5725 @@ -38448,7 +38448,7 @@ SELECT COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 2 * - col0 AS col0, CAST ( NULL AS INTEGER ) * + + col1 AS col0 FROM tab0 AS cor0 query I rowsort label-6313 @@ -41871,7 +41871,7 @@ SELECT ALL col2 / + - col2 + - + col0 * - 75 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 col0, CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1 query II rowsort @@ -42516,7 +42516,7 @@ SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 # Datafusion - Expected - 7776 # Datafusion - Expected - -62 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(62\) AS Int32\)\) AS col2" at position 0 and "tab0\.col1 \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(62\) AS Int64\)\) AS col2" at position 0 and "tab0\.col1 \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 62 AS INTEGER ) AS col2, col1 * 96 AS col2 FROM tab0 query I rowsort @@ -43062,7 +43062,7 @@ SELECT + 1 + + COUNT ( * ) FROM tab2 # Datafusion - Expected - 332 # Datafusion - Expected - NULL # Datafusion - Expected - 6392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-88\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-88\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 89 + + CAST ( NULL AS INTEGER ) col1, - col1 + - 88 + - col1 * - col1 AS col1 FROM tab0 AS cor0 query I rowsort label-7077 @@ -43104,7 +43104,7 @@ SELECT DISTINCT 53 / COUNT ( * ) * - - COUNT ( * ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -54833,7 +54833,7 @@ SELECT ALL 93 - col1 FROM tab0 # Datafusion - Expected - 62 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(28\) AS col2" at position 0 and "tab0\.col2 \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(28\) AS col2" at position 0 and "tab0\.col2 \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * 28 AS col2, + col2 + col0 col2 FROM tab0 query I rowsort @@ -55053,7 +55053,7 @@ SELECT ( + 42 ) FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 28 # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(21\) AS col1" at position 0 and "tab1\.col1 \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(21\) AS col1" at position 0 and "tab1\.col1 \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * ( 21 ) AS col1, col1 + col1 AS col1 FROM tab1 query I rowsort label-9072 @@ -58788,7 +58788,7 @@ SELECT - 28 / + - 67 AS col1, col2 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-56\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-56\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + - 56 AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/aggregates/slt_good_68.slt b/data/sqlite/random/aggregates/slt_good_68.slt index b011449..93ed387 100644 --- a/data/sqlite/random/aggregates/slt_good_68.slt +++ b/data/sqlite/random/aggregates/slt_good_68.slt @@ -4708,7 +4708,7 @@ SELECT ALL - - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e7eac5da675577c17cdd4bcec7409442 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(14\) \* \(\- cor0\.col2\) / cor0\.col2 \+ cor0\.col0 \+ cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col1\) \+ Int64\(26\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-73\) \* \(\- Int64\(\-41\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(14\) \* \(\- cor0\.col2\) / cor0\.col2 \+ cor0\.col0 \+ cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col1\) \+ Int64\(26\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(\-73\) \* \(\- Int64\(\-41\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col0 * 14 * - col2 / + col2 + col0 + col1 * + col2 * - col1 + + 26 * - - CAST ( NULL AS INTEGER ) AS col2, col2 AS col2, + - 73 * - - 41 AS col2 FROM tab1 AS cor0 query III rowsort @@ -9860,7 +9860,7 @@ SELECT ALL + SUM ( + 46 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col2\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - col0 + + - col2 + CAST ( NULL AS INTEGER ) AS col0, + 9 col0 FROM tab2 AS cor0 query II rowsort @@ -10268,7 +10268,7 @@ SELECT DISTINCT 1 * 87 AS col1 FROM tab1 # Datafusion - Expected - 870 # Datafusion - Expected - NULL # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col0\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- tab0\.col0\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, - col0 * - col2 col0 FROM tab0 query I rowsort label-1692 @@ -10449,7 +10449,7 @@ SELECT col0 * 52 * + + 15 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(92\) \+ \(\- Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(92\) \+ \(\- Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2, 92 + - ( + + 16 ) AS col2 FROM tab1 query III rowsort @@ -13438,7 +13438,7 @@ SELECT - col1 / - 97 * - 85 FROM tab1 AS cor0 WHERE NOT - 67 NOT BETWEEN + 50 * # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-92\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(\-92\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - - 92 AS col1, col0 AS col1 FROM tab2 AS cor0 query I rowsort label-2220 @@ -18548,7 +18548,7 @@ SELECT DISTINCT + col1 * + 23 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- \(\- tab1\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- \(\- \(\- tab1\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - ( - - col0 ) AS col1 FROM tab1 query I rowsort @@ -20754,7 +20754,7 @@ SELECT - CAST ( - - 41 AS INTEGER ) * - CAST ( + col0 AS INTEGER ) FROM tab0 cor # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * - + 3 AS col0 FROM tab1 AS cor0 query I rowsort label-3437 @@ -24355,7 +24355,7 @@ SELECT - ( - SUM ( ALL + col0 ) ) FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ CAST\(tab2\.col2 AS Int32\) \* tab2\.col2 \+ Int64\(94\) AS col0" at position 0 and "tab2\.col1 \+ \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ CAST\(tab2\.col2 AS Int64\) \* tab2\.col2 \+ Int64\(94\) AS col0" at position 0 and "tab2\.col1 \+ \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS FLOAT8 ) + CAST ( col2 AS INTEGER ) * col2 + 94 AS col0, col1 + - ( + 88 ) AS col0 FROM tab2 query I rowsort @@ -31940,7 +31940,7 @@ SELECT 86 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 2002 # Datafusion - Expected - 96 # Datafusion - Expected - 1122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) \* Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\) \* Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 col1, + CAST ( - col0 AS INTEGER ) * + - 22 AS col1 FROM tab1 AS cor0 query III rowsort @@ -36242,7 +36242,7 @@ SELECT + 91 + + - col1 * + 62 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int32\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int64\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( col2 AS INTEGER ) AS col2, - col2 AS col2 FROM tab1 query I rowsort @@ -41939,7 +41939,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(27\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(27\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 76 AS col2, col1 + + 27 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 query I rowsort label-6926 @@ -45586,7 +45586,7 @@ SELECT DISTINCT + - 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) / tab1\.col1 \+ CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) / tab1\.col1 \+ CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 96 / + col1 + CAST ( NULL AS FLOAT8 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -48242,7 +48242,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -9603 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- \(\- tab0\.col1\)\) \* \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col2 \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- \(\- tab0\.col1\)\) \* \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col2 \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 * - - col1 * - col2 col2, col2 * - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0 query III rowsort @@ -54289,7 +54289,7 @@ SELECT col1 / - col1 + - col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(82\)\) \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(82\)\) \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 54 * + CAST ( NULL AS INTEGER ) AS col2, + col1 + - + 82 - - col2 col2 FROM tab1 AS cor0 query I rowsort @@ -54572,7 +54572,7 @@ SELECT - + ( - 90 ), col0 FROM tab1 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col1\)\) AS Int64\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - - col1 AS INTEGER ) AS col2, ( - col0 ) AS col2 FROM tab0 cor0 query I rowsort @@ -56184,7 +56184,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col1 AS col0" at position 0 and "tab1\.col1 / tab1\.col0 \* Int64\(1\) \* CAST\(NULL AS Int32\) \- tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col1 AS col0" at position 0 and "tab1\.col1 / tab1\.col0 \* Int64\(1\) \* CAST\(NULL AS Int64\) \- tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col1 + + + col1 AS col0, + col1 / + ( col0 ) * + 1 * + CAST ( NULL AS INTEGER ) - + col0 col0 FROM tab1 query I rowsort @@ -56386,7 +56386,7 @@ SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT col1 ) FROM tab1 # Datafusion - Expected - 7225 # Datafusion - Expected - 26 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "CAST\(tab1\.col0 AS Int32\) \* CAST\(\(\- \(\- tab1\.col0\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "CAST\(tab1\.col0 AS Int64\) \* CAST\(\(\- \(\- tab1\.col0\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 col0, CAST ( + col0 AS INTEGER ) * + CAST ( - - col0 AS INTEGER ) col0 FROM tab1 query I rowsort label-9298 @@ -56800,7 +56800,7 @@ NULL # Datafusion - Expected - 563584 # Datafusion - Expected - NULL # Datafusion - Expected - 645952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / \(\- tab1\.col1\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) \- tab1\.col1 AS col0" at position 0 and "Int64\(34\) \+ tab1\.col0 \* Int64\(\-78\) \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / \(\- tab1\.col1\) \* CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\) \- tab1\.col1 AS col0" at position 0 and "Int64\(34\) \+ tab1\.col0 \* Int64\(\-78\) \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 / + - col1 * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) - col1 AS col0, 34 + col0 * + - 78 * + - col0 AS col0 FROM tab1 query I rowsort @@ -58737,7 +58737,7 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + col0 ) # Datafusion - Expected - 25 # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 \+ cor0\.col2 \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(36\) \+ Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* cor0\.col1 \+ cor0\.col2 \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(36\) \+ Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + col2 * CAST ( NULL AS INTEGER ) AS col1, 36 + - 11 AS col1 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_69.slt b/data/sqlite/random/aggregates/slt_good_69.slt index b7a6173..dd46073 100644 --- a/data/sqlite/random/aggregates/slt_good_69.slt +++ b/data/sqlite/random/aggregates/slt_good_69.slt @@ -9201,7 +9201,7 @@ SELECT COUNT ( - 68 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) * + 83 col2 FROM tab0 AS cor0 query I rowsort @@ -13633,7 +13633,7 @@ SELECT - ( - 85 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \+ CAST\(NULL AS Int32\) \* cor0\.col1 \+ Int64\(99\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \+ CAST\(NULL AS Int64\) \* cor0\.col1 \+ Int64\(99\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col2 AS col0, col2 + + + CAST ( NULL AS INTEGER ) * + col1 + + + 99 * + col2 AS col0 FROM tab0 AS cor0 query I rowsort label-2250 @@ -17537,7 +17537,7 @@ SELECT ALL * FROM tab0 WHERE NOT NULL = - - 41 # Datafusion - Expected - 93 # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab1\.col2 AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* tab1\.col2 AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col2, 93 AS col2 FROM tab1 query I rowsort label-2892 @@ -20398,7 +20398,7 @@ SELECT + 3 * + 93 - - 8 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(\-46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(\-46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + - SUM ( - 46 ) AS col1 FROM tab2 query I rowsort label-3355 @@ -24527,7 +24527,7 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - 19 IS NOT NULL # Datafusion - Expected - 33 # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, + 33 col2 FROM tab0 query III rowsort @@ -29834,7 +29834,7 @@ SELECT ALL + ( - ( - COUNT ( * ) ) ) FROM tab0 AS cor0 # Datafusion - Expected - -134 # Datafusion - Expected - -5634 # Datafusion - Expected - -154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col1 \* CAST\(Int64\(74\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col1 \* CAST\(Int64\(74\) AS Int64\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 - col1 * ( + ( CAST ( + 74 AS INTEGER ) ) ) AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0 query I rowsort label-4914 @@ -31175,7 +31175,7 @@ SELECT DISTINCT 11 + + col1 - + col2 * + col2 * 1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col1" at position 0 and "CAST\(Int64\(98\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col1" at position 0 and "CAST\(Int64\(98\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 15 col1, CAST ( 98 AS INTEGER ) AS col1 FROM tab2 query III rowsort @@ -40857,7 +40857,7 @@ SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL # Datafusion - Expected - NULL # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 9 AS col1, col2 + - ( + CAST ( NULL AS INTEGER ) ) * - + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -41491,7 +41491,7 @@ SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 WH # Datafusion - Expected - -1 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- tab1\.col1\) \+ \(\- Int64\(57\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "tab1\.col2 / \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- tab1\.col1\) \+ \(\- Int64\(57\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "tab1\.col2 / \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) + - col1 + - + 57 * - + CAST ( NULL AS INTEGER ) AS col2, col2 / - col2 AS col2 FROM tab1 query I rowsort label-6835 @@ -46009,7 +46009,7 @@ SELECT DISTINCT + ( + - 89 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(1\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(1\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + 1 AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort label-7588 @@ -52736,7 +52736,7 @@ SELECT ALL 37 AS col0 FROM tab1 cor0 WHERE + ( col1 ) IN ( - + col2 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) 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\. SELECT + col2 * - col0 + - - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL query III rowsort @@ -60390,7 +60390,7 @@ SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col0 AS Int32\)\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col0 AS Int64\)\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + col0 AS INTEGER ) AS col0, - col0 col0 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_7.slt b/data/sqlite/random/aggregates/slt_good_7.slt index 32722be..d49d15d 100644 --- a/data/sqlite/random/aggregates/slt_good_7.slt +++ b/data/sqlite/random/aggregates/slt_good_7.slt @@ -3452,7 +3452,7 @@ SELECT + 36 / + + ( col2 ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "max\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col0, MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 query I rowsort label-547 @@ -6318,7 +6318,7 @@ SELECT ALL + 81 * - - 77 AS col1 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 8 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "CAST\(\(\- tab0\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "CAST\(\(\- tab0\.col2\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 AS col0, CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL ) query I rowsort label-1016 @@ -11260,7 +11260,7 @@ SELECT + + col2 * - + 12 - col1 FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int64\)\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 * - CAST ( NULL AS INTEGER ) * + col2 AS col1, - col0 AS col1 FROM tab1 AS cor0 query I rowsort label-1836 @@ -17136,7 +17136,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-90\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-90\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, - CAST ( - 90 AS INTEGER ) AS col0 FROM tab2 query II rowsort @@ -20627,7 +20627,7 @@ SELECT - + SUM ( + col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab2 cor0 query I rowsort @@ -21769,7 +21769,7 @@ SELECT DISTINCT * FROM tab1 WHERE NULL >= NULL OR NULL IS NOT NULL # Datafusion - Expected - 387187 # Datafusion - Expected - NULL # Datafusion - Expected - 94170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col1 AS col0" at position 0 and "Int64\(89\) \* tab2\.col2 \* tab2\.col0 \+ tab2\.col0 \- Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* tab2\.col1 AS col0" at position 0 and "Int64\(89\) \* tab2\.col2 \* tab2\.col0 \+ tab2\.col0 \- Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col0, 89 * + col2 * + col0 + col0 - 38 AS col0 FROM tab2 query I rowsort @@ -25365,7 +25365,7 @@ SELECT * FROM tab0 WHERE NOT ( + col0 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* CAST\(NULL AS Int32\) / sum\(DISTINCT \(\- cor0\.col1\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* CAST\(NULL AS Int64\) / sum\(DISTINCT \(\- cor0\.col1\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 3 * + CAST ( NULL AS INTEGER ) / SUM ( DISTINCT - col1 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 query II rowsort @@ -29586,7 +29586,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 7019 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* tab2\.col0 \- tab2\.col1 \* \(\- tab2\.col0\) \+ tab2\.col1 \+ \(\- Int64\(23\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* tab2\.col0 \- tab2\.col1 \* \(\- tab2\.col0\) \+ tab2\.col1 \+ \(\- Int64\(23\)\) 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\. SELECT DISTINCT 26 * col0 - + col1 * - col0 + col1 + - + 23 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab2 query I rowsort label-4825 @@ -29866,7 +29866,7 @@ SELECT ALL - - 58 + - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -295 # Datafusion - Expected - NULL # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(31\) AS col2" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(31\) AS col2" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + 31 AS col2, - col1 * + col2 AS col2 FROM tab1 AS cor0 query I rowsort @@ -33480,7 +33480,7 @@ SELECT DISTINCT + 43 / 16 FROM tab0 AS cor0 2 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) AS col2" at position 0 and "Int64\(77\) \+ Int64\(\-62\) \- \(\- CAST\(NULL AS Float64\)\) \- \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int64\) AS col2" at position 0 and "Int64\(77\) \+ Int64\(\-62\) \- \(\- CAST\(NULL AS Float64\)\) \- \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - + col1 AS INTEGER ) col2, + 77 + - 62 - - CAST ( NULL AS FLOAT8 ) - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + 28 query I rowsort label-5449 @@ -37343,7 +37343,7 @@ SELECT ALL + ( + 60 ) * - col0 AS col2 FROM tab2 # Datafusion - Expected - 83 # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col1, 83 AS col1 FROM tab1 query I rowsort label-6100 @@ -38391,7 +38391,7 @@ SELECT - col1 + + col1 + 91 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + + 33 AS col0 FROM tab0 WHERE NOT + col0 IS NULL query I rowsort @@ -44263,7 +44263,7 @@ SELECT ALL 81 + + 31 AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "CAST\(tab1\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "CAST\(tab1\.col1 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 AS col0, CAST ( col1 AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -44333,7 +44333,7 @@ SELECT DISTINCT + - ( - - col1 ) FROM tab0 AS cor0 # Datafusion - Expected - 174 # Datafusion - Expected - -97 # Datafusion - Expected - 174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(\-81\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(86\) \+ Int64\(74\) \+ CAST\(\(\- Int64\(\-14\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(\-81\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(86\) \+ Int64\(74\) \+ CAST\(\(\- Int64\(\-14\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 / - 81 + - col2 col0, + 86 + + 74 + + CAST ( - - 14 AS INTEGER ) AS col0 FROM tab1 cor0 query I rowsort label-7245 @@ -51180,7 +51180,7 @@ SELECT ALL CAST ( col2 AS INTEGER ) FROM tab1 cor0 WHERE + ( col2 ) * - col2 + C # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - col1 col2, CAST ( + ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort label-8382 @@ -57348,7 +57348,7 @@ SELECT * FROM tab1 WHERE - - col2 * - - col1 IS NULL # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, - col0 AS col2 FROM tab2 query I rowsort label-9396 @@ -57885,7 +57885,7 @@ SELECT * FROM tab2 AS cor0 WHERE + col1 + col2 * - 96 * - col1 >= NULL # Datafusion - Expected - 25 # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(50\) \+ \(\- cor0\.col2\) \* \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(50\) \+ \(\- cor0\.col2\) \* \(\- \(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 + 50 + - col2 * - - ( - CAST ( NULL AS INTEGER ) ) AS col1, 25 AS col1 FROM tab0 AS cor0 query I rowsort label-9487 @@ -60209,7 +60209,7 @@ SELECT DISTINCT + col1 AS col2, 26 FROM tab2 AS cor0 # Datafusion - Expected - 148 # Datafusion - Expected - 96 # Datafusion - Expected - 176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(80\) \- CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(80\) \- CAST\(\(\- cor0\.col2\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col2 col1, + 80 - + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-9862 diff --git a/data/sqlite/random/aggregates/slt_good_70.slt b/data/sqlite/random/aggregates/slt_good_70.slt index 14c8ece..6b7d510 100644 --- a/data/sqlite/random/aggregates/slt_good_70.slt +++ b/data/sqlite/random/aggregates/slt_good_70.slt @@ -266,7 +266,7 @@ SELECT - 97 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(cor0\.col2 AS Int32\)\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(cor0\.col2 AS Int64\)\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( CAST ( + col2 AS INTEGER ) ) AS col0, + 53 + - 77 AS col0 FROM tab0 AS cor0 query I rowsort @@ -1238,7 +1238,7 @@ SELECT ALL col2 - 31 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col1" at position 0 and "count\(\(\- \(\- cor0\.col0\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col1" at position 0 and "count\(\(\- \(\- cor0\.col0\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( - 55 ) col1, + COUNT ( ALL - - col0 ) * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 33 AS col1 FROM tab1 AS cor0 query III rowsort @@ -6277,7 +6277,7 @@ SELECT DISTINCT 26 + 51 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "tab0\.col2 \* \(\- tab0\.col2\) \* CAST\(NULL AS Int32\) \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "tab0\.col2 \* \(\- tab0\.col2\) \* CAST\(NULL AS Int64\) \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 46 AS col1, col2 * + - col2 * CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 query III rowsort @@ -11225,7 +11225,7 @@ SELECT - col1 * ( col0 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 col1, MIN ( - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -12487,7 +12487,7 @@ SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- \(\- tab0\.col0\) \+ \(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \- \(\- tab0\.col0\) \+ \(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) - - col0 + - col0 AS col1, - col2 AS col1 FROM tab0 query I rowsort label-2059 @@ -18061,7 +18061,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND ( NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / cor0\.col0 AS col1" at position 0 and "Int64\(96\) \* CAST\(NULL AS Int32\) \+ \(\- \(\- Int64\(\-35\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / cor0\.col0 AS col1" at position 0 and "Int64\(96\) \* CAST\(NULL AS Int64\) \+ \(\- \(\- Int64\(\-35\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col1 / + col0 AS col1, 96 * + CAST ( NULL AS INTEGER ) + - ( - - 35 ) AS col1 FROM tab0 cor0 query I rowsort label-2994 @@ -18648,7 +18648,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) 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\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: @@ -18707,7 +18707,7 @@ SELECT col0 / - + col1 AS col0 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(NULL AS Int32\) \* Int64\(\-43\) \+ cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(NULL AS Int64\) \* Int64\(\-43\) \+ cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) * - 43 + + col2 * + col2 AS col0, - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL query III rowsort @@ -20894,7 +20894,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-3446 @@ -26660,7 +26660,7 @@ NULL # Datafusion - Expected - -34 # Datafusion - Expected - 45 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "\(\- cor0\.col1\) \- CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "\(\- cor0\.col1\) \- CAST\(\(\- cor0\.col2\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 45 AS col1, - col1 - + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0 query I rowsort @@ -39542,7 +39542,7 @@ SELECT - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(29\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(29\) AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 29 AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab1 cor0 query I rowsort @@ -41600,7 +41600,7 @@ SELECT DISTINCT 40 col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) FROM tab2 AS cor0 query I rowsort label-6859 @@ -48465,7 +48465,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - col2 * - col1 AND NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) col0, col1 AS col0 FROM tab2 AS cor0 query I rowsort @@ -51188,7 +51188,7 @@ SELECT + - 41 AS col2, col0 FROM tab0 AS cor0 # Datafusion - Expected - 11 # Datafusion - Expected - 28 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "CAST\(Int64\(11\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "CAST\(Int64\(11\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 AS col0, CAST ( 11 AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-8455 @@ -54858,7 +54858,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 29 > NULL # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 \- Int64\(15\) \* \(\- Int64\(39\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 \- Int64\(15\) \* \(\- Int64\(39\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 * + + col2 - + 15 * - ( + 39 ) * - CAST ( NULL AS INTEGER ) AS col0, ( - col2 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -56972,7 +56972,7 @@ SELECT * FROM tab1 WHERE NOT + ( + 72 ) < NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(tab2\.col1 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(tab2\.col1 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 AS col2, CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 query I rowsort @@ -58722,7 +58722,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query I rowsort @@ -59301,7 +59301,7 @@ SELECT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( 9 ) # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab0 AS cor0 query I rowsort label-9779 diff --git a/data/sqlite/random/aggregates/slt_good_71.slt b/data/sqlite/random/aggregates/slt_good_71.slt index 19ddf87..1d0a210 100644 --- a/data/sqlite/random/aggregates/slt_good_71.slt +++ b/data/sqlite/random/aggregates/slt_good_71.slt @@ -1243,7 +1243,7 @@ SELECT + 98 AS col1, - 10 + col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NUL # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- CAST\(\(\- Int64\(\-41\)\) AS Int32\)\) AS col0" at position 0 and "cor0\.col2 \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- CAST\(\(\- Int64\(\-41\)\) AS Int64\)\) AS col0" at position 0 and "cor0\.col2 \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 / - CAST ( - - 41 AS INTEGER ) AS col0, + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 query I rowsort label-199 @@ -3312,7 +3312,7 @@ SELECT - ( - + col0 ) * + + col2 * - col1 * - - 1 col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 21 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query III rowsort @@ -5486,7 +5486,7 @@ NULL # Datafusion - Expected - 6 # Datafusion - Expected - 93 # Datafusion - Expected - 220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col1" at position 0 and "cor0\.col0 \- cor0\.col1 \+ cor0\.col2 \+ \(\- Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) AS col1" at position 0 and "cor0\.col0 \- cor0\.col1 \+ cor0\.col2 \+ \(\- Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 92 + - CAST ( - col1 AS INTEGER ) AS col1, + col0 - + col1 + + col2 + - - 25 col1 FROM tab0 cor0 query I rowsort label-902 @@ -27490,7 +27490,7 @@ SELECT + 76 * COUNT ( * ) FROM tab0 228 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab0\.col2 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "tab0\.col2 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col2 * col2 AS col2 FROM tab0 WHERE NOT ( col1 * + - col0 ) IS NOT NULL query II rowsort label-4539 @@ -33360,7 +33360,7 @@ SELECT 81 + + + ( - - 31 ) AS col0, col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- tab0\.col2\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- tab0\.col2\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( col0 ) AS col1, CAST ( NULL AS INTEGER ) * - + col2 * + 43 AS col1 FROM tab0 query I rowsort label-5512 @@ -38652,7 +38652,7 @@ SELECT * FROM tab2 WHERE col2 >= + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -39682,7 +39682,7 @@ SELECT - + col2 / 50 / - CAST ( - 70 AS INTEGER ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col1 AS col2 FROM tab1 AS cor0 query I rowsort @@ -43622,7 +43622,7 @@ SELECT - 69 + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE + col1 * + col2 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) + + + col2 col1, col2 AS col1 FROM tab0 AS cor0 query III rowsort @@ -51271,7 +51271,7 @@ SELECT ALL + SUM ( + + 15 ) FROM tab2 # Datafusion - Expected - 9603 # Datafusion - Expected - -85200 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* \(\- \(\- tab0\.col0\)\) \* Int64\(71\) AS col1" at position 0 and "tab0\.col1 \- tab0\.col0 \* \(\- CAST\(tab0\.col2 AS Int32\)\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* \(\- \(\- tab0\.col0\)\) \* Int64\(71\) AS col1" at position 0 and "tab0\.col1 \- tab0\.col0 \* \(\- CAST\(tab0\.col2 AS Int64\)\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 80 * - - col0 * 71 AS col1, col1 - col0 * + - CAST ( col2 AS INTEGER ) + - + col1 AS col1 FROM tab0 query I rowsort @@ -57346,7 +57346,7 @@ SELECT DISTINCT - col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- CAST\(tab2\.col0 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 AS col1, - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_72.slt b/data/sqlite/random/aggregates/slt_good_72.slt index 9c28fc2..d7876e7 100644 --- a/data/sqlite/random/aggregates/slt_good_72.slt +++ b/data/sqlite/random/aggregates/slt_good_72.slt @@ -4528,7 +4528,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - + 72 ) # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 AS cor0 query II rowsort @@ -11620,7 +11620,7 @@ SELECT + + 71 - col2 FROM tab0 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \- Int64\(0\) AS col0" at position 0 and "CAST\(tab2\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \- Int64\(0\) AS col0" at position 0 and "CAST\(tab2\.col0 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 - - 0 AS col0, + CAST ( + col0 AS INTEGER ) col0 FROM tab2 query I rowsort label-1929 @@ -12747,7 +12747,7 @@ SELECT + + 49 / + - col1 AS col1 FROM tab2 cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-40\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col2 AS Int64\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-40\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - CAST ( col2 AS INTEGER ) ) AS col2, - CAST ( - - 40 AS INTEGER ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -22471,7 +22471,7 @@ SELECT DISTINCT + + 2 * + col2 + col1 + col0 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col1 + - + CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab2 query III rowsort @@ -32105,7 +32105,7 @@ SELECT ALL col2 + + - col2 * + - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(90\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(90\) \- CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 90 * 90 - + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) col0 FROM tab1 query I rowsort label-5313 @@ -33511,7 +33511,7 @@ SELECT DISTINCT + col0 AS col0, col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 417c288921895f31abb4f3fceeaa6fe1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col0 AS col1" at position 0 and "CAST\(Int64\(0\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col0 AS col1" at position 0 and "CAST\(Int64\(0\) AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 + + col0 AS col1, col1 * + col0 * - col2, + CAST ( + - 0 AS INTEGER ) AS col1 FROM tab1 query I rowsort label-5549 @@ -41457,7 +41457,7 @@ SELECT ALL - 30 * - col0 * - 13 + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(94\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / avg\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(94\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / avg\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) / + 94 AS col1, - CAST ( NULL AS INTEGER ) / + AVG ( - + col1 ) AS col1, + 23 FROM tab1 AS cor0 query III rowsort @@ -41613,7 +41613,7 @@ SELECT + MAX ( DISTINCT - + col2 ) FROM tab0 # Datafusion - Expected - 2585 # Datafusion - Expected - 98 # Datafusion - Expected - 5445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- \(\- CAST\(tab0\.col1 AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col2\) \* Int64\(\-50\) \+ tab0\.col2 \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- \(\- CAST\(tab0\.col1 AS Int64\)\) AS col0" at position 0 and "\(\- tab0\.col2\) \* Int64\(\-50\) \+ tab0\.col2 \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col0 - - CAST ( + col1 AS INTEGER ) AS col0, - col2 * - 50 + + col2 * 5 AS col0 FROM tab0 query I rowsort label-6876 @@ -44531,7 +44531,7 @@ SELECT DISTINCT - MIN ( - ( + - 75 ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -50283,7 +50283,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(Int64\(12\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(Int64\(12\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - ( - COUNT ( * ) ) AS col1, 75 * + CAST ( 12 AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -52401,7 +52401,7 @@ SELECT col2, col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "CAST\(Int64\(80\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "CAST\(Int64\(80\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 49 AS col2, CAST ( 80 AS INTEGER ) AS col2 FROM tab1 query I rowsort label-8673 @@ -53353,7 +53353,7 @@ SELECT - 29 * + col1 AS col1 FROM tab0 # Datafusion - Expected - 92 # Datafusion - Expected - -91 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col1 \+ Int64\(2\) \- \(\- CAST\(tab1\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col1 \+ Int64\(2\) \- \(\- CAST\(tab1\.col0 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col0 AS col1, col1 + + + 2 - - ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1 query I rowsort label-8823 @@ -59641,7 +59641,7 @@ SELECT + + ( - col0 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col2 AS col1, CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-9866 diff --git a/data/sqlite/random/aggregates/slt_good_73.slt b/data/sqlite/random/aggregates/slt_good_73.slt index 7024d21..fa3ca24 100644 --- a/data/sqlite/random/aggregates/slt_good_73.slt +++ b/data/sqlite/random/aggregates/slt_good_73.slt @@ -11699,7 +11699,7 @@ SELECT - ( + SUM ( ALL col0 ) ) col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(48\)\) AS col2" at position 0 and "Int64\(75\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(48\)\) AS col2" at position 0 and "Int64\(75\) \- CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT + 48 ) AS col2, + 75 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-1929 @@ -18280,7 +18280,7 @@ SELECT DISTINCT + col0 + + + col2 + - + col1 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col0\) AS Int32\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col0\) AS Int64\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - col0 AS INTEGER ) col1, col2 AS col1 FROM tab2 query I rowsort @@ -19552,7 +19552,7 @@ SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) 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\. SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-3237 @@ -21270,7 +21270,7 @@ SELECT SUM ( - col2 ) + - - 46 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -182 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- \(\- tab1\.col0\)\) \* Int64\(\-3\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- \(\- tab1\.col0\)\) \* Int64\(\-3\) 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\. SELECT ALL col0 + - - col0 * + ( - 3 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort label-3525 @@ -27476,7 +27476,7 @@ SELECT - col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN CAST ( col1 AS INTEGER # Datafusion - Expected - -58 # Datafusion - Expected - 97 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( col0 ) + - CAST ( - col1 AS INTEGER ) AS col2, - col2 AS col2 FROM tab2 AS cor0 query III rowsort @@ -31689,7 +31689,7 @@ SELECT col2 * - + col1 AS col2, - col2 AS col2 FROM tab2 WHERE NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / Int64\(20\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col2 \+ CAST\(NULL AS Int32\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / Int64\(20\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col2 \+ CAST\(NULL AS Int64\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 58 / 20 col2, col1 * + col2 + + CAST ( NULL AS INTEGER ) + + 83 AS col2 FROM tab2 query I rowsort label-5251 @@ -32775,7 +32775,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / ( + col0 ) NOT BETWEEN NULL AND # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- max\(Int64\(40\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- max\(Int64\(40\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - MAX ( ALL + + 40 ) AS col1 FROM tab0 AS cor0 query III rowsort @@ -33870,7 +33870,7 @@ SELECT 81 col1 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- \(\- cor0\.col2\)\) \* Int64\(\-9\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- \(\- cor0\.col2\)\) \* Int64\(\-9\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col0 AS col2, - ( + - col2 ) * - 9 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query III rowsort @@ -34034,7 +34034,7 @@ SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( - + col1, + col0 * - col1 + 3, - co # Datafusion - Expected - -3 # Datafusion - Expected - 58 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\) AS col1" at position 0 and "Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int64\) AS col1" at position 0 and "Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + col2 AS INTEGER ) col1, - 3 AS col1 FROM tab2 query I rowsort @@ -36569,7 +36569,7 @@ SELECT 52 * + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: @@ -47975,7 +47975,7 @@ SELECT DISTINCT + 22 + + COUNT ( + - 3 ) col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 270 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- \(\- cor0\.col1\) \+ Int64\(99\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- \(\- cor0\.col1\) \+ Int64\(99\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 - ( - col1 ) + + + 99 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 query I rowsort label-7921 @@ -50928,7 +50928,7 @@ SELECT DISTINCT - SUM ( 57 ) AS col0 FROM tab2 # Datafusion - Expected - 45 # Datafusion - Expected - 21 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(21\) AS Int32\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(21\) AS Int64\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 21 AS INTEGER ) col0, 45 AS col0 FROM tab0 query III rowsort @@ -55132,7 +55132,7 @@ SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT NULL <> CAST ( NULL AS INTEGE # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) col2, col0 AS col2 FROM tab0 cor0 # Datafusion - Types were automatically converted from: @@ -56097,7 +56097,7 @@ SELECT 21 + COUNT ( * ) - COUNT ( - + col0 ) FROM tab1 WHERE NOT NULL IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(32\) AS Int32\) AS col2" at position 0 and "min\(tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(32\) AS Int64\) AS col2" at position 0 and "min\(tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + 32 AS INTEGER ) AS col2, MIN ( ALL + col2 ) AS col2 FROM tab1 query III rowsort @@ -56608,7 +56608,7 @@ SELECT ALL + COUNT ( * ) - - + 71 FROM tab0 # Datafusion - Expected - -4540 # Datafusion - Expected - 14 # Datafusion - Expected - -5980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "CAST\(\(\- \(\- tab2\.col1\)\) AS Int32\) \* \(\- tab2\.col1\) \- Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "CAST\(\(\- \(\- tab2\.col1\)\) AS Int64\) \* \(\- tab2\.col1\) \- Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 14 AS col0, CAST ( - - col1 AS INTEGER ) * + - col1 - 51 col0 FROM tab2 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_74.slt b/data/sqlite/random/aggregates/slt_good_74.slt index 8c5d1d5..383c9be 100644 --- a/data/sqlite/random/aggregates/slt_good_74.slt +++ b/data/sqlite/random/aggregates/slt_good_74.slt @@ -4332,7 +4332,7 @@ SELECT + COUNT ( * ) - + 33 AS col0 FROM tab0 cor0 # Datafusion - Expected - 95 # Datafusion - Expected - 0 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(tab2\.col0 AS Int32\)\)\) \- \(\- \(\- tab2\.col0\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(tab2\.col0 AS Int64\)\)\) \- \(\- \(\- tab2\.col0\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - - CAST ( + col0 AS INTEGER ) ) - + - ( - col0 ) col2, 95 AS col2 FROM tab2 query I rowsort @@ -8712,7 +8712,7 @@ SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(NULL AS Int32\) \- CAST\(\(\- CAST\(cor0\.col1 AS Int32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(NULL AS Int64\) \- CAST\(\(\- CAST\(cor0\.col1 AS Int64\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col0, + CAST ( NULL AS INTEGER ) - + + CAST ( + - CAST ( col1 AS INTEGER ) AS INTEGER ) col0 FROM tab0 AS cor0 query III rowsort @@ -12848,7 +12848,7 @@ SELECT DISTINCT + - 22 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab1 AS cor0 query I rowsort label-2141 @@ -16214,7 +16214,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT tab0\.col0\)\) AS col2" at position 0 and "CAST\(min\(DISTINCT tab0\.col1\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT tab0\.col0\)\) AS col2" at position 0 and "CAST\(min\(DISTINCT tab0\.col1\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col2, CAST ( + + MIN ( DISTINCT + col1 ) AS INTEGER ) col2 FROM tab0 query I rowsort label-2710 @@ -17834,7 +17834,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> - - col0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + col0 / + - CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0 query I rowsort label-2973 @@ -20477,7 +20477,7 @@ SELECT DISTINCT - col2 * col0 + + 10 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort @@ -21382,7 +21382,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - + col1 + + - col2 / + 2 * # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2 FROM tab1 cor0 query III rowsort @@ -29919,7 +29919,7 @@ SELECT ALL - 5 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -45 # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 / CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) / \(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 / CAST\(NULL AS Int64\) \* \(\- cor0\.col0\) / \(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 - + col1 / CAST ( NULL AS INTEGER ) * + - col0 / + - col0 + - col2 col1, - 45 AS col1 FROM tab1 cor0 query I rowsort @@ -31454,7 +31454,7 @@ SELECT 22 FROM tab2 AS cor0 WHERE NOT NULL >= NULL # Datafusion - Expected - -291 # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab0\.col0\) \* \(\- Int64\(\-3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- tab0\.col0\) \* \(\- Int64\(\-3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - col0 * ( - - 3 ) AS col1 FROM tab0 query I rowsort label-5247 @@ -40786,7 +40786,7 @@ SELECT - col2 FROM tab0 AS cor0 WHERE col2 + - col2 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 8 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-43\) AS Int32\) \- \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-43\) AS Int64\) \- \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - 43 AS INTEGER ) - + - col0 AS col1, + col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL ) query I rowsort @@ -43261,7 +43261,7 @@ SELECT DISTINCT col1 * + - col0 + + 32 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 59a6176133b6aed5c2e4973d243ec782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col0 \- Int64\(\-14\) / \(\- Int64\(\-80\)\) \+ cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "cor0\.col0 \- Int64\(\-14\) / \(\- Int64\(\-80\)\) \+ cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 * + + CAST ( NULL AS INTEGER ) AS col1, + col0 - - 14 / - - 80 + + + col0 + - col2 AS col1, - - col2 * - 20 FROM tab1 AS cor0 query I rowsort label-7219 @@ -49980,7 +49980,7 @@ SELECT DISTINCT - col0 * - 66 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 9409 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) \* cor0\.col0 AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\) \* cor0\.col0 AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col1\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( - col0 AS INTEGER ) * col0 AS col0, + CAST ( - - col1 AS INTEGER ) col0 FROM tab0 AS cor0 query II rowsort @@ -58442,7 +58442,7 @@ SELECT - col2 * - col0 AS col2, + 59 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 52 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-9735 diff --git a/data/sqlite/random/aggregates/slt_good_75.slt b/data/sqlite/random/aggregates/slt_good_75.slt index a8f515a..63bbc7a 100644 --- a/data/sqlite/random/aggregates/slt_good_75.slt +++ b/data/sqlite/random/aggregates/slt_good_75.slt @@ -3747,7 +3747,7 @@ SELECT + col0 * + 90 * - 56 - - 46 * ( - col2 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) 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\. SELECT ALL - col0 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -4066,7 +4066,7 @@ SELECT DISTINCT - col1 / + + col2 FROM tab1 # Datafusion - Expected - 203391 # Datafusion - Expected - 35 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-35\) AS Int32\)\) AS col1" at position 0 and "tab0\.col1 \* \(\- Int64\(\-31\)\) \* \(\- \(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-35\) AS Int64\)\) AS col1" at position 0 and "tab0\.col1 \* \(\- Int64\(\-31\)\) \* \(\- \(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - CAST ( - 35 AS INTEGER ) ) AS col1, col1 * - - 31 * - - col1 AS col1 FROM tab0 query I rowsort @@ -7308,7 +7308,7 @@ SELECT + + col0 + 13 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) \+ \(\- Int64\(45\)\) \- \(\- cor0\.col0\) \- Int64\(\-21\) \* \(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int64\)\) \+ \(\- Int64\(45\)\) \- \(\- cor0\.col0\) \- Int64\(\-21\) \* \(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + col0 AS INTEGER ) + - + 45 - - col0 - - 21 * ( - + col1 ) * - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab0 AS cor0 query I rowsort @@ -12515,7 +12515,7 @@ SELECT DISTINCT + 29 * - col0 * - ( + - 54 ) + + col0 * col0 AS col2 FROM tab2 # Datafusion - Expected - -136 # Datafusion - Expected - 87 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int32\) \+ \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int64\) \+ \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 AS col0, + CAST ( - col2 AS INTEGER ) + - col2 AS col0 FROM tab1 query I rowsort label-2083 @@ -20806,7 +20806,7 @@ SELECT + col1 AS col2 FROM tab2 WHERE - col1 * - - col0 <> NULL # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col2\) \- Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- cor0\.col2\) \- Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 72 + col0 AS col2, ( + CAST ( NULL AS INTEGER ) ) * + - col2 - + - 74 AS col2 FROM tab1 cor0 query III rowsort @@ -21050,7 +21050,7 @@ SELECT 4 * - 5 * - col2 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 9 AS col1, CAST ( NULL AS INTEGER ) * - + ( + col2 ) AS col1 FROM tab2 AS cor0 query I rowsort label-3508 @@ -22561,7 +22561,7 @@ SELECT ALL - 60 + - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 3560 # Datafusion - Expected - -155 # Datafusion - Expected - 3560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \- Int64\(75\) AS col1" at position 0 and "CAST\(Int64\(89\) AS Int32\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \- Int64\(75\) AS col1" at position 0 and "CAST\(Int64\(89\) AS Int64\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 80 - 75 AS col1, CAST ( + 89 AS INTEGER ) * 40 AS col1 FROM tab0 AS cor0 query I rowsort @@ -23417,7 +23417,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + 70 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(cor0\.col0 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col0 * - - col1 AS col1, CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort label-3899 @@ -26922,7 +26922,7 @@ SELECT ALL - MAX ( - 88 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 63 # Datafusion - Expected - 5 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col1\) AS Int32\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col1\) AS Int64\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col2, 63 AS col2 FROM tab1 query I rowsort label-4476 @@ -28355,7 +28355,7 @@ SELECT - 45 * + 24 + - 47 AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "tab1\.col1 \+ Int64\(\-38\) \+ tab1\.col2 \* CAST\(NULL AS Int32\) \+ tab1\.col2 / \(\- \(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "tab1\.col1 \+ Int64\(\-38\) \+ tab1\.col2 \* CAST\(NULL AS Int64\) \+ tab1\.col2 / \(\- \(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 42 AS col1, + col1 + - 38 + + + col2 * + CAST ( NULL AS INTEGER ) + col2 / - - col1 col1 FROM tab1 query I rowsort @@ -35477,7 +35477,7 @@ SELECT DISTINCT + col2 AS col0, + 26 * - - 10 + - col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 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\. SELECT + col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-5887 @@ -39092,7 +39092,7 @@ SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( - col0 * + + ( col1 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL query III rowsort @@ -41666,7 +41666,7 @@ SELECT + + col0 FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "cor0\.col1 \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "cor0\.col1 \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 23 AS col1, + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query II rowsort @@ -49194,7 +49194,7 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - -2262 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int32\)\) \* Int64\(39\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int64\)\) \* Int64\(39\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 58 AS INTEGER ) * + 39 AS col1, - col2 AS col1 FROM tab1 cor0 query I rowsort @@ -53691,7 +53691,7 @@ SELECT DISTINCT col1, - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -4610410 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\) \* Int64\(7\) \* cor0\.col0 \* Int64\(70\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int64\) \* Int64\(7\) \* cor0\.col0 \* Int64\(70\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + - col0 AS INTEGER ) * + 7 * col0 * 70 AS col0, + ( col2 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -56402,7 +56402,7 @@ SELECT ( - - col0 ) + - + col2 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query III rowsort @@ -57085,7 +57085,7 @@ SELECT DISTINCT + COUNT ( DISTINCT - + col0 ) FROM tab1 # Datafusion - Expected - 10080 # Datafusion - Expected - 97 # Datafusion - Expected - 4752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* Int64\(48\) \* \(\- CAST\(\(\- tab0\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* Int64\(48\) \* \(\- CAST\(\(\- tab0\.col2\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 AS col2, + col1 * + 48 * + - CAST ( - + col2 AS INTEGER ) col2 FROM tab0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_76.slt b/data/sqlite/random/aggregates/slt_good_76.slt index 7246856..a9fd84f 100644 --- a/data/sqlite/random/aggregates/slt_good_76.slt +++ b/data/sqlite/random/aggregates/slt_good_76.slt @@ -1756,7 +1756,7 @@ SELECT ALL col0 FROM tab1 AS cor0 WHERE - col2 + - + col1 + + col2 * - + CAST ( # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 query III rowsort @@ -14592,7 +14592,7 @@ SELECT ALL + col1 + + 5 - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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\. SELECT ALL col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -14602,7 +14602,7 @@ SELECT DISTINCT * FROM tab1 WHERE ( + ( - 45 ) = - 72 * col1 * + ( + 18 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "sum\(DISTINCT tab2\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "sum\(DISTINCT tab2\.col0\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col0, + SUM ( DISTINCT + ( + + ( + col0 ) ) ) + - + CAST ( NULL AS INTEGER ) col0 FROM tab2 query I rowsort @@ -18504,7 +18504,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 33 + + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5452 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-94\) AS Int32\)\)\) \* max\(cor0\.col2\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-94\) AS Int64\)\)\) \* max\(cor0\.col2\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( - 94 AS INTEGER ) * MAX ( + col2 ) col1, - 52 AS col1 FROM tab2 cor0 query I rowsort @@ -27287,7 +27287,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + CAST ( col1 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3266 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(71\) \* min\(DISTINCT \(\- \(\- cor0\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(71\) \* min\(DISTINCT \(\- \(\- cor0\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 57 / - + CAST ( NULL AS INTEGER ) col0, + 71 * + MIN ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 query II rowsort label-4530 @@ -30302,7 +30302,7 @@ SELECT * FROM tab2 WHERE - + col0 = - - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- tab0\.col2\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- tab0\.col2\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( ALL - ( col2 ) ) col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort @@ -35860,7 +35860,7 @@ SELECT - ( - COUNT ( * ) ) * COUNT ( * ) + - - 30 AS col2 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - -12 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- CAST\(Int64\(76\) AS Int32\)\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- CAST\(Int64\(76\) AS Int64\)\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 + - CAST ( 76 AS INTEGER ) AS col0, ( - + col1 ) AS col0 FROM tab2 query II rowsort label-5940 @@ -46125,7 +46125,7 @@ SELECT - col1 FROM tab1 WHERE NOT ( + 66 * + - ( - col1 ) * - - col0 ) <> + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort label-7648 @@ -51208,7 +51208,7 @@ SELECT ALL - 3 * + col0 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col2\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \- Int64\(57\) \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col2\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \- Int64\(57\) \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - col2 ) AS col2, - ( + + CAST ( NULL AS INTEGER ) ) - + 57 * - 52 AS col2 FROM tab0 query II rowsort @@ -52069,7 +52069,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 48 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(85\) AS col1" at position 0 and "sum\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- Int64\(85\) AS col1" at position 0 and "sum\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) - + 85 AS col1, SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0 query I rowsort label-8633 @@ -56639,7 +56639,7 @@ SELECT - ( - - col2 ) / 90 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "min\(tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "min\(tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + MIN ( + col0 ) AS col2 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_77.slt b/data/sqlite/random/aggregates/slt_good_77.slt index 053483f..4154860 100644 --- a/data/sqlite/random/aggregates/slt_good_77.slt +++ b/data/sqlite/random/aggregates/slt_good_77.slt @@ -327,7 +327,7 @@ SELECT + 59 + - + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0 WHERE NOT # Datafusion - Expected - 2330 # Datafusion - Expected - NULL # Datafusion - Expected - 345 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col0 \* cor0\.col2 \* \(\- cor0\.col1\) \* Int64\(3\) AS col1" at position 0 and "Int64\(53\) \+ cor0\.col2 \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* cor0\.col0 \* cor0\.col2 \* \(\- cor0\.col1\) \* Int64\(3\) AS col1" at position 0 and "Int64\(53\) \+ cor0\.col2 \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 * + col2 * - + col1 * + 3 AS col1, + 53 + + col2 + - col1 * - ( col1 ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -3067,7 +3067,7 @@ SELECT + 58 * + col1 * col2 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col2\) AS col1" at position 0 and "max\(CAST\(NULL AS Int32\)\) \+ count\(DISTINCT tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col2\) AS col1" at position 0 and "max\(CAST\(NULL AS Int64\)\) \+ count\(DISTINCT tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT + col2 ) AS col1, MAX ( ALL CAST ( NULL AS INTEGER ) ) + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 query I rowsort label-503 @@ -3167,7 +3167,7 @@ SELECT DISTINCT ( - col0 ) col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort label-519 @@ -4098,7 +4098,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + - - col2 + - 53 * + + CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort label-667 @@ -12269,7 +12269,7 @@ SELECT ALL - 97 / - col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -5929 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col2\) \* Int64\(\-80\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col2\) \* Int64\(\-80\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 * + ( + + col1 ) AS col2, - ( + + col2 ) + - col2 * - 80 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -13281,7 +13281,7 @@ SELECT ALL * FROM tab2 WHERE ( NOT - ( - + col0 ) * + - 76 + 56 IS NOT NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - 75 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "CAST\(tab0\.col2 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "CAST\(tab0\.col2 AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 75 AS col1, CAST ( + + col2 AS INTEGER ) col1 FROM tab0 query II rowsort @@ -21093,7 +21093,7 @@ SELECT + 23 col2 FROM tab1 # Datafusion - Expected - 75 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(7\) AS col1" at position 0 and "cor0\.col2 / Int64\(39\) \+ \(\- \(\- Int64\(74\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(7\) AS col1" at position 0 and "cor0\.col2 / Int64\(39\) \+ \(\- \(\- Int64\(74\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * 7 AS col1, + col2 / + 39 + - ( - + 74 ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -22828,7 +22828,7 @@ SELECT ALL - col2 + - - col0 AS col2, 94 AS col2 FROM tab0 # Datafusion - Expected - 36 # Datafusion - Expected - -97 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab0\.col0\) AS Int32\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab0\.col0\) AS Int64\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - col0 AS INTEGER ) AS col2, + 36 AS col2 FROM tab0 # Datafusion - Datafusion expected results: @@ -23812,7 +23812,7 @@ SELECT - col0 / + ( + 63 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "CAST\(max\(tab0\.col2\) AS Int32\) / Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "CAST\(max\(tab0\.col2\) AS Int64\) / Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 80 AS col1, + CAST ( + + MAX ( ALL col2 ) AS INTEGER ) / + + 79 AS col1 FROM tab0 # Datafusion - Datafusion expected results: @@ -26823,7 +26823,7 @@ SELECT - 99 + + 71 AS col1, 67 * + + col1 * col2 AS col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2 AS cor0 query I rowsort @@ -31843,7 +31843,7 @@ SELECT + - COUNT ( * ) * - + 47 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 50f394c3d095dedae90fa7a3554cf1db -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(\(\- CAST\(NULL AS Int64\)\) AS Float64\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 * + + CAST ( - CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, col0 col1, + - col1 col2 FROM tab1 cor0 query I rowsort label-5262 @@ -36033,7 +36033,7 @@ SELECT ALL + - 9 col0 FROM tab2 AS cor0 # Datafusion - Expected - 3825 # Datafusion - Expected - 74 # Datafusion - Expected - 2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) \+ cor0\.col1 AS col0" at position 0 and "cor0\.col0 \+ \(\- Int64\(\-50\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int64\)\) \+ cor0\.col1 AS col0" at position 0 and "cor0\.col0 \+ \(\- Int64\(\-50\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( - col2 AS INTEGER ) + + col1 AS col0, col0 + - - 50 * col0 AS col0 FROM tab2 AS cor0 query III rowsort @@ -38603,7 +38603,7 @@ SELECT + 19 * - - MIN ( - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 86 / + # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) AS col0, - 6 AS col0 FROM tab2 cor0 query I rowsort label-6381 @@ -44142,7 +44142,7 @@ SELECT DISTINCT 40 / + + 90 * - SUM ( ALL + - col2 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 77 + ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col0, 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-7301 @@ -45742,7 +45742,7 @@ SELECT DISTINCT + MAX ( ALL 98 ) / + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3a6bbf051c5f732a4f70401cc6f3a707 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- \(\- CAST\(NULL AS Int64\)\)\) AS Int64\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 AS col1, + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col2 AS col1, - - col0 / 85 FROM tab0 AS cor0 query I rowsort @@ -52624,7 +52624,7 @@ SELECT - col0 + + 37 AS col1 FROM tab0 # Datafusion - Expected - -28 # Datafusion - Expected - 93 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 \+ \(\- \(\- CAST\(\(\- tab0\.col2\) AS Int32\)\)\) \+ Int64\(\-69\) \+ tab0\.col1 AS col2" at position 0 and "CAST\(Int64\(\-28\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 \+ \(\- \(\- CAST\(\(\- tab0\.col2\) AS Int64\)\)\) \+ Int64\(\-69\) \+ tab0\.col1 AS col2" at position 0 and "CAST\(Int64\(\-28\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 + col1 + - - CAST ( - col2 AS INTEGER ) + - 69 + + col1 col2, CAST ( - 28 AS INTEGER ) AS col2 FROM tab0 query III rowsort @@ -52815,7 +52815,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 57 * CAST ( 84 AS INTEGER ) AND + # Datafusion - Expected - -29 # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / \(\- cor0\.col1\) \+ CAST\(NULL AS Int32\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / \(\- cor0\.col1\) \+ CAST\(NULL AS Int64\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 58 / - col1 + + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, - 29 col2 FROM tab1 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_78.slt b/data/sqlite/random/aggregates/slt_good_78.slt index e81eb53..d15a441 100644 --- a/data/sqlite/random/aggregates/slt_good_78.slt +++ b/data/sqlite/random/aggregates/slt_good_78.slt @@ -3558,7 +3558,7 @@ SELECT ALL ( + - col2 ) AS col0 FROM tab1 WHERE NOT + col1 + + col1 + - col0 >= # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 54 AS col0 FROM tab1 query I rowsort label-598 @@ -8466,7 +8466,7 @@ SELECT - 12 * ( + 66 ) * - + col2 * + col0 + + 97 FROM tab1 # Datafusion - Expected - -4260 # Datafusion - Expected - 14 # Datafusion - Expected - -697 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(Int64\(14\) AS Int32\) AS Int32\) AS col1" at position 0 and "Int64\(17\) \+ tab1\.col1 \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(Int64\(14\) AS Int64\) AS Int64\) AS col1" at position 0 and "Int64\(17\) \+ tab1\.col1 \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + CAST ( 14 AS INTEGER ) AS INTEGER ) col1, 17 + col1 * - + col0 col1 FROM tab1 query II rowsort label-1406 @@ -9654,7 +9654,7 @@ SELECT ALL * FROM tab1 WHERE NOT + col1 * + - col1 + + 2 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 800 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- \(\- Int64\(32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- \(\- Int64\(32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 25 * - ( - + 32 ) AS col1, COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab2 query I rowsort label-1597 @@ -10455,7 +10455,7 @@ NULL # Datafusion - Expected - 4624 # Datafusion - Expected - NULL # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- \(\- cor0\.col2\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- \(\- cor0\.col2\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - ( - col2 ) * col2 AS col2 FROM tab1 AS cor0 query I rowsort label-1732 @@ -13301,7 +13301,7 @@ SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - 49 col1 FROM tab1 AS cor0 query III rowsort @@ -16420,7 +16420,7 @@ SELECT ALL + 61 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(Int64\(96\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(Int64\(96\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( ALL - + col0 ) AS col1, + CAST ( + 96 AS INTEGER ) col1 FROM tab2 cor0 query I rowsort label-2722 @@ -20693,7 +20693,7 @@ SELECT 79 / COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col0 \+ Int64\(\-79\) / Int64\(27\) \* CAST\(cor0\.col0 AS Int32\) \* CAST\(NULL AS Int32\) \* Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col0 \+ Int64\(\-79\) / Int64\(27\) \* CAST\(cor0\.col0 AS Int64\) \* CAST\(NULL AS Int64\) \* Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col2 col0, + col0 + - 79 / + 27 * + CAST ( + col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * + ( - 41 ) AS col0 FROM tab2 cor0 query I rowsort @@ -24396,7 +24396,7 @@ SELECT + 15 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) < ( - + 23 ) # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - col1 AS col1 FROM tab1 query I rowsort @@ -28853,7 +28853,7 @@ SELECT - ( 56 ) FROM tab0 WHERE NOT + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(tab2\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(tab2\.col1\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) col2, MAX ( ALL col1 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2 query II rowsort label-4780 @@ -30864,7 +30864,7 @@ SELECT ALL + 79 + - col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 2048 # Datafusion - Expected - NULL # Datafusion - Expected - 2048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ \(\- cor0\.col0\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(64\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ \(\- cor0\.col0\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(64\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 62 ) + - col0 / CAST ( NULL AS INTEGER ) AS col1, 64 * 32 AS col1 FROM tab0 AS cor0 query I rowsort label-5122 @@ -37944,7 +37944,7 @@ SELECT CAST ( - - 79 AS INTEGER ) * - CAST ( + - col1 AS INTEGER ) FROM tab0 # Datafusion - Expected - -5852 # Datafusion - Expected - -1875 # Datafusion - Expected - -5092 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* tab2\.col0 AS col2" at position 0 and "Int64\(76\) \* CAST\(\(\- tab2\.col1\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* tab2\.col0 AS col2" at position 0 and "Int64\(76\) \* CAST\(\(\- tab2\.col1\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 25 * + col0 AS col2, 76 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 query I rowsort label-6273 @@ -39280,7 +39280,7 @@ SELECT ( + 26 ) + + MAX ( + col0 ) AS col2 FROM tab0 # Datafusion - Expected - 151 # Datafusion - Expected - NULL # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(87\) \- \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(87\) \- \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, + 87 - - col0 col1 FROM tab2 WHERE NOT NULL IS NOT NULL query II rowsort @@ -39914,7 +39914,7 @@ SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE - 83 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - -46 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "CAST\(cor0\.col2 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "CAST\(cor0\.col2 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 46 AS col2, CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -42472,7 +42472,7 @@ SELECT DISTINCT col0, col2 + + + col2 FROM tab1 AS cor0 136 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ cor0\.col0 \+ Int64\(34\) \* cor0\.col0 \* Int64\(11\) \+ CAST\(NULL AS Int32\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ cor0\.col0 \+ Int64\(34\) \* cor0\.col0 \* Int64\(11\) \+ CAST\(NULL AS Int64\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 36 + + col0 + + + 34 * col0 * 11 + + + CAST ( NULL AS INTEGER ) + - col0 AS col2, - 35 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - ( - col1 ), col0, - ( col2 ) * - col0, col2, + 27 ) query I rowsort @@ -44957,7 +44957,7 @@ SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col2" at position 0 and "\(\- \(\- cor0\.col0\)\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int64\) AS col2" at position 0 and "\(\- \(\- cor0\.col0\)\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + col0 AS INTEGER ) AS col2, ( - + ( - col0 ) ) - + col0 AS col2 FROM tab2 AS cor0 query I rowsort label-7423 @@ -45034,7 +45034,7 @@ SELECT + ( + col0 ) - + col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 63 - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 query II rowsort @@ -45079,7 +45079,7 @@ SELECT - + col2 * + - col2 + - - col1 + 23 * - 31 AS col2 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -166 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) \+ Int64\(\-89\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int64\) \+ Int64\(\-89\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + CAST ( - col1 AS INTEGER ) ) + - 89 AS col0, col1 AS col0 FROM tab2 AS cor0 query I rowsort label-7442 @@ -48818,7 +48818,7 @@ SELECT DISTINCT - col0 + - + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -52817,7 +52817,7 @@ SELECT + - col1 / - col0 * + + col1 - - + 69 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(cor0\.col1\)\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(cor0\.col1\)\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( col1 ) * 2 AS col1, CAST ( - + COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0 query I rowsort @@ -52865,7 +52865,7 @@ SELECT ALL MAX ( ALL 52 ) FROM tab1 # Datafusion - Expected - -10 # Datafusion - Expected - -5 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "CAST\(Int64\(\-10\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "CAST\(Int64\(\-10\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 5 col1, CAST ( + - 10 AS INTEGER ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: @@ -55789,7 +55789,7 @@ SELECT ALL + SUM ( DISTINCT col1 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 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\. SELECT DISTINCT + col1 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 # Datafusion - Types were automatically converted from: @@ -57372,7 +57372,7 @@ SELECT DISTINCT col2 - - 4 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) - - COUNT ( * ) col0 FROM tab1 cor0 query III rowsort @@ -57779,7 +57779,7 @@ SELECT col0 - + 20 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL # Datafusion - Expected - 23 # Datafusion - Expected - 96 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int32\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int64\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2, + 23 AS col2 FROM tab1 query II rowsort label-9545 diff --git a/data/sqlite/random/aggregates/slt_good_79.slt b/data/sqlite/random/aggregates/slt_good_79.slt index 5279375..9a2a034 100644 --- a/data/sqlite/random/aggregates/slt_good_79.slt +++ b/data/sqlite/random/aggregates/slt_good_79.slt @@ -285,7 +285,7 @@ SELECT DISTINCT * FROM tab2 WHERE + 8 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "cor0\.col0 / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "cor0\.col0 / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 col0, col0 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-46 @@ -2547,7 +2547,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "\(\- min\(CAST\(Int64\(0\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "\(\- min\(CAST\(Int64\(0\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 45 AS col0, - MIN ( + CAST ( + 0 AS INTEGER ) ) AS col0 FROM tab1 query III rowsort @@ -3102,7 +3102,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) * + 40 IS # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0 query I rowsort label-509 @@ -5290,7 +5290,7 @@ SELECT COUNT ( + col1 ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* CAST\(NULL AS Int32\) / Int64\(\-65\) \* \(\- \(\- cor0\.col1\)\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* CAST\(NULL AS Int64\) / Int64\(\-65\) \* \(\- \(\- cor0\.col1\)\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ) + col2 AS col1, col2 * CAST ( NULL AS INTEGER ) / - 65 * - - col1 * + + ( - col1 ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -10834,7 +10834,7 @@ SELECT - COUNT ( * ), - ( + + COUNT ( * ) ) FROM tab1 WHERE + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 153d607fdcf017ec38a4e98b02950ceb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- CAST\(tab2\.col1 AS Int32\)\) \* \(\- Int64\(\-33\)\) \+ tab2\.col0 \+ Int64\(37\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- CAST\(tab2\.col1 AS Int64\)\) \* \(\- Int64\(\-33\)\) \+ tab2\.col0 \+ Int64\(37\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 col2, + CAST ( NULL AS INTEGER ) * - - col0 - - - col2, - CAST ( col1 AS INTEGER ) * - - 33 + col0 + + 37 AS col2 FROM tab2 query I rowsort label-1785 @@ -17340,7 +17340,7 @@ SELECT - MAX ( + - CAST ( NULL AS FLOAT8 ) ) AS col0 FROM tab1 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 AS col2, - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab0 WHERE NOT NULL > NULL query I rowsort label-2865 @@ -23488,7 +23488,7 @@ SELECT 20 * - col2 * - 29 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \- \(\- cor0\.col2\) \+ \(\- cor0\.col2\) \- \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \- \(\- cor0\.col2\) \+ \(\- cor0\.col2\) \- \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 92 AS col2, - CAST ( NULL AS INTEGER ) - - col2 + - ( + col2 ) - - col0 col2 FROM tab0 AS cor0 query I rowsort @@ -34410,7 +34410,7 @@ SELECT ALL - COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -3080 # Datafusion - Expected - -95 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "cor0\.col1 \* \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "cor0\.col1 \* \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col2, col1 * - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-5664 @@ -35215,7 +35215,7 @@ SELECT DISTINCT col0 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -75690 # Datafusion - Expected - NULL # Datafusion - Expected - -931491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( + + col1 ) * + col1 + CAST ( NULL AS INTEGER ) AS col0, col2 * col0 * + - col0 AS col0 FROM tab0 AS cor0 query I rowsort @@ -35917,7 +35917,7 @@ SELECT ALL ( + + col2 ) * - + col2 + - col0 * - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -464 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(49\) AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(49\) AS Int64\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 49 AS INTEGER ) / COUNT ( * ) * - + 29 AS col2, - COUNT ( * ) AS col2 FROM tab0 query I rowsort @@ -35962,7 +35962,7 @@ SELECT + 89 + - CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 61 # Datafusion - Expected - -6833 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) \* CAST\(cor0\.col2 AS Int32\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) \* CAST\(cor0\.col2 AS Int64\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 70 * CAST ( col2 AS INTEGER ) + + col0 AS col0, 61 AS col0 FROM tab0 cor0 query I rowsort label-5911 @@ -38725,7 +38725,7 @@ SELECT 67 - + - col0 * - col2 * - col0 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \- \(\- tab0\.col0\) \+ tab0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \- \(\- tab0\.col0\) \+ tab0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 - - col0 + + col2 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab0 query I rowsort label-6359 @@ -49045,7 +49045,7 @@ SELECT * FROM tab2 WHERE NOT - 47 IS NULL # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(cor0\.col0 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 AS col0, CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -51466,7 +51466,7 @@ SELECT ( + + col0 ) / 49 * col1 * - - col1 + 84 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -7722 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* \(\- tab0\.col1\) \* \(\- \(\- tab0\.col1\)\) \* Int64\(\-78\) AS col1" at position 0 and "\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) \+ \(\- \(\- tab0\.col2\)\) \+ \(\- tab0\.col0\) \+ Int64\(56\) \* \(\- \(\- tab0\.col0\)\) \* \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* \(\- tab0\.col1\) \* \(\- \(\- tab0\.col1\)\) \* Int64\(\-78\) AS col1" at position 0 and "\(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\) \+ \(\- \(\- tab0\.col2\)\) \+ \(\- tab0\.col0\) \+ Int64\(56\) \* \(\- \(\- tab0\.col0\)\) \* \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 * + ( - col1 ) * - - col1 * + - 78 AS col1, - CAST ( + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - col2 + - col0 + 56 * - - col0 * + - col0 AS col1 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_8.slt b/data/sqlite/random/aggregates/slt_good_8.slt index 0112937..e199ecd 100644 --- a/data/sqlite/random/aggregates/slt_good_8.slt +++ b/data/sqlite/random/aggregates/slt_good_8.slt @@ -4267,7 +4267,7 @@ SELECT * FROM tab1 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) - + col0 / - col2, # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0 query I rowsort @@ -5737,7 +5737,7 @@ SELECT COUNT ( - 49 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2, 88 AS col2 FROM tab2 AS cor0 query I rowsort @@ -7096,7 +7096,7 @@ SELECT + 87, col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "CAST\(cor0\.col2 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "CAST\(cor0\.col2 AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2, CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -9781,7 +9781,7 @@ SELECT + col1 * + - col0 FROM tab2 WHERE 59 <= ( - + col2 ) # Datafusion - Expected - -93 # Datafusion - Expected - 51 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\) \+ \(\- tab2\.col2\) / Int64\(38\) \* tab2\.col1 AS col2" at position 0 and "\(\- Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int64\) \+ \(\- tab2\.col2\) / Int64\(38\) \* tab2\.col1 AS col2" at position 0 and "\(\- Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - ( col2 ) / 38 * col1 AS col2, + ( - + 93 ) AS col2 FROM tab2 query II rowsort label-1610 @@ -15193,7 +15193,7 @@ SELECT - CAST ( - - col1 AS INTEGER ) * col0 FROM tab2 AS cor0 # Datafusion - Expected - 63 # Datafusion - Expected - 23 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- cor0\.col1\) \- Int64\(\-19\) \+ CAST\(Int64\(58\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- cor0\.col1\) \- Int64\(\-19\) \+ CAST\(Int64\(58\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 23 AS col1, - col1 - - 19 + ( + ( CAST ( + 58 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0 query I rowsort label-2526 @@ -18715,7 +18715,7 @@ NULL # Datafusion - Expected - 4656 # Datafusion - Expected - 4 # Datafusion - Expected - 4176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-14\) AS Int32\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-14\) AS Int64\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - 14 AS INTEGER ) + - col2 AS col2, + col0 * 48 AS col2 FROM tab0 AS cor0 query I rowsort label-3104 @@ -19337,7 +19337,7 @@ SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col0 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1822 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \- Int64\(27\) \* Int64\(71\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \- Int64\(27\) \* Int64\(71\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 - 27 * + 71 AS col0, - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT 40 NOT BETWEEN + col0 AND NULL query II rowsort @@ -22044,7 +22044,7 @@ SELECT + 44 col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -181 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(\-31\) \+ cor0\.col1 AS col1" at position 0 and "Int64\(34\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(\-31\) \+ cor0\.col1 AS col1" at position 0 and "Int64\(34\) / \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 query II rowsort @@ -23724,7 +23724,7 @@ SELECT DISTINCT ( col0 ) + col0 * + col0 AS col0 FROM tab2 AS cor0 WHERE ( 34 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(cor0\.col2\)\) AS col1" at position 0 and "CAST\(Int64\(\-85\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(cor0\.col2\)\) AS col1" at position 0 and "CAST\(Int64\(\-85\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( ALL + col2 ) AS col1, CAST ( - 85 AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -24551,7 +24551,7 @@ SELECT + 40 AS col0, + 16 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(cor0\.col1 AS Int32\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(cor0\.col1 AS Int64\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( + + CAST ( + col1 AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -25470,7 +25470,7 @@ SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) \+ cor0\.col0 / cor0\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) \+ cor0\.col0 / cor0\.col1 \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 80 AS col0, + CAST ( - col2 AS INTEGER ) + col0 / + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 query III rowsort @@ -29094,7 +29094,7 @@ SELECT DISTINCT col1 * - + 49 + + 98 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \+ CAST\(NULL AS Int64\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col2, - col0 * - + col2 + + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0 query II rowsort label-4801 @@ -33365,7 +33365,7 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col1, col2 col1 FROM tab2 query III rowsort @@ -35927,7 +35927,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 58 + 67 - - col0 + + + ( 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- min\(\(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- min\(\(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - MIN ( - col1 ) AS col0 FROM tab1 AS cor0 query I rowsort @@ -38767,7 +38767,7 @@ SELECT ALL 75, COUNT ( * ) col0 FROM tab2 # Datafusion - Expected - 66 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col0 \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col0 \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 - col1 AS col0 FROM tab0 AS cor0 query I rowsort @@ -41834,7 +41834,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + col1 IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- tab0\.col2\) \* tab0\.col2 AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- tab0\.col2\) \* tab0\.col2 AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - + col2 * ( + col2 ) AS col2, 1 AS col2 FROM tab0 query III rowsort @@ -43577,7 +43577,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + - col2 / - - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, - 39 AS col1 FROM tab2 AS cor0 query I rowsort @@ -46280,7 +46280,7 @@ SELECT DISTINCT + col0 + + - col1 AS col2 FROM tab0 cor0 WHERE 21 IN ( + 12 * - # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT ALL - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -46670,7 +46670,7 @@ SELECT DISTINCT - col1 / - 15 col0 FROM tab1 # Datafusion - Expected - 30 # Datafusion - Expected - 7 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "tab1\.col2 \+ \(\- Int64\(80\)\) \+ tab1\.col2 / tab1\.col2 \* CAST\(tab1\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "tab1\.col2 \+ \(\- Int64\(80\)\) \+ tab1\.col2 / tab1\.col2 \* CAST\(tab1\.col1 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 AS col0, col2 + - + 80 + + + col2 / col2 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -48967,7 +48967,7 @@ SELECT DISTINCT * FROM tab0 WHERE 43 * + - 22 = ( NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - -908 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) / \(\- cor0\.col1\) \+ \(\- cor0\.col0\) \- CAST\(NULL AS Int32\) / cor0\.col2 \- \(\- cor0\.col0\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) / \(\- cor0\.col1\) \+ \(\- cor0\.col0\) \- CAST\(NULL AS Int64\) / cor0\.col2 \- \(\- cor0\.col0\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 58 * - col1 + - col2 AS col2, - col1 / - + col1 + - + col0 - + CAST ( NULL AS INTEGER ) / + col2 - - col0 * col2 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL query II rowsort @@ -55805,7 +55805,7 @@ SELECT - 28 * SUM ( + col2 ) FROM tab2 # Datafusion - Expected - -24 # Datafusion - Expected - NULL # Datafusion - Expected - -504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(24\) \* \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(24\) \* \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) col1, + 24 * - col1 AS col1 FROM tab0 # Datafusion - Datafusion expected results: @@ -60570,7 +60570,7 @@ SELECT - 37 + + + 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 11186099a276d1b6a312b2e0a59572fe -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS Int32\)\) \* cor0\.col0 \+ Int64\(91\) \* Int64\(\-39\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- cor0\.col0\) AS Int64\)\) AS Int64\)\) \* cor0\.col0 \+ Int64\(91\) \* Int64\(\-39\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( - + CAST ( - col0 AS INTEGER ) AS INTEGER ) * + col0 + + 91 * - 39 col1, + col1 + + + ( - 93 ) AS col2, col2 * - col0 AS col1 FROM tab0 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_80.slt b/data/sqlite/random/aggregates/slt_good_80.slt index b259ad1..a9f5930 100644 --- a/data/sqlite/random/aggregates/slt_good_80.slt +++ b/data/sqlite/random/aggregates/slt_good_80.slt @@ -5639,7 +5639,7 @@ SELECT - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(count\(tab0\.col1\) AS Int32\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(count\(tab0\.col1\) AS Int64\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + + CAST ( + COUNT ( ALL + col1 ) AS INTEGER ) AS col1, - 81 AS col1 FROM tab0 query I rowsort @@ -18878,7 +18878,7 @@ SELECT DISTINCT 58 + + 8 AS col2 FROM tab1 # Datafusion - Expected - 82 # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(58\) \* tab0\.col0 \* \(\- tab0\.col0\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(58\) \* tab0\.col0 \* \(\- tab0\.col0\) \- CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 25 * + 58 * + col0 * - col0 - + + CAST ( NULL AS INTEGER ) AS col2, + 82 AS col2 FROM tab0 query I rowsort label-3096 @@ -36863,7 +36863,7 @@ SELECT + 31 * - + col2 - + ( + col2 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -2037 # Datafusion - Expected - NULL # Datafusion - Expected - -315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / cor0\.col0 \* CAST\(NULL AS Int32\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-21\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / cor0\.col0 \* CAST\(NULL AS Int64\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-21\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 4 / col0 * CAST ( NULL AS INTEGER ) * + col1 AS col1, - 21 * + + col0 AS col1 FROM tab0 AS cor0 query I rowsort @@ -39587,7 +39587,7 @@ SELECT * FROM tab2 WHERE + - col1 <> + 25 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- CAST\(tab0\.col2 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- CAST\(tab0\.col2 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 AS col1, - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 query III rowsort @@ -47849,7 +47849,7 @@ SELECT + COUNT ( - col2 ) col1 FROM tab0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int32\)" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int64\)" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + col0 AS INTEGER ), + col0 FROM tab0 WHERE + + col1 IN ( + 77 ) query III rowsort @@ -50481,7 +50481,7 @@ SELECT + 66 - - col2 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9d1361462d31cc08378df4c6c4b33723 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-25\) \* Int64\(13\) AS col0" at position 1 and "cor0\.col2 \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- cor0\.col2\) \+ cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-25\) \* Int64\(13\) AS col0" at position 1 and "cor0\.col2 \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ \(\- cor0\.col2\) \+ cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 - - - col0, + col1 * - 25 * + 13 col0, + + col2 + - - CAST ( NULL AS INTEGER ) + - col2 + + col0 + - col1 AS col0 FROM tab1 AS cor0 query I rowsort label-8322 @@ -56643,7 +56643,7 @@ SELECT MIN ( - col2 ) col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(36\) \* CAST\(Int64\(29\) AS Int32\) / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(36\) \* CAST\(Int64\(29\) AS Int64\) / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 67 AS col1, CAST ( NULL AS INTEGER ) * + 36 * + CAST ( + 29 AS INTEGER ) / - + col2 AS col1 FROM tab0 AS cor0 query I rowsort @@ -57739,7 +57739,7 @@ SELECT ALL * FROM tab1 WHERE NOT 92 NOT BETWEEN 47 AND - col0 # Datafusion - Expected - -870 # Datafusion - Expected - NULL # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab0\.col2\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- tab0\.col2\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col0, - col2 * col0 AS col0 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_81.slt b/data/sqlite/random/aggregates/slt_good_81.slt index a9f8917..1359a66 100644 --- a/data/sqlite/random/aggregates/slt_good_81.slt +++ b/data/sqlite/random/aggregates/slt_good_81.slt @@ -5415,7 +5415,7 @@ SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN col0 AND + # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col0\)\) AS Int64\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - + ( - col0 ) AS INTEGER ) AS col1, + col2 + - col2 - + col0 AS col1 FROM tab0 AS cor0 query I rowsort @@ -5854,7 +5854,7 @@ SELECT - - 24 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(97\) AS Int32\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(97\) AS Int64\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + CAST ( + 97 AS INTEGER ) AS col1, 82 AS col1 FROM tab0 AS cor0 query I rowsort label-964 @@ -8167,7 +8167,7 @@ SELECT + 87 * + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 52 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 52 col1, CAST ( - + col2 AS INTEGER ) col1 FROM tab1 AS cor0 query I rowsort label-1343 @@ -12424,7 +12424,7 @@ SELECT + col1 AS col0, + col2 / - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- min\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- min\(CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 73 + - COUNT ( * ) AS col1, - MIN ( + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 query I rowsort label-2049 @@ -14398,7 +14398,7 @@ SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( + + col1 * + 28 ) IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(98\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(98\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 98 col1, col0 AS col1 FROM tab1 query I rowsort label-2381 @@ -23631,7 +23631,7 @@ SELECT - - 8 AS col0 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 5025 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* cor0\.col1 AS col1" at position 0 and "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* cor0\.col1 AS col1" at position 0 and "CAST\(\(\- \(\- CAST\(NULL AS Int64\)\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - col0 * + col1 AS col1, CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 AS cor0 query I rowsort label-3894 @@ -25253,7 +25253,7 @@ SELECT DISTINCT col2 * - 97 + + 89 AS col0 FROM tab2 WHERE NOT + col2 * col0 = ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\(\- cor0\.col0\)\)\) AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\(\- cor0\.col0\)\)\) AS Int64\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - COUNT ( - col0 ) AS INTEGER ) + - - COUNT ( * ) AS col1, - 16 AS col1 FROM tab0 AS cor0 query I rowsort @@ -26876,7 +26876,7 @@ SELECT ALL - col1 - - + col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_82.slt b/data/sqlite/random/aggregates/slt_good_82.slt index 022c281..2938e45 100644 --- a/data/sqlite/random/aggregates/slt_good_82.slt +++ b/data/sqlite/random/aggregates/slt_good_82.slt @@ -4290,7 +4290,7 @@ SELECT 73 + + col0 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "CAST\(CAST\(CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS Int32\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "CAST\(CAST\(CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS Int64\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), CAST ( CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-699 @@ -5241,7 +5241,7 @@ SELECT DISTINCT - CAST ( - CAST ( + + COUNT ( * ) AS INTEGER ) AS INTEGER ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(34\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(34\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( DISTINCT + + 34 ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -7067,7 +7067,7 @@ NULL # Datafusion - Expected - 44 # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 + - - col1 / + ( - - CAST ( NULL AS INTEGER ) ) AS col2, + 44 AS col2 FROM tab0 AS cor0 query I rowsort label-1161 @@ -8516,7 +8516,7 @@ SELECT DISTINCT - MAX ( DISTINCT + + col1 ) + - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -11552,7 +11552,7 @@ SELECT + COUNT ( * ), 98 AS col0 FROM tab0 # Datafusion - Expected - 135 # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab2\.col1 \+ tab2\.col0 \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "tab2\.col1 \+ tab2\.col0 \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col1 + + col0 - 7 AS col1 FROM tab2 WHERE NOT - 21 > 13 query I rowsort @@ -30392,7 +30392,7 @@ SELECT ALL col1, 48 FROM tab1 cor0 WHERE NOT + 15 > + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(63\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(63\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + + + 63 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 query II rowsort label-4975 @@ -31144,7 +31144,7 @@ SELECT MAX ( - col1 ) + - COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( SUM ( + ( - col1 ) ) ) AS col1, CAST ( NULL AS INTEGER ) * - 47 AS col1 FROM tab0 AS cor0 query II rowsort @@ -32991,7 +32991,7 @@ SELECT ALL SUM ( - + 78 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- \(\- max\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- \(\- max\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\)\)\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 4 + - - MAX ( - - CAST ( NULL AS INTEGER ) ) AS col0, + 41 AS col0 FROM tab0, tab0 AS cor0 query III rowsort @@ -36185,7 +36185,7 @@ SELECT + 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) / Int64\(\-10\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) / Int64\(\-10\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT AVG ( ALL - - CAST ( NULL AS INTEGER ) ) / + - 10 AS col1, + 93 AS col1 FROM tab0 query II rowsort @@ -37956,7 +37956,7 @@ SELECT ALL + 81, col1 col1 FROM tab0 WHERE NULL IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(6\) \* \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(87\) / tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(6\) \* \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(87\) / tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) / + + 6 * + - col1 col2, + 87 / + col0 AS col2 FROM tab1 query I rowsort label-6201 @@ -38731,7 +38731,7 @@ SELECT - SUM ( - 72 ) / + 81 + - 39 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort @@ -45397,7 +45397,7 @@ SELECT DISTINCT COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) - - 72 col0 FROM t # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / sum\(Int64\(66\)\) AS col0" at position 0 and "count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / sum\(Int64\(66\)\) AS col0" at position 0 and "count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + SUM ( ALL + 66 ) AS col0, + COUNT ( 22 ) col0 FROM tab1 query I rowsort @@ -53609,7 +53609,7 @@ SELECT - + ( + + 25 ) FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int32\)\) \+ cor0\.col0 \+ \(\- Int64\(72\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int64\)\) \+ cor0\.col0 \+ \(\- Int64\(72\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 col2, + col1 - - CAST ( NULL AS INTEGER ) + + col0 + - + 72 AS col2 FROM tab0 AS cor0 query I rowsort @@ -54849,7 +54849,7 @@ SELECT - 38 * - + col1 AS col1 FROM tab0 # Datafusion - Expected - 23 # Datafusion - Expected - 5025 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col0 AS col1" at position 0 and "CAST\(CAST\(\(\- Int64\(17\)\) AS Int32\) AS Int32\) \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col0 AS col1" at position 0 and "CAST\(CAST\(\(\- Int64\(17\)\) AS Int64\) AS Int64\) \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 * col0 AS col1, + CAST ( + CAST ( - + 17 AS INTEGER ) AS INTEGER ) + col2 col1 FROM tab2 query I rowsort @@ -57220,7 +57220,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 89, col1 + + col0 * col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CAST\(NULL AS Int64\)\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, + 41 + - COUNT ( * ) + 41 col0 FROM tab2 cor0 query I rowsort @@ -59726,7 +59726,7 @@ SELECT ALL + col0 + + ( - ( col2 ) ) FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 95 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "\(\- CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "\(\- CAST\(tab2\.col0 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 AS col1, - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_83.slt b/data/sqlite/random/aggregates/slt_good_83.slt index 102f631..a25b963 100644 --- a/data/sqlite/random/aggregates/slt_good_83.slt +++ b/data/sqlite/random/aggregates/slt_good_83.slt @@ -853,7 +853,7 @@ SELECT ALL + COUNT ( * ) + + 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor # Datafusion - Expected - NULL # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- Int64\(20\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- Int64\(20\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 38 ) - + 20 AS col2, + CAST ( NULL AS INTEGER ) col2 FROM tab0 query I rowsort @@ -1171,7 +1171,7 @@ SELECT - col0 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 0 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col0\) \* Int64\(94\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col0\) \* Int64\(94\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 / - col0 * 94 AS col0, CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0 query I rowsort label-188 @@ -16433,7 +16433,7 @@ SELECT DISTINCT 92 AS col2, col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \- Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \- Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) + CAST ( NULL AS INTEGER ) - + + ( - 51 ) col1 FROM tab1 AS cor0 query III rowsort @@ -22824,7 +22824,7 @@ SELECT - 91, + col1 + col2 AS col1 FROM tab0 WHERE NOT col0 NOT BETWEEN + col1 A # Datafusion - Expected - -124 # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab2\.col2\) \+ \(\- \(\- Int64\(\-66\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- tab2\.col2\) \+ \(\- \(\- Int64\(\-66\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, - col2 + - - ( - 66 ) AS col1 FROM tab2 query I rowsort @@ -25544,7 +25544,7 @@ SELECT col2 * - 27 * + col0 FROM tab0 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int64\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + col2 AS INTEGER ) AS col2, - col0 col2 FROM tab0 query I rowsort label-4192 @@ -27574,7 +27574,7 @@ SELECT + - ( + - MIN ( - - 51 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. SELECT ALL COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -31511,7 +31511,7 @@ SELECT - 77 + + - 21 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- \(\- tab2\.col0\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab2\.col2 \- tab2\.col2 \- tab2\.col0 \+ \(\- Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- \(\- tab2\.col0\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "tab2\.col2 \- tab2\.col2 \- tab2\.col0 \+ \(\- Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 + - - col0 + + ( - CAST ( NULL AS INTEGER ) ) AS col1, col2 - + col2 - + col0 + - ( + - 0 ) AS col1 FROM tab2 query IIIIII rowsort @@ -31657,7 +31657,7 @@ SELECT COUNT ( * ) * - - COUNT ( ALL - 72 ) AS col2 FROM tab2 # Datafusion - Expected - 250 # Datafusion - Expected - NULL # Datafusion - Expected - 513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-27\) \- \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col0 \+ Int64\(\-33\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / Int64\(\-27\) \- \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col0 \+ Int64\(\-33\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) / - 27 - - col2 AS col0, + col0 + + - 33 * + - col1 AS col0 FROM tab1 query I rowsort label-5201 @@ -32853,7 +32853,7 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- min\(\(\- tab1\.col1\)\)\)\) / sum\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- min\(\(\- tab1\.col1\)\)\)\) / sum\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - - MIN ( ALL - col1 ) / SUM ( 46 ) AS col0 FROM tab1 query I rowsort @@ -37488,7 +37488,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + CAS # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1, + CAST ( - col1 AS INTEGER ) FROM tab0 cor0 query I rowsort @@ -42844,7 +42844,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 40 + - 36 ) # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- Int64\(\-75\)\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \+ \(\- Int64\(\-37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- Int64\(\-75\)\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \+ \(\- Int64\(\-37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col0 + - - 75 * ( - CAST ( NULL AS INTEGER ) ) * - col2 AS col2, col2 + - - 37 col2 FROM tab0 AS cor0 query II rowsort label-7035 @@ -44491,7 +44491,7 @@ SELECT DISTINCT + col0 AS col0, 95 / - 84 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(76\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(76\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 AS col1, + 76 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -53624,7 +53624,7 @@ SELECT ALL + 1 + - 35 FROM tab2 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - 51259 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ CAST\(cor0\.col2 AS Int32\) \* Int64\(32\) \* cor0\.col2 \- \(\- \(\- cor0\.col1\)\) / cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ CAST\(cor0\.col2 AS Int64\) \* Int64\(32\) \* cor0\.col2 \- \(\- \(\- cor0\.col1\)\) / cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 + + CAST ( + col2 AS INTEGER ) * + 32 * col2 - - - col1 / col2 AS col1, col2 AS col1 FROM tab2 AS cor0 query I rowsort label-8806 diff --git a/data/sqlite/random/aggregates/slt_good_84.slt b/data/sqlite/random/aggregates/slt_good_84.slt index 775050e..5ec0663 100644 --- a/data/sqlite/random/aggregates/slt_good_84.slt +++ b/data/sqlite/random/aggregates/slt_good_84.slt @@ -3056,7 +3056,7 @@ SELECT + + ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 20 # Datafusion - Expected - 81 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "CAST\(Int64\(20\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "CAST\(Int64\(20\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - col1 AS col0, CAST ( 20 AS INTEGER ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -5124,7 +5124,7 @@ SELECT ALL - col1 * + col1 + + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-40\)\) \+ CAST\(Int64\(\-49\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-40\)\) \+ CAST\(Int64\(\-49\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 7 ) + COUNT ( * ) col2, - COUNT ( * ) - - - 40 + + CAST ( - 49 AS INTEGER ) col2 FROM tab0 query II rowsort label-843 @@ -7223,7 +7223,7 @@ SELECT col1 + - - col2 + + ( col0 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 \* \(\- tab0\.col1\) \* CAST\(Int64\(\-34\) AS Int32\) \* \(\- tab0\.col1\) \+ CAST\(NULL AS Int32\) \* Int64\(62\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 \* \(\- tab0\.col1\) \* CAST\(Int64\(\-34\) AS Int64\) \* \(\- tab0\.col1\) \+ CAST\(NULL AS Int64\) \* Int64\(62\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 + + - col1 AS col1, col0 * - col1 * CAST ( - 34 AS INTEGER ) * - col1 + CAST ( NULL AS INTEGER ) * + 62 * ( + + 93 ) AS col1 FROM tab0 query I rowsort label-1188 @@ -7240,7 +7240,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + + 24 * + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 79 + - - CAST ( NULL AS INTEGER ) AS col0, 10 AS col0 FROM tab2 cor0 query I rowsort label-1191 @@ -8569,7 +8569,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> - col1 ) # Datafusion - Expected - 54 # Datafusion - Expected - -2314 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(26\) AS Int32\) \* \(\- CAST\(Int64\(89\) AS Int32\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(26\) AS Int64\) \* \(\- CAST\(Int64\(89\) AS Int64\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 26 AS INTEGER ) * + ( - CAST ( 89 AS INTEGER ) ) AS col2, 54 col2 FROM tab0 AS cor0 query I rowsort @@ -9043,7 +9043,7 @@ SELECT DISTINCT + MAX ( ALL + - col0 ) FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) AS col2" at position 0 and "\(\- cor0\.col0\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) AS col2" at position 0 and "\(\- cor0\.col0\) / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 44 AS col2, - col0 / + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 query III rowsort @@ -12166,7 +12166,7 @@ SELECT DISTINCT - col2, - CAST ( NULL AS INTEGER ) + - - 30 FROM tab2 AS cor0 WH # Datafusion - Expected - 5576 # Datafusion - Expected - NULL # Datafusion - Expected - 7872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / tab1\.col2 \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-59\) AS col2" at position 0 and "Int64\(82\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / tab1\.col2 \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-59\) AS col2" at position 0 and "Int64\(82\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 34 / + col2 - - CAST ( NULL AS INTEGER ) * - 59 AS col2, 82 * col2 AS col2 FROM tab1 query I rowsort @@ -14841,7 +14841,7 @@ SELECT * FROM tab0 WHERE NOT - col2 * - 90 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6692 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(tab0\.col1\) \* Int64\(\-65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(tab0\.col1\) \* Int64\(\-65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + SUM ( ALL + col1 ) * - 65 col2, COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 query I rowsort @@ -23978,7 +23978,7 @@ SELECT DISTINCT + col0 + - 3 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -16 # Datafusion - Expected - 7469 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- \(\- CAST\(cor0\.col0 AS Int32\)\)\) AS col2" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col1 \- Int64\(\-29\) \- \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- \(\- CAST\(cor0\.col0 AS Int64\)\)\) AS col2" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col1 \- Int64\(\-29\) \- \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 77 * - ( - CAST ( col0 AS INTEGER ) ) AS col2, - col0 + + col1 - - 29 - - col1 AS col2 FROM tab0 AS cor0 query I rowsort label-3977 @@ -24221,7 +24221,7 @@ SELECT - 71 AS col2 FROM tab0 cor0 WHERE NOT ( col1 * + 25 / + 9 + + col0 IS NUL # Datafusion - Expected - 0 # Datafusion - Expected - 3886 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 0 and "cor0\.col2 \- \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(\(\- cor0\.col1\) AS Int64\) AS col1" at position 0 and "cor0\.col2 \- \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 * + + CAST ( - col1 AS INTEGER ) AS col1, col2 - - - col2 AS col1 FROM tab2 AS cor0 query I rowsort @@ -29920,7 +29920,7 @@ SELECT DISTINCT ( + 43 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) - 71 FROM tab1 # Datafusion - Expected - 470 # Datafusion - Expected - 42 # Datafusion - Expected - 736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "tab1\.col0 \* \(\- tab1\.col1\) \+ \(\- Int64\(\-10\)\) \+ Int64\(15\) \* CAST\(tab1\.col2 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "tab1\.col0 \* \(\- tab1\.col1\) \+ \(\- Int64\(\-10\)\) \+ Int64\(15\) \* CAST\(tab1\.col2 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 42 AS col0, col0 * + - ( col1 ) + - - 10 + 15 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 # Datafusion - Types were automatically converted from: @@ -39167,7 +39167,7 @@ SELECT 41 AS col0 FROM tab1 WHERE ( + col2 + col2 ) IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 9748 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 \+ \(\- tab0\.col1\) \+ Int64\(\-52\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 \+ \(\- tab0\.col1\) \+ Int64\(\-52\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 * col2 + + - col1 + - 52 AS col0, CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0 query I rowsort label-6496 @@ -43266,7 +43266,7 @@ SELECT col1 - - - 89 * - + 82 AS col0 FROM tab0 # Datafusion - Expected - -88 # Datafusion - Expected - NULL # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \- \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \- \(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 - - + CAST ( NULL AS INTEGER ) * - - col1 AS col0, - 88 AS col0 FROM tab1 query I rowsort label-7162 @@ -54157,7 +54157,7 @@ SELECT col0 + - - 92 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -138 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) \* \(\- count\(Int64\(16\)\)\) \+ Int64\(98\) \+ count\(DISTINCT Int64\(19\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) \* \(\- count\(Int64\(16\)\)\) \+ Int64\(98\) \+ count\(DISTINCT Int64\(19\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 79 * - COUNT ( 16 ) + 98 + COUNT ( DISTINCT 19 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query II rowsort label-8948 diff --git a/data/sqlite/random/aggregates/slt_good_85.slt b/data/sqlite/random/aggregates/slt_good_85.slt index c0f85a8..52f9edf 100644 --- a/data/sqlite/random/aggregates/slt_good_85.slt +++ b/data/sqlite/random/aggregates/slt_good_85.slt @@ -1078,7 +1078,7 @@ SELECT + COUNT ( col0 ) FROM tab2 AS cor0 WHERE NOT 36 >= + col1 # Datafusion - Expected - -7225 # Datafusion - Expected - 0 # Datafusion - Expected - -8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / Int64\(56\) AS col0" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / Int64\(56\) AS col0" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 / + 56 AS col0, CAST ( + - col0 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0 query I rowsort @@ -6519,7 +6519,7 @@ SELECT ALL + + col1 / + + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, + 74 + + - 19 AS col2 FROM tab2 AS cor0 query II rowsort label-1070 @@ -7987,7 +7987,7 @@ SELECT ALL COUNT ( col1 ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3400d03f54de437d969b196a153efad0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-85\) AS col0" at position 1 and "\(\- CAST\(Int64\(\-71\) AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-85\) AS col0" at position 1 and "\(\- CAST\(Int64\(\-71\) AS Int64\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59, col1 + - 85 AS col0, - CAST ( - 71 AS INTEGER ) AS col0 FROM tab2 AS cor0 query I rowsort label-1310 @@ -9662,7 +9662,7 @@ SELECT ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NOT ( - col0 ) IN ( + col1 ) ) # Datafusion - Expected - NULL # Datafusion - Expected - 540000 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(96\) \* tab2\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) / tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(96\) \* tab2\.col0 AS col1" at position 0 and "CAST\(NULL AS Int64\) / tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 * + 96 * + col0 AS col1, CAST ( NULL AS INTEGER ) / + + col1 AS col1 FROM tab2 query I rowsort @@ -12192,7 +12192,7 @@ SELECT col0 AS col2, + col0 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 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\. SELECT col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -16527,7 +16527,7 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT DISTINCT - + col1 col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query II rowsort label-2724 @@ -19107,7 +19107,7 @@ SELECT * FROM tab0 WHERE ( NOT ( NOT + - col2 / + - col0 NOT BETWEEN NULL AND co # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 742540774cb8bed15aae891153323c96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - - col1 ), - col1 AS col2, - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query III rowsort @@ -20109,7 +20109,7 @@ SELECT DISTINCT * FROM tab1 WHERE col0 * col1 * CAST ( NULL AS INTEGER ) + - - c # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ tab0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ tab0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 99 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort @@ -22115,7 +22115,7 @@ SELECT col2, - col0 + + - 28 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- tab2\.col2\) \+ tab2\.col2 \+ \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- tab2\.col2\) \+ tab2\.col2 \+ \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) col2, - col2 + col2 + - col2 AS col2 FROM tab2 query I rowsort @@ -26305,7 +26305,7 @@ SELECT 5 AS col2 FROM tab0, tab0 cor0 # Datafusion - Expected - -4 # Datafusion - Expected - -4 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int64\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 4 AS INTEGER ), - 4 FROM tab2 query II rowsort @@ -35361,7 +35361,7 @@ SELECT DISTINCT 70 col2 FROM tab1 # Datafusion - Expected - 25 # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, 25 AS col0 FROM tab1 # Datafusion - Types were automatically converted from: @@ -38702,7 +38702,7 @@ SELECT DISTINCT - COUNT ( * ) * + - 54 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - + ( COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT NULL <= ( NULL ) query I rowsort @@ -41512,7 +41512,7 @@ SELECT * FROM tab1 cor0 WHERE NOT + 74 * - - col1 * - 74 + - col1 IS NOT NULL # Datafusion - Expected - -37 # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(55\) \+ cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(55\) \+ cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * 55 + col1 col0, - col1 + + + col2 AS col0 FROM tab2 AS cor0 query II rowsort @@ -42735,7 +42735,7 @@ SELECT ALL + + 54 * - ( + COUNT ( + col2 ) ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -49327,7 +49327,7 @@ SELECT DISTINCT MAX ( - col1 ) * - - MIN ( - + 61 ), - COUNT ( * ) AS col2 FROM # Datafusion - Expected - 162 # Datafusion - Expected - -23 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(23\) AS Int32\)\) AS col2" at position 0 and "tab2\.col0 \+ \(\- Int64\(\-98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(23\) AS Int64\)\) AS col2" at position 0 and "tab2\.col0 \+ \(\- Int64\(\-98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + + 23 AS INTEGER ) AS col2, + col0 + - - 98 AS col2 FROM tab2 query I rowsort @@ -56397,7 +56397,7 @@ SELECT + col0 + - 86 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(Int64\(\-40\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(Int64\(\-40\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col2 AS col2, + CAST ( - 40 AS INTEGER ) AS col2 FROM tab2 cor0 query I rowsort label-9370 @@ -58606,7 +58606,7 @@ SELECT + col1 + - col0 AS col1, + 59 / + col0 FROM tab1 # Datafusion - Expected - 58 # Datafusion - Expected - -851 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- tab2\.col2\) \+ \(\- tab2\.col0\) AS col2" at position 0 and "CAST\(tab2\.col2 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- tab2\.col2\) \+ \(\- tab2\.col0\) AS col2" at position 0 and "CAST\(tab2\.col2 AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 35 * - col2 + - col0 col2, CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_86.slt b/data/sqlite/random/aggregates/slt_good_86.slt index a3cf070..3fd155e 100644 --- a/data/sqlite/random/aggregates/slt_good_86.slt +++ b/data/sqlite/random/aggregates/slt_good_86.slt @@ -19005,7 +19005,7 @@ SELECT DISTINCT + 9 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 15 # Datafusion - Expected - -21 # Datafusion - Expected - 3854 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col1\) \* \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(cor0\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col1\) \* \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int64\)\) AS col2" at position 0 and "\(\- CAST\(cor0\.col1 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + - col1 * - CAST ( - - col2 AS INTEGER ) AS col2, - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0 query I rowsort @@ -20843,7 +20843,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to df282ae1b2eac65deadec77411c4d29b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 and "\(\- \(\- tab2\.col2\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 and "\(\- \(\- tab2\.col2\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) AS col2, - ( - col2 ) AS col2 FROM tab2 query I rowsort label-3450 @@ -24755,7 +24755,7 @@ SELECT + 89 * - col2 FROM tab1 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col1 col0, + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0 query I rowsort @@ -26497,7 +26497,7 @@ SELECT - col0 AS col2, 85 FROM tab1 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 46 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 46 AS col0, CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort label-4391 @@ -37238,7 +37238,7 @@ SELECT DISTINCT + col0 * + - 69 FROM tab0 -6693 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- CAST\(cor0\.col0 AS Int32\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- CAST\(cor0\.col0 AS Int64\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + - CAST ( col0 AS INTEGER ) AS col2, + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + col1 - + col0 query III rowsort @@ -40204,7 +40204,7 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\)" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int64\)" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( col1 AS INTEGER ), col1 FROM tab0 AS cor0 query II rowsort @@ -42148,7 +42148,7 @@ SELECT ALL + col2 * - - col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(61\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(61\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 61 + - COUNT ( * ) AS col0 FROM tab0 query I rowsort @@ -44839,7 +44839,7 @@ SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + + col2 col2, - ( + col0 ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -45203,7 +45203,7 @@ SELECT DISTINCT ( - ( COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -295 # Datafusion - Expected - NULL # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab1\.col2\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- tab1\.col2\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 * + + CAST ( NULL AS INTEGER ) AS col1, - col2 * + col1 col1 FROM tab1 query I rowsort label-7460 @@ -47399,7 +47399,7 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / col1 >= NULL # Datafusion - Expected - 89 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(94\) \+ \(\- CAST\(cor0\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(94\) \+ \(\- CAST\(cor0\.col1 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col0 AS col2, 94 + - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -55681,7 +55681,7 @@ SELECT 31 / + ( 85 ) AS col0, col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, 42 AS col1 FROM tab2 AS cor0 query II rowsort label-9197 diff --git a/data/sqlite/random/aggregates/slt_good_87.slt b/data/sqlite/random/aggregates/slt_good_87.slt index 0fbae24..134d73c 100644 --- a/data/sqlite/random/aggregates/slt_good_87.slt +++ b/data/sqlite/random/aggregates/slt_good_87.slt @@ -667,7 +667,7 @@ SELECT COUNT ( DISTINCT - ( + - col2 ) ) / - - SUM ( ALL - 58 ) FROM tab2 AS cor # Datafusion - Expected - NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / cor0\.col0 AS col2" at position 0 and "Int64\(46\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / cor0\.col0 AS col2" at position 0 and "Int64\(46\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 46 / + + col0 AS col2, 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-102 @@ -1657,7 +1657,7 @@ SELECT - col1 * + 57 * + col2 AS col2 FROM tab1 # Datafusion - Expected - 55 # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 55 AS col2 FROM tab1 query I rowsort label-266 @@ -3397,7 +3397,7 @@ SELECT DISTINCT + 29, + 89 / - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(97\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(97\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, ( - - COUNT ( * ) ) + - CAST ( 97 AS INTEGER ) AS col1 FROM tab2 query I rowsort @@ -12242,7 +12242,7 @@ SELECT * FROM tab0 cor0 WHERE NOT NULL < + col2 # Datafusion - Expected - -1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 / \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "cor0\.col1 / \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col2, col1 / + - col0 AS col2 FROM tab2 AS cor0 query I rowsort @@ -13603,7 +13603,7 @@ SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL # Datafusion - Expected - 305 # Datafusion - Expected - -80 # Datafusion - Expected - 3248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-80\) AS Int32\) AS col2" at position 0 and "cor0\.col1 \- \(\- cor0\.col2\) \* cor0\.col1 \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-80\) AS Int64\) AS col2" at position 0 and "cor0\.col1 \- \(\- cor0\.col2\) \* cor0\.col1 \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + - 80 AS INTEGER ) AS col2, + col1 - - col2 * + col1 + + 5 AS col2 FROM tab1 AS cor0 query III rowsort label-2216 @@ -21491,7 +21491,7 @@ SELECT MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(14\)\) \+ \(\- sum\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(14\)\) \+ \(\- sum\(CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( COUNT ( * ) ) AS col1, - ( 14 ) + - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -22978,7 +22978,7 @@ SELECT - ( + MIN ( + col1 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6f25b2833fd95395b29adacac3c9edd6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - col0 - - + col1 AS col2, + col1 + + col2 + - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query I rowsort label-3764 @@ -24760,7 +24760,7 @@ SELECT - 29 / - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query II rowsort @@ -26111,7 +26111,7 @@ SELECT - col2 * - - col1 AS col1 FROM tab1 # Datafusion - Expected - 1827 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, + col1 * + col0 col0 FROM tab0 AS cor0 query I rowsort @@ -27392,7 +27392,7 @@ SELECT - COUNT ( * ), + 56 * - - 72 AS col0 FROM tab2, tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(20\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(20\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 20 col0, + 62 AS col0 FROM tab0 query III rowsort label-4480 @@ -28095,7 +28095,7 @@ SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort label-4601 @@ -29621,7 +29621,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - + col2 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / cor0\.col1 AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / cor0\.col1 AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 AS col2, 71 AS col2 FROM tab0 AS cor0 query I rowsort label-4846 @@ -43774,7 +43774,7 @@ SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - col2 / - + 85 AND + col2 # Datafusion - Expected - -27 # Datafusion - Expected - 2550 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* Int64\(\-34\) AS col1" at position 0 and "\(\- tab2\.col1\) \+ CAST\(Int64\(50\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* Int64\(\-34\) AS col1" at position 0 and "\(\- tab2\.col1\) \+ CAST\(Int64\(50\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col0 * - 34 AS col1, - col1 + CAST ( + 50 AS INTEGER ) col1 FROM tab2 query II rowsort label-7166 @@ -46887,7 +46887,7 @@ SELECT - + col0 + + col1 + col1 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 76 + - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -52434,7 +52434,7 @@ SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE col2 BETW # Datafusion - Expected - 3211 # Datafusion - Expected - 96 # Datafusion - Expected - 1331 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int32\)\) AS col2" at position 0 and "\(\- tab1\.col2\) \+ \(\- tab1\.col2\) \* \(\- tab1\.col1\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int64\)\) AS col2" at position 0 and "\(\- tab1\.col2\) \+ \(\- tab1\.col2\) \* \(\- tab1\.col1\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - col2 AS INTEGER ) AS col2, - col2 + - col2 * - + col1 + + 83 AS col2 FROM tab1 query III rowsort @@ -57790,7 +57790,7 @@ SELECT DISTINCT + col0 + + 44 + ( - 28 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col0, 57 + 83 col0 FROM tab2 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_88.slt b/data/sqlite/random/aggregates/slt_good_88.slt index 133c5cb..5a01698 100644 --- a/data/sqlite/random/aggregates/slt_good_88.slt +++ b/data/sqlite/random/aggregates/slt_good_88.slt @@ -4562,7 +4562,7 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND + col2 * - co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab2 query II rowsort @@ -5176,7 +5176,7 @@ SELECT col0 + - - col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5998 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(62\) \+ Int64\(5\) \+ Int64\(41\) AS col1" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(62\) \+ Int64\(5\) \+ Int64\(41\) AS col1" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 * + + 62 + 5 + + 41 AS col1, CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -5232,7 +5232,7 @@ SELECT - 45 * + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / tab1\.col1 AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / tab1\.col1 AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 AS col0, 19 AS col0 FROM tab1 query III rowsort @@ -8726,7 +8726,7 @@ SELECT ALL + col0 * + + col2 FROM tab1 WHERE NOT - col2 / + col0 NOT BETWEEN - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) col2 FROM tab1 # Datafusion - Types were automatically converted from: @@ -11814,7 +11814,7 @@ SELECT DISTINCT - col2 + - 67 FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 12 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\)\) \+ Int64\(\-84\) \+ cor0\.col0 \- \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int64\)\) \+ Int64\(\-84\) \+ cor0\.col0 \- \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col2 / - CAST ( - - col2 AS INTEGER ) + - 84 + col0 - - col2 col2, + col0 AS col2 FROM tab0 AS cor0 query II rowsort label-1949 @@ -18783,7 +18783,7 @@ SELECT ALL + 32 + - col2 + - 65 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "tab2\.col2 \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "tab2\.col2 \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 15 AS col2, col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query I rowsort @@ -22965,7 +22965,7 @@ SELECT COUNT ( * ) * 85 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -76986 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- Int64\(\-18\)\) \* \(\- tab1\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- Int64\(\-18\)\) \* \(\- tab1\.col1\) 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\. SELECT col0 * - - 18 * - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 query I rowsort @@ -25680,7 +25680,7 @@ SELECT DISTINCT + 36 AS col0, 51 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab0 query I rowsort label-4228 @@ -28922,7 +28922,7 @@ SELECT ALL - col2 - - 89 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab1 query I rowsort @@ -32992,7 +32992,7 @@ SELECT ALL col2 + col2 * - + 55 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 15 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort @@ -34255,7 +34255,7 @@ SELECT DISTINCT MIN ( - ( + - col1 ) ) FROM tab2 # Datafusion - Expected - 5307 # Datafusion - Expected - NULL # Datafusion - Expected - 5307 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(79\) \* Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(79\) \* Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 93 + 79 * + 66 col0 FROM tab2 query I rowsort @@ -34695,7 +34695,7 @@ SELECT DISTINCT - col2 + - 71 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \- \(\- Int64\(51\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) \- \(\- Int64\(51\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - + 51 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -46687,7 +46687,7 @@ SELECT DISTINCT - ( + + col0 ) AS col1 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 34 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(34\) AS Int32\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(34\) AS Int64\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + + 34 AS INTEGER ) AS col1, - 47 AS col1 FROM tab2 query III rowsort @@ -49042,7 +49042,7 @@ SELECT DISTINCT + col0 * - col1 + - 25 col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -49182,7 +49182,7 @@ SELECT DISTINCT - 49 AS col1, col2 / - + 85 FROM tab0 # Datafusion - Expected - 861 # Datafusion - Expected - NULL # Datafusion - Expected - 861 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(41\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(41\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 41 * + 21 col2 FROM tab2 query I rowsort label-8093 @@ -50226,7 +50226,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0 query I rowsort @@ -51134,7 +51134,7 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + col1 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - -80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(80\)\) AS col1" at position 0 and "tab1\.col0 \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(80\)\) AS col1" at position 0 and "tab1\.col0 \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 80 ) AS col1, + col0 * + - CAST ( NULL AS INTEGER ) + - - 67 AS col1 FROM tab1 query III rowsort label-8416 @@ -57853,7 +57853,7 @@ SELECT + + col0 AS col0 FROM tab2 cor0 WHERE NOT ( - - col1 + col0 IS NULL ) # Datafusion - Expected - -87 # Datafusion - Expected - 75 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ \(\- Int64\(8\)\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ \(\- Int64\(8\)\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 83 + - + 8 AS col1, CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 query IIIIII rowsort @@ -59744,7 +59744,7 @@ SELECT ALL * FROM tab1 WHERE NOT + + 42 NOT BETWEEN - - col2 AND col1 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \+ tab1\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \+ tab1\.col1 \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + col0 ) AS col2, + col2 + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/aggregates/slt_good_89.slt b/data/sqlite/random/aggregates/slt_good_89.slt index 09b987d..7843b27 100644 --- a/data/sqlite/random/aggregates/slt_good_89.slt +++ b/data/sqlite/random/aggregates/slt_good_89.slt @@ -141,7 +141,7 @@ SELECT ALL - col2 * - - 33 + + col1 FROM tab1 AS cor0 # Datafusion - Expected - -84 # Datafusion - Expected - -9603 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 0 and "CAST\(\(\- Int64\(84\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 0 and "CAST\(\(\- Int64\(84\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - col2 * + col0 AS col2, CAST ( - + 84 AS INTEGER ) col2 FROM tab0 AS cor0 query I rowsort label-17 @@ -4616,7 +4616,7 @@ SELECT DISTINCT - MIN ( DISTINCT + col0 ) col1, - 30 + - - 42 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 92 AS col1, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 query I rowsort label-744 @@ -5895,7 +5895,7 @@ SELECT ALL - col0 * - - col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(\-59\) \* CAST\(NULL AS Int32\) \* cor0\.col1 \+ Int64\(19\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(\-59\) \* CAST\(NULL AS Int64\) \* cor0\.col1 \+ Int64\(19\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 82 AS col1, - 59 * + CAST ( NULL AS INTEGER ) * + col1 + + 19 + + col2 AS col1 FROM tab1 AS cor0 query I rowsort label-962 @@ -8012,7 +8012,7 @@ SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - + col0 - + col1 AND NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int64\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + CAST ( + col2 AS INTEGER ), col2 FROM tab1 AS cor0 query I rowsort label-1312 @@ -16084,7 +16084,7 @@ SELECT DISTINCT + col1 * 98 * - 52 FROM tab0 cor0 WHERE 68 - - col2 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col1\) \+ CAST\(NULL AS Int32\) \+ Int64\(54\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col1\) \+ CAST\(NULL AS Int64\) \+ Int64\(54\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( + col1 ) + CAST ( NULL AS INTEGER ) + 54 col2, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( + ( - col2 ) * 4 ) query II rowsort label-2634 @@ -19504,7 +19504,7 @@ SELECT ( - ( col0 ) ) * - col2 * + col2 * - col0 AS col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 24 * + CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab1 query III rowsort @@ -19703,7 +19703,7 @@ SELECT + MIN ( DISTINCT + 17 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 query I rowsort label-3229 @@ -42303,7 +42303,7 @@ SELECT ALL - COUNT ( * ) + - 92 AS col2 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + col2 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -44588,7 +44588,7 @@ SELECT ALL 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 1386 # Datafusion - Expected - NULL # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(19\) \* tab2\.col1 \+ \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(19\) \* tab2\.col1 \+ \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 19 * + + col1 + - col1 col0 FROM tab2 query III rowsort @@ -47157,7 +47157,7 @@ SELECT ALL ( + 15 ) col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -945 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-99\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(\-99\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col0, - 99 * COUNT ( * ) * + + COUNT ( * ) + - - COUNT ( * ) * ( - + 18 ) AS col0 FROM tab0 cor0 query I rowsort @@ -48476,7 +48476,7 @@ SELECT ALL - CAST ( + col2 AS INTEGER ) / - - 72 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- \(\- count\(\(\- cor0\.col1\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) / \(\- \(\- count\(\(\- cor0\.col1\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( NULL AS INTEGER ) / ( - - COUNT ( ALL + - col1 ) ) col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 query I rowsort label-7927 @@ -54564,7 +54564,7 @@ SELECT ALL col1 + 41 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 col1, ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 query I rowsort label-8929 @@ -55855,7 +55855,7 @@ SELECT ALL 48 * - col2 AS col2 FROM tab2 # Datafusion - Expected - 77 # Datafusion - Expected - -3520 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- tab2\.col0\) \+ tab2\.col2 \+ Int64\(\-41\) \* CAST\(tab2\.col2 AS Int32\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- tab2\.col0\) \+ tab2\.col2 \+ Int64\(\-41\) \* CAST\(tab2\.col2 AS Int64\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 16 ) * - col0 + + col2 + - 41 * + CAST ( col2 AS INTEGER ) col2, + col1 AS col2 FROM tab2 query III rowsort @@ -56498,7 +56498,7 @@ SELECT + 97 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col0\) / cor0\.col2 AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- CAST\(NULL AS Int64\)\) \+ \(\- cor0\.col0\) / cor0\.col2 AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) + - col0 / col2 col1, - 68 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL query I rowsort @@ -57002,7 +57002,7 @@ SELECT * FROM tab1 AS cor0 WHERE 36 >= col2 / + + col0 # Datafusion - Expected - 75680 # Datafusion - Expected - NULL # Datafusion - Expected - 931293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) / cor0\.col1 \+ \(\- cor0\.col2\) \+ cor0\.col0 \* cor0\.col0 \* cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) / cor0\.col1 \+ \(\- cor0\.col2\) \+ cor0\.col0 \* cor0\.col0 \* cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col2, + CAST ( - col2 AS INTEGER ) / col1 + - col2 + + col0 * + col0 * + col2 + - col1 + col1 AS col2 FROM tab0 AS cor0 query III rowsort @@ -60873,7 +60873,7 @@ SELECT col0 * - + 9 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab2\.col2 / \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "tab2\.col2 / \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, col2 / - col0 AS col0 FROM tab2 query I rowsort label-9978 diff --git a/data/sqlite/random/aggregates/slt_good_9.slt b/data/sqlite/random/aggregates/slt_good_9.slt index 7f6006b..51a169f 100644 --- a/data/sqlite/random/aggregates/slt_good_9.slt +++ b/data/sqlite/random/aggregates/slt_good_9.slt @@ -6312,7 +6312,7 @@ SELECT ALL + col2 - - - col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) 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\. SELECT + + 29 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 query I rowsort label-1011 @@ -11277,7 +11277,7 @@ SELECT DISTINCT col1, - 63 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( col0 ) AS col0 FROM tab1 AS cor0 WHERE + col2 - - col2 BETWEEN - 61 + + col0 + 4 * col2 AND NULL query I rowsort label-1816 @@ -12223,7 +12223,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query III rowsort @@ -13532,7 +13532,7 @@ SELECT * FROM tab0 AS cor0 WHERE col2 - + 25 * + + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(\-62\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(\-62\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 73 + - 62 / + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col2 FROM tab0 query I rowsort label-2202 @@ -19986,7 +19986,7 @@ SELECT ALL + - 90 * - col2 col1 FROM tab0 cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -99 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \* Int64\(5\) / \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \* Int64\(5\) / \(\- \(\- CAST\(cor0\.col2 AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col2 AS col2, + col2 * 5 / - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 query I rowsort label-3261 @@ -31654,7 +31654,7 @@ SELECT col0, - 52 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to de3817e197b9687cc60b9c0dd5295963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / tab1\.col0 \+ \(\- tab1\.col1\) AS col2" at position 1 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / tab1\.col0 \+ \(\- tab1\.col1\) AS col2" at position 1 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 AS col1, col0 / col0 + - col1 AS col2, - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query I rowsort label-5198 @@ -31983,7 +31983,7 @@ SELECT - 54 - + 17 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(89\) \- tab2\.col2 \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- tab2\.col0\) \+ \(\- tab2\.col2\) / Int64\(\-1\) \+ Int64\(89\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(89\) \- tab2\.col2 \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- tab2\.col0\) \+ \(\- tab2\.col2\) / Int64\(\-1\) \+ Int64\(89\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col2 + + 89 - ( col2 ) * - + CAST ( NULL AS INTEGER ) + - col0 + - + col2 / + - 1 + 89 AS col1, - col0 AS col1 FROM tab2 # Datafusion - Types were automatically converted from: @@ -34852,7 +34852,7 @@ SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE + 93 + - 11 + - col2 * + col1 * - # Datafusion - Expected - 115 # Datafusion - Expected - -96 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col1 \+ CAST\(\(\- \(\- tab1\.col2\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col1 \+ CAST\(\(\- \(\- tab1\.col2\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + col2 ) col2, col1 + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -42510,7 +42510,7 @@ SELECT DISTINCT - - col1 + + col1 + 93 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -46 # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 AS col1, - 46 AS col1 FROM tab1 AS cor0 query I rowsort label-6988 @@ -44590,7 +44590,7 @@ SELECT col1 / - + ( + 99 ) + col1 - col0 * + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 418608 # Datafusion - Expected - -5 # Datafusion - Expected - 293709 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\)\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) \* \(\- cor0\.col2\) \- Int64\(34\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- cor0\.col1\) AS Int64\)\)\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) \* \(\- cor0\.col2\) \- Int64\(34\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( - col1 AS INTEGER ) AS col2, col0 * - col2 * - col2 - + 34 * + 64 col2 FROM tab1 AS cor0 query II rowsort @@ -49608,7 +49608,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( + 41 * + col0 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "sum\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "sum\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 27 col0, + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 query I rowsort label-8140 @@ -54524,7 +54524,7 @@ SELECT DISTINCT ( col0 ) * - CAST ( col1 AS INTEGER ) - + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort @@ -60256,7 +60256,7 @@ SELECT ALL - - col0 * - col2 + - + col0 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(84\)\) AS col1" at position 0 and "min\(DISTINCT CAST\(tab2\.col2 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(84\)\) AS col1" at position 0 and "min\(DISTINCT CAST\(tab2\.col2 AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( ALL + 84 ) AS col1, MIN ( DISTINCT + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_90.slt b/data/sqlite/random/aggregates/slt_good_90.slt index df4ae4c..cd55fa2 100644 --- a/data/sqlite/random/aggregates/slt_good_90.slt +++ b/data/sqlite/random/aggregates/slt_good_90.slt @@ -8695,7 +8695,7 @@ SELECT + 30 / + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 query II rowsort @@ -9442,7 +9442,7 @@ SELECT 96 + + 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 0 * + col0 AS col1, ( + - col0 ) + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort label-1554 @@ -15323,7 +15323,7 @@ SELECT ALL - MAX ( ALL - col2 ), - 70 * - COUNT ( * ) col2 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 17 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(17\) AS Int32\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(17\) AS Int64\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + + 17 AS INTEGER ) col1, - col0 AS col1 FROM tab2 query I rowsort label-2520 @@ -19491,7 +19491,7 @@ SELECT ALL 73 AS col1, - 10 + + + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( CAST ( NULL AS INTEGER ) ) col0, COUNT ( * ) AS col0 FROM tab1 query II rowsort @@ -23046,7 +23046,7 @@ SELECT - 23 FROM tab2 WHERE col0 BETWEEN NULL AND - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b6f089797126e5c72358165a8841e53a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) \* \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 \+ CAST\(Int64\(\-14\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) \* \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 \+ CAST\(Int64\(\-14\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - col1 ) * + - col0 AS col1, col0 + + CAST ( - 14 AS INTEGER ) AS col1, - + ( - col1 ) FROM tab2 query I rowsort @@ -28495,7 +28495,7 @@ SELECT DISTINCT - - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NUL # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 89 / + CAST ( NULL AS INTEGER ) col2, col1 AS col2 FROM tab0 query I rowsort label-4686 @@ -31380,7 +31380,7 @@ SELECT + col1 * col2 + + col1 col1 FROM tab2 AS cor0 # Datafusion - Expected - 60434 # Datafusion - Expected - -33 # Datafusion - Expected - 69454 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ CAST\(cor0\.col2 AS Int32\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \* \(\- \(\- CAST\(Int64\(11\) AS Int32\)\)\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ CAST\(cor0\.col2 AS Int64\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \* \(\- \(\- CAST\(Int64\(11\) AS Int64\)\)\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 33 + + CAST ( col2 AS INTEGER ) + + - col2 AS col0, col1 * - + ( - CAST ( + + 11 AS INTEGER ) ) * 82 AS col0 FROM tab2 AS cor0 query I rowsort @@ -42069,7 +42069,7 @@ SELECT + col0 AS col0, col1 * - - ( 29 ) + - col1 * - 71 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 19 AS col2, - CAST ( NULL AS INTEGER ) * + + col2 AS col2 FROM tab0 cor0 query III rowsort @@ -44629,7 +44629,7 @@ SELECT DISTINCT - 8 + + col1 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17751 # Datafusion - Expected - -204 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* sum\(\(\- \(\- CAST\(Int64\(61\) AS Int32\)\)\)\) AS col0" at position 0 and "sum\(DISTINCT \(\- Int64\(68\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* sum\(\(\- \(\- CAST\(Int64\(61\) AS Int64\)\)\)\) AS col0" at position 0 and "sum\(DISTINCT \(\- Int64\(68\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97 * + + SUM ( - - CAST ( + 61 AS INTEGER ) ) col0, SUM ( DISTINCT - ( 68 ) ) * COUNT ( * ) AS col0 FROM tab2 query III rowsort @@ -48998,7 +48998,7 @@ SELECT DISTINCT * FROM tab2 WHERE NOT 47 / + col2 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col1\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col1\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 AS col0, - col1 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 # Datafusion - Types were automatically converted from: @@ -52823,7 +52823,7 @@ SELECT DISTINCT + - 54 AS col2 FROM tab2 cor0 # Datafusion - Expected - -74 # Datafusion - Expected - -98 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- \(\- tab0\.col2\)\) \* \(\- tab0\.col1\) AS col1" at position 0 and "\(\- tab0\.col1\) \+ \(\- CAST\(Int64\(\-7\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- \(\- tab0\.col2\)\) \* \(\- tab0\.col1\) AS col1" at position 0 and "\(\- tab0\.col1\) \+ \(\- CAST\(Int64\(\-7\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col1 + - - col2 * - col1 AS col1, - col1 + - CAST ( + - 7 AS INTEGER ) AS col1 FROM tab0 query I rowsort label-8698 @@ -57682,7 +57682,7 @@ SELECT + 18 - col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 970202 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col2 \* \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col2\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col2 \* \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col2\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col0 - + col2 * - - col2 * - ( + col2 ) AS col0, CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_91.slt b/data/sqlite/random/aggregates/slt_good_91.slt index 95838bd..d3183b3 100644 --- a/data/sqlite/random/aggregates/slt_good_91.slt +++ b/data/sqlite/random/aggregates/slt_good_91.slt @@ -14143,7 +14143,7 @@ SELECT + col1 * 28 + + col1 AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- tab2\.col2\) \* \(\- tab2\.col0\) / Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- tab2\.col2\) \* \(\- tab2\.col0\) / Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 5 col1, CAST ( NULL AS INTEGER ) + - + col2 * + - col0 / + 73 AS col1 FROM tab2 query I rowsort label-2316 @@ -18012,7 +18012,7 @@ NULL # Datafusion - Expected - 3374971 # Datafusion - Expected - 529 # Datafusion - Expected - 778659 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\) \* tab2\.col2 AS col0" at position 0 and "Int64\(\-29\) \+ \(\- tab2\.col0\) \* \(\- tab2\.col0\) \* \(\- Int64\(8\)\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int64\) \* tab2\.col2 AS col0" at position 0 and "Int64\(\-29\) \+ \(\- tab2\.col0\) \* \(\- tab2\.col0\) \* \(\- Int64\(8\)\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( col2 AS INTEGER ) * + col2 AS col0, - 29 + - col0 * - col0 * - + 8 * - col0 AS col0 FROM tab2 query III rowsort @@ -28624,7 +28624,7 @@ SELECT + ( - ( - + 7 ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "sum\(Int64\(\-51\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "sum\(Int64\(\-51\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, SUM ( + - 51 ) AS col2 FROM tab0 cor0 query I rowsort @@ -32461,7 +32461,7 @@ SELECT DISTINCT 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int64\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( col2 AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 query I rowsort @@ -33659,7 +33659,7 @@ SELECT ALL * FROM tab0 WHERE - 78 < NULL # Datafusion - Expected - NULL # Datafusion - Expected - -19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "\(\- \(\- tab2\.col2\)\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "\(\- \(\- tab2\.col2\)\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 19 AS col2, + ( - - col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query I rowsort label-5515 @@ -40768,7 +40768,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 9d2568768d0ed0111ecb43e66ff65e43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 10 col1, - CAST ( NULL AS INTEGER ) / 5 AS col1 FROM tab2, tab1 cor0 query I rowsort @@ -43619,7 +43619,7 @@ SELECT DISTINCT col2 + + 69 / - ( + ( col2 ) ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - col2 col1, col2 * col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort label-7166 @@ -46075,7 +46075,7 @@ SELECT MAX ( + 16 ) + - + MIN ( + col2 ) FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(81\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(81\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + + 81 AS col1, - col2 AS col1 FROM tab2 query II rowsort @@ -46522,7 +46522,7 @@ SELECT - - 63 * - + col0 + - col2 AS col0, col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(78\) \+ count\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(78\) \+ count\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 78 + COUNT ( col1 ) AS col1 FROM tab0 AS cor0 query I rowsort @@ -49630,7 +49630,7 @@ SELECT * FROM tab0 WHERE NOT - col2 - col2 * + col1 IS NULL # Datafusion - Expected - -2204 # Datafusion - Expected - NULL # Datafusion - Expected - -874 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(38\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(38\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) col2, + 38 * - col2 AS col2 FROM tab2 query I rowsort @@ -55331,7 +55331,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + 69 + + col0 AND + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 530f7d2d74505fd5cc0b91db1c47ded8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(72\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(72\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) * + - col2 AS col1, - col0, + + 72 + - col1 + - col2 AS col1 FROM tab2 AS cor0 query II rowsort @@ -58539,7 +58539,7 @@ SELECT ALL - + CAST ( col2 AS INTEGER ) * + 80 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) \* cor0\.col1 \+ Int64\(31\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int64\)\) \* cor0\.col1 \+ Int64\(31\) \- CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + col0 AS INTEGER ) * + col1 + + ( 31 ) - CAST ( NULL AS INTEGER ) AS col1, 28 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL query III rowsort label-9597 diff --git a/data/sqlite/random/aggregates/slt_good_92.slt b/data/sqlite/random/aggregates/slt_good_92.slt index f8c2996..f52b751 100644 --- a/data/sqlite/random/aggregates/slt_good_92.slt +++ b/data/sqlite/random/aggregates/slt_good_92.slt @@ -10305,7 +10305,7 @@ SELECT + ( - + ( + - col0 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 63 # Datafusion - Expected - 77 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int64\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2, 63 col2 FROM tab2 AS cor0 query I rowsort @@ -14075,7 +14075,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -4512 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(\-47\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(\-47\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 * - 47 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 query II rowsort label-2313 @@ -16001,7 +16001,7 @@ SELECT + col1 - - col2 FROM tab1 cor0 # Datafusion - Expected - -53 # Datafusion - Expected - -223 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \- \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) \+ Int64\(\-66\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \- \(\- \(\- CAST\(cor0\.col2 AS Int64\)\)\) \+ Int64\(\-66\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 99 - - - CAST ( col2 AS INTEGER ) + - 66 AS col0, col0 + - col2 + - col1 AS col0 FROM tab2 AS cor0 query I rowsort @@ -18816,7 +18816,7 @@ SELECT + - col0 AS col1, + ( 79 ) * - CAST ( 78 AS INTEGER ) * col1 - + - col0 F # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -29297,7 +29297,7 @@ SELECT ALL - 15 + 58 AS col1, col0 AS col1 FROM tab2 # Datafusion - Expected - 24 # Datafusion - Expected - -9216 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col2\) AS col2" at position 0 and "Int64\(71\) \+ \(\- CAST\(tab1\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col2\) AS col2" at position 0 and "Int64\(71\) \+ \(\- CAST\(tab1\.col1 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col2 * - col2 AS col2, 71 + - + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -35668,7 +35668,7 @@ SELECT + - 35 * CAST ( 70 AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(NULL AS Int64\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) col2 FROM tab0 query I rowsort @@ -38892,7 +38892,7 @@ SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND col2 # Datafusion - Expected - -47 # Datafusion - Expected - 0 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) / Int64\(\-75\) \* Int64\(93\) \* CAST\(Int64\(\-15\) AS Int32\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) / Int64\(\-75\) \* Int64\(93\) \* CAST\(Int64\(\-15\) AS Int64\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 35 / - 75 * + 93 * + + CAST ( - 15 AS INTEGER ) AS col0, - ( col2 ) AS col0 FROM tab0 cor0 query I rowsort @@ -45076,7 +45076,7 @@ SELECT + 26 col2, col2 AS col1 FROM tab1 # Datafusion - Expected - 65 # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-14\)\) AS Int32\) / tab2\.col1 AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-14\)\) AS Int64\) / tab2\.col1 AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - 14 AS INTEGER ) / + col1 AS col2, + 65 AS col2 FROM tab2 query II rowsort label-7379 @@ -46801,7 +46801,7 @@ SELECT ALL * FROM tab0 WHERE NOT - 39 > ( + CAST ( NULL AS INTEGER ) + - - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c8beef9b5d95032ecdf18cdd53ed129b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "CAST\(cor0\.col1 AS Int64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + col0 col2, + col0, + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -54023,7 +54023,7 @@ SELECT DISTINCT - + col2 / 0 * - 4 FROM tab1 AS cor0 WHERE + CAST ( 35 AS INTEGE # Datafusion - Expected - -21 # Datafusion - Expected - 96 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ CAST\(Int64\(49\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ CAST\(Int64\(49\) AS Int64\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 + + CAST ( + 49 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 AS cor0 query I rowsort label-8846 @@ -55266,7 +55266,7 @@ SELECT * FROM tab2 WHERE - col0 + + + col0 * + + col2 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 56 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "CAST\(\(\- Int64\(44\)\) AS Int32\) / \(\- tab1\.col2\) \- \(\- CAST\(tab1\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "CAST\(\(\- Int64\(44\)\) AS Int64\) / \(\- tab1\.col2\) \- \(\- CAST\(tab1\.col2 AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 56 AS col2, CAST ( - + 44 AS INTEGER ) / - col2 - - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_93.slt b/data/sqlite/random/aggregates/slt_good_93.slt index 52f59b3..dd0aa6d 100644 --- a/data/sqlite/random/aggregates/slt_good_93.slt +++ b/data/sqlite/random/aggregates/slt_good_93.slt @@ -44,7 +44,7 @@ INSERT INTO tab2 VALUES(46,51,23) # Datafusion - Expected - 7229 # Datafusion - Expected - NULL # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 \+ \(\- Int64\(22\)\) / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 \+ \(\- Int64\(22\)\) / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col2, col0 * + + col0 + - + 22 / - col1 AS col2 FROM tab1 cor0 query I rowsort label-1 @@ -8303,7 +8303,7 @@ SELECT ( + - 1 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 20 AS col1, + CAST ( NULL AS INTEGER ) * + 29 AS col1 FROM tab2 AS cor0 query II rowsort @@ -16807,7 +16807,7 @@ SELECT DISTINCT + + 41 FROM tab1 AS cor0 WHERE NOT + 50 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + 15 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -18530,7 +18530,7 @@ SELECT DISTINCT col1 * col1 * + + col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f5ccf914253aa4b83bcf0cf2b88e5279 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, col0 * + 82, - + col0 AS col1 FROM tab1 AS cor0 query II rowsort @@ -30874,7 +30874,7 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE 90 * + CAST ( NULL AS INTEGER ) > col0 # Datafusion - Expected - -23 # Datafusion - Expected - 96 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(32\) AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(32\) AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + col0 + 32 AS col0, + CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0 query I rowsort @@ -31641,7 +31641,7 @@ SELECT - COUNT ( 39 ) AS col0, + 84 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -451 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(41\) \* \(\- CAST\(Int64\(11\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(41\) \* \(\- CAST\(Int64\(11\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col0, 41 * + - CAST ( ( + 11 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 query II rowsort @@ -40189,7 +40189,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - 89 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 39cdc3c6203477a018c455449a219085 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- CAST\(Int64\(39\) AS Int32\)\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- CAST\(Int64\(39\) AS Int64\)\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 * - - CAST ( 39 AS INTEGER ) AS col2, - col1 AS col2, - col0 FROM tab0 AS cor0 query II rowsort label-6593 @@ -46494,7 +46494,7 @@ SELECT DISTINCT + - COUNT ( * ) * + + 79 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(\(\- \(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(\(\- \(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( ALL ( - - col2 ) ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -47250,7 +47250,7 @@ SELECT DISTINCT * FROM tab0 WHERE + col0 / CAST ( NULL AS INTEGER ) <= NULL # Datafusion - Expected - -87 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(NULL AS Int32\) \* tab0\.col0 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(NULL AS Int64\) \* tab0\.col0 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col1 * + ( + CAST ( NULL AS INTEGER ) ) * col0 AS col0, - col0 AS col0 FROM tab0 query I rowsort label-7750 @@ -49136,7 +49136,7 @@ SELECT col0 * + col0 * + col0 - + col0 + + 17 AS col1, 6 / - 6 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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\. SELECT DISTINCT - col1 AS col0, ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 query I rowsort label-8057 @@ -49173,7 +49173,7 @@ SELECT DISTINCT + col2 AS col2, - 18, - ( - + col1 ) * - col1 col0 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab2\.col0\) / tab2\.col1 \* \(\- tab2\.col1\) \* Int64\(81\) / tab2\.col2 \* tab2\.col1 \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- tab2\.col0\) / tab2\.col1 \* \(\- tab2\.col1\) \* Int64\(81\) / tab2\.col2 \* tab2\.col1 \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col0 / col1 * - col1 * 81 / col2 * + col1 * - 61 AS col1 FROM tab2 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_94.slt b/data/sqlite/random/aggregates/slt_good_94.slt index a3d483d..74786c8 100644 --- a/data/sqlite/random/aggregates/slt_good_94.slt +++ b/data/sqlite/random/aggregates/slt_good_94.slt @@ -2450,7 +2450,7 @@ SELECT ( - col0 ) - + col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 34 AS col2, + COUNT ( * ) col2 FROM tab0 cor0 query III rowsort @@ -11703,7 +11703,7 @@ SELECT CAST ( - 81 AS INTEGER ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 89 * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 query III rowsort label-1917 @@ -21805,7 +21805,7 @@ SELECT DISTINCT + SUM ( DISTINCT + col0 ) + - 58 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-85\)\) AS col2" at position 0 and "tab2\.col1 \+ tab2\.col2 \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-85\)\) AS col2" at position 0 and "tab2\.col1 \+ tab2\.col2 \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - 85 ) col2, col1 + col2 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query I rowsort @@ -22577,7 +22577,7 @@ SELECT - 85 * - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ab50f2ae1fd6162b4f09590b828f7a58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(20\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) / Int64\(68\) \- tab2\.col1 \- tab2\.col2 AS col2" at position 0 and "tab2\.col2 \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(20\) \* CAST\(CAST\(NULL AS Int64\) AS Int64\) / Int64\(68\) \- tab2\.col1 \- tab2\.col2 AS col2" at position 0 and "tab2\.col2 \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 * 20 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 68 - + col1 - col2 AS col2, + ( + col2 ) * - 75 AS col2, + col2 * - col0 AS col2 FROM tab2 query I rowsort label-3703 @@ -23326,7 +23326,7 @@ SELECT ALL SUM ( ALL + + col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "tab1\.col2 \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "tab1\.col2 \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 53 AS col1, col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 query I rowsort @@ -33501,7 +33501,7 @@ SELECT + - ( + - 28 ) FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col1\) \+ \(\- \(\- \(\- \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\)\)\) \- tab0\.col1 \* tab0\.col0 \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col1\) \+ \(\- \(\- \(\- \(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\)\)\)\) \- tab0\.col1 \* tab0\.col0 \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col1 AS col2, - ( col1 ) + - ( - ( - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) - col1 * col0 * + - col0 AS col2 FROM tab0 query I rowsort label-5485 @@ -38036,7 +38036,7 @@ SELECT col2 + 38 * + 4 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(72\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(72\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + ( - 79 ) AS col2, - COUNT ( * ) * + CAST ( + 72 AS INTEGER ) * COUNT ( * ) col2 FROM tab0 AS cor0 query I rowsort label-6234 @@ -42038,7 +42038,7 @@ SELECT ALL - col0 - + col2 * - 15 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int32\)\) \+ min\(tab0\.col0\) AS col0" at position 0 and "min\(tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int64\)\) \+ min\(tab0\.col0\) AS col0" at position 0 and "min\(tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + MIN ( + col0 ) AS col0, MIN ( + col0 ) AS col0 FROM tab0 query I rowsort @@ -44260,7 +44260,7 @@ SELECT * FROM tab0 AS cor0 WHERE - col0 + col1 * 18 * col2 * + col0 + + 82 + + + # Datafusion - Expected - 16 # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col1 \* Int64\(\-66\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ cor0\.col1 \* Int64\(\-66\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) + + col1 * + - 66 AS col2, 16 AS col2 FROM tab1 AS cor0 query I rowsort @@ -47445,7 +47445,7 @@ SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE col2 * - 20 - - + 2 >= NULL 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col0 AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col0 AS Int64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + col0 AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 WHERE NULL <= col1 + - + col1 query III rowsort @@ -50187,7 +50187,7 @@ SELECT DISTINCT + 97 * - col1 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - -48 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 1 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 1 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( 15 ), - 48 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 query I rowsort label-8235 @@ -52485,7 +52485,7 @@ SELECT ALL - col1 - - col2 + 28, 16 col1 FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "tab0\.col2 / \(\- \(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "tab0\.col2 / \(\- \(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + col2 / ( - - col0 ) AS col1 FROM tab0 query I rowsort label-8617 @@ -54697,7 +54697,7 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 91 <= - + 96 / + col2 # Datafusion - Expected - -92 # Datafusion - Expected - -4312 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(56\) AS Int32\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- Int64\(92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(56\) AS Int64\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- Int64\(92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 56 AS INTEGER ) * - col1 AS col2, - ( 92 ) AS col2 FROM tab2 AS cor0 query I rowsort @@ -55547,7 +55547,7 @@ SELECT DISTINCT MIN ( + 33 ) col1 FROM tab0 AS cor0 # Datafusion - Expected - 3489 # Datafusion - Expected - 5 # Datafusion - Expected - 3063 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- CAST\(cor0\.col2 AS Int32\)\) \+ Int64\(53\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- CAST\(cor0\.col2 AS Int64\)\) \+ Int64\(53\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col2, - col1 + - CAST ( col2 AS INTEGER ) + 53 * + col2 AS col2 FROM tab1 AS cor0 query II rowsort diff --git a/data/sqlite/random/aggregates/slt_good_95.slt b/data/sqlite/random/aggregates/slt_good_95.slt index 48fa855..aed42a0 100644 --- a/data/sqlite/random/aggregates/slt_good_95.slt +++ b/data/sqlite/random/aggregates/slt_good_95.slt @@ -1707,7 +1707,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - col2 * - col2 + + CAST ( NULL AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- tab0\.col0\)\) AS col2" at position 0 and "avg\(CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- tab0\.col0\)\) AS col2" at position 0 and "avg\(CAST\(CAST\(NULL AS Int64\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( DISTINCT + - ( + col0 ) ) AS col2, AVG ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2 FROM tab0 # Datafusion - Types were automatically converted from: @@ -4516,7 +4516,7 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "\(\- tab2\.col2\) \* \(\- tab2\.col0\) \+ tab2\.col0 / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "\(\- tab2\.col2\) \* \(\- tab2\.col0\) \+ tab2\.col0 / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 37 AS col2, - col2 * - + col0 + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 query I rowsort label-739 @@ -8709,7 +8709,7 @@ SELECT ALL + - ( + col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- CAST\(NULL AS Int32\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- CAST\(NULL AS Int64\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - col2 AS col0, - col1 + - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0 query II rowsort @@ -8790,7 +8790,7 @@ SELECT DISTINCT col1 * - col2 AS col2, + ( - col1 ) - - 42 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0, COUNT ( * ) / + + COUNT ( * ) col0 FROM tab0 query II rowsort label-1447 @@ -9026,7 +9026,7 @@ SELECT ALL + col2 * 60 + + + col0 AS col2 FROM tab2 # Datafusion - Expected - 79 # Datafusion - Expected - 91 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col0\) AS Int32\)\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col0\) AS Int64\)\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2, 79 col2 FROM tab1 query I rowsort @@ -20345,7 +20345,7 @@ SELECT 59 col2 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) / Int64\(56\) AS col1" at position 0 and "cor0\.col0 \* \(\- Int64\(\-42\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) / Int64\(56\) AS col1" at position 0 and "cor0\.col0 \* \(\- Int64\(\-42\)\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 4 / 56 AS col1, col0 * - - 42 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 query II rowsort label-3337 @@ -32868,7 +32868,7 @@ SELECT ALL SUM ( + + col2 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 522e15252c2b97148ece937d770f8e6f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab0, tab0 AS cor0 query II rowsort @@ -40584,7 +40584,7 @@ SELECT * FROM tab2 WHERE NOT - - col1 + + col0 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(99\) \+ \(\- tab1\.col0\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(99\) \+ \(\- tab1\.col0\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 AS col2, + 99 + - col0 * ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1 query III rowsort @@ -52047,7 +52047,7 @@ SELECT * FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) 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\. SELECT DISTINCT 53 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query I rowsort label-8554 @@ -53847,7 +53847,7 @@ SELECT DISTINCT + + COUNT ( + col0 ), ( - COUNT ( DISTINCT col0 ) ) AS col0 FROM # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 AS col1" at position 0 and "Int64\(52\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 AS col1" at position 0 and "Int64\(52\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 + + col0 AS col1, + 52 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 query I rowsort @@ -56948,7 +56948,7 @@ SELECT - + col1 / - - col2 + - 38 FROM tab2 AS cor0 WHERE NOT col1 IS NULL # Datafusion - Expected - -34 # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(\-19\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(\-19\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) / - 19 AS col0, - 34 AS col0 FROM tab2 AS cor0 query I rowsort label-9356 diff --git a/data/sqlite/random/aggregates/slt_good_96.slt b/data/sqlite/random/aggregates/slt_good_96.slt index 2230b25..46e548b 100644 --- a/data/sqlite/random/aggregates/slt_good_96.slt +++ b/data/sqlite/random/aggregates/slt_good_96.slt @@ -15130,7 +15130,7 @@ SELECT + COUNT ( * ) FROM tab0 WHERE + col0 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / tab0\.col2 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / tab0\.col2 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\. SELECT col1 / + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort label-2494 @@ -16544,7 +16544,7 @@ SELECT DISTINCT + + col0 * col0 * - - col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* Int64\(70\) AS col1" at position 0 and "Int64\(12\) \+ cor0\.col0 \- \(\- cor0\.col0\) \+ CAST\(NULL AS Int32\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* Int64\(70\) AS col1" at position 0 and "Int64\(12\) \+ cor0\.col0 \- \(\- cor0\.col0\) \+ CAST\(NULL AS Int64\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + - col2 ) * + 70 AS col1, 12 + + col0 - - + col0 + + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0 query I rowsort label-2731 @@ -19104,7 +19104,7 @@ SELECT * FROM tab0 WHERE ( NULL ) > + col0 * + 88 + + - col0 + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(Int64\(\-7\)\)\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(Int64\(\-7\)\)\) AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - SUM ( ALL - 7 ) AS INTEGER ) AS col0, COUNT ( * ) col0 FROM tab1 query III rowsort @@ -33250,7 +33250,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(71\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(71\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 AS col0, 71 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 query I rowsort @@ -33529,7 +33529,7 @@ SELECT DISTINCT + 46 + + 51 AS col1, 79 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 27 AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab2 query I rowsort @@ -37186,7 +37186,7 @@ SELECT DISTINCT + + ( - COUNT ( * ) ) AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col2" at position 0 and "\(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col2" at position 0 and "\(\- count\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 57 AS col2, - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-6155 @@ -37240,7 +37240,7 @@ SELECT DISTINCT SUM ( + - col1 ) col2 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -41465,7 +41465,7 @@ NULL # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 query III rowsort @@ -44615,7 +44615,7 @@ SELECT ALL ( col0 ) col0 FROM tab0 AS cor0 # Datafusion - Expected - -1608 # Datafusion - Expected - -58 # Datafusion - Expected - -1848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "\(\- CAST\(Int64\(24\) AS Int32\)\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "\(\- CAST\(Int64\(24\) AS Int64\)\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 58 AS col0, - CAST ( + 24 AS INTEGER ) * col1 col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: @@ -52664,7 +52664,7 @@ SELECT DISTINCT + 46 * + ( - 92 ) * - - col0 + - 21 + + 73 - col0 AS col1 FROM t # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(\-91\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(\-91\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, COUNT ( ( - 91 ) ) AS col0 FROM tab1 query III rowsort @@ -56535,7 +56535,7 @@ SELECT DISTINCT col2 / col1 * + - 51 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / \(\- tab0\.col2\) \* Int64\(64\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / \(\- tab0\.col2\) \* Int64\(64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 1 / - col2 * + 64 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 query I rowsort label-9346 @@ -58674,7 +58674,7 @@ SELECT + + 89 AS col1 FROM tab2 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -89 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-89\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-89\) AS Int64\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 89 AS INTEGER ) AS col1, - col2 col1 FROM tab0 AS cor0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_97.slt b/data/sqlite/random/aggregates/slt_good_97.slt index 11eb04f..6e0ff58 100644 --- a/data/sqlite/random/aggregates/slt_good_97.slt +++ b/data/sqlite/random/aggregates/slt_good_97.slt @@ -4511,7 +4511,7 @@ SELECT col2 + ( - col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(\-12\) \+ tab2\.col0 \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "CAST\(Int64\(31\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(\-12\) \+ tab2\.col0 \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "CAST\(Int64\(31\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col2 * - 12 + + + col0 - - CAST ( NULL AS FLOAT8 ) AS col0, + CAST ( + 31 AS INTEGER ) AS col0 FROM tab2 query III rowsort @@ -5374,7 +5374,7 @@ SELECT DISTINCT + col0, + col2 FROM tab0 # Datafusion - Expected - 3713 # Datafusion - Expected - -9801 # Datafusion - Expected - 7821 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "Int64\(79\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* CAST\(tab0\.col2 AS Int64\) AS col0" at position 0 and "Int64\(79\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col2 * CAST ( + col2 AS INTEGER ) col0, 79 * col2 AS col0 FROM tab0 query I rowsort @@ -8958,7 +8958,7 @@ SELECT DISTINCT - col2 * + 59 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int32\)\) \+ Int64\(14\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int64\)\) \+ Int64\(14\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + + 82 AS INTEGER ) + 14 AS col1, - 71 AS col1 FROM tab0 query I rowsort @@ -10371,7 +10371,7 @@ SELECT ALL col1 * + + col1 + - 16 - + 2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT # Datafusion - Expected - 13 # Datafusion - Expected - -86 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-86\) AS Int32\) AS col0" at position 0 and "Int64\(\-62\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-86\) AS Int64\) AS col0" at position 0 and "Int64\(\-62\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 86 AS INTEGER ) AS col0, - 62 + + col0 AS col0 FROM tab2 AS cor0 query I rowsort label-1687 @@ -11967,7 +11967,7 @@ SELECT - 66 - + + col1 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 970202 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ CAST\(\(\- tab0\.col2\) AS Int32\) \* \(\- tab0\.col2\) \* \(\- \(\- tab0\.col2\)\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ CAST\(\(\- tab0\.col2\) AS Int64\) \* \(\- tab0\.col2\) \* \(\- \(\- tab0\.col2\)\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - col0 ) + + + CAST ( - col2 AS INTEGER ) * - col2 * - - col2 AS col1, col0 AS col1 FROM tab0 query I rowsort label-1952 @@ -13538,7 +13538,7 @@ SELECT + col2 * - - 86 * - + col1 FROM tab1 # Datafusion - Expected - 12 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab0\.col0 \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "tab0\.col0 \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col0, col0 + - 85 AS col0 FROM tab0 query I rowsort @@ -15912,7 +15912,7 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COUNT ( * ) col1, COUNT ( * ) * - + CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0 query III rowsort @@ -21189,7 +21189,7 @@ SELECT DISTINCT 6 + + col1 * col1 AS col0 FROM tab0 # Datafusion - Expected - 133 # Datafusion - Expected - 0 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) / CAST\(Int64\(73\) AS Int32\) AS col0" at position 0 and "tab2\.col2 \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) / CAST\(Int64\(73\) AS Int64\) AS col0" at position 0 and "tab2\.col2 \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 15 / + CAST ( + 73 AS INTEGER ) col0, + col2 + + col0 AS col0 FROM tab2 query I rowsort label-3460 @@ -23827,7 +23827,7 @@ SELECT ALL - col2 * - 51 FROM tab2 # Datafusion - Expected - 133 # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "tab2\.col0 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "tab2\.col0 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, col0 + + col2 AS col1 FROM tab2 query I rowsort @@ -26322,7 +26322,7 @@ SELECT DISTINCT + - col0, + 33 + col0 + + ( + col1 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) 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\. SELECT 38 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query II rowsort @@ -27090,7 +27090,7 @@ SELECT * FROM tab1 WHERE NULL IN ( col0 * col0, - col0 - col1, 7 * col1, col0 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 query I rowsort @@ -29489,7 +29489,7 @@ SELECT ALL + - 3 * + - col0 * + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(49\)\) \- \(\- \(\- CAST\(\(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\)\)\) \* \(\- sum\(Int64\(2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(49\)\) \- \(\- \(\- CAST\(\(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int64\)\)\) \* \(\- sum\(Int64\(2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col0, - COUNT ( * ) + - + 49 - - - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) * - SUM ( + + 2 ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -34797,7 +34797,7 @@ SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 query III rowsort @@ -37266,7 +37266,7 @@ SELECT DISTINCT - 63 + - col1 + - 12 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / CAST\(Int64\(\-93\) AS Float64\) \* \(\- \(\- \(\- max\(Int64\(78\)\)\)\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / CAST\(Int64\(\-93\) AS Float64\) \* \(\- \(\- \(\- max\(Int64\(78\)\)\)\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) / + CAST ( - 93 AS FLOAT8 ) * - ( - - MAX ( 78 ) ) col1, 59 AS col1 FROM tab1 AS cor0 query I rowsort label-6102 @@ -43400,7 +43400,7 @@ SELECT DISTINCT - col0 AS col1, col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 86 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 query III rowsort label-7116 @@ -43798,7 +43798,7 @@ SELECT - + col2 AS col1, col0 col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(68\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(68\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT col2 AS col0, ( 68 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 query II rowsort label-7180 @@ -55264,7 +55264,7 @@ SELECT DISTINCT - 33 + + - col1 FROM tab2 AS cor0 # Datafusion - Expected - 24334 # Datafusion - Expected - NULL # Datafusion - Expected - 252300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, - col0 * - + col2 * col2 AS col1 FROM tab2 AS cor0 query III rowsort diff --git a/data/sqlite/random/aggregates/slt_good_98.slt b/data/sqlite/random/aggregates/slt_good_98.slt index 838c345..e18fd14 100644 --- a/data/sqlite/random/aggregates/slt_good_98.slt +++ b/data/sqlite/random/aggregates/slt_good_98.slt @@ -13960,7 +13960,7 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 = - col0 / + + 74 + + 64 - + 95 * + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 query II rowsort @@ -14593,7 +14593,7 @@ SELECT + + col1 / + + 65 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \- CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + col2 AS col0, + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 query III rowsort @@ -15604,7 +15604,7 @@ SELECT col0 AS col2 FROM tab2 WHERE NOT ( - col2 * + 7 * ( + 29 ) ) = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "count\(CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 9 AS col2, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 query I rowsort @@ -15742,7 +15742,7 @@ SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 9603 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- CAST\(\(\- tab0\.col0\) AS Int32\)\) AS col2" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- CAST\(\(\- tab0\.col0\) AS Int64\)\) AS col2" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL col2 * - CAST ( - col0 AS INTEGER ) AS col2, CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0 query III rowsort @@ -17328,7 +17328,7 @@ SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / CAST\(NULL AS Int32\) / Int64\(84\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / CAST\(NULL AS Int64\) / Int64\(84\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col0 / CAST ( NULL AS INTEGER ) / + + 84 AS col0, col2 AS col0 FROM tab0 AS cor0 query I rowsort @@ -18788,7 +18788,7 @@ SELECT DISTINCT + col2 / 54, col2 AS col2 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\)" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int64\)" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + col2 AS INTEGER ), + col2 AS col2 FROM tab2 query III rowsort @@ -29689,7 +29689,7 @@ SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col0 <= ( - col0 + + + col2 - + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(49\) \* CAST\(count\(cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(49\) \* CAST\(count\(cor0\.col2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2, 49 * + CAST ( + COUNT ( ALL col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 query I rowsort @@ -29726,7 +29726,7 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - CAST ( - # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 AS col2, + col0 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE 32 IS NOT NULL query III rowsort @@ -34718,7 +34718,7 @@ SELECT DISTINCT + - CAST ( + + 53 AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -62 # Datafusion - Expected - -40 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col1" at position 0 and "\(\- CAST\(cor0\.col1 AS Int32\)\) \+ \(\- \(\- cor0\.col2\)\) \+ Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col1" at position 0 and "\(\- CAST\(cor0\.col1 AS Int64\)\) \+ \(\- \(\- cor0\.col2\)\) \+ Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 col1, - CAST ( col1 AS INTEGER ) + - - col2 + - 28 col1 FROM tab0 AS cor0 query I rowsort @@ -36629,7 +36629,7 @@ SELECT ALL col0 + + - 82 * + col0 * 46 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 5824 # Datafusion - Expected - -61 # Datafusion - Expected - 6825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-3\) AS col1" at position 0 and "CAST\(Int64\(91\) AS Int32\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-3\) AS col1" at position 0 and "CAST\(Int64\(91\) AS Int64\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + col2 + - 3 AS col1, + CAST ( 91 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL query II rowsort label-6014 @@ -42118,7 +42118,7 @@ SELECT DISTINCT + COUNT ( * ) + - 99 * - 13, 8 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 1530 # Datafusion - Expected - 434 # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 \* Int64\(32\) AS col1" at position 0 and "\(\- CAST\(Int64\(18\) AS Int32\)\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 \* Int64\(32\) AS col1" at position 0 and "\(\- CAST\(Int64\(18\) AS Int64\)\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - col1 + + col1 * + + 32 AS col1, - CAST ( + 18 AS INTEGER ) * + - ( + col0 ) AS col1 FROM tab1 AS cor0 query I rowsort @@ -49696,7 +49696,7 @@ SELECT ALL + MAX ( ALL - - col0 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3ceb85e7a1dbad6d1aa7592156cc213d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "CAST\(\(\- tab0\.col1\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "CAST\(\(\- tab0\.col1\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 72 AS col0, + CAST ( - col1 AS INTEGER ) AS col0, + col0 * 27 + + col0 FROM tab0 query I rowsort diff --git a/data/sqlite/random/aggregates/slt_good_99.slt b/data/sqlite/random/aggregates/slt_good_99.slt index 79c1068..5cf1611 100644 --- a/data/sqlite/random/aggregates/slt_good_99.slt +++ b/data/sqlite/random/aggregates/slt_good_99.slt @@ -2352,7 +2352,7 @@ SELECT ALL ( - + MAX ( DISTINCT - - 26 ) ) col1 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int64\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + col2 AS INTEGER ) AS col2, + col1 col2 FROM tab2 query I rowsort label-383 @@ -2608,7 +2608,7 @@ SELECT DISTINCT - 27 col2 FROM tab2 # Datafusion - Expected - 74658 # Datafusion - Expected - NULL # Datafusion - Expected - 931349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(45\)\) AS Int32\)\) \* \(\- tab0\.col1\) \+ tab0\.col2 \* \(\- tab0\.col0\) \* \(\- tab0\.col0\) \+ \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(45\)\) AS Int64\)\) \* \(\- tab0\.col1\) \+ tab0\.col2 \* \(\- tab0\.col0\) \* \(\- tab0\.col0\) \+ \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, - CAST ( - + 45 AS INTEGER ) * - ( + col1 ) + col2 * - + col0 * + ( - col0 ) + - col0 AS col2 FROM tab0 query I rowsort label-421 @@ -6728,7 +6728,7 @@ SELECT DISTINCT + col1 * col1 AS col0, - col0 / - + col1 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-32\)\) \* cor0\.col0 \* Int64\(9\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-32\)\) \* cor0\.col0 \* Int64\(9\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - 32 * + col0 * + 9 + - col0 AS col0, - col0 col0 FROM tab1 AS cor0 query I rowsort @@ -14769,7 +14769,7 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( - 74 ) IN ( + col0 * 61 / + + col2, col0, # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 query I rowsort label-2419 @@ -21171,7 +21171,7 @@ SELECT DISTINCT * FROM tab0 WHERE + 3 + - col2 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( CAST ( NULL AS INTEGER ) ), ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT + col0 * + + col0 NOT IN ( - - col1, col1 ) query I rowsort @@ -24797,7 +24797,7 @@ SELECT + col0 * - 3 FROM tab2 # Datafusion - Expected - -3 # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) \* tab1\.col1 / tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) \* tab1\.col1 / tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) / + col2 AS col0, - col2 * col1 / col0 col0 FROM tab1 query I rowsort @@ -29703,7 +29703,7 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 3 + + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(49\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(0\)\) \* \(\- Int64\(56\)\) \* count\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(49\) \* CAST\(NULL AS Int64\) \* \(\- Int64\(0\)\) \* \(\- Int64\(56\)\) \* count\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 AS col0, 49 * + CAST ( NULL AS INTEGER ) * - - 0 * - + 56 * + COUNT ( col0 ) col0 FROM tab0 AS cor0 query II rowsort label-4866 @@ -38183,7 +38183,7 @@ SELECT DISTINCT + 69 / + SUM ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT 53 I # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(max\(cor0\.col2\) AS Int32\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(max\(cor0\.col2\) AS Int64\) 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\. SELECT DISTINCT COUNT ( * ) + + + CAST ( + MAX ( + col2 ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 query III rowsort @@ -47252,7 +47252,7 @@ SELECT ALL - - 43 * + col0 * - + col1 FROM tab2 cor0 WHERE + col0 > + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 539cd4767fee4cd57a66b89988d8222d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "CAST\(NULL AS Int64\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 89 AS col0, col0 * - col0 * + 63 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: @@ -50032,7 +50032,7 @@ SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - col1 * - col1 / - # Datafusion - Expected - 27 # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col2 AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* tab2\.col2 AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + + col2 AS col0, 27 AS col0 FROM tab2 query I rowsort @@ -51745,7 +51745,7 @@ SELECT ALL - 58 * + + col0 * + col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT - 68 + # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(27\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(27\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + col1 / + 27 * + CAST ( NULL AS INTEGER ) col2, - col2 AS col2 FROM tab0 cor0 query I rowsort label-8495 @@ -53720,7 +53720,7 @@ SELECT - 50 - 39 + + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -361250 # Datafusion - Expected - -79 # Datafusion - Expected - -386750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "CAST\(Int64\(85\) AS Int32\) \* tab1\.col0 \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "CAST\(Int64\(85\) AS Int64\) \* tab1\.col0 \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 79 AS col0, + CAST ( + 85 AS INTEGER ) * col0 * - 50 AS col0 FROM tab1 query I rowsort label-8817 @@ -58062,7 +58062,7 @@ SELECT DISTINCT + - 8 AS col1 FROM tab2 WHERE NOT 89 / + col0 NOT BETWEEN + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 0 and "max\(tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col2" at position 0 and "max\(tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + MAX ( col0 ) AS col2 FROM tab2 WHERE NOT NULL < + - col0 * - 42 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_0.slt b/data/sqlite/random/expr/slt_good_0.slt index 894108f..58aa480 100644 --- a/data/sqlite/random/expr/slt_good_0.slt +++ b/data/sqlite/random/expr/slt_good_0.slt @@ -732,7 +732,7 @@ SELECT 51 - - 96, 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 24 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 54 col2 query I rowsort label-133 @@ -1857,7 +1857,7 @@ SELECT 85 + + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) \- Int64\(\-86\) \* Int64\(12\) \+ Int64\(\-96\) \* coalesce\(Int64\(88\), Int64\(23\)\) \* coalesce\(Int64\(\-61\), \(\- Int64\(32\)\) \+ Int64\(57\), CAST\(\(\- coalesce\(Int64\(\-77\), Int64\(32\)\)\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int64\) \- Int64\(\-86\) \* Int64\(12\) \+ Int64\(\-96\) \* coalesce\(Int64\(88\), Int64\(23\)\) \* coalesce\(Int64\(\-61\), \(\- Int64\(32\)\) \+ Int64\(57\), CAST\(\(\- coalesce\(Int64\(\-77\), Int64\(32\)\)\) AS Int64\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - - 86 * + + 12 + - 96 * + COALESCE ( 88, ( 23 ) ) * COALESCE ( - 61, - + 32 + + 57, + + CAST ( + - COALESCE ( - 77, 32 ) AS INTEGER ) + - - COUNT ( * ) ) + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-349 @@ -2414,7 +2414,7 @@ SELECT - 37 + - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(47\)\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(47\)\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 19 * + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( ALL + 47 ) / + + 61 AS col1 query I rowsort label-456 @@ -2532,7 +2532,7 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int32\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int64\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WHEN + 83 THEN NULL ELSE NULL END * 53 AS col2 query I rowsort label-478 @@ -11353,7 +11353,7 @@ SELECT - COUNT ( * ) - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(95\) WHEN Int64\(71\) \* Int64\(53\) \* coalesce\(\(\- Int64\(\-42\)\), Int64\(\-24\) / Int64\(85\), Int64\(5\)\) THEN \(\- coalesce\(Int64\(30\), Int64\(\-45\) \+ Int64\(\-82\), Int64\(19\)\)\) / \(\- Int64\(\-27\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-2\)\) WHEN \(\- Int64\(10\)\) \+ Int64\(41\) THEN Int64\(3\) \* Int64\(\-31\) \* Int64\(\-49\) ELSE NULL END\) AS Int32\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(95\) WHEN Int64\(71\) \* Int64\(53\) \* coalesce\(\(\- Int64\(\-42\)\), Int64\(\-24\) / Int64\(85\), Int64\(5\)\) THEN \(\- coalesce\(Int64\(30\), Int64\(\-45\) \+ Int64\(\-82\), Int64\(19\)\)\) / \(\- Int64\(\-27\)\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-2\)\) WHEN \(\- Int64\(10\)\) \+ Int64\(41\) THEN Int64\(3\) \* Int64\(\-31\) \* Int64\(\-49\) ELSE NULL END\) AS Int64\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - + CASE + 95 WHEN 71 * + 53 * + + COALESCE ( - - 42, - 24 / 85, + 5 ) THEN + - COALESCE ( + 30, + - 45 + - 82, + 19 ) / - - 27 + - CAST ( NULL AS INTEGER ) * - - 2 WHEN - + 10 + 41 THEN + 3 * + - 31 * - 49 ELSE NULL END AS INTEGER ) AS col1, + 15 AS col1 query I rowsort label-2169 @@ -12554,7 +12554,7 @@ SELECT ALL 13 * + 61 + COUNT ( - + 92 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "CAST\(Int64\(37\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "CAST\(Int64\(37\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 61 AS col0, CAST ( + 37 AS INTEGER ) AS col0 query I rowsort label-2400 @@ -14635,7 +14635,7 @@ SELECT + 5 + SUM ( 17 ) - 85 - + - MIN ( - - 20 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2012 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- \(\- \(\- CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(\-11\) THEN NULL WHEN Int64\(\-34\) THEN Int64\(81\) ELSE Int64\(\-15\) \+ Int64\(20\) \* \(\- CAST\(Int64\(96\) AS Int32\)\) END\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- \(\- \(\- CASE \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(\-11\) THEN NULL WHEN Int64\(\-34\) THEN Int64\(81\) ELSE Int64\(\-15\) \+ Int64\(20\) \* \(\- CAST\(Int64\(96\) AS Int64\)\) END\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 77 - - - CASE - CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL WHEN - 34 THEN 81 ELSE - 15 + 20 * - ( + CAST ( + ( 96 ) AS INTEGER ) ) END AS col0, 35 AS col0 query I rowsort @@ -18442,7 +18442,7 @@ SELECT DISTINCT 85 * - 2 - + MAX ( DISTINCT 9 ) * 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE max\(DISTINCT Int64\(\-62\)\) WHEN \(\- nullif\(max\(Int64\(\-60\)\), Int64\(40\)\)\) \* \(\- Int64\(1\)\) THEN Int64\(80\) WHEN min\(DISTINCT CAST\(NULL AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE max\(DISTINCT Int64\(\-62\)\) WHEN \(\- nullif\(max\(Int64\(\-60\)\), Int64\(40\)\)\) \* \(\- Int64\(1\)\) THEN Int64\(80\) WHEN min\(DISTINCT CAST\(NULL AS Int64\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col2, CASE MAX ( DISTINCT - 62 ) WHEN + ( - NULLIF ( + MAX ( - 60 ), 40 ) ) * - + 1 THEN + 80 WHEN MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) ELSE NULL END * 98 AS col2 query I rowsort label-3527 @@ -19240,7 +19240,7 @@ SELECT - 63 + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- Int64\(\-6\)\) \* \(\- min\(\(\- CAST\(\(\- nullif\(Int64\(28\), Int64\(12\) / Int64\(92\) \+ \(\- Int64\(69\)\)\)\) AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- Int64\(\-6\)\) \* \(\- min\(\(\- CAST\(\(\- nullif\(Int64\(28\), Int64\(12\) / Int64\(92\) \+ \(\- Int64\(69\)\)\)\) AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 col2, - ( - 6 ) * - + MIN ( ALL - CAST ( - NULLIF ( + 28, + 12 / 92 + - ( 69 ) ) AS INTEGER ) ) AS col2 query II rowsort label-3680 @@ -21097,7 +21097,7 @@ SELECT + 21 + 58, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "CAST\(Int64\(\-73\) AS Int32\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "CAST\(Int64\(\-73\) AS Int64\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 90 AS col1, + CAST ( - 73 AS INTEGER ) + - 18 AS col1 query I rowsort label-4036 @@ -21914,7 +21914,7 @@ SELECT ALL + 72 * + - 34 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 998 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int32\)\), Int64\(91\)\) \* \(\- Int64\(26\)\) \+ Int64\(\-16\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int64\)\), Int64\(91\)\) \* \(\- Int64\(26\)\) \+ Int64\(\-16\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - 39, + - CAST ( NULL AS INTEGER ), + 91 ) * - + 26 + - 16 AS col1, + 76 col1 query I rowsort @@ -27910,7 +27910,7 @@ SELECT + - 96 + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int32\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int64\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 50 col1, 11 * + CAST ( NULL AS INTEGER ) + + + 13 AS col1 query I rowsort label-5343 @@ -30355,7 +30355,7 @@ SELECT 72 * + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -3348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-36\) \* CAST\(Int64\(93\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-36\) \* CAST\(Int64\(93\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 col1, - 36 * + CAST ( 93 AS INTEGER ) AS col1 query I rowsort @@ -32024,7 +32024,7 @@ SELECT ALL - ( - 5 ) / + + 32 + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 72 AS col0 query I rowsort @@ -34699,7 +34699,7 @@ SELECT DISTINCT + 71 * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* CAST\(NULL AS Int32\) \- Int64\(13\) \- Int64\(\-51\) AS col2" at position 0 and "\(\- sum\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* CAST\(NULL AS Int64\) \- Int64\(13\) \- Int64\(\-51\) AS col2" at position 0 and "\(\- sum\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 13 * ( + CAST ( NULL AS INTEGER ) ) - + 13 - - 51 AS col2, - SUM ( ALL - 38 ) AS col2 query I rowsort @@ -40671,7 +40671,7 @@ SELECT ALL + 83 - + 1 / + + 72 - - - 36 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8706 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) 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\. SELECT - COUNT ( * ) / + 30 + + 48 + - - 30 + - + 90 * NULLIF ( + 86, 81 ) + + + 9 + + 27 * - NULLIF ( 39, + CAST ( + + 89 AS FLOAT8 ) ) AS col0, + CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -48271,7 +48271,7 @@ SELECT + 39 + + + 21 + + 9 * - 90 - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 AS col2, + 46 / + CAST ( - ( + 43 ) AS INTEGER ) + - COUNT ( * ) AS col2 query I rowsort @@ -49005,7 +49005,7 @@ SELECT ALL + COALESCE ( - + 9, CASE + 54 WHEN + 75 * 13 THEN - + 17 / + ( + 21 ) # Datafusion - Expected - 12 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(count\(\(\- Int64\(\-96\)\)\) AS Float64\) \+ CASE \(\- CAST\(Int64\(34\) AS Int32\)\) WHEN Int64\(\-11\) \+ Int64\(17\) \* Int64\(39\) \- Int64\(99\) THEN Int64\(\-34\) \- Int64\(10\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(count\(\(\- Int64\(\-96\)\)\) AS Float64\) \+ CASE \(\- CAST\(Int64\(34\) AS Int64\)\) WHEN Int64\(\-11\) \+ Int64\(17\) \* Int64\(39\) \- Int64\(99\) THEN Int64\(\-34\) \- Int64\(10\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 AS col2, + ( CAST ( COUNT ( - - 96 ) AS FLOAT8 ) ) + CASE - CAST ( 34 AS INTEGER ) WHEN - 11 + 17 * + 39 - 99 THEN - 34 - + 10 ELSE NULL END col2, + - ( - + 26 ) AS col0 query I rowsort label-9383 diff --git a/data/sqlite/random/expr/slt_good_1.slt b/data/sqlite/random/expr/slt_good_1.slt index 245ddcd..058d95d 100644 --- a/data/sqlite/random/expr/slt_good_1.slt +++ b/data/sqlite/random/expr/slt_good_1.slt @@ -4399,7 +4399,7 @@ SELECT ALL - CAST ( - 13 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, - 16 AS col1 query I rowsort @@ -13121,7 +13121,7 @@ SELECT DISTINCT COUNT ( * ) * + 93 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -38605,7 +38605,7 @@ SELECT - + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 51 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -38616,7 +38616,7 @@ SELECT - ( 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 query I rowsort @@ -42586,7 +42586,7 @@ SELECT + 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 5 / CAST ( NULL AS INTEGER ) AS col1, 53 AS col1 query I rowsort @@ -45673,7 +45673,7 @@ SELECT CAST ( - + 82 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int64\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 query I rowsort @@ -46693,7 +46693,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 query I rowsort @@ -46796,7 +46796,7 @@ SELECT ALL 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, + 24 AS col0 query I rowsort label-9158 @@ -46982,7 +46982,7 @@ SELECT ALL - + 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 query I rowsort @@ -47876,7 +47876,7 @@ SELECT - 50 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 19 AS col1, 32 col0 query II rowsort @@ -49238,7 +49238,7 @@ SELECT - - 44 AS col1, 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int32\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int64\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 * + COUNT ( * ) AS col1, ( + CAST ( + + 16 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9630 diff --git a/data/sqlite/random/expr/slt_good_10.slt b/data/sqlite/random/expr/slt_good_10.slt index 9e1920f..9fc79a3 100644 --- a/data/sqlite/random/expr/slt_good_10.slt +++ b/data/sqlite/random/expr/slt_good_10.slt @@ -6813,7 +6813,7 @@ SELECT DISTINCT COALESCE ( - - COALESCE ( 49, + COUNT ( * ) / - + 43 * 0, 67 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(97\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(8\) \* Int64\(41\) \* Int64\(6\) \+ Int64\(24\) / Int64\(32\) \* \(\- CAST\(Int64\(\-91\) AS Int32\)\) \* Int64\(97\) \* nullif\(Int64\(25\), Int64\(\-41\) \* Int64\(76\)\) \- Int64\(\-83\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(97\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(8\) \* Int64\(41\) \* Int64\(6\) \+ Int64\(24\) / Int64\(32\) \* \(\- CAST\(Int64\(\-91\) AS Int64\)\) \* Int64\(97\) \* nullif\(Int64\(25\), Int64\(\-41\) \* Int64\(76\)\) \- Int64\(\-83\)\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - + + 97 AS col0, + COALESCE ( COUNT ( * ), + 8 * 41 * + 6 + 24 / + 32 * - CAST ( + - 91 AS INTEGER ) * + 97 * NULLIF ( + 25, - 41 * 76 ) - - 83 ) * CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -10668,7 +10668,7 @@ SELECT 26 - - 10 - - ( + 59 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(62\) \* \(\- coalesce\(Int64\(79\), Int64\(\-65\) \- Int64\(55\), CAST\(NULL AS Int32\) \* Int64\(51\)\)\) \+ CASE Int64\(43\) WHEN Int64\(13\) THEN Int64\(\-72\) END \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(62\) \* \(\- coalesce\(Int64\(79\), Int64\(\-65\) \- Int64\(55\), CAST\(NULL AS Int64\) \* Int64\(51\)\)\) \+ CASE Int64\(43\) WHEN Int64\(13\) THEN Int64\(\-72\) END \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 20 AS col0, 62 * - COALESCE ( 79, + - 65 - 55, CAST ( NULL AS INTEGER ) * 51 ) + + CASE ( 43 ) WHEN 13 THEN + - 72 END * 73 AS col0 query I rowsort @@ -10909,7 +10909,7 @@ SELECT - 83 + + 53 * - ( + 80 ) * + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(10\) AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(56\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(10\) AS Int64\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(56\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 10 AS INTEGER ) + - - COUNT ( * ) + 56 AS col1, 64 AS col1 query I rowsort @@ -11062,7 +11062,7 @@ SELECT + 45 / + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5933 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(67\) WHEN \(\- Int64\(10\)\) THEN Int64\(77\) ELSE coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), min\(Int64\(\-71\)\)\) \* Int64\(69\) \+ Int64\(66\) \* Int64\(92\) END \- Int64\(69\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) \* Int64\(21\) \+ Int64\(\-29\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(67\) WHEN \(\- Int64\(10\)\) THEN Int64\(77\) ELSE coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), min\(Int64\(\-71\)\)\) \* Int64\(69\) \+ Int64\(66\) \* Int64\(92\) END \- Int64\(69\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) \* Int64\(21\) \+ Int64\(\-29\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE 67 WHEN - + 10 THEN + 77 ELSE ( + COALESCE ( - COUNT ( * ), MIN ( ALL - 71 ) ) ) * ( + 69 ) + + + 66 * + + 92 END - + 69 - + COUNT ( * ) AS col0, + 81 * + 21 + - 29 + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -11736,7 +11736,7 @@ SELECT + - 18, - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "CAST\(coalesce\(nullif\(Int64\(\-16\), Int64\(93\)\), Int64\(9\) \- \(\- Int64\(\-32\)\) \+ Int64\(28\) / Int64\(35\)\) AS Int32\) / Int64\(74\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "CAST\(coalesce\(nullif\(Int64\(\-16\), Int64\(93\)\), Int64\(9\) \- \(\- Int64\(\-32\)\) \+ Int64\(28\) / Int64\(35\)\) AS Int64\) / Int64\(74\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 55 AS col0, CAST ( COALESCE ( + NULLIF ( - 16, + 93 ), 9 - - - 32 + + 28 / 35 ) AS INTEGER ) / 74 * 23 AS col0 query I rowsort label-2223 @@ -11934,7 +11934,7 @@ SELECT - ( 5 ) + - 63 + - + 64 * 56 * 73 - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* sum\(Int64\(1\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(97\) \- \(\- nullif\(Int64\(\-4\), Int64\(94\) \+ coalesce\(nullif\(Int64\(\-94\), Int64\(16\)\), nullif\(Int64\(63\), Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(96\)\) \+ Int64\(\-45\)\) / Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* sum\(Int64\(1\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(97\) \- \(\- nullif\(Int64\(\-4\), Int64\(94\) \+ coalesce\(nullif\(Int64\(\-94\), Int64\(16\)\), nullif\(Int64\(63\), Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(96\)\) \+ Int64\(\-45\)\) / Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 28 * + SUM ( + 1 ) * - CAST ( NULL AS INTEGER ) + - 52 col0, + 97 - - NULLIF ( - 4, + 94 + COALESCE ( + NULLIF ( - 94, + 16 ), + NULLIF ( + 63, 66 + + COUNT ( * ) ) + - + 96 + + - 45 ) / 38 ) AS col0 query II rowsort label-2260 @@ -12393,7 +12393,7 @@ SELECT NULLIF ( - + 45, + 52 ) * 99 - + COUNT ( * ) + - ( + COALESCE ( - ( 48 ), # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(36\) \* Int64\(\-75\)\) \* Int64\(32\) AS col2" at position 0 and "\(\- \(\- sum\(DISTINCT Int64\(29\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- CAST\(NULL AS Int64\)\)\), Int64\(36\) \* Int64\(\-75\)\) \* Int64\(32\) AS col2" at position 0 and "\(\- \(\- sum\(DISTINCT Int64\(29\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), + + 36 * - 75 ) * 32 AS col2, + ( + ( - - SUM ( DISTINCT 29 ) ) ) AS col2 query I rowsort @@ -17468,7 +17468,7 @@ SELECT 51 * + + 43 * 49 + - ( - 47 ) - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 1872896256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "CASE WHEN CAST\(\(\- max\(DISTINCT Int64\(\-75\)\)\) AS Int32\) IS NOT NULL THEN Int64\(4\) \* \(\- Int64\(48\)\) \* Int64\(51\) \* \(\- Int64\(\-54\)\) \* Int64\(\-77\) \* Int64\(46\) WHEN NOT NULL IN \(\[\(\- \(\- Int64\(\-49\)\)\) \* Int64\(\-1\), Int64\(\-41\), Int64\(\-14\) \- \(\- CASE \(\- Int64\(\-1\)\) WHEN \(\- Int64\(\-82\)\) THEN \(\- Int64\(\-23\)\) END\) / Int64\(46\) \- Int64\(\-87\) \* Int64\(52\)\]\) THEN Int64\(56\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "CASE WHEN CAST\(\(\- max\(DISTINCT Int64\(\-75\)\)\) AS Int64\) IS NOT NULL THEN Int64\(4\) \* \(\- Int64\(48\)\) \* Int64\(51\) \* \(\- Int64\(\-54\)\) \* Int64\(\-77\) \* Int64\(46\) WHEN NOT NULL IN \(\[\(\- \(\- Int64\(\-49\)\)\) \* Int64\(\-1\), Int64\(\-41\), Int64\(\-14\) \- \(\- CASE \(\- Int64\(\-1\)\) WHEN \(\- Int64\(\-82\)\) THEN \(\- Int64\(\-23\)\) END\) / Int64\(46\) \- Int64\(\-87\) \* Int64\(52\)\]\) THEN Int64\(56\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 76 AS col2, CASE WHEN CAST ( - MAX ( DISTINCT - 75 ) AS INTEGER ) IS NOT NULL THEN + 4 * - + 48 * + 51 * - - 54 * - 77 * 46 WHEN NOT ( NULL ) IN ( + - ( - - 49 ) * - 1, - 41, - 14 - - CASE - - 1 WHEN - - 82 THEN - - 23 END / + 46 - - 87 * + 52 ) THEN 56 ELSE NULL END AS col2 query I rowsort @@ -17496,7 +17496,7 @@ SELECT DISTINCT 4 col2, - ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 55 AS col2, + COALESCE ( - - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -17604,7 +17604,7 @@ SELECT + + NULLIF ( 98, MIN ( ALL + 43 ) ) * + 86 + + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -788 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- Int64\(57\)\) \+ Int64\(\-47\) AS col1" at position 0 and "CAST\(Int64\(\-43\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- Int64\(57\)\) \+ Int64\(\-47\) AS col1" at position 0 and "CAST\(Int64\(\-43\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 13 * ( - ( 57 ) ) + + ( - 47 ) AS col1, + CAST ( - 43 AS INTEGER ) AS col1 query I rowsort label-3338 @@ -17620,7 +17620,7 @@ SELECT - COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2281 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-5\)\) \+ Int64\(57\) \* Int64\(40\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-5\)\) \+ Int64\(57\) \* Int64\(40\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( - 5 ) + + 57 * + 40 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -24834,7 +24834,7 @@ SELECT ALL 31 + - 65 * + 77 * + 37 AS col0, + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(\-4\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(\-4\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 16 * - 4 AS col1, + CAST ( NULL AS INTEGER ) col1 query I rowsort label-4717 @@ -24936,7 +24936,7 @@ SELECT ALL 32 + + 1 * + + 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* \(\- Int64\(12\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* \(\- Int64\(12\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 * - + 12 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-4736 @@ -25008,7 +25008,7 @@ SELECT 69 - - 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) 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\. SELECT DISTINCT 3 AS col0, CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-4750 @@ -27241,7 +27241,7 @@ SELECT 66 * + 50 + - - CAST ( NULLIF ( ( + + 86 ), COALESCE ( - 90, - - 81 * NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 665 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \- coalesce\(Int64\(\-60\), Int64\(76\) \* \(\- Int64\(1\)\) \+ count\(Int64\(\-67\)\) \+ Int64\(35\) \+ Int64\(61\) \* Int64\(52\) / \(\- Int64\(\-29\)\) \* CAST\(NULL AS Int32\) / Int64\(26\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-1\)\) \* Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \- coalesce\(Int64\(\-60\), Int64\(76\) \* \(\- Int64\(1\)\) \+ count\(Int64\(\-67\)\) \+ Int64\(35\) \+ Int64\(61\) \* Int64\(52\) / \(\- Int64\(\-29\)\) \* CAST\(NULL AS Int64\) / Int64\(26\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-1\)\) \* Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 5 - COALESCE ( ( + - 60 ), + 76 * - + 1 + COUNT ( + - 67 ) + 35 + + 61 * + + 52 / - - 29 * ( + CAST ( NULL AS INTEGER ) ) / 26 - - COUNT ( * ), - 1 ) * 11 AS col2, CAST ( NULL AS INTEGER ) * 36 col2 query I rowsort label-5171 @@ -29613,7 +29613,7 @@ SELECT ALL + 0 * - NULLIF ( + 58, COUNT ( * ) + + 76 * + + 94 ) * + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( + + ( - CAST ( NULL AS INTEGER ) ) ) AS col2, - 14 col2 query I rowsort @@ -31871,7 +31871,7 @@ SELECT + ( + - 79 ) # Datafusion - Expected - -73 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "nullif\(\(\- CASE Int64\(80\) WHEN Int64\(1\) THEN Int64\(\-79\) WHEN Int64\(52\) THEN Int64\(33\) \* Int64\(45\) ELSE NULL END\), coalesce\(Int64\(28\), coalesce\(Int64\(24\), CAST\(Int64\(85\) AS Int32\), Int64\(66\) \+ Int64\(21\)\) \+ Int64\(52\), \(\- Int64\(\-88\)\) \+ Int64\(46\)\) \* Int64\(3\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "nullif\(\(\- CASE Int64\(80\) WHEN Int64\(1\) THEN Int64\(\-79\) WHEN Int64\(52\) THEN Int64\(33\) \* Int64\(45\) ELSE NULL END\), coalesce\(Int64\(28\), coalesce\(Int64\(24\), CAST\(Int64\(85\) AS Int64\), Int64\(66\) \+ Int64\(21\)\) \+ Int64\(52\), \(\- Int64\(\-88\)\) \+ Int64\(46\)\) \* Int64\(3\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 73 AS col2, + CAST ( NULL AS INTEGER ) * + 26, + NULLIF ( - CASE + + 80 WHEN 1 THEN - 79 WHEN + 52 THEN + 33 * 45 ELSE NULL END, + COALESCE ( 28, COALESCE ( 24, CAST ( 85 AS INTEGER ), + 66 + 21 ) + 52, - ( - 88 ) + 46 ) * 3 - COUNT ( * ) ) * + 34 col2 query I rowsort label-6058 @@ -33055,7 +33055,7 @@ SELECT + 22 * + - 50 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* \(\- Int64\(\-4\)\) \+ \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-49\) \* Int64\(\-26\) \* Int64\(58\) \* Int64\(11\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* \(\- Int64\(\-4\)\) \+ \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\) \+ Int64\(\-49\) \* Int64\(\-26\) \* Int64\(58\) \* Int64\(11\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 69 * - - 4 + - + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - 49 * - 26 * + 58 * 11 AS col0, - 0 AS col0 query I rowsort label-6280 @@ -34746,7 +34746,7 @@ SELECT DISTINCT + 16 * 92 + + 36 + + ( - 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 66 AS col1, - CAST ( NULL AS INTEGER ) + 63 col1 query I rowsort label-6598 @@ -35026,7 +35026,7 @@ SELECT MAX ( ALL 50 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- Int64\(0\)\) \+ Int64\(50\) \+ Int64\(48\) \* CAST\(NULL AS Int32\) \- Int64\(\-46\) \* Int64\(18\) \* Int64\(\-44\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- Int64\(0\)\) \+ Int64\(50\) \+ Int64\(48\) \* CAST\(NULL AS Int64\) \- Int64\(\-46\) \* Int64\(18\) \* Int64\(\-44\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 13 * - - 0 + + 50 + 48 * + CAST ( NULL AS INTEGER ) - - 46 * + 18 * - 44 AS col0, 44 AS col0 query I rowsort label-6651 @@ -35933,7 +35933,7 @@ SELECT 0 * - - 73 + - 54 - - + 65 + + - 47 * - + 37 * COUNT ( * ) * + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1131 # Datafusion - Expected - 3835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(87\) AS Int32\) \* CAST\(Int64\(13\) AS Int32\) AS col1" at position 0 and "Int64\(59\) \* Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(87\) AS Int64\) \* CAST\(Int64\(13\) AS Int64\) AS col1" at position 0 and "Int64\(59\) \* Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 87 AS INTEGER ) * CAST ( 13 AS INTEGER ) AS col1, 59 * 65 * COUNT ( * ) AS col1 query I rowsort label-6820 @@ -36697,7 +36697,7 @@ SELECT ALL + - 25 + - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-1\) AS Int32\)\) \- Int64\(15\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-1\) AS Int64\)\) \- Int64\(15\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - 1 AS INTEGER ) - 15 AS col2, + ( + 33 ) AS col2 query I rowsort label-6964 @@ -38242,7 +38242,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ \(\- Int64\(0\)\) AS col2" at position 0 and "CASE \(\- CAST\(Int64\(54\) AS Int32\)\) WHEN Int64\(\-10\) THEN Int64\(\-78\) \* Int64\(\-67\) \+ Int64\(79\) \+ Int64\(\-80\) \* Int64\(\-12\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ \(\- Int64\(0\)\) AS col2" at position 0 and "CASE \(\- CAST\(Int64\(54\) AS Int64\)\) WHEN Int64\(\-10\) THEN Int64\(\-78\) \* Int64\(\-67\) \+ Int64\(79\) \+ Int64\(\-80\) \* Int64\(\-12\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 46 + - ( 0 ) col2, CASE - CAST ( + 54 AS INTEGER ) WHEN - 10 THEN - 78 * - 67 + 79 + - 80 * + - 12 ELSE NULL END AS col2 query I rowsort label-7260 @@ -40081,7 +40081,7 @@ SELECT NULLIF ( - 67, + 41 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -971 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-42\), Int64\(\-82\)\) AS col1" at position 0 and "\(\- sum\(Int64\(11\)\)\) \* Int64\(93\) \+ Int64\(15\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(nullif\(\(\- Int64\(35\)\), Int64\(\-98\) \- CAST\(NULL AS Int32\)\) \- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-42\), Int64\(\-82\)\) AS col1" at position 0 and "\(\- sum\(Int64\(11\)\)\) \* Int64\(93\) \+ Int64\(15\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(nullif\(\(\- Int64\(35\)\), Int64\(\-98\) \- CAST\(NULL AS Int64\)\) \- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - 42, - 82 ) AS col1, - SUM ( ALL + 11 ) * + 93 + 15 - - - COUNT ( * ) * ( + NULLIF ( - ( 35 ), - 98 - CAST ( NULL AS INTEGER ) ) - ( 2 ) ) AS col1 query I rowsort label-7613 @@ -42345,7 +42345,7 @@ SELECT ALL - + 1 * - 11 * 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(\-80\)\) AS col0" at position 0 and "CAST\(Int64\(55\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(\-80\)\) AS col0" at position 0 and "CAST\(Int64\(55\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / - - 80 AS col0, CAST ( + + 55 AS INTEGER ) col0 query II rowsort @@ -44794,7 +44794,7 @@ SELECT - NULLIF ( - 38, - + CAST ( NULL AS FLOAT8 ) ) * + 87 + COUNT ( ALL - 42 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(69\) AS col1" at position 1 and "\(\- count\(Int64\(\-84\)\)\) / Int64\(70\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(69\) AS col1" at position 1 and "\(\- count\(Int64\(\-84\)\)\) / Int64\(70\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - MIN ( + - 24 ) WHEN - + 47 THEN NULLIF ( 4, + 67 ) END, CAST ( NULL AS INTEGER ) * 69 AS col1, - COUNT ( + - 84 ) / 70 AS col1 query I rowsort label-8512 @@ -45175,7 +45175,7 @@ SELECT DISTINCT - 82 - - ( - - 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72078 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- Int64\(\-8\) \* \(\- Int64\(\-97\)\) \* Int64\(\-93\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- avg\(DISTINCT Int64\(\-31\)\)\) \+ Int64\(31\) \* \(\- \(\- CAST\(\(\- Int64\(\-3\)\) AS Int32\)\)\) \- Int64\(9\) \+ CASE Int64\(29\) WHEN Int64\(11\) \+ Int64\(95\) THEN \(\- Int64\(\-51\)\) ELSE Int64\(\-80\) END \* \(\- CASE Int64\(57\) WHEN Int64\(\-25\) THEN \(\- Int64\(18\)\) \* \(\- Int64\(40\)\) \* \(\- sum\(Int64\(16\)\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- Int64\(\-8\) \* \(\- Int64\(\-97\)\) \* Int64\(\-93\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- avg\(DISTINCT Int64\(\-31\)\)\) \+ Int64\(31\) \* \(\- \(\- CAST\(\(\- Int64\(\-3\)\) AS Int64\)\)\) \- Int64\(9\) \+ CASE Int64\(29\) WHEN Int64\(11\) \+ Int64\(95\) THEN \(\- Int64\(\-51\)\) ELSE Int64\(\-80\) END \* \(\- CASE Int64\(57\) WHEN Int64\(\-25\) THEN \(\- Int64\(18\)\) \* \(\- Int64\(40\)\) \* \(\- sum\(Int64\(16\)\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 - - 8 * - - 97 * + - 93 AS col1, - COUNT ( * ) * - + AVG ( DISTINCT - 31 ) + + 31 * - - CAST ( + + ( - - 3 ) AS INTEGER ) - + 9 + CASE + 29 WHEN + 11 + 95 THEN - - 51 ELSE - 80 END * + - CASE + 57 WHEN - 25 THEN - + 18 * - + 40 * - + SUM ( ALL + 16 ) ELSE NULL END AS col1 query I rowsort label-8583 @@ -46472,7 +46472,7 @@ SELECT ALL MAX ( DISTINCT - 23 ) * - 87 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 139920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "CAST\(Int64\(\-60\) AS Int32\) \* Int64\(\-44\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "CAST\(Int64\(\-60\) AS Int64\) \* Int64\(\-44\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 79 AS col0, + CAST ( - 60 AS INTEGER ) * - 44 * + 53 AS col0 query II rowsort label-8829 @@ -48369,7 +48369,7 @@ SELECT - + COUNT ( * ) * - 64 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 87 AS col2 query I rowsort label-9195 @@ -51098,7 +51098,7 @@ SELECT COUNT ( * ) / 93 + + 56 + - + 42 - + + MAX ( ALL - + 24 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- Int64\(8\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- Int64\(8\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, CAST ( - + 8 AS INTEGER ) AS col1 query II rowsort @@ -52183,7 +52183,7 @@ SELECT - COUNT ( * ) * + SUM ( 4 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-55\) AS Int32\) / Int64\(\-41\) \- Int64\(\-38\) \+ Int64\(55\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-55\) AS Int64\) / Int64\(\-41\) \- Int64\(\-38\) \+ Int64\(55\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( ( - 55 ) AS INTEGER ) / - 41 - - 38 + 55 AS col2, 16 AS col2 query II rowsort label-9919 diff --git a/data/sqlite/random/expr/slt_good_100.slt b/data/sqlite/random/expr/slt_good_100.slt index 5cd9697..ca027bb 100644 --- a/data/sqlite/random/expr/slt_good_100.slt +++ b/data/sqlite/random/expr/slt_good_100.slt @@ -1112,7 +1112,7 @@ SELECT ALL 28 + 90 + - 18 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-85\) AS Int32\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-36\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-85\) AS Int64\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-36\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - 85 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / - 36 * - 71 AS col2, - 70 query I rowsort label-206 @@ -1329,7 +1329,7 @@ SELECT ALL 62 + COALESCE ( + 41, 33 ) AS col0, + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(46\) \+ \(\- CAST\(\(\- sum\(DISTINCT Int64\(24\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(46\) \+ \(\- CAST\(\(\- sum\(DISTINCT Int64\(24\)\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 10 AS col2, 46 + - CAST ( - SUM ( DISTINCT + 24 ) AS INTEGER ) AS col2 query I rowsort label-248 @@ -5264,7 +5264,7 @@ SELECT - - ( - 32 ) + ( - + ( - + 74 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) \+ Int64\(\-89\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(87\) \- Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) \+ Int64\(\-89\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(87\) \- Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) + + + 63 + - 89 * + CAST ( NULL AS INTEGER ) col1, + 87 - + 78 AS col1 query I rowsort label-1000 @@ -5473,7 +5473,7 @@ SELECT - - 6 AS col1, 82 + + + COUNT ( * ) * + ( 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 1656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \- Int64\(\-31\) AS col1" at position 0 and "Int64\(23\) \* CAST\(Int64\(72\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \- Int64\(\-31\) AS col1" at position 0 and "Int64\(23\) \* CAST\(Int64\(72\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 - - 31 AS col1, 23 * + CAST ( 72 AS INTEGER ) AS col1 query I rowsort @@ -6045,7 +6045,7 @@ SELECT NULLIF ( 82, + 63 ) + - 77 * - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0, + 10 + + 9 AS col0 query I rowsort @@ -7510,7 +7510,7 @@ SELECT COALESCE ( + 86, - CAST ( NULL AS INTEGER ) ) # Datafusion - Expected - -1299 # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(57\)\) \* Int64\(76\) / Int64\(62\) AS col1" at position 1 and "\(\- max\(DISTINCT \(\- Int64\(14\)\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- Int64\(\-45\)\) \+ min\(Int64\(56\)\) \* Int64\(62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(57\)\) \* Int64\(76\) / Int64\(62\) AS col1" at position 1 and "\(\- max\(DISTINCT \(\- Int64\(14\)\)\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ \(\- Int64\(\-45\)\) \+ min\(Int64\(56\)\) \* Int64\(62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 51 * 25 + - 24, + 30 + + + NULLIF ( COUNT ( * ), 57 ) * + 76 / 62 AS col1, - MAX ( DISTINCT - ( + 14 ) ) * - - CAST ( NULL AS INTEGER ) + + - ( - 45 ) + MIN ( ALL 56 ) * 62 AS col1 query II rowsort @@ -7527,7 +7527,7 @@ SELECT + + COUNT ( DISTINCT - + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(Int64\(17\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- CAST\(Int64\(17\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( 17 AS INTEGER ) col2 query I rowsort label-1424 @@ -8029,7 +8029,7 @@ SELECT 87 - - + NULLIF ( 73, 55 ) + 0 - + + COUNT ( * ) * - COALESCE ( + 63, - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "min\(\(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-39\) \* Int64\(11\) \+ Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "min\(\(\- CAST\(NULL AS Int64\)\)\) \* Int64\(\-39\) \* Int64\(11\) \+ Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 56 AS col0, + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * ( - 39 ) * 11 + - 52 col0 query I rowsort label-1517 @@ -10023,7 +10023,7 @@ SELECT ALL + MAX ( - - 52 ) + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(61\) \* \(\- Int64\(64\)\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(61\) \* \(\- Int64\(64\)\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 61 AS col1, 61 * - + 64 * CAST ( NULL AS INTEGER ) col1 query I rowsort label-1897 @@ -10322,7 +10322,7 @@ SELECT 81 + + 23 * + 88 * + 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CASE Int64\(71\) WHEN \(\- Int64\(21\)\) THEN NULL ELSE coalesce\(Int64\(15\), Int64\(0\), Int64\(\-45\)\) \* Int64\(56\) \+ Int64\(17\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CASE Int64\(71\) WHEN \(\- Int64\(21\)\) THEN NULL ELSE coalesce\(Int64\(15\), Int64\(0\), Int64\(\-45\)\) \* Int64\(56\) \+ Int64\(17\) END \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 59 AS col1, CASE + 71 WHEN - + 21 THEN NULL ELSE COALESCE ( + 15, - 0, - 45 ) * + 56 + 17 END * CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-1953 @@ -13446,7 +13446,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "coalesce\(CASE WHEN NOT Int64\(81\) IS NULL THEN Int64\(74\) ELSE Int64\(\-79\) \+ Int64\(28\) \* Int64\(\-99\) \+ \(\- Int64\(\-61\)\) END, avg\(Int64\(15\)\), Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(13\) \* Int64\(5\)\) / Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "coalesce\(CASE WHEN NOT Int64\(81\) IS NULL THEN Int64\(74\) ELSE Int64\(\-79\) \+ Int64\(28\) \* Int64\(\-99\) \+ \(\- Int64\(\-61\)\) END, avg\(Int64\(15\)\), Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(13\) \* Int64\(5\)\) / Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( CASE WHEN NOT 81 IS NULL THEN + 74 ELSE - 79 + + 28 * - 99 + - - 61 END, + AVG ( ALL 15 ), - 29 + + COUNT ( * ) + + 13 * + 5 ) / + + 27 AS col2 query I rowsort label-2549 @@ -15292,7 +15292,7 @@ SELECT ALL COUNT ( DISTINCT - - 11 ) + - 47 / - - 33 - + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1, - ( + 45 ) AS col1 query I rowsort @@ -15334,7 +15334,7 @@ SELECT ALL - 44 * + - 95 + + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- coalesce\(min\(Int64\(\-7\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(95\)\), Int64\(40\) \* \(\- Int64\(14\)\) \- Int64\(43\) \+ Int64\(\-30\) \+ Int64\(6\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- CASE Int64\(66\) WHEN Int64\(22\) \+ \(\- Int64\(\-47\)\) THEN Int64\(47\) \+ Int64\(81\) ELSE max\(Int64\(36\)\) \* Int64\(92\) END\) \* Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(\-14\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- coalesce\(min\(Int64\(\-7\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(95\)\), Int64\(40\) \* \(\- Int64\(14\)\) \- Int64\(43\) \+ Int64\(\-30\) \+ Int64\(6\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- CASE Int64\(66\) WHEN Int64\(22\) \+ \(\- Int64\(\-47\)\) THEN Int64\(47\) \+ Int64\(81\) ELSE max\(Int64\(36\)\) \* Int64\(92\) END\) \* Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(\-14\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 * - + COALESCE ( MIN ( - 7 ), - - COUNT ( * ) + - ( 95 ), 40 * ( - + 14 ) - + 43 + - 30 + 6 + + - CAST ( NULL AS INTEGER ) * + - CASE 66 WHEN 22 + - - 47 THEN + + 47 + 81 ELSE + MAX ( 36 ) * + 92 END * + 83 * COUNT ( * ) - + - 73 + - 14 ) AS col1, + 72 AS col1 query I rowsort label-2909 @@ -17804,7 +17804,7 @@ SELECT ALL + 26 * ( + 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, + 60 AS col0 query I rowsort @@ -19704,7 +19704,7 @@ SELECT DISTINCT + MIN ( + 79 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1446 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(86\) \* Int64\(16\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(86\) \* Int64\(16\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col2, + 86 * + 16 + + 70 col2 query I rowsort label-3739 @@ -20081,7 +20081,7 @@ SELECT DISTINCT - COALESCE ( - + 46, 73 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col0" at position 0 and "Int64\(41\) \+ Int64\(\-22\) \* Int64\(\-62\) \- Int64\(56\) \* min\(CAST\(NULL AS Int32\)\) / Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col0" at position 0 and "Int64\(41\) \+ Int64\(\-22\) \* Int64\(\-62\) \- Int64\(56\) \* min\(CAST\(NULL AS Int64\)\) / Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 54 col0, 41 + - 22 * - 62 - + 56 * + MIN ( CAST ( NULL AS INTEGER ) ) / 96 AS col0 query II rowsort @@ -21115,7 +21115,7 @@ SELECT DISTINCT 7 * NULLIF ( - COUNT ( 25 ), 15 * 97 ) - 47 + 78 + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 436 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(39\) \* \(\- Int64\(\-10\)\) \- Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(39\) \* \(\- Int64\(\-10\)\) \- Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) AS col2, 39 * - - 10 - - 46 col2 query I rowsort label-4011 @@ -21337,7 +21337,7 @@ SELECT + 91 * - MIN ( DISTINCT + - 52 ) AS col2, - COUNT ( ALL + 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(84\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(84\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 76 + + 84 AS col2, - CAST ( NULL AS INTEGER ) * + - 30 AS col2 query I rowsort label-4053 @@ -21967,7 +21967,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(16\) \* Int64\(26\) \* \(\- Int64\(\-71\)\) \+ Int64\(28\) \- \(\- CASE count\(\(\- CAST\(Int64\(53\) AS Int32\)\)\) WHEN Int64\(39\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-37\) / max\(Int64\(1\)\) \+ Int64\(20\) THEN NULL WHEN Int64\(93\) THEN \(\- CAST\(NULL AS Int32\)\) ELSE count\(DISTINCT Int64\(\-21\)\) \* CAST\(NULL AS Float64\) END\) \* Int64\(36\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(16\) \* Int64\(26\) \* \(\- Int64\(\-71\)\) \+ Int64\(28\) \- \(\- CASE count\(\(\- CAST\(Int64\(53\) AS Int64\)\)\) WHEN Int64\(39\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-37\) / max\(Int64\(1\)\) \+ Int64\(20\) THEN NULL WHEN Int64\(93\) THEN \(\- CAST\(NULL AS Int64\)\) ELSE count\(DISTINCT Int64\(\-21\)\) \* CAST\(NULL AS Float64\) END\) \* Int64\(36\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 93 AS col2, 16 * + + 26 * - - 71 + 28 - - CASE COUNT ( - CAST ( ( 53 ) AS INTEGER ) ) WHEN 39 * - CAST ( NULL AS INTEGER ) + + ( - 37 ) / MAX ( ( + 1 ) ) + + 20 THEN NULL WHEN 93 THEN - CAST ( NULL AS INTEGER ) ELSE COUNT ( DISTINCT - 21 ) * + CAST ( NULL AS FLOAT8 ) END * 36 * + 27 AS col2 query I rowsort @@ -22265,7 +22265,7 @@ SELECT ALL - ( ( + - 24 ) ) / - CAST ( + + 81 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(coalesce\(Int64\(\-34\), Int64\(57\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(coalesce\(Int64\(\-34\), Int64\(57\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( COALESCE ( + - 34, 57 ) AS INTEGER ) AS col0, 30 AS col0 query II rowsort label-4229 @@ -22287,7 +22287,7 @@ SELECT + SUM ( - - ( - 79 ) ) * + 64 + + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(15\), \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(15\), \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( + 15, - CAST ( NULL AS INTEGER ) ) AS col2, 74 AS col2 # Datafusion - Datafusion expected results: @@ -22867,7 +22867,7 @@ SELECT - COUNT ( * ) - + + 8 AS col1, - 30 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(95\)\) AS col1" at position 0 and "CAST\(Int64\(48\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(95\)\) AS col1" at position 0 and "CAST\(Int64\(48\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( ALL 95 ) col1, CAST ( 48 AS INTEGER ) col1 query II rowsort @@ -23592,7 +23592,7 @@ SELECT NULLIF ( - + COUNT ( * ), - 65 / + COUNT ( * ) * - - ( 63 ) + - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(47\) \* Int64\(\-33\) \- Int64\(31\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(47\) \* Int64\(\-33\) \- Int64\(31\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ) + + 47 * + - 33 - + 31 AS col2, + 4 AS col2 query I rowsort @@ -23811,7 +23811,7 @@ SELECT ALL - 56 * + 53 + 25 - - NULLIF ( - COUNT ( * ), + - ( - 23 ) ) + 29 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(34\)\) \+ CAST\(Int64\(26\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(34\)\) \+ CAST\(Int64\(26\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 / - COUNT ( * ) AS col1, COUNT ( ALL 34 ) + + + CAST ( + 26 AS INTEGER ) AS col1 query II rowsort label-4521 @@ -26802,7 +26802,7 @@ SELECT ALL 75 col2, 4 * 96 # Datafusion - Expected - -22 # Datafusion - Expected - 1215 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* coalesce\(Int64\(27\), Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(62\)\) AS col0" at position 1 and "CAST\(NULL AS Int32\) \* \(\- \(\- Int64\(28\)\)\) \* avg\(Int64\(56\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* coalesce\(Int64\(27\), Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(62\)\) AS col0" at position 1 and "CAST\(NULL AS Int64\) \* \(\- \(\- Int64\(28\)\)\) \* avg\(Int64\(56\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22, 45 * COALESCE ( + 27, - 90 + + COUNT ( * ) + + ( - COUNT ( * ) ), 62 ) AS col0, CAST ( NULL AS INTEGER ) * - ( - + 28 ) * AVG ( ALL + + 56 ) AS col0 query II rowsort label-5083 @@ -29388,7 +29388,7 @@ SELECT DISTINCT + NULLIF ( + - CASE - NULLIF ( + 25, + - 25 ) WHEN 9 THEN NULL E # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -29725,7 +29725,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -5976 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- coalesce\(nullif\(nullif\(coalesce\(\(\- Int64\(83\)\), Int64\(36\)\), Int64\(60\)\), Int64\(16\)\), Int64\(\-84\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(46\) \+ Int64\(15\) \+ Int64\(0\) / Int64\(58\)\)\) \* Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- coalesce\(nullif\(nullif\(coalesce\(\(\- Int64\(83\)\), Int64\(36\)\), Int64\(60\)\), Int64\(16\)\), Int64\(\-84\) \- \(\- CAST\(NULL AS Int64\)\) \+ Int64\(46\) \+ Int64\(15\) \+ Int64\(0\) / Int64\(58\)\)\) \* Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44 AS col2, - COALESCE ( + + NULLIF ( NULLIF ( + COALESCE ( - + 83, 36 ), + 60 ), + 16 ), - 84 - - CAST ( NULL AS INTEGER ) + 46 + + 15 + 0 / 58 ) * - 72 AS col2 query I rowsort @@ -30528,7 +30528,7 @@ SELECT - 13 * - SUM ( ALL - - 15 ) * + 15 + + 95 / + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "CASE Int64\(\-63\) WHEN Int64\(6\) \* Int64\(80\) \* Int64\(\-2\) \* \(\- Int64\(\-81\)\) \+ Int64\(\-62\) THEN CASE Int64\(82\) WHEN Int64\(45\) \+ Int64\(\-14\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(77\) THEN Int64\(98\) WHEN Int64\(85\) \- Int64\(90\) / Int64\(\-91\) THEN NULL END END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "CASE Int64\(\-63\) WHEN Int64\(6\) \* Int64\(80\) \* Int64\(\-2\) \* \(\- Int64\(\-81\)\) \+ Int64\(\-62\) THEN CASE Int64\(82\) WHEN Int64\(45\) \+ Int64\(\-14\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(77\) THEN Int64\(98\) WHEN Int64\(85\) \- Int64\(90\) / Int64\(\-91\) THEN NULL END END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 AS col0, CASE + - 63 WHEN + 6 * + 80 * - 2 * - - 81 + - 62 THEN + CASE + 82 WHEN + 45 + - 14 + - CAST ( NULL AS INTEGER ) * + 77 THEN 98 WHEN + + 85 - 90 / - 91 THEN NULL END END AS col0 query I rowsort @@ -32830,7 +32830,7 @@ SELECT ( - - 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(68\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(68\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) * 68 AS col0, + 22 AS col0 query I rowsort @@ -33135,7 +33135,7 @@ SELECT 10 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -532 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-28\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-22\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-28\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-22\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 * - 28 AS col2, - CAST ( - 22 AS INTEGER ) AS col2 query I rowsort label-6290 @@ -35310,7 +35310,7 @@ SELECT 4 * + 0 AS col2 # Datafusion - Expected - 30 # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(6\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-72\) \- \(\- \(\- CAST\(Int64\(0\) AS Int32\)\)\)\) \+ Int64\(36\) AS col1" at position 0 and "Int64\(34\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(6\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-72\) \- \(\- \(\- CAST\(Int64\(0\) AS Int64\)\)\)\) \+ Int64\(36\) AS col1" at position 0 and "Int64\(34\) \* CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - + 6, - COUNT ( * ) + - 72 - - ( - + CAST ( + - 0 AS INTEGER ) ) ) + 36 AS col1, 10, 34 * + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -35532,7 +35532,7 @@ SELECT 60 + 24 col1, 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- nullif\(Int64\(27\), CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \- CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- nullif\(Int64\(27\), CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 84 - + + CAST ( NULL AS INTEGER ) col0, - NULLIF ( 27, + CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort label-6746 @@ -35680,7 +35680,7 @@ SELECT DISTINCT + 77 * - - 80 - - 28 col1, - NULLIF ( - + ( CASE 84 WHEN + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 3584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(\-5\) \- Int64\(\-37\) \* \(\- Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "Int64\(\-5\) \- Int64\(\-37\) \* \(\- Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 12 * + CAST ( - + COUNT ( * ) AS INTEGER ) col0, - 5 - - 37 * - - 97 AS col0 query I rowsort label-6774 @@ -38107,7 +38107,7 @@ SELECT DISTINCT + ( + 29 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(51\)\)\) AS col1" at position 0 and "CAST\(Int64\(58\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(51\)\)\) AS col1" at position 0 and "CAST\(Int64\(58\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( - + 51 ) AS col1, CAST ( + 58 AS INTEGER ) AS col1 query I rowsort label-7238 @@ -38865,7 +38865,7 @@ SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 96 * - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -267040 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(\-93\) \* Int64\(99\) \+ Int64\(\-37\) AS col0" at position 0 and "Int64\(\-85\) \* CAST\(NULL AS Int32\) / Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(\-93\) \* Int64\(99\) \+ Int64\(\-37\) AS col0" at position 0 and "Int64\(\-85\) \* CAST\(NULL AS Int64\) / Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 * - 93 * + 99 + - 37 AS col0, - 85 * + CAST ( NULL AS INTEGER ) / 45 AS col0 query I rowsort label-7383 @@ -39063,7 +39063,7 @@ SELECT + 29 + - MIN ( DISTINCT + 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(10\)\), Int64\(14\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(10\)\), Int64\(14\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 70 * - CAST ( NULL AS INTEGER ) AS col2, - NULLIF ( - + 10, 14 ) AS col2 query I rowsort label-7420 @@ -39126,7 +39126,7 @@ SELECT 45 + MAX ( - - 60 ) + - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- \(\- \(\- CAST\(Int64\(54\) AS Int32\)\)\)\) \+ Int64\(32\) AS col1" at position 0 and "Int64\(\-11\) \+ Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- \(\- \(\- CAST\(Int64\(54\) AS Int64\)\)\)\) \+ Int64\(32\) AS col1" at position 0 and "Int64\(\-11\) \+ Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 47 + - + ( - - CAST ( 54 AS INTEGER ) ) + + + 32 AS col1, - 11 + - 16 AS col1 query I rowsort @@ -41902,7 +41902,7 @@ SELECT ALL + 55 - - + 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(\-65\) AS col1" at position 0 and "Int64\(\-15\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-25\), \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ coalesce\(min\(DISTINCT Int64\(86\)\), Int64\(\-59\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-9\) \* \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(\-65\) AS col1" at position 0 and "Int64\(\-15\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-25\), \(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ coalesce\(min\(DISTINCT Int64\(86\)\), Int64\(\-59\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-9\) \* \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 + + - 65 col1, - 15 + COUNT ( * ) + + NULLIF ( - 25, - + CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) + COALESCE ( + MIN ( DISTINCT + 86 ), - 59, + - COUNT ( * ) + - 9 * - CAST ( NULL AS INTEGER ) ) ) AS col1 query I rowsort label-7956 @@ -42064,7 +42064,7 @@ SELECT - 11 + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(\-28\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(\-28\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 AS col2, + 11 + - 28 + + CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-7986 @@ -43823,7 +43823,7 @@ SELECT + 8 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6298 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) / Int64\(49\) \+ \(\- CAST\(Int64\(81\) AS Int32\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) / Int64\(49\) \+ \(\- CAST\(Int64\(81\) AS Int64\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 * - 81 + COUNT ( * ) + + + 63 / 49 + + - CAST ( 81 AS INTEGER ) + + 59 AS col2, - 43 col2 query I rowsort @@ -43834,7 +43834,7 @@ SELECT + NULLIF ( + 82, + 64 * + - 89 + - - 32 + - 2 ) - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 46 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -45559,7 +45559,7 @@ SELECT ALL 21 * 41 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7741 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(\-69\) AS col0" at position 0 and "Int64\(\-85\) \* nullif\(\(\- nullif\(CAST\(Int64\(90\) AS Int32\), \(\- Int64\(\-51\)\)\)\), Int64\(47\)\) \- Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(\-69\) AS col0" at position 0 and "Int64\(\-85\) \* nullif\(\(\- nullif\(CAST\(Int64\(90\) AS Int64\), \(\- Int64\(\-51\)\)\)\), Int64\(47\)\) \- Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 / - 69 col0, - 85 * NULLIF ( - + NULLIF ( CAST ( + + 90 AS INTEGER ), - - 51 ), 47 ) - - 91 AS col0 query I rowsort label-8655 @@ -48495,7 +48495,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "CAST\(Int64\(\-51\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "CAST\(Int64\(\-51\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 91 col1, CAST ( - 51 AS INTEGER ) AS col1 query I rowsort @@ -49159,7 +49159,7 @@ SELECT ALL ( - - 73 ) + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(7\) \* Int64\(20\) \- Int64\(53\) \* coalesce\(Int64\(9\), Int64\(54\)\) \+ Int64\(\-46\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- max\(CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(7\) \* Int64\(20\) \- Int64\(53\) \* coalesce\(Int64\(9\), Int64\(54\)\) \+ Int64\(\-46\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- max\(CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 33 AS col1, 7 * + 20 - + + 53 * + COALESCE ( + 9, + 54 ) + - 46 + COUNT ( * ) / - ( - MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col1 query I rowsort label-9343 diff --git a/data/sqlite/random/expr/slt_good_101.slt b/data/sqlite/random/expr/slt_good_101.slt index 95d78bc..0fc9104 100644 --- a/data/sqlite/random/expr/slt_good_101.slt +++ b/data/sqlite/random/expr/slt_good_101.slt @@ -910,7 +910,7 @@ SELECT + 59, + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "CASE CAST\(NULL AS Int32\) WHEN \(\- coalesce\(Int64\(56\), CAST\(NULL AS Int32\)\)\) THEN count\(Int64\(2\)\) END \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "CASE CAST\(NULL AS Int64\) WHEN \(\- coalesce\(Int64\(56\), CAST\(NULL AS Int64\)\)\) THEN count\(Int64\(2\)\) END \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 74 AS col1, CASE + CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( 56, + CAST ( NULL AS INTEGER ) ) THEN + COUNT ( + ( 2 ) ) END * ( + 93 ) AS col1 query I rowsort label-170 @@ -3356,7 +3356,7 @@ SELECT ALL MIN ( - - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-74\) AS Int32\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-74\) AS Int64\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + - 74 AS INTEGER ) AS col1, - 15 AS col1 query I rowsort label-640 @@ -3539,7 +3539,7 @@ SELECT ALL - + COUNT ( ALL - 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN Int64\(\-20\) \+ avg\(Int64\(61\)\) \+ coalesce\(Int64\(75\), \(\- Int64\(34\)\) \+ Int64\(\-83\)\) THEN Int64\(26\) \* Int64\(\-85\) WHEN \(\- \(\- coalesce\(CASE Int64\(69\) WHEN Int64\(80\) \- Int64\(98\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- coalesce\(Int64\(94\), Int64\(12\) \+ CAST\(\(\- Int64\(83\)\) AS Int32\) / Int64\(\-94\), Int64\(\-49\) \+ Int64\(76\)\) / Int64\(35\) THEN NULL WHEN Int64\(18\) \* Int64\(69\) THEN Int64\(\-23\) ELSE Int64\(\-50\) \+ Int64\(53\) END, Int64\(41\) \* Int64\(37\) / Int64\(38\)\)\)\) \* \(\- CAST\(NULL AS Int32\) \+ Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(55\) \* Int64\(87\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN Int64\(\-20\) \+ avg\(Int64\(61\)\) \+ coalesce\(Int64\(75\), \(\- Int64\(34\)\) \+ Int64\(\-83\)\) THEN Int64\(26\) \* Int64\(\-85\) WHEN \(\- \(\- coalesce\(CASE Int64\(69\) WHEN Int64\(80\) \- Int64\(98\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- coalesce\(Int64\(94\), Int64\(12\) \+ CAST\(\(\- Int64\(83\)\) AS Int64\) / Int64\(\-94\), Int64\(\-49\) \+ Int64\(76\)\) / Int64\(35\) THEN NULL WHEN Int64\(18\) \* Int64\(69\) THEN Int64\(\-23\) ELSE Int64\(\-50\) \+ Int64\(53\) END, Int64\(41\) \* Int64\(37\) / Int64\(38\)\)\)\) \* \(\- CAST\(NULL AS Int64\) \+ Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(55\) \* Int64\(87\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 73 AS col0, - CASE - 73 WHEN - 20 + + AVG ( + 61 ) + + COALESCE ( + 75, - + 34 + - 83 ) THEN 26 * - 85 WHEN - - COALESCE ( + CASE 69 WHEN 80 - + + 98 / + + COUNT ( * ) + 64 - + COALESCE ( 94, + 12 + CAST ( - ( 83 ) AS INTEGER ) / - 94, - 49 + 76 ) / 35 THEN NULL WHEN + 18 * 69 THEN - 23 ELSE - 50 + 53 END, 41 * ( 37 / 38 ) ) * - ( CAST ( NULL AS INTEGER ) + 35 ) + COUNT ( * ) THEN 55 * 87 END col0 query I rowsort @@ -6161,7 +6161,7 @@ SELECT + 37 AS col2, + 31 * - + 90 + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ Int64\(\-73\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(\-85\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) \+ Int64\(\-73\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(\-85\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + - 73 + 48 AS col2, - 85 * + COUNT ( * ) AS col2 query I rowsort label-1173 @@ -6669,7 +6669,7 @@ SELECT ALL - 71 + - 11 + + - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1264 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- Int64\(\-79\)\) AS col0" at position 0 and "Int64\(41\) / CASE Int64\(46\) WHEN \(\- CAST\(Int64\(\-5\) AS Int32\)\) \* \(\- CASE sum\(Int64\(53\)\) WHEN \(\- Int64\(\-8\)\) THEN NULL WHEN Int64\(\-77\) / \(\- Int64\(89\)\) \+ CASE \(\- Int64\(\-59\)\) WHEN Int64\(\-86\) \- Int64\(\-96\) \- Int64\(40\) / Int64\(78\) \* Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) THEN nullif\(Int64\(\-40\), Int64\(76\)\) \- Int64\(42\) END \+ Int64\(38\) / Int64\(42\) \* Int64\(6\) THEN nullif\(Int64\(50\), Int64\(27\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* max\(DISTINCT \(\- Int64\(\-53\)\)\) THEN Int64\(85\) END\) THEN Int64\(\-88\) WHEN Int64\(36\) THEN \(\- avg\(Int64\(36\)\)\) \* Int64\(30\) \+ Int64\(53\) WHEN Int64\(53\) THEN Int64\(92\) \* Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(75\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- Int64\(\-79\)\) AS col0" at position 0 and "Int64\(41\) / CASE Int64\(46\) WHEN \(\- CAST\(Int64\(\-5\) AS Int64\)\) \* \(\- CASE sum\(Int64\(53\)\) WHEN \(\- Int64\(\-8\)\) THEN NULL WHEN Int64\(\-77\) / \(\- Int64\(89\)\) \+ CASE \(\- Int64\(\-59\)\) WHEN Int64\(\-86\) \- Int64\(\-96\) \- Int64\(40\) / Int64\(78\) \* Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) THEN nullif\(Int64\(\-40\), Int64\(76\)\) \- Int64\(42\) END \+ Int64\(38\) / Int64\(42\) \* Int64\(6\) THEN nullif\(Int64\(50\), Int64\(27\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* max\(DISTINCT \(\- Int64\(\-53\)\)\) THEN Int64\(85\) END\) THEN Int64\(\-88\) WHEN Int64\(36\) THEN \(\- avg\(Int64\(36\)\)\) \* Int64\(30\) \+ Int64\(53\) WHEN Int64\(53\) THEN Int64\(92\) \* Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(75\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 16 * - - 79 AS col0, 41 / CASE 46 WHEN - CAST ( - 5 AS INTEGER ) * - + CASE + SUM ( 53 ) WHEN - - 8 THEN NULL WHEN + - 77 / - + 89 + CASE - - 59 WHEN - 86 - - 96 - + 40 / + 78 * + 32 * COUNT ( * ) THEN + ( + NULLIF ( - 40, + 76 ) ) - 42 END + 38 / + + 42 * + + 6 THEN + NULLIF ( + 50, 27 ) WHEN + COUNT ( * ) * MAX ( DISTINCT ( - - 53 ) ) THEN + 85 END THEN + - 88 WHEN + 36 THEN - AVG ( 36 ) * + 30 + + 53 WHEN 53 THEN 92 * 34 + COUNT ( * ) END * 75 + - 38 AS col0 query I rowsort label-1267 @@ -6685,7 +6685,7 @@ SELECT 53 - + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * + + 57 - 42 * - + 41 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 124188 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \- Int64\(\-74\) \+ Int64\(51\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-31\) \+ \(\- Int64\(\-19\)\) \* Int64\(68\) \* \(\- max\(\(\- CAST\(Int64\(96\) AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(\-73\) \+ Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \- Int64\(\-74\) \+ Int64\(51\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-31\) \+ \(\- Int64\(\-19\)\) \* Int64\(68\) \* \(\- max\(\(\- CAST\(Int64\(96\) AS Int64\)\)\)\) AS col0" at position 0 and "Int64\(\-73\) \+ Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 - - 74 + + ( ( + 51 ) ) + - - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) + - 31 + - - 19 * 68 * - MAX ( ALL + - CAST ( + 96 AS INTEGER ) ) AS col0, - 73 + - 15 AS col0 query I rowsort label-1270 @@ -7605,7 +7605,7 @@ SELECT ALL + - 56 * COUNT ( * ) - + - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(37\) \+ Int64\(81\) \* Int64\(33\)\) \* Int64\(74\) \+ \(\- CAST\(\(\- Int64\(1\)\) AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(\-71\)\)\) \* Int64\(\-54\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(37\) \+ Int64\(81\) \* Int64\(33\)\) \* Int64\(74\) \+ \(\- CAST\(\(\- Int64\(1\)\) AS Int64\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(\-71\)\)\) \* Int64\(\-54\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + NULLIF ( - CAST ( NULL AS FLOAT8 ), + 37 + 81 * + + 33 ) * 74 + - CAST ( - + 1 AS INTEGER ) - + COUNT ( * ) AS col0, + ( + ( - COUNT ( + - 71 ) ) ) * - 54 + 38 AS col0 query I rowsort @@ -8308,7 +8308,7 @@ SELECT ALL + 8 / + 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-10\), Int64\(97\)\)\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-13\) AS col0" at position 0 and "\(\- Int64\(36\)\) \* Int64\(\-36\) \+ Int64\(\-6\) \- Int64\(23\) \* \(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-10\), Int64\(97\)\)\) / \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-13\) AS col0" at position 0 and "\(\- Int64\(36\)\) \* Int64\(\-36\) \+ Int64\(\-6\) \- Int64\(23\) \* \(\- max\(CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - 10, + 97 ) / - CAST ( NULL AS INTEGER ) * - 13 AS col0, ( - + 36 ) * + - 36 + + - 6 - + 23 * - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -10871,7 +10871,7 @@ SELECT + 80 - - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(CAST\(NULL AS Int32\), Int64\(93\), Int64\(88\)\) \+ Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(CAST\(NULL AS Int64\), Int64\(93\), Int64\(88\)\) \+ Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col0, COUNT ( * ) * + COALESCE ( + CAST ( NULL AS INTEGER ), 93, 88 ) + - 40 AS col0 query I rowsort label-2069 @@ -11394,7 +11394,7 @@ SELECT ALL - 48 * + NULLIF ( - 11, - + ( - 23 ) ) + - 65 + + COALESCE ( + + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(28\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(28\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 58 AS col1, CAST ( NULL AS INTEGER ) * + 28 + + 89 AS col1 query I rowsort label-2168 @@ -13377,7 +13377,7 @@ SELECT + 19 * - COALESCE ( - 88, 7 ) * + + 80 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -2973 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) / Int64\(8\) \- sum\(DISTINCT Int64\(57\)\) \+ Int64\(89\) AS col2" at position 0 and "CAST\(Int64\(\-94\) AS Int32\) \+ Int64\(\-65\) \* Int64\(45\) \- \(\- Int64\(46\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) / Int64\(8\) \- sum\(DISTINCT Int64\(57\)\) \+ Int64\(89\) AS col2" at position 0 and "CAST\(Int64\(\-94\) AS Int64\) \+ Int64\(\-65\) \* Int64\(45\) \- \(\- Int64\(46\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 / 8 - + SUM ( DISTINCT + 57 ) + ( 89 ) AS col2, CAST ( - 94 AS INTEGER ) + - 65 * + 45 - - + 46 AS col2 query I rowsort label-2546 @@ -14502,7 +14502,7 @@ SELECT DISTINCT ( COUNT ( ALL + 90 ) ) * + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "max\(\(\- Int64\(\-85\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "max\(\(\- Int64\(\-85\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + MAX ( - - 85 ) col0 query I rowsort @@ -16299,7 +16299,7 @@ SELECT - - 34 * CAST ( + AVG ( DISTINCT 3 ) AS INTEGER ) + - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(Int64\(3\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(Int64\(3\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 15 col2, - CAST ( 3 AS INTEGER ) AS col2 query I rowsort label-3099 @@ -17324,7 +17324,7 @@ SELECT ALL 87 - - 63 * + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- sum\(Int64\(\-99\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- sum\(Int64\(\-99\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 col1, CAST ( NULL AS INTEGER ) + - SUM ( - 99 ) AS col1 query I rowsort label-3299 @@ -17743,7 +17743,7 @@ SELECT DISTINCT - + 15 - - COUNT ( - CAST ( - CAST ( - + 91 AS INTEGER ) AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - -1064 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(56\) \+ Int64\(56\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(90\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(56\) \+ Int64\(56\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(90\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 20 * + 56 + 56 AS col0, CAST ( NULL AS INTEGER ) * + 90 - - COUNT ( * ) AS col0 query I rowsort @@ -19276,7 +19276,7 @@ SELECT ALL 39 + - 21 + - - ( 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(81\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(15\)\) AS col0" at position 0 and "min\(Int64\(63\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(81\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(15\)\) AS col0" at position 0 and "min\(Int64\(63\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 * + + 81 + - + CAST ( NULL AS INTEGER ) * - + 15 AS col0, MIN ( 63 ) AS col0 query I rowsort @@ -19651,7 +19651,7 @@ SELECT 56 * - 85 - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(19\) \* Int64\(25\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(19\) \* Int64\(25\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 43 AS col2, 19 * + 25 + - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-3743 @@ -20567,7 +20567,7 @@ SELECT ALL COUNT ( ALL 21 ) + COUNT ( * ) * - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(39\) AS Int32\)\) \+ sum\(Int64\(18\)\) \- coalesce\(Int64\(67\), Int64\(35\)\) / Int64\(98\) \+ nullif\(\(\- Int64\(0\)\), Int64\(\-1\)\) \* Int64\(\-57\) AS col0" at position 0 and "nullif\(Int64\(63\), \(\- min\(DISTINCT CAST\(NULL AS Int32\)\)\) \* Int64\(96\) \* \(\- Int64\(37\)\) \+ \(\- Int64\(60\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(39\) AS Int64\)\) \+ sum\(Int64\(18\)\) \- coalesce\(Int64\(67\), Int64\(35\)\) / Int64\(98\) \+ nullif\(\(\- Int64\(0\)\), Int64\(\-1\)\) \* Int64\(\-57\) AS col0" at position 0 and "nullif\(Int64\(63\), \(\- min\(DISTINCT CAST\(NULL AS Int64\)\)\) \* Int64\(96\) \* \(\- Int64\(37\)\) \+ \(\- Int64\(60\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 39 AS INTEGER ) + SUM ( ALL 18 ) - COALESCE ( 67, 35 ) / + 98 + NULLIF ( - + 0, - 1 ) * - 57 AS col0, NULLIF ( + 63, - ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * 96 * - + 37 + - + 60 ) AS col0 query I rowsort @@ -22907,7 +22907,7 @@ SELECT + 40 + + COUNT ( * ) / + + 42 + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16196 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- coalesce\(Int64\(84\), Int64\(\-28\)\)\), CAST\(Int64\(26\) AS Int32\) \- Int64\(17\) \+ \(\- Int64\(25\)\) \* Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\)\)\) / Int64\(\-53\) \- Int64\(\-23\) \- Int64\(63\) \+ \(\- Int64\(58\)\) \* Int64\(7\) \* Int64\(40\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- coalesce\(Int64\(84\), Int64\(\-28\)\)\), CAST\(Int64\(26\) AS Int64\) \- Int64\(17\) \+ \(\- Int64\(25\)\) \* Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\)\)\) / Int64\(\-53\) \- Int64\(\-23\) \- Int64\(63\) \+ \(\- Int64\(58\)\) \* Int64\(7\) \* Int64\(40\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - COALESCE ( 84, - 28 ), + CAST ( + 26 AS INTEGER ) - + 17 + - + 25 * 12 * + COUNT ( * ) * 54 ) / + - 53 - - 23 - + 63 + - + 58 * 7 * 40 + + 85 AS col1, + 26 col1 query II rowsort @@ -28459,7 +28459,7 @@ SELECT - + 36 + - - 53 * + 55 + 92 col0, + COALESCE ( 19, 78 + - ( + 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(71\) \- count\(Int64\(98\)\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(71\) \- count\(Int64\(98\)\) \- \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 22 AS col2, + 71 - + COUNT ( 98 ) - - - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-5416 @@ -28842,7 +28842,7 @@ SELECT - 67 AS col1, - 4 + + 41 - - - 78 * + 87 - + NULLIF ( - 63, 97 + CAST ( N # Datafusion - Datafusion expected results: # Datafusion - Expected - -163 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ Int64\(\-6\) \+ \(\- coalesce\(\(\- CASE \(\- Int64\(\-49\)\) WHEN Int64\(51\) \+ Int64\(42\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END\), Int64\(78\)\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ Int64\(\-6\) \+ \(\- coalesce\(\(\- CASE \(\- Int64\(\-49\)\) WHEN Int64\(51\) \+ Int64\(42\) THEN NULL ELSE \(\- CAST\(NULL AS Int64\)\) END\), Int64\(78\)\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 79 + - 6 + - + COALESCE ( - CASE - - 49 WHEN 51 + 42 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END, + 78 ) AS col1, + 29 AS col1 query I rowsort label-5488 @@ -29511,7 +29511,7 @@ SELECT DISTINCT - 33, + 79 - + 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-24\)\) AS Int32\) / Int64\(\-92\) AS col1" at position 0 and "Int64\(4\) \+ Int64\(\-87\) \+ \(\- nullif\(Int64\(49\), \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-8\) \+ Int64\(45\) \+ Int64\(84\) / Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-24\)\) AS Int64\) / Int64\(\-92\) AS col1" at position 0 and "Int64\(4\) \+ Int64\(\-87\) \+ \(\- nullif\(Int64\(49\), \(\- CAST\(NULL AS Int64\)\)\)\) \+ Int64\(\-8\) \+ Int64\(45\) \+ Int64\(84\) / Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - 24 AS INTEGER ) / - 92 AS col1, 4 + - 87 + - NULLIF ( + 49, - CAST ( NULL AS INTEGER ) ) + + - 8 + 45 + + 84 / + 15 AS col1 query I rowsort label-5616 @@ -31022,7 +31022,7 @@ SELECT ALL COUNT ( * ) * - + 31 - 51 * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 183 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / CAST\(\(\- Int64\(85\)\) AS Int32\) \+ Int64\(95\) \+ Int64\(89\) AS col1" at position 0 and "\(\- Int64\(\-69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / CAST\(\(\- Int64\(85\)\) AS Int64\) \+ Int64\(95\) \+ Int64\(89\) AS col1" at position 0 and "\(\- Int64\(\-69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 / + CAST ( - + 85 AS INTEGER ) + + ( + 95 ) + + 89 col1, - ( - 69 ) AS col1 query I rowsort @@ -31055,7 +31055,7 @@ SELECT + 1 * + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- max\(Int64\(\-23\)\)\) \+ \(\- Int64\(10\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- max\(Int64\(\-23\)\)\) \+ \(\- Int64\(10\)\) 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\. SELECT 7 * - MAX ( - 23 ) + - + 10 AS col0, CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -31826,7 +31826,7 @@ SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 984 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-41\) AS Int32\)\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-41\) AS Int64\)\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 49 AS col1, - CAST ( - 41 AS INTEGER ) * + 24 AS col1 query I rowsort label-6050 @@ -32505,7 +32505,7 @@ SELECT ALL - 86 + + - 42 - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- coalesce\(Int64\(31\), Int64\(24\), Int64\(23\)\) \+ Int64\(39\) \+ Int64\(9\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- coalesce\(Int64\(31\), Int64\(24\), Int64\(23\)\) \+ Int64\(39\) \+ Int64\(9\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 - + COALESCE ( 31, + + 24, + 23 ) + + 39 + 9 + CAST ( NULL AS INTEGER ) AS col2, - 57 AS col2 query I rowsort label-6179 @@ -33717,7 +33717,7 @@ SELECT + + COUNT ( * ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5303 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(66\)\) \- Int64\(\-91\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / \(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(66\)\) \- Int64\(\-91\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 84 / - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, ( - ( + 66 ) ) - - 91 * + + 59 AS col0 query I rowsort label-6407 @@ -33832,7 +33832,7 @@ SELECT ALL - - 39 * 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -6278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(9\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(86\) \* \(\- Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(9\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(86\) \* \(\- Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( + + ( 9 ) AS INTEGER ) col1, 86 * + ( - + 73 ) AS col1 query I rowsort @@ -36107,7 +36107,7 @@ SELECT + 74 * - + CAST ( + - 12 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 59 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-6868 @@ -36668,7 +36668,7 @@ SELECT + 22 * - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(16\)\) \+ Int64\(89\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(16\)\) \+ Int64\(89\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( 16 ) + + 89 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -38784,7 +38784,7 @@ SELECT ALL - ( 37 ), - ( - + 66 ) / + 53 AS col2 # Datafusion - Expected - 63 # Datafusion - Expected - 247938 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-63\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-31\) \* \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-63\)\) AS Int64\) AS col2" at position 0 and "Int64\(\-31\) \* \(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - 63 AS INTEGER ) AS col2, 86 * - 93 * - 31 AS col1, - 31 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 query II rowsort @@ -40057,7 +40057,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(13\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(66\) \+ Int64\(97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(13\)\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(66\) \+ Int64\(97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT 13 ) + - - CAST ( NULL AS INTEGER ) * + 66 + + 97 AS col1, COUNT ( * ) AS col1 query I rowsort @@ -46296,7 +46296,7 @@ SELECT ALL - 85 / + 32 AS col1, MIN ( ( + 89 ) ) + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ CAST\(Int64\(\-42\) AS Int32\) AS col0" at position 0 and "count\(\(\- Int64\(\-82\)\)\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ CAST\(Int64\(\-42\) AS Int64\) AS col0" at position 0 and "count\(\(\- Int64\(\-82\)\)\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 + + CAST ( - 42 AS INTEGER ) AS col0, + COUNT ( - - 82 ) * - 22 AS col0 query I rowsort @@ -46611,7 +46611,7 @@ SELECT + 74 * - 57, - 5 * - - 58 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 133 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(56\) / Int64\(72\) \* CASE Int64\(15\) WHEN Int64\(31\) THEN NULL WHEN \(\- CAST\(Int64\(37\) AS Int32\)\) \* Int64\(\-67\) \* Int64\(\-26\) THEN Int64\(34\) END / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(56\) / Int64\(72\) \* CASE Int64\(15\) WHEN Int64\(31\) THEN NULL WHEN \(\- CAST\(Int64\(37\) AS Int64\)\) \* Int64\(\-67\) \* Int64\(\-26\) THEN Int64\(34\) END / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 91 + + + 42 AS col0, 56 / 72 * + CASE + 15 WHEN 31 THEN NULL WHEN - + CAST ( + 37 AS INTEGER ) * - 67 * + - 26 THEN + 34 END / - COUNT ( * ) + - 47 AS col0 query I rowsort label-8875 @@ -48469,7 +48469,7 @@ SELECT DISTINCT + 42 * - ( - + CAST ( - SUM ( + - 29 ) AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(89\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(89\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( 89 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9227 @@ -49268,7 +49268,7 @@ SELECT - 30 / 42 + + 88 * 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(75\) \* Int64\(\-50\) \* Int64\(92\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(75\) \* Int64\(\-50\) \* Int64\(92\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 + 75 * - 50 * + 92 * + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col2 query II rowsort label-9378 @@ -51750,7 +51750,7 @@ SELECT - - 38 + + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \+ Int64\(3\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \+ Int64\(3\) 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\. SELECT - + 63 + 3 AS col0, - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-9855 diff --git a/data/sqlite/random/expr/slt_good_102.slt b/data/sqlite/random/expr/slt_good_102.slt index b9cf5db..3c1edd6 100644 --- a/data/sqlite/random/expr/slt_good_102.slt +++ b/data/sqlite/random/expr/slt_good_102.slt @@ -656,7 +656,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 0 and "Int64\(39\) \* \(\- \(\- coalesce\(Int64\(66\), Int64\(89\) \- Int64\(\-58\) \+ \(\- count\(DISTINCT Int64\(42\)\)\) \- \(\- \(\- nullif\(Int64\(\-82\), Int64\(91\) \* Int64\(17\)\)\)\), Int64\(55\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 0 and "Int64\(39\) \* \(\- \(\- coalesce\(Int64\(66\), Int64\(89\) \- Int64\(\-58\) \+ \(\- count\(DISTINCT Int64\(42\)\)\) \- \(\- \(\- nullif\(Int64\(\-82\), Int64\(91\) \* Int64\(17\)\)\)\), Int64\(55\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 39 * - - COALESCE ( + 66, + ( 89 ) - - 58 + + - COUNT ( DISTINCT + 42 ) - - - NULLIF ( - 82, 91 * 17 ), 55 ) AS col2 query I rowsort label-116 @@ -2734,7 +2734,7 @@ SELECT + 0 + + 98 + - 94 * ( + 10 ) * + COUNT ( * ) * 3 * + 20 + 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* CAST\(NULL AS Int32\) \* Int64\(\-22\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* CAST\(NULL AS Int64\) \* Int64\(\-22\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 99 * + CAST ( NULL AS INTEGER ) * - 22 AS col2, + 24 AS col2 query II rowsort label-513 @@ -2752,7 +2752,7 @@ SELECT + 81 AS col1, - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2492 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(31\) \- Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(45\) AS Int32\)\) AS col0" at position 0 and "Int64\(68\) \+ \(\- CASE \(\- sum\(Int64\(\-58\)\)\) WHEN \(\- Int64\(\-87\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(44\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(31\) \- Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(45\) AS Int64\)\) AS col0" at position 0 and "Int64\(68\) \+ \(\- CASE \(\- sum\(Int64\(\-58\)\)\) WHEN \(\- Int64\(\-87\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(44\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 80 * 31 - - 56 + COUNT ( * ) + + - CAST ( + 45 AS INTEGER ) col0, 68 + + - CASE - + SUM ( ALL - 58 ) WHEN - - 87 * - COUNT ( * ) THEN NULL ELSE + 44 END col0 query II rowsort label-516 @@ -2780,7 +2780,7 @@ SELECT - + 67 * - + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int32\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int64\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 61 AS INTEGER ) AS col0, - 98 AS col0 query I rowsort @@ -5600,7 +5600,7 @@ SELECT + 25 * - 41 + + 59 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-91\), CASE Int64\(94\) WHEN Int64\(99\) \* Int64\(80\) THEN NULL WHEN Int64\(2\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(\-81\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-91\), CASE Int64\(94\) WHEN Int64\(99\) \* Int64\(80\) THEN NULL WHEN Int64\(2\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(\-81\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), - 91, + + CASE + 94 WHEN 99 * 80 THEN NULL WHEN + 2 THEN NULL ELSE + COUNT ( * ) END * + - 81 ) col2, 84 AS col2 query I rowsort label-1055 @@ -7050,7 +7050,7 @@ SELECT DISTINCT - 17 * 36 / - + COUNT ( 39 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(Int64\(95\) AS Int32\) \- Int64\(45\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(Int64\(95\) AS Int64\) \- Int64\(45\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( 87 ) AS col0, + CAST ( + 95 AS INTEGER ) - + 45 * + 4 AS col0 query I rowsort @@ -8437,7 +8437,7 @@ SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8613 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* Int64\(\-87\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* Int64\(\-87\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 99 * - 87 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1591 @@ -11748,7 +11748,7 @@ SELECT ALL - SUM ( ALL + + 91 ), + ( 75 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(40\) \* Int64\(0\) AS col1" at position 0 and "avg\(Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-81\) \- Int64\(\-99\) \* Int64\(3\) \* avg\(CAST\(NULL AS Int32\)\) \+ Int64\(95\) \+ Int64\(\-21\) / Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(40\) \* Int64\(0\) AS col1" at position 0 and "avg\(Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-81\) \- Int64\(\-99\) \* Int64\(3\) \* avg\(CAST\(NULL AS Int64\)\) \+ Int64\(95\) \+ Int64\(\-21\) / Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 * + + 40 * - 0 col1, AVG ( + 61 ) * + - COUNT ( * ) + + - 81 - - 99 * 3 * + + AVG ( + CAST ( NULL AS INTEGER ) ) + 95 + + - 21 / 30 AS col1 # Datafusion - Types were automatically converted from: @@ -12360,7 +12360,7 @@ SELECT ALL 82 * - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 552 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-24\) AS Int32\) \* Int64\(\-23\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-91\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-24\) AS Int64\) \* Int64\(\-23\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-91\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + ( + - 24 ) AS INTEGER ) * + - 23 AS col0, CAST ( - - 91 AS INTEGER ) AS col0 query I rowsort label-2339 @@ -12639,7 +12639,7 @@ SELECT ALL 64 * + SUM ( DISTINCT 62 ) + - CASE - 18 WHEN - 97 / 45 THEN NULL WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col2" at position 0 and "Int64\(\-86\) \+ Int64\(77\) \* \(\- CAST\(Int64\(29\) AS Int32\)\) \* Int64\(14\) \* Int64\(23\) \+ Int64\(12\) \+ avg\(Int64\(\-77\)\) / \(\- CASE Int64\(\-30\) WHEN Int64\(\-45\) THEN Int64\(95\) \* Int64\(3\) WHEN \(\- coalesce\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(45\)\) THEN NULL WHEN Int64\(\-82\) \* \(\- max\(\(\- \(\- Int64\(40\)\)\)\)\) THEN NULL WHEN Int64\(65\) THEN Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) END, \(\- Int64\(\-7\)\) \* Int64\(\-94\) \+ Int64\(26\) \+ Int64\(63\) \* Int64\(64\)\)\) \+ max\(Int64\(9\)\) \* avg\(Int64\(\-46\) \* Int64\(34\)\) THEN Int64\(\-95\) \+ Int64\(43\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col2" at position 0 and "Int64\(\-86\) \+ Int64\(77\) \* \(\- CAST\(Int64\(29\) AS Int64\)\) \* Int64\(14\) \* Int64\(23\) \+ Int64\(12\) \+ avg\(Int64\(\-77\)\) / \(\- CASE Int64\(\-30\) WHEN Int64\(\-45\) THEN Int64\(95\) \* Int64\(3\) WHEN \(\- coalesce\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(45\)\) THEN NULL WHEN Int64\(\-82\) \* \(\- max\(\(\- \(\- Int64\(40\)\)\)\)\) THEN NULL WHEN Int64\(65\) THEN Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) END, \(\- Int64\(\-7\)\) \* Int64\(\-94\) \+ Int64\(26\) \+ Int64\(63\) \* Int64\(64\)\)\) \+ max\(Int64\(9\)\) \* avg\(Int64\(\-46\) \* Int64\(34\)\) THEN Int64\(\-95\) \+ Int64\(43\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + 91 ) AS col2, - 86 + 77 * + - CAST ( + 29 AS INTEGER ) * 14 * + 23 + + 12 + + AVG ( - 77 ) / - + CASE + - 30 WHEN - 45 THEN 95 * 3 WHEN + - COALESCE ( CASE + COUNT ( * ) WHEN - + 45 THEN NULL WHEN - 82 * - MAX ( ALL - - ( + 40 ) ) THEN NULL WHEN 65 THEN 8 * COUNT ( * ) END, - - 7 * + - 94 + + + 26 + 63 * + 64 ) + + MAX ( ALL 9 ) * + AVG ( ALL - 46 * 34 ) THEN - 95 + 43 END AS col2 query II rowsort @@ -13442,7 +13442,7 @@ SELECT + - 0 + + + 46 * - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-87\) \+ Int64\(3\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-16\)\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-87\) \+ Int64\(3\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-16\)\) \+ \(\- CAST\(Int64\(9\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 25 + - 87 + + 3 * - COUNT ( * ) AS col2, + COUNT ( * ) * - - 16 + + - CAST ( + 9 AS INTEGER ) AS col2 query I rowsort @@ -15569,7 +15569,7 @@ SELECT COUNT ( * ) * + 21 AS col2 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 85 col1, + ( - CAST ( NULL AS INTEGER ) ) + + + 84 AS col1, - 11 AS col2 query I rowsort @@ -16657,7 +16657,7 @@ SELECT DISTINCT + 48 + - + 4 + - 4 - SUM ( - 54 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(34\)\)\) \+ Int64\(44\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(34\)\)\) \+ Int64\(44\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( 34 ) + 44 col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -19252,7 +19252,7 @@ SELECT ALL 31 / + 14, 0 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / Int64\(33\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / Int64\(33\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 1 / + 33 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-3646 @@ -21107,7 +21107,7 @@ SELECT + - 33 + - + 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "coalesce\(Int64\(42\), CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "coalesce\(Int64\(42\), CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 54 AS col1, COALESCE ( + 42, CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort label-4001 @@ -21465,7 +21465,7 @@ SELECT ALL 49 / + 73 col2, + NULLIF ( + 6, 72 + - 43 ) - + NULLIF ( 0, + + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(2\) \+ Int64\(99\) / Int64\(97\) \+ \(\- coalesce\(Int64\(96\), count\(Int64\(1\)\) AS count\(\*\), CASE Int64\(\-27\) WHEN \(\- CAST\(Int64\(\-93\) AS Int32\)\) \+ Int64\(84\) THEN NULL WHEN \(\- nullif\(coalesce\(Int64\(94\), Int64\(98\) \* Int64\(\-99\)\), Int64\(70\)\)\) \* Int64\(1\) THEN Int64\(72\) \* \(\- Int64\(52\)\) END / Int64\(\-21\) \* Int64\(20\) \- Int64\(42\)\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(2\) \+ Int64\(99\) / Int64\(97\) \+ \(\- coalesce\(Int64\(96\), count\(Int64\(1\)\) AS count\(\*\), CASE Int64\(\-27\) WHEN \(\- CAST\(Int64\(\-93\) AS Int64\)\) \+ Int64\(84\) THEN NULL WHEN \(\- nullif\(coalesce\(Int64\(94\), Int64\(98\) \* Int64\(\-99\)\), Int64\(70\)\)\) \* Int64\(1\) THEN Int64\(72\) \* \(\- Int64\(52\)\) END / Int64\(\-21\) \* Int64\(20\) \- Int64\(42\)\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 97 + + - COUNT ( * ) / + 2 + + 99 / + + 97 + - COALESCE ( + 96, + + COUNT ( * ), CASE - 27 WHEN - + CAST ( - 93 AS INTEGER ) + 84 THEN NULL WHEN - NULLIF ( + + COALESCE ( 94, 98 * - 99 ), + 70 ) * 1 THEN 72 * - + 52 END / - 21 * + 20 - + + 42 ) col0, 7 AS col0 query II rowsort label-4069 @@ -21530,7 +21530,7 @@ SELECT COUNT ( * ) + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "\(\- CASE Int64\(45\) WHEN Int64\(38\) THEN NULL ELSE Int64\(51\) END\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(NULL AS Int32\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "\(\- CASE Int64\(45\) WHEN Int64\(38\) THEN NULL ELSE Int64\(51\) END\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(NULL AS Int64\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 AS col0, - CASE + 45 WHEN + 38 THEN NULL ELSE + 51 END - - + ( - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) * 49 AS col0 query I rowsort label-4081 @@ -21811,7 +21811,7 @@ SELECT DISTINCT 36 * - 4 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -720 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* \(\- Int64\(\-90\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* \(\- Int64\(\-90\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 8 * - - 90 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -22777,7 +22777,7 @@ SELECT DISTINCT 85 + - COUNT ( * ) + - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(66\) \* Int64\(63\) \+ Int64\(2\) \* Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(66\) \* Int64\(63\) \+ Int64\(2\) \* Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 29 + - + CAST ( NULL AS INTEGER ) + 45 + - + COUNT ( * ) col1, 66 * + + 63 + + + 2 * + 81 col1 query I rowsort label-4316 @@ -23622,7 +23622,7 @@ SELECT 4 * - + 75 + + ( 86 ) - CAST ( + 17 AS INTEGER ) * 23 AS col2, 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(3\) AS col0" at position 0 and "Int64\(21\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(3\) AS col0" at position 0 and "Int64\(21\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 * + 3 AS col0, 21 * CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-4475 @@ -26983,7 +26983,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-31\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-31\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 19 * - CAST ( NULL AS INTEGER ) + + - 31 AS col0, - 97 AS col0 query I rowsort label-5116 @@ -27354,7 +27354,7 @@ SELECT ALL - 4 * 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(\-14\) AS col0" at position 0 and "nullif\(\(\- Int64\(24\)\), \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(\-14\) AS col0" at position 0 and "nullif\(\(\- Int64\(24\)\), \(\- CAST\(Int64\(\-47\) AS Int64\)\) \+ Int64\(\-29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 50 - - 14 AS col0, NULLIF ( ( - + 24 ), - CAST ( + - 47 AS INTEGER ) + - 29 ) AS col0 query II rowsort @@ -27905,7 +27905,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) \+ \(\- Int64\(\-58\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int64\) \+ \(\- Int64\(\-58\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 90 AS INTEGER ) + - - 58 AS col2, + COUNT ( * ) * - 88 col2 query I rowsort @@ -29330,7 +29330,7 @@ SELECT + 15 + + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(8\) \- Int64\(65\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(8\) \- Int64\(65\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * + 8 - + 65 AS col0, 68 AS col0 query II rowsort @@ -31246,7 +31246,7 @@ SELECT ALL - + 60 AS col0, + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-23\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(75\) \* \(\- \(\- max\(Int64\(\-12\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-23\)\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(75\) \* \(\- \(\- max\(Int64\(\-12\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT + - 23 ) * + CAST ( NULL AS INTEGER ) col1, 75 * - - MAX ( - 12 ) AS col1 query I rowsort label-5921 @@ -31731,7 +31731,7 @@ SELECT ( + + 82 ) + - + COUNT ( * ) * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-51\)\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(21\) \+ Int64\(7\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-46\)\) \* CAST\(NULL AS Int32\) THEN NULL END AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-51\)\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(21\) \+ Int64\(7\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-46\)\) \* CAST\(NULL AS Int64\) THEN NULL END AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( - 51 ) * + CASE - ( COUNT ( * ) ) WHEN + 21 + + 7 THEN + COUNT ( * ) WHEN - - 46 * + CAST ( NULL AS INTEGER ) THEN NULL END AS col2, 6 AS col2 query I rowsort label-6010 @@ -35167,7 +35167,7 @@ SELECT ALL ( - + SUM ( ALL + - 36 ) ) - + 28 / + COUNT ( * ) * + COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 1653 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(29\) AS col1" at position 0 and "Int64\(47\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(29\) AS col1" at position 0 and "Int64\(47\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 57 * 29 AS col1, 47 * + ( - CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -38089,7 +38089,7 @@ SELECT 91 * - 37 * - 33 + NULLIF ( - COUNT ( * ), - 82 ) * + 2 + - - 18 col2 # Datafusion - Expected - 27 # Datafusion - Expected - 74 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- CAST\(Int64\(\-33\) AS Int32\) \+ Int64\(49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- CAST\(Int64\(\-33\) AS Int64\) \+ Int64\(49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 55 - CAST ( - 33 AS INTEGER ) + 49 AS col2, COUNT ( * ) * - - 74 AS col2, - SUM ( DISTINCT 10 ) query I rowsort @@ -39447,7 +39447,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, 28 AS col2 query I rowsort label-7476 @@ -40590,7 +40590,7 @@ SELECT DISTINCT - 41 + 90 / 26, + 77 - - - 55 + ( + + MAX ( + + 19 ) ) / - - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) \* Int64\(22\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) / coalesce\(\(\- coalesce\(Int64\(46\), Int64\(81\) \+ CAST\(NULL AS Int32\) \* Int64\(93\)\)\), Int64\(96\) \+ \(\- Int64\(62\)\) \+ Int64\(78\) \+ \(\- CAST\(Int64\(49\) AS Int32\)\) \- Int64\(4\) \+ coalesce\(Int64\(54\), Int64\(\-31\)\) \* Int64\(93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) \* Int64\(22\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) / coalesce\(\(\- coalesce\(Int64\(46\), Int64\(81\) \+ CAST\(NULL AS Int64\) \* Int64\(93\)\)\), Int64\(96\) \+ \(\- Int64\(62\)\) \+ Int64\(78\) \+ \(\- CAST\(Int64\(49\) AS Int64\)\) \- Int64\(4\) \+ coalesce\(Int64\(54\), Int64\(\-31\)\) \* Int64\(93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - ( - 4 ) * 22 AS col1, + COUNT ( * ) * 94 / COALESCE ( - COALESCE ( 46, 81 + CAST ( NULL AS INTEGER ) * 93 ), + ( 96 ) + - + 62 + 78 + + - CAST ( 49 AS INTEGER ) - 4 + + COALESCE ( 54, - 31 ) * + 93 * - COUNT ( * ), - ( - COUNT ( * ) ) ) AS col1 query I rowsort label-7692 @@ -45303,7 +45303,7 @@ SELECT DISTINCT - ( + + 15 ) * + COUNT ( * ) + - 39 + + COUNT ( * ) + + + 53 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-75\) \- Int64\(76\) \+ \(\- Int64\(87\)\) \+ Int64\(18\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-75\) \- Int64\(76\) \+ \(\- Int64\(87\)\) \+ Int64\(18\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + - 75 - 76 + - ( 87 ) + + 18 AS col1, 90 col1 query I rowsort @@ -45790,7 +45790,7 @@ SELECT ALL - + 73 + - + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(74\)\) \* Int64\(\-87\) / Int64\(\-59\) \* Int64\(56\) \+ Int64\(8\) \+ \(\- coalesce\(Int64\(\-74\), Int64\(\-53\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(66\) \* Int64\(61\) \* Int64\(98\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \- Int64\(55\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(75\) AS col0" at position 0 and "Int64\(30\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(74\)\) \* Int64\(\-87\) / Int64\(\-59\) \* Int64\(56\) \+ Int64\(8\) \+ \(\- coalesce\(Int64\(\-74\), Int64\(\-53\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(66\) \* Int64\(61\) \* Int64\(98\) / \(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) \- Int64\(55\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(75\) AS col0" at position 0 and "Int64\(30\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + AVG ( + + 74 ) * - 87 / - 59 * + 56 + + 8 + - COALESCE ( - 74, - 53 ) + - - COUNT ( * ) * 66 * + 61 * + 98 / + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 55 / + COUNT ( * ) - + + 75 AS col0, 30 * + 35 AS col0 query I rowsort label-8693 @@ -46241,7 +46241,7 @@ SELECT - COUNT ( * ) * - + 4 * - - 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-34\) WHEN Int64\(41\) THEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) / \(\- Int64\(74\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(71\)\) \+ Int64\(\-24\) \+ \(\- Int64\(86\)\) \+ Int64\(57\) END\) \* Int64\(51\) \* Int64\(\-23\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-34\) WHEN Int64\(41\) THEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) / \(\- Int64\(74\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(71\)\) \+ Int64\(\-24\) \+ \(\- Int64\(86\)\) \+ Int64\(57\) END\) \* Int64\(51\) \* Int64\(\-23\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( CASE - 34 WHEN + 41 THEN CAST ( + + COUNT ( * ) AS INTEGER ) / - + 74 + - COUNT ( * ) - - + 71 + + - 24 + - + 86 + + + 57 END ) * + 51 * - 23 AS col1, + 68 AS col1 query I rowsort label-8778 @@ -47544,7 +47544,7 @@ SELECT ALL - COALESCE ( - 82, 37 - - 97 ) * + 94 * - 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(1\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(1\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 60 + CAST ( NULL AS INTEGER ) AS col1, + 1 * + 94 AS col1 query II rowsort label-9024 @@ -52002,7 +52002,7 @@ SELECT + + ( - NULLIF ( - ( + 80 ), - + 78 + + - 20 + + + COUNT ( DISTINCT + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-97\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(50\) \+ Int64\(4\) \* Int64\(\-23\) \* Int64\(\-97\) AS col2" at position 0 and "\(\- Int64\(56\)\) \* min\(Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-97\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(50\) \+ Int64\(4\) \* Int64\(\-23\) \* Int64\(\-97\) AS col2" at position 0 and "\(\- Int64\(56\)\) \* min\(Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) + - 97 * - - CAST ( NULL AS INTEGER ) * 50 + 4 * + - 23 * - 97 col2, ( - ( 56 ) ) * MIN ( + 12 ) col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_103.slt b/data/sqlite/random/expr/slt_good_103.slt index 83b1ee2..9ba9c3b 100644 --- a/data/sqlite/random/expr/slt_good_103.slt +++ b/data/sqlite/random/expr/slt_good_103.slt @@ -784,7 +784,7 @@ SELECT DISTINCT - NULLIF ( + 96, + + 42 ) * + - 19 + + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(99\) AS col1" at position 0 and "Int64\(\-62\) \- CAST\(CAST\(Int64\(17\) AS Float64\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(99\) AS col1" at position 0 and "Int64\(\-62\) \- CAST\(CAST\(Int64\(17\) AS Float64\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 + 99 AS col1, - 62 - CAST ( CAST ( + 17 AS FLOAT8 ) AS INTEGER ) AS col1 query I rowsort label-142 @@ -816,7 +816,7 @@ SELECT + 25 * + 91 + - + 84 + + 90 * - 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "Int64\(70\) \* Int64\(83\) / Int64\(38\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "Int64\(70\) \* Int64\(83\) / Int64\(38\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + + - 33 AS col0, 70 * + + 83 / + 38 + - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -2459,7 +2459,7 @@ SELECT DISTINCT MAX ( ALL + 42 ) / 46 + - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(48\) AS Int32\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(48\) AS Int64\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 48 AS INTEGER ) AS col1, + 42 AS col1 query II rowsort label-459 @@ -3467,7 +3467,7 @@ SELECT - COUNT ( * ) + + + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / Int64\(23\) \* coalesce\(Int64\(\-85\), Int64\(48\)\) \* Int64\(16\) \* Int64\(32\) / \(\- CASE Int64\(56\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(57\) \* Int64\(14\) THEN \(\- count\(Int64\(10\)\)\) / Int64\(55\) \+ \(\- Int64\(17\)\) END\) \* Int64\(52\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(44\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / Int64\(23\) \* coalesce\(Int64\(\-85\), Int64\(48\)\) \* Int64\(16\) \* Int64\(32\) / \(\- CASE Int64\(56\) WHEN \(\- CAST\(NULL AS Int64\)\) \+ Int64\(57\) \* Int64\(14\) THEN \(\- count\(Int64\(10\)\)\) / Int64\(55\) \+ \(\- Int64\(17\)\) END\) \* Int64\(52\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(44\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 / + 23 * ( + COALESCE ( - 85, + 48 ) ) * 16 * + 32 / - CASE 56 WHEN + - ( CAST ( NULL AS INTEGER ) ) + + 57 * 14 THEN + - COUNT ( ALL 10 ) / + 55 + - + 17 END * + 52 * - COUNT ( * ) + - COUNT ( * ) - 44 AS col2, 93 AS col2 query I rowsort label-649 @@ -4026,7 +4026,7 @@ SELECT + ( 82 ) * - 20 * + CAST ( - - COUNT ( * ) AS INTEGER ) + - 79 - + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-95\) \+ \(\- count\(Int64\(91\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-95\) \+ \(\- count\(Int64\(91\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * - 95 + - + COUNT ( + 91 ) AS col0 query I rowsort @@ -5750,7 +5750,7 @@ SELECT - 13 + - - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2763900 # Datafusion - Expected - -2221 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(37\) \* Int64\(\-15\) \* Int64\(\-60\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(\-1\) \+ Int64\(37\) \* \(\- Int64\(59\)\) \+ Int64\(\-81\) \+ \(\- coalesce\(Int64\(73\), Int64\(\-98\) \* Int64\(20\) \+ Int64\(\-22\)\)\) \+ CAST\(\(\- Int64\(\-27\)\) AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(37\) \* Int64\(\-15\) \* Int64\(\-60\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(\-1\) \+ Int64\(37\) \* \(\- Int64\(59\)\) \+ Int64\(\-81\) \+ \(\- coalesce\(Int64\(73\), Int64\(\-98\) \* Int64\(20\) \+ Int64\(\-22\)\)\) \+ CAST\(\(\- Int64\(\-27\)\) AS Int64\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 * 37 * + + ( - 15 ) * - 60 AS col2, 90 + - 1 + + 37 * - + 59 + + - 81 + - COALESCE ( + 73, - 98 * 20 + - 22 ) + CAST ( - - 27 AS INTEGER ) / + COUNT ( * ) AS col2 query I rowsort label-1083 @@ -5798,7 +5798,7 @@ SELECT DISTINCT 82 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \- Int64\(53\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(96\) / Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \- Int64\(53\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(96\) / Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 97 - + 53 AS col0, + CAST ( + COUNT ( * ) AS INTEGER ) * 96 / + - 45 col0 query I rowsort label-1092 @@ -7851,7 +7851,7 @@ SELECT - NULLIF ( - + 45, - 4 + 50 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(3\) \+ \(\- \(\- count\(CAST\(NULL AS Int32\)\)\)\) / \(\- Int64\(\-47\)\) \+ Int64\(\-87\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(3\) \+ \(\- \(\- count\(CAST\(NULL AS Int64\)\)\)\) / \(\- Int64\(\-47\)\) \+ Int64\(\-87\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 41 AS col0, 3 + - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / - - 47 + - 87 + 31 AS col0 query I rowsort @@ -8616,7 +8616,7 @@ SELECT + SUM ( DISTINCT 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(53\) \* Int64\(\-42\) AS col1" at position 0 and "\(\- CASE Int64\(63\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(\-84\) \- Int64\(\-19\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(53\) \* Int64\(\-42\) AS col1" at position 0 and "\(\- CASE Int64\(63\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ \(\- CAST\(NULL AS Int64\)\) THEN NULL ELSE Int64\(\-84\) \- Int64\(\-19\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 52 / + 53 * - 42 AS col1, + ( - CASE + 63 WHEN - COUNT ( * ) * 15 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 84 - + - 19 END ) AS col1 query I rowsort @@ -12006,7 +12006,7 @@ SELECT - 62 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int32\)\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(Int64\(46\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int64\)\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(Int64\(46\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - CAST ( + 41 AS INTEGER ) ) AS col1, 61 + CAST ( + + 46 AS INTEGER ) AS col1 query I rowsort label-2280 @@ -13808,7 +13808,7 @@ SELECT ALL - ( + 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(95\) AS Int32\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(95\) AS Int64\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + 95 AS INTEGER ) AS col1, - 58 AS col1 query I rowsort @@ -15532,7 +15532,7 @@ SELECT + 11 AS col2, 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-84\), Int64\(\-8\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\)\)\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-84\), Int64\(\-8\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\)\)\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, - COALESCE ( - 84, ( - 8 ), + COUNT ( * ) + 66 ) + 80 * - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2951 @@ -16109,7 +16109,7 @@ SELECT - + CAST ( + 62 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(87\) AS col0" at position 0 and "\(\- CAST\(\(\- Int64\(35\)\) AS Int32\)\) \+ Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(87\) AS col0" at position 0 and "\(\- CAST\(\(\- Int64\(35\)\) AS Int64\)\) \+ Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 87 AS col0, - CAST ( - + ( 35 ) AS INTEGER ) + 62 AS col0 query I rowsort label-3062 @@ -18160,7 +18160,7 @@ SELECT + 4 AS col0, COUNT ( * ) + + ( - 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66042 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- min\(DISTINCT CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(66\) \* Int64\(\-54\) \+ Int64\(\-13\) \* Int64\(54\) \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- min\(DISTINCT CAST\(NULL AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(66\) \* Int64\(\-54\) \+ Int64\(\-13\) \* Int64\(54\) \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 19 * - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, + 66 * + - 54 + - 13 * 54 * + 89 AS col2 query I rowsort @@ -19757,7 +19757,7 @@ SELECT DISTINCT + COUNT ( * ) * + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(56\) NOT IN \(\[Int64\(60\) \- Int64\(90\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(72\) \* Int64\(62\), Int64\(12\)\]\) THEN Int64\(\-65\) \* Int64\(39\) END\) \+ Int64\(7\) \+ Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(56\) NOT IN \(\[Int64\(60\) \- Int64\(90\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(72\) \* Int64\(62\), Int64\(12\)\]\) THEN Int64\(\-65\) \* Int64\(39\) END\) \+ Int64\(7\) \+ Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 74 * COUNT ( * ) AS col1, - CASE WHEN NOT 56 NOT IN ( 60 - 90 + + CAST ( + + COUNT ( * ) AS INTEGER ) * + 72 * + 62, 12 ) THEN - 65 * 39 END + 7 + - 69 col1 query I rowsort label-3754 @@ -21496,7 +21496,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \* Int64\(2\) \+ count\(\(\- CAST\(NULL AS Float64\)\)\) AS col2" at position 0 and "Int64\(51\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\) \* Int64\(2\) \+ count\(\(\- CAST\(NULL AS Float64\)\)\) AS col2" at position 0 and "Int64\(51\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 2 + + + COUNT ( - CAST ( NULL AS FLOAT8 ) ) AS col2, 51 - + + COUNT ( * ) - - 97 AS col2 query I rowsort label-4083 @@ -22088,7 +22088,7 @@ SELECT DISTINCT 69 * COALESCE ( ( + 53 ), + 71 + + 58 + + MIN ( 92 ) + + 25 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1035 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(coalesce\(Int64\(\-12\), Int64\(\-15\), Int64\(23\) \+ Int64\(48\)\), Int64\(26\) / Int64\(41\) \+ Int64\(23\)\) \* \(\- \(\- Int64\(12\)\)\) \* CASE \(\- Int64\(\-33\)\) WHEN CAST\(\(\- Int64\(\-65\)\) AS Int32\) THEN NULL ELSE Int64\(0\) / CAST\(NULL AS Int32\) \- Int64\(16\) \+ Int64\(41\) \* Int64\(31\) / Int64\(59\) \* Int64\(\-91\) \* Int64\(86\) \* Int64\(54\) END \* Int64\(26\) / min\(Int64\(49\)\) \- Int64\(24\) AS col0" at position 0 and "Int64\(23\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(coalesce\(Int64\(\-12\), Int64\(\-15\), Int64\(23\) \+ Int64\(48\)\), Int64\(26\) / Int64\(41\) \+ Int64\(23\)\) \* \(\- \(\- Int64\(12\)\)\) \* CASE \(\- Int64\(\-33\)\) WHEN CAST\(\(\- Int64\(\-65\)\) AS Int64\) THEN NULL ELSE Int64\(0\) / CAST\(NULL AS Int64\) \- Int64\(16\) \+ Int64\(41\) \* Int64\(31\) / Int64\(59\) \* Int64\(\-91\) \* Int64\(86\) \* Int64\(54\) END \* Int64\(26\) / min\(Int64\(49\)\) \- Int64\(24\) AS col0" at position 0 and "Int64\(23\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( COALESCE ( - 12, - 15, 23 + + 48 ), + 26 / 41 + ( + + 23 ) ) * - - ( + 12 ) * + CASE - - 33 WHEN CAST ( - - 65 AS INTEGER ) THEN NULL ELSE 0 / + CAST ( NULL AS INTEGER ) - + 16 + + 41 * 31 / + + 59 * - 91 * + 86 * 54 END * + 26 / MIN ( 49 ) - + 24 AS col0, 23 * 45 AS col0 query I rowsort label-4193 @@ -23567,7 +23567,7 @@ SELECT DISTINCT - 2 / + + 55 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(68\) \* Int64\(99\) \* Int64\(\-20\)\) \+ \(\- Int64\(\-39\)\) / min\(Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(90\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(68\) \* Int64\(99\) \* Int64\(\-20\)\) \+ \(\- Int64\(\-39\)\) / min\(Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col0, 90 + COUNT ( * ) * + + NULLIF ( + COUNT ( * ), 68 * 99 * - 20 ) + - - 39 / + MIN ( ALL - 8 ) AS col0 query I rowsort @@ -25639,7 +25639,7 @@ SELECT ALL + 92 AS col2, 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(36\) \+ max\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(36\) \+ max\(\(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 60 * + CAST ( NULL AS INTEGER ) AS col1, + 36 + + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1 query II rowsort @@ -26108,7 +26108,7 @@ SELECT + 28 + - + 80 * - + 55 / - - MIN ( DISTINCT - 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-45\) \+ \(\- coalesce\(\(\- max\(\(\- Int64\(\-61\)\)\)\), CASE Int64\(63\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(56\) \+ Int64\(\-31\) END \* CAST\(Int64\(68\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-45\) \+ \(\- coalesce\(\(\- max\(\(\- Int64\(\-61\)\)\)\), CASE Int64\(63\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(56\) \+ Int64\(\-31\) END \* CAST\(Int64\(68\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 31 AS col2, + ( + - 45 ) + - + COALESCE ( - MAX ( - - 61 ), CASE + 63 WHEN + + COUNT ( * ) + + 58 THEN COUNT ( * ) ELSE + 56 + - 31 END * CAST ( + 68 AS INTEGER ) ) AS col2 query I rowsort label-4958 @@ -27746,7 +27746,7 @@ SELECT + 46 / + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- \(\- CAST\(Int64\(\-94\) AS Int32\)\)\) AS col0" at position 0 and "\(\- CASE Int64\(\-3\) WHEN Int64\(\-50\) THEN Int64\(93\) ELSE NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- \(\- CAST\(Int64\(\-94\) AS Int64\)\)\) AS col0" at position 0 and "\(\- CASE Int64\(\-3\) WHEN Int64\(\-50\) THEN Int64\(93\) ELSE NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 + - - CAST ( - 94 AS INTEGER ) AS col0, - CASE - 3 WHEN - 50 THEN + 93 ELSE NULL END + - COUNT ( * ) AS col0 query I rowsort label-5269 @@ -30257,7 +30257,7 @@ SELECT ALL - - SUM ( DISTINCT ( - ( 86 ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5591 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* min\(Int64\(\-67\)\) \- Int64\(37\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* min\(Int64\(\-67\)\) \- Int64\(37\) 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\. SELECT - 84 * + MIN ( + - 67 ) - + 37 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-5742 @@ -31344,7 +31344,7 @@ SELECT 64 * + - 0 AS col0 # Datafusion - Expected - 488646 # Datafusion - Expected - 79 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- Int64\(87\) \* Int64\(\-78\) \* Int64\(72\) \- Int64\(\-96\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(79\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- Int64\(87\) \* Int64\(\-78\) \* Int64\(72\) \- Int64\(\-96\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(79\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 42 - + 87 * - 78 * + 72 - - 96 / + COUNT ( * ) AS col0, CAST ( 79 AS INTEGER ) AS col0, + 61 query I rowsort label-5950 @@ -36167,7 +36167,7 @@ SELECT ALL + 93 AS col2, 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-89\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-89\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, CAST ( - - 89 AS INTEGER ) AS col0 query I rowsort label-6869 @@ -37033,7 +37033,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5009 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(63\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-3\) \+ Int64\(64\), Int64\(\-46\) \+ Int64\(\-18\) \- \(\- Int64\(\-3\)\) \* Int64\(\-26\) / \(\- Int64\(\-47\)\), count\(DISTINCT CAST\(Int64\(71\) AS Int32\)\)\) \* \(\- Int64\(\-78\)\) \+ Int64\(95\) AS col2" at position 0 and "Int64\(44\) \- Int64\(\-30\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(63\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-3\) \+ Int64\(64\), Int64\(\-46\) \+ Int64\(\-18\) \- \(\- Int64\(\-3\)\) \* Int64\(\-26\) / \(\- Int64\(\-47\)\), count\(DISTINCT CAST\(Int64\(71\) AS Int64\)\)\) \* \(\- Int64\(\-78\)\) \+ Int64\(95\) AS col2" at position 0 and "Int64\(44\) \- Int64\(\-30\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + + 63, + + COUNT ( * ) * - 3 + + 64, - 46 + - 18 - - ( + - 3 ) * - 26 / - ( - 47 ), + COUNT ( DISTINCT + CAST ( + 71 AS INTEGER ) ) ) * - - 78 + + 95 AS col2, 44 - - 30 + + - 30 AS col2 query I rowsort label-7033 @@ -40670,7 +40670,7 @@ SELECT + NULLIF ( + - 99, - 25 + + COUNT ( * ) ) * - + 60 * - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(16\) AS col2" at position 0 and "\(\- Int64\(\-93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(16\) AS col2" at position 0 and "\(\- Int64\(\-93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * 16 AS col2, - ( - 93 ) AS col2 query I rowsort label-7725 @@ -42097,7 +42097,7 @@ SELECT MAX ( DISTINCT + 74 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) \- Int64\(96\) AS col2" at position 0 and "Int64\(33\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-20\) THEN nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-18\) \* count\(Int64\(\-16\) \* Int64\(87\)\)\) WHEN CAST\(NULL AS Int32\) / Int64\(\-18\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) \- Int64\(96\) AS col2" at position 0 and "Int64\(33\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-20\) THEN nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-18\) \* count\(Int64\(\-16\) \* Int64\(87\)\)\) WHEN CAST\(NULL AS Int64\) / Int64\(\-18\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + - 52 - + 96 AS col2, + 33 + CASE COUNT ( * ) WHEN - 20 THEN NULLIF ( + COUNT ( * ), - 18 * COUNT ( - 16 * 87 ) ) WHEN CAST ( NULL AS INTEGER ) / - 18 THEN NULL END AS col2 query I rowsort @@ -43114,7 +43114,7 @@ SELECT - NULLIF ( + 60, + + ( MIN ( - - NULLIF ( + 35, 17 + + ( 65 ) / 13 ) ) ) # Datafusion - Expected - 12 # Datafusion - Expected - -240 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-21\)\) AS Int32\)\) \+ Int64\(3\) \* Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-21\)\) AS Int64\)\) \+ Int64\(3\) \* Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 AS col2, + ( - CAST ( - - 21 AS INTEGER ) ) + + 3 * - 73 AS col2, + 38 col1 query II rowsort label-8197 @@ -43153,7 +43153,7 @@ SELECT - 74 + - + ( - ( + + 97 ) ), + 3 / + - 14 + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(36\) \* \(\- Int64\(45\)\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(36\) \* \(\- Int64\(45\)\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - CAST ( NULL AS INTEGER ) ) col2, 36 * - + ( + 45 ) + 71 AS col2 # Datafusion - Datafusion expected results: @@ -45086,7 +45086,7 @@ SELECT ( - + 39 ) * + 84 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(48\) \+ Int64\(\-27\) AS col0" at position 0 and "Int64\(\-99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(48\) \+ Int64\(\-27\) AS col0" at position 0 and "Int64\(\-99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 47 + + - CAST ( NULL AS INTEGER ) + 48 + - 27 col0, - 99 + COUNT ( * ) AS col0 query I rowsort label-8571 @@ -46417,7 +46417,7 @@ SELECT - 81 + + + ( + ( + 50 ) ) + 3 * - 29 + + - MIN ( ALL + 16 ) + - 28 * CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 310464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "CAST\(Int64\(\-49\) AS Int32\) \* \(\- Int64\(\-64\)\) \* Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "CAST\(Int64\(\-49\) AS Int64\) \* \(\- Int64\(\-64\)\) \* Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 15 AS col2, CAST ( + - 49 AS INTEGER ) * - - 64 * - 99 AS col2 query I rowsort label-8824 @@ -48571,7 +48571,7 @@ SELECT ALL - 37 * + 42 + - + 35 + - 5 - + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 567 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(NULL AS Int32\) / Int64\(24\) \- Int64\(\-91\) \+ Int64\(\-49\) \* Int64\(\-55\) \+ Int64\(60\) \* Int64\(\-80\) AS col1" at position 0 and "Int64\(\-9\) \* Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(NULL AS Int64\) / Int64\(24\) \- Int64\(\-91\) \+ Int64\(\-49\) \* Int64\(\-55\) \+ Int64\(60\) \* Int64\(\-80\) AS col1" at position 0 and "Int64\(\-9\) \* Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 24 * + CAST ( NULL AS INTEGER ) / 24 - - 91 + - 49 * + + ( - 55 ) + 60 * - 80 AS col1, - 9 * - 63 AS col1 query I rowsort label-9234 diff --git a/data/sqlite/random/expr/slt_good_104.slt b/data/sqlite/random/expr/slt_good_104.slt index 9e2c394..dbb965b 100644 --- a/data/sqlite/random/expr/slt_good_104.slt +++ b/data/sqlite/random/expr/slt_good_104.slt @@ -172,7 +172,7 @@ SELECT ALL - ( - 74 ) + + + 15 + 76 AS col1, - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 AS col1, CAST ( NULL AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: @@ -246,7 +246,7 @@ SELECT ALL + 73 - - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19931184 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-52\)\)\) \* Int64\(81\) \* Int64\(52\) \* Int64\(91\) AS col0" at position 0 and "coalesce\(Int64\(18\), CAST\(NULL AS Int32\) \* Int64\(30\), Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-52\)\)\) \* Int64\(81\) \* Int64\(52\) \* Int64\(91\) AS col0" at position 0 and "coalesce\(Int64\(18\), CAST\(NULL AS Int64\) \* Int64\(30\), Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + - SUM ( + - 52 ) ) * 81 * 52 * + 91 col0, COALESCE ( 18, CAST ( NULL AS INTEGER ) * + + ( + 30 ), - 92 ) AS col0 query I rowsort label-39 @@ -753,7 +753,7 @@ SELECT - 98 + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(0\) \+ \(\- CASE Int64\(12\) WHEN \(\- nullif\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(13\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- Int64\(21\) WHEN Int64\(63\) THEN NULL WHEN Int64\(46\) \- Int64\(24\) \+ \(\- Int64\(39\)\) \* Int64\(88\) \* coalesce\(Int64\(87\), Int64\(9\)\) \* Int64\(11\) \+ Int64\(61\) / CAST\(NULL AS Int32\) THEN NULL ELSE NULL END, Int64\(\-63\)\)\) THEN Int64\(91\) \+ Int64\(23\) ELSE Int64\(60\) \* Int64\(\-61\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(0\) \+ \(\- CASE Int64\(12\) WHEN \(\- nullif\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(13\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \- Int64\(21\) WHEN Int64\(63\) THEN NULL WHEN Int64\(46\) \- Int64\(24\) \+ \(\- Int64\(39\)\) \* Int64\(88\) \* coalesce\(Int64\(87\), Int64\(9\)\) \* Int64\(11\) \+ Int64\(61\) / CAST\(NULL AS Int64\) THEN NULL ELSE NULL END, Int64\(\-63\)\)\) THEN Int64\(91\) \+ Int64\(23\) ELSE Int64\(60\) \* Int64\(\-61\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 50 AS col2, 0 + - CASE 12 WHEN - NULLIF ( CASE COUNT ( * ) WHEN 13 THEN COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) - 21 WHEN + + 63 THEN NULL WHEN 46 - + 24 + - + 39 * 88 * + COALESCE ( 87, + 9 ) * 11 + 61 / + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END, - 63 ) THEN 91 + + 23 ELSE 60 * - 61 END AS col2 query I rowsort label-134 @@ -1942,7 +1942,7 @@ SELECT DISTINCT - 60 - - 92 * 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "CASE Int64\(92\) WHEN Int64\(59\) THEN Int64\(79\) \* Int64\(\-18\) / Int64\(24\) \+ Int64\(\-76\) \- Int64\(10\) ELSE NULL END \* CAST\(Int64\(\-81\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "CASE Int64\(92\) WHEN Int64\(59\) THEN Int64\(79\) \* Int64\(\-18\) / Int64\(24\) \+ Int64\(\-76\) \- Int64\(10\) ELSE NULL END \* CAST\(Int64\(\-81\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 81 AS col2, CASE + ( + 92 ) WHEN + 59 THEN + 79 * - 18 / + 24 + - 76 - + 10 ELSE NULL END * CAST ( - 81 AS INTEGER ) AS col2 query II rowsort label-357 @@ -2096,7 +2096,7 @@ SELECT 1 / + + 7 AS col0, 24 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-61\)\) AS col0" at position 0 and "Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-61\)\) AS col0" at position 0 and "Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - 56 ) / NULLIF ( - CAST ( NULL AS INTEGER ), - 61 ) AS col0, 20 + - COUNT ( * ) AS col0, - + 94 * - NULLIF ( 39, + 26 ) / - 55 + CAST ( NULL AS INTEGER ) - + 48 query I rowsort label-386 @@ -3286,7 +3286,7 @@ SELECT 53 - - 64 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-18\) \- Int64\(61\) / \(\- CAST\(Int64\(93\) AS Int32\)\) \+ \(\- Int64\(\-28\)\) \+ Int64\(33\) / CASE Int64\(97\) WHEN \(\- Int64\(\-68\)\) \+ Int64\(\-9\) THEN Int64\(17\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-18\) \- Int64\(61\) / \(\- CAST\(Int64\(93\) AS Int64\)\) \+ \(\- Int64\(\-28\)\) \+ Int64\(33\) / CASE Int64\(97\) WHEN \(\- Int64\(\-68\)\) \+ Int64\(\-9\) THEN Int64\(17\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 4 col1, + COUNT ( * ) + - 18 - + 61 / - CAST ( + 93 AS INTEGER ) + - - 28 + 33 / + + ( + CASE 97 WHEN + ( - - 68 ) + - 9 THEN + 17 ELSE NULL END ) AS col1 query II rowsort @@ -3889,7 +3889,7 @@ SELECT ALL - 80 * 61 * + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-67\)\)\)\) AS col2" at position 0 and "Int64\(\-9\) \* CASE \(\- Int64\(\-4\)\) WHEN Int64\(\-50\) THEN \(\- Int64\(59\)\) \* \(\- Int64\(\-46\)\) \+ Int64\(99\) WHEN Int64\(\-70\) THEN Int64\(\-76\) \- \(\- min\(Int64\(\-91\)\)\) \+ Int64\(88\) \+ Int64\(34\) \* Int64\(33\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(33\)\) \+ coalesce\(\(\- \(\- CASE Int64\(\-5\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(98\) \* Int64\(24\) \+ Int64\(\-35\) THEN \(\- min\(Int64\(46\)\)\) WHEN Int64\(47\) \+ Int64\(4\) \* sum\(CASE Int64\(99\) WHEN Int64\(14\) THEN Int64\(33\) ELSE Int64\(5\) END\) THEN NULL END\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(20\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-70\) \+ Int64\(\-80\) \* \(\- CAST\(CASE Int64\(74\) WHEN \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* CAST\(count\(Int64\(67\)\) \* avg\(Int64\(17\)\) \+ Int64\(\-9\) AS Int32\) \+ Int64\(24\) \* Int64\(\-65\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(1\) END AS Int32\)\) ELSE NULL END\)\), Int64\(83\), Int64\(38\)\) WHEN Int64\(95\) \- coalesce\(Int64\(51\), Int64\(32\), Int64\(73\) \+ Int64\(50\)\) \* Int64\(27\) THEN NULL ELSE \(\- count\(Int64\(3\)\)\) END \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\) \- count\(\(\- CAST\(Int64\(\-16\) AS Int32\)\)\) \* Int64\(69\)\) \+ Int64\(19\)\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-67\)\)\)\) AS col2" at position 0 and "Int64\(\-9\) \* CASE \(\- Int64\(\-4\)\) WHEN Int64\(\-50\) THEN \(\- Int64\(59\)\) \* \(\- Int64\(\-46\)\) \+ Int64\(99\) WHEN Int64\(\-70\) THEN Int64\(\-76\) \- \(\- min\(Int64\(\-91\)\)\) \+ Int64\(88\) \+ Int64\(34\) \* Int64\(33\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(33\)\) \+ coalesce\(\(\- \(\- CASE Int64\(\-5\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(98\) \* Int64\(24\) \+ Int64\(\-35\) THEN \(\- min\(Int64\(46\)\)\) WHEN Int64\(47\) \+ Int64\(4\) \* sum\(CASE Int64\(99\) WHEN Int64\(14\) THEN Int64\(33\) ELSE Int64\(5\) END\) THEN NULL END\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ Int64\(20\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-70\) \+ Int64\(\-80\) \* \(\- CAST\(CASE Int64\(74\) WHEN \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \* CAST\(count\(Int64\(67\)\) \* avg\(Int64\(17\)\) \+ Int64\(\-9\) AS Int64\) \+ Int64\(24\) \* Int64\(\-65\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(1\) END AS Int64\)\) ELSE NULL END\)\), Int64\(83\), Int64\(38\)\) WHEN Int64\(95\) \- coalesce\(Int64\(51\), Int64\(32\), Int64\(73\) \+ Int64\(50\)\) \* Int64\(27\) THEN NULL ELSE \(\- count\(Int64\(3\)\)\) END \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\) \- count\(\(\- CAST\(Int64\(\-16\) AS Int64\)\)\) \* Int64\(69\)\) \+ Int64\(19\)\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - SUM ( ( - - 67 ) ) AS col2, - 9 * CASE - - 4 WHEN - 50 THEN - ( 59 ) * - - 46 + 99 WHEN - 70 THEN - 76 - - MIN ( ALL - 91 ) + + + 88 + ( + + 34 ) * + 33 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + 33 + + COALESCE ( - - CASE - 5 WHEN + COUNT ( * ) * - + CASE + + 62 WHEN 98 * + + ( 24 ) + - 35 THEN - MIN ( + + 46 ) WHEN + 47 + 4 * + SUM ( ALL CASE 99 WHEN 14 THEN ( 33 ) ELSE 5 END ) THEN NULL END * CAST ( - COUNT ( * ) AS INTEGER ) + + 20 THEN + COUNT ( * ) * - 70 + - 80 * - CAST ( + CASE 74 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( COUNT ( 67 ) * AVG ( ALL 17 ) + - 9 AS INTEGER ) + + 24 * ( - 65 ) THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) ELSE 1 END AS INTEGER ) ELSE NULL END, 83, 38 ) WHEN + 95 - + COALESCE ( + 51, 32, 73 + 50 ) * + 27 THEN NULL ELSE - COUNT ( 3 ) END + - ( + COALESCE ( COUNT ( * ), - 81 - COUNT ( ALL - CAST ( - 16 AS INTEGER ) ) * 69 ) + 19 ) * - 24 AS col2 query I rowsort @@ -5396,7 +5396,7 @@ SELECT DISTINCT + 96 AS col1, 72 + + 35 + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(32\) \+ Int64\(\-32\) AS col0" at position 0 and "Int64\(15\) / Int64\(14\) \* Int64\(57\) \+ Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(32\) \+ Int64\(\-32\) AS col0" at position 0 and "Int64\(15\) / Int64\(14\) \* Int64\(57\) \+ Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + + 32 + - 32 AS col0, + 15 / 14 * 57 + - 91 AS col0 query II rowsort label-1012 @@ -9507,7 +9507,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7690 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(94\) \+ Int64\(45\) \- nullif\(Int64\(60\), \(\- Int64\(81\)\)\) \* \(\- Int64\(55\)\) \- count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(35\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(17\) \+ Int64\(88\) \* Int64\(15\) AS col0" at position 0 and "CASE Int64\(69\) WHEN coalesce\(Int64\(81\), Int64\(\-95\) \* Int64\(\-36\) \- Int64\(\-58\) \* Int64\(45\)\) \* Int64\(53\) THEN NULL WHEN Int64\(97\) \* CAST\(NULL AS Int32\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(96\) WHEN Int64\(33\) THEN Int64\(72\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(94\) \+ Int64\(45\) \- nullif\(Int64\(60\), \(\- Int64\(81\)\)\) \* \(\- Int64\(55\)\) \- count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(35\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(17\) \+ Int64\(88\) \* Int64\(15\) AS col0" at position 0 and "CASE Int64\(69\) WHEN coalesce\(Int64\(81\), Int64\(\-95\) \* Int64\(\-36\) \- Int64\(\-58\) \* Int64\(45\)\) \* Int64\(53\) THEN NULL WHEN Int64\(97\) \* CAST\(NULL AS Int64\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(96\) WHEN Int64\(33\) THEN Int64\(72\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 * 94 + 45 - + + NULLIF ( 60, - + 81 ) * - ( + 55 ) - COUNT ( * ) / + - ( + 35 ) * + - COUNT ( * ) + + + 17 + 88 * 15 AS col0, + CASE 69 WHEN COALESCE ( + 81, + - 95 * + - 36 - - 58 * 45 ) * 53 THEN NULL WHEN + 97 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN + 96 WHEN 33 THEN ( 72 ) END AS col0 query I rowsort label-1797 @@ -9719,7 +9719,7 @@ SELECT DISTINCT - MIN ( ALL + - 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19125 # Datafusion - Expected - 155521 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(45\) \* Int64\(\-17\) AS col0" at position 0 and "Int64\(36\) \* Int64\(\-60\) \* \(\- Int64\(72\)\) \+ \(\- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(45\) \* Int64\(\-17\) AS col0" at position 0 and "Int64\(36\) \* Int64\(\-60\) \* \(\- Int64\(72\)\) \+ \(\- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 * + 45 * - 17 AS col0, 36 * - 60 * - ( 72 ) + - - CAST ( COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Types were automatically converted from: @@ -9749,7 +9749,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(28\) \- Int64\(53\) AS col1" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(32\) THEN \(\- avg\(Int64\(86\)\)\) WHEN Int64\(43\) \* Int64\(66\) \+ Int64\(6\) \+ CAST\(NULL AS Int32\) \- Int64\(29\) THEN sum\(Int64\(4\)\) \- Int64\(\-5\) WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(6\) \* Int64\(79\) \- \(\- sum\(Int64\(73\)\)\) THEN coalesce\(Int64\(62\), Int64\(\-18\) \* Int64\(75\)\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Int32\)\) ELSE NULL END \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(28\) \- Int64\(53\) AS col1" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(32\) THEN \(\- avg\(Int64\(86\)\)\) WHEN Int64\(43\) \* Int64\(66\) \+ Int64\(6\) \+ CAST\(NULL AS Int64\) \- Int64\(29\) THEN sum\(Int64\(4\)\) \- Int64\(\-5\) WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(6\) \* Int64\(79\) \- \(\- sum\(Int64\(73\)\)\) THEN coalesce\(Int64\(62\), Int64\(\-18\) \* Int64\(75\)\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Int64\)\) ELSE NULL END \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 28 - + 53 col1, CASE - + COUNT ( * ) WHEN 32 THEN - + AVG ( 86 ) WHEN 43 * 66 + + 6 + ( + CAST ( NULL AS INTEGER ) ) - 29 THEN + + SUM ( ALL + + 4 ) - + - 5 WHEN 88 + - - COUNT ( * ) + 6 * + ( + 79 ) - - + SUM ( 73 ) THEN COALESCE ( 62, - 18 * 75 ) * 13 + - CAST ( NULL AS INTEGER ) ELSE NULL END + - 77 AS col1 query I rowsort label-1843 @@ -10931,7 +10931,7 @@ SELECT ALL 69 AS col0, 27 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2472 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) / \(\- \(\- count\(DISTINCT Int64\(\-33\)\)\)\) / coalesce\(count\(Int64\(55\)\), Int64\(38\) \+ Int64\(42\) \- Int64\(53\) \* Int64\(65\), count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-82\)\) \* Int64\(31\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) / \(\- \(\- count\(DISTINCT Int64\(\-33\)\)\)\) / coalesce\(count\(Int64\(55\)\), Int64\(38\) \+ Int64\(42\) \- Int64\(53\) \* Int64\(65\), count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-82\)\) \* Int64\(31\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 70 / - - COUNT ( DISTINCT - 33 ) / + COALESCE ( + COUNT ( ALL 55 ), + 38 + + 42 - + + 53 * 65, + COUNT ( * ) ) - - - 82 * + 31 col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -12286,7 +12286,7 @@ SELECT 46 * - - 16 * 98 + - - 79 + SUM ( 46 ) - + - MAX ( ALL + - 66 ), - 17 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) AS col2" at position 0 and "CASE Int64\(\-67\) WHEN CAST\(\(\- Int64\(\-83\)\) AS Int32\) \* Int64\(72\) \+ Int64\(\-14\) THEN NULL ELSE Int64\(\-27\) \- Int64\(77\) \+ Int64\(61\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) AS col2" at position 0 and "CASE Int64\(\-67\) WHEN CAST\(\(\- Int64\(\-83\)\) AS Int64\) \* Int64\(72\) \+ Int64\(\-14\) THEN NULL ELSE Int64\(\-27\) \- Int64\(77\) \+ Int64\(61\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 16 AS col2, CASE + - 67 WHEN + CAST ( - - 83 AS INTEGER ) * + 72 + - 14 THEN NULL ELSE - 27 - 77 + 61 END AS col2 query II rowsort @@ -13545,7 +13545,7 @@ SELECT 63 - NULLIF ( - 76, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(59\) \* min\(Int64\(\-8\)\) \+ CAST\(NULL AS Float64\) \+ Int64\(69\) \* Int64\(84\) \+ Int64\(94\) \+ Int64\(\-80\) \* Int64\(62\) \+ Int64\(78\) \+ \(\- \(\- CAST\(Int64\(42\) AS Int32\)\)\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(59\) \* min\(Int64\(\-8\)\) \+ CAST\(NULL AS Float64\) \+ Int64\(69\) \* Int64\(84\) \+ Int64\(94\) \+ Int64\(\-80\) \* Int64\(62\) \+ Int64\(78\) \+ \(\- \(\- CAST\(Int64\(42\) AS Int64\)\)\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 63 AS col2, + 59 * MIN ( - 8 ) + + CAST ( NULL AS FLOAT8 ) + + ( 69 ) * 84 + + 94 + + - 80 * + 62 + + 78 + - - CAST ( + 42 AS INTEGER ) * + 25 AS col2 query I rowsort label-2567 @@ -16463,7 +16463,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "CAST\(nullif\(Int64\(53\), Int64\(30\) \+ CASE Int64\(16\) WHEN Int64\(26\) THEN Int64\(15\) \+ Int64\(84\) END\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "CAST\(nullif\(Int64\(53\), Int64\(30\) \+ CASE Int64\(16\) WHEN Int64\(26\) THEN Int64\(15\) \+ Int64\(84\) END\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 94 AS col0, + CAST ( NULLIF ( + 53, + 30 + + CASE + 16 WHEN 26 THEN 15 + + 84 END ) AS INTEGER ) AS col0 query I rowsort @@ -17066,7 +17066,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-91\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-91\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 23 ) AS col2, - CAST ( NULL AS INTEGER ) * - 91 * 77 AS col2 query I rowsort @@ -17077,7 +17077,7 @@ SELECT DISTINCT + 84 * + ( - 60 ) * 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / Int64\(27\) \+ Int64\(71\) \+ Int64\(\-20\) \+ coalesce\(Int64\(98\), Int64\(\-21\) \+ Int64\(13\)\) \* Int64\(35\) \+ CAST\(NULL AS Int32\) \* Int64\(\-37\) \+ Int64\(\-12\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / Int64\(27\) \+ Int64\(71\) \+ Int64\(\-20\) \+ coalesce\(Int64\(98\), Int64\(\-21\) \+ Int64\(13\)\) \* Int64\(35\) \+ CAST\(NULL AS Int64\) \* Int64\(\-37\) \+ Int64\(\-12\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 67 / + 27 + + 71 + - 20 + COALESCE ( 98, - 21 + 13 ) * 35 + CAST ( NULL AS INTEGER ) * + - 37 + - 12 AS col2, 35 AS col2 query I rowsort label-3241 @@ -22590,7 +22590,7 @@ SELECT - 82 * - COUNT ( 58 ), 87 AS col2 # Datafusion - Expected - 26 # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 1 and "\(\- nullif\(sum\(CAST\(NULL AS Int32\)\), Int64\(\-80\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 1 and "\(\- nullif\(sum\(CAST\(NULL AS Int64\)\), Int64\(\-80\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 26 col1, ( + 99 ) AS col0, - NULLIF ( SUM ( ALL CAST ( NULL AS INTEGER ) ), - 80 ) AS col0 query I rowsort label-4295 @@ -28328,7 +28328,7 @@ SELECT - + 32 * 62 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-90\) \+ Int64\(\-88\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-90\) \+ Int64\(\-88\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - 90 + - 88 * 93 AS col0 query II rowsort label-5389 @@ -30254,7 +30254,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-5\)\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Float64\) \* Int64\(27\) \* Int64\(\-70\) \- Int64\(\-42\) \* \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-5\)\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int64\) AS Float64\) \* Int64\(27\) \* Int64\(\-70\) \- Int64\(\-42\) \* \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85 * - - COUNT ( * ) + - ( - 5 ) AS col1, ( + CAST ( + + CAST ( NULL AS INTEGER ) AS FLOAT8 ) ) * + 27 * - 70 - - 42 * - + 93 col1 query I rowsort @@ -30451,7 +30451,7 @@ SELECT 31 + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(4\) \* Int64\(\-37\) \+ Int64\(35\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(4\) \* Int64\(\-37\) \+ Int64\(35\) / \(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 AS col1, 4 * - 37 + + 35 / + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1 query I rowsort label-5790 @@ -30920,7 +30920,7 @@ SELECT ALL + 16 AS col0, + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -247032 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* min\(Int64\(\-75\)\) \* Int64\(65\) \+ sum\(DISTINCT Int64\(\-59\)\) \* \(\- \(\- CAST\(Int64\(\-27\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* min\(Int64\(\-75\)\) \* Int64\(65\) \+ sum\(DISTINCT Int64\(\-59\)\) \* \(\- \(\- CAST\(Int64\(\-27\) AS Int64\)\)\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51 * + + MIN ( - 75 ) * + 65 + + SUM ( DISTINCT + - 59 ) * - - CAST ( - 27 AS INTEGER ) AS col0, 63 AS col0 query II rowsort label-5878 @@ -33347,7 +33347,7 @@ SELECT - MIN ( - + 44 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ coalesce\(Int64\(\-19\), Int64\(67\) \- Int64\(59\)\) \- Int64\(11\) \* \(\- Int64\(62\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-29\)\) \- Int64\(85\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ coalesce\(Int64\(\-19\), Int64\(67\) \- Int64\(59\)\) \- Int64\(11\) \* \(\- Int64\(62\)\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-29\)\) \- Int64\(85\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 + COALESCE ( - 19, 67 - 59 ) - 11 * - + ( + 62 ) + + CAST ( NULL AS INTEGER ) AS col2, - 25 * - - 29 - 85 * 14 AS col2 query I rowsort @@ -38502,7 +38502,7 @@ SELECT + ( - + 39 ) * + 8, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1838 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(30\), Int64\(60\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Float64\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(DISTINCT Int64\(\-52\)\)\) \* Int64\(55\)\) \* CASE Int64\(20\) WHEN Int64\(94\) \- \(\- CAST\(Int64\(12\) AS Int32\)\) THEN Int64\(\-95\) \+ \(\- Int64\(\-26\)\) \* Int64\(\-24\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(68\) WHEN Int64\(\-2\) \+ \(\- Int64\(83\)\) THEN coalesce\(Int64\(16\), Int64\(25\) \+ Int64\(14\) \+ Int64\(49\) \* Int64\(\-82\) \* Int64\(39\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END \- Int64\(\-67\) AS col1" at position 0 and "Int64\(\-87\) \+ Int64\(77\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(30\), Int64\(60\) / \(\- CAST\(CAST\(NULL AS Int64\) AS Float64\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(DISTINCT Int64\(\-52\)\)\) \* Int64\(55\)\) \* CASE Int64\(20\) WHEN Int64\(94\) \- \(\- CAST\(Int64\(12\) AS Int64\)\) THEN Int64\(\-95\) \+ \(\- Int64\(\-26\)\) \* Int64\(\-24\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(68\) WHEN Int64\(\-2\) \+ \(\- Int64\(83\)\) THEN coalesce\(Int64\(16\), Int64\(25\) \+ Int64\(14\) \+ Int64\(49\) \* Int64\(\-82\) \* Int64\(39\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END \- Int64\(\-67\) AS col1" at position 0 and "Int64\(\-87\) \+ Int64\(77\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( 30, + + 60 / - CAST ( + CAST ( NULL AS INTEGER ) AS FLOAT8 ) / - COUNT ( * ) + - MAX ( DISTINCT - 52 ) * 55 ) * + CASE + 20 WHEN + 94 - + - CAST ( + 12 AS INTEGER ) THEN + - 95 + - - 26 * + - 24 WHEN - COUNT ( * ) THEN + + 68 WHEN + - 2 + - ( + ( + + 83 ) ) THEN + COALESCE ( + 16, 25 + 14 + + 49 * + - 82 * + 39 ) / - - COUNT ( * ) END - - 67 AS col1, - 87 + + + 77 * + 25 AS col1 query I rowsort label-7319 @@ -38960,7 +38960,7 @@ SELECT + 48 - - + 0 + - SUM ( 54 ) * + SUM ( DISTINCT - 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(\-80\) \+ CASE \(\- Int64\(46\)\) WHEN CAST\(NULL AS Int32\) THEN Int64\(\-13\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(\-80\) \+ CASE \(\- Int64\(46\)\) WHEN CAST\(NULL AS Int64\) THEN Int64\(\-13\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 56 AS col2, - 80 + CASE - + 46 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN + - 13 END AS col2 query I rowsort @@ -39810,7 +39810,7 @@ SELECT DISTINCT + MAX ( - 29 ) / 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(56\) \* Int64\(\-43\) \+ nullif\(Int64\(\-15\), CAST\(NULL AS Int32\)\) \+ CAST\(NULL AS Int32\) \* \(\- sum\(\(\- Int64\(\-43\)\)\)\) \+ \(\- Int64\(\-96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(56\) \* Int64\(\-43\) \+ nullif\(Int64\(\-15\), CAST\(NULL AS Int64\)\) \+ CAST\(NULL AS Int64\) \* \(\- sum\(\(\- Int64\(\-43\)\)\)\) \+ \(\- Int64\(\-96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + 56 * - 43 + + NULLIF ( + - 15, + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * - SUM ( - - 43 ) + - - 96 AS col0 query I rowsort label-7566 @@ -41247,7 +41247,7 @@ SELECT DISTINCT 43 + + - CAST ( COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(8\) \* Int64\(\-17\) \* Int64\(12\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(8\) \* Int64\(\-17\) \* Int64\(12\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + + 19 AS col0, + 8 * - 17 * 12 + + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-7844 @@ -42277,7 +42277,7 @@ SELECT + ( + 93 ) * + 12 * COUNT ( * ) * + + ( - 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-97\)\) AS col2" at position 0 and "\(\- Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- Int64\(\-97\)\) AS col2" at position 0 and "\(\- Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + - - 97 AS col2, - ( + + 47 ) AS col2 query I rowsort label-8041 @@ -43172,7 +43172,7 @@ SELECT ALL - COUNT ( * ) * - ( + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "CASE WHEN NOT Int64\(\-43\) NOT IN \(\[Int64\(33\) \* Int64\(65\), Int64\(\-31\)\]\) THEN NULL WHEN Int64\(\-41\) IN \(\[Int64\(73\) \* CASE Int64\(33\) WHEN Int64\(\-25\) THEN \(\- CAST\(NULL AS Int32\)\) ELSE NULL END\]\) THEN Int64\(64\) WHEN NOT CAST\(CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(51\) THEN Int64\(\-68\) ELSE NULL END AS Int32\) = Int64\(50\) THEN NULL END \* Int64\(11\) \+ nullif\(Int64\(\-3\) \+ Int64\(51\), Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "CASE WHEN NOT Int64\(\-43\) NOT IN \(\[Int64\(33\) \* Int64\(65\), Int64\(\-31\)\]\) THEN NULL WHEN Int64\(\-41\) IN \(\[Int64\(73\) \* CASE Int64\(33\) WHEN Int64\(\-25\) THEN \(\- CAST\(NULL AS Int64\)\) ELSE NULL END\]\) THEN Int64\(64\) WHEN NOT CAST\(CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(51\) THEN Int64\(\-68\) ELSE NULL END AS Int64\) = Int64\(50\) THEN NULL END \* Int64\(11\) \+ nullif\(Int64\(\-3\) \+ Int64\(51\), Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 5 ) AS col1, + CASE WHEN NOT - 43 NOT IN ( + + 33 * 65, - 31 ) THEN NULL WHEN ( + ( - 41 ) ) IN ( 73 * CASE + + 33 WHEN - 25 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) THEN 64 WHEN NOT ( + CAST ( + CASE + 52 WHEN COUNT ( * ) THEN NULL WHEN 51 THEN - 68 ELSE NULL END AS INTEGER ) ) = 50 THEN NULL END * 11 + NULLIF ( ( - 3 ) + 51, 32 ) AS col1 query II rowsort label-8213 @@ -45096,7 +45096,7 @@ SELECT - + 54 * - 3 + + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-60\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- CASE \(\- count\(Int64\(43\)\)\) WHEN Int64\(25\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int64\)\)\) \* Int64\(\-60\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- CASE \(\- count\(Int64\(43\)\)\) WHEN Int64\(25\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + MAX ( + - CAST ( NULL AS INTEGER ) ) * - 60 AS col1, COALESCE ( ( - - COUNT ( * ) ), - CASE + - COUNT ( 43 ) WHEN 25 THEN - + COUNT ( * ) END ) AS col1 query I rowsort @@ -45656,7 +45656,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -426 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-6\) AS col2" at position 0 and "CAST\(Int64\(32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-6\) AS col2" at position 0 and "CAST\(Int64\(32\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 71 * - 6 AS col2, + CAST ( 32 AS INTEGER ) AS col2 query I rowsort @@ -46143,7 +46143,7 @@ SELECT DISTINCT 42 * - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-53\) AS Int32\)\) \- Int64\(85\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(98\) \- Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-53\) AS Int64\)\) \- Int64\(85\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(98\) \- Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + ( - 53 ) AS INTEGER ) - + + 85 * + CAST ( NULL AS INTEGER ) AS col1, + 98 - 21 AS col1 query I rowsort label-8779 @@ -46828,7 +46828,7 @@ SELECT ALL 70 * 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int32\) \- \(\- CAST\(Int64\(68\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int64\) \- \(\- CAST\(Int64\(68\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 71 * CAST ( NULL AS INTEGER ) - - CAST ( + + 68 AS INTEGER ) AS col2, - 13 AS col2 query I rowsort @@ -47763,7 +47763,7 @@ SELECT ALL 24 * - - COUNT ( - 99 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / CASE \(\- sum\(Int64\(26\)\)\) WHEN \(\- coalesce\(Int64\(73\), Int64\(\-98\) \+ Int64\(\-35\) \* \(\- nullif\(Int64\(\-73\), Int64\(41\)\)\), \(\- avg\(Int64\(\-60\)\)\)\)\) \* CAST\(\(\- Int64\(\-59\)\) AS Int32\) THEN \(\- \(\- min\(\(\- Int64\(\-23\)\)\)\)\) / Int64\(\-69\) \* Int64\(\-59\) \* Int64\(\-97\) \* \(\- Int64\(\-80\)\) WHEN Int64\(\-96\) THEN Int64\(\-85\) \* Int64\(70\) \* Int64\(3\) \- Int64\(\-76\) \+ \(\- Int64\(6\)\) \+ \(\- Int64\(32\)\) \+ Int64\(\-95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-27\)\) \* Int64\(95\) END AS col0" at position 0 and "Int64\(\-39\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / CASE \(\- sum\(Int64\(26\)\)\) WHEN \(\- coalesce\(Int64\(73\), Int64\(\-98\) \+ Int64\(\-35\) \* \(\- nullif\(Int64\(\-73\), Int64\(41\)\)\), \(\- avg\(Int64\(\-60\)\)\)\)\) \* CAST\(\(\- Int64\(\-59\)\) AS Int64\) THEN \(\- \(\- min\(\(\- Int64\(\-23\)\)\)\)\) / Int64\(\-69\) \* Int64\(\-59\) \* Int64\(\-97\) \* \(\- Int64\(\-80\)\) WHEN Int64\(\-96\) THEN Int64\(\-85\) \* Int64\(70\) \* Int64\(3\) \- Int64\(\-76\) \+ \(\- Int64\(6\)\) \+ \(\- Int64\(32\)\) \+ Int64\(\-95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-27\)\) \* Int64\(95\) END AS col0" at position 0 and "Int64\(\-39\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 / + CASE - SUM ( + 26 ) WHEN - COALESCE ( 73, - 98 + + - 35 * - + NULLIF ( ( - 73 ), 41 ), - AVG ( - 60 ) ) * CAST ( - - 59 AS INTEGER ) THEN - - MIN ( - - 23 ) / - 69 * - 59 * - 97 * - - 80 WHEN + - 96 THEN - 85 * + 70 * 3 - - 76 + - + 6 + - + 32 + + - 95 + + - COUNT ( * ) * - - 27 * + 95 END AS col0, - 39 + - 68 col0 query II rowsort @@ -47958,7 +47958,7 @@ SELECT ALL - 61 / 72 + - 83 + + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -741 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-39\) AS col0" at position 0 and "Int64\(53\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-39\) AS col0" at position 0 and "Int64\(53\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 * - 39 AS col0, 53 * CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-9124 @@ -48312,7 +48312,7 @@ SELECT ALL + 70 col0, 44 + - 10 + NULLIF ( - 55, + - 63 / + + 84 + + 66 + + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1940 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) / Int64\(30\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- min\(Int64\(\-97\)\)\) \* Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) / Int64\(30\) \- CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- min\(Int64\(\-97\)\)\) \* Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 73 / 30 - CAST ( NULL AS INTEGER ) col0, - MIN ( - 97 ) * 20 AS col0 query I rowsort @@ -51262,7 +51262,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(\-96\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(\-96\) \* CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 84 AS col2, - 96 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 query I rowsort label-9758 @@ -51408,7 +51408,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "\(\- CAST\(Int64\(80\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "\(\- CAST\(Int64\(80\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 15 AS col0, - CAST ( 80 AS INTEGER ) col0 query I rowsort label-9785 diff --git a/data/sqlite/random/expr/slt_good_105.slt b/data/sqlite/random/expr/slt_good_105.slt index b4c634c..d6c4364 100644 --- a/data/sqlite/random/expr/slt_good_105.slt +++ b/data/sqlite/random/expr/slt_good_105.slt @@ -823,7 +823,7 @@ SELECT + + 10 col1 # Datafusion - Expected - NULL # Datafusion - Expected - 29 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-90\), Int64\(82\)\)\) \+ Int64\(\-68\) AS col0" at position 0 and "\(\- Int64\(6\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \* \(\- coalesce\(Int64\(\-90\), Int64\(82\)\)\) \+ Int64\(\-68\) AS col0" at position 0 and "\(\- Int64\(6\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) / + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - + COALESCE ( - 90, 82 ) + - 68 AS col0, 29, - + 6 AS col0 query I rowsort label-148 @@ -859,7 +859,7 @@ SELECT ALL - 39 / - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(17\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(17\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 17 * 48 col0 query I rowsort label-155 @@ -2115,7 +2115,7 @@ SELECT + 85 + - - 66 + 44 AS col2, COALESCE ( + + 4, - + 53, - + 26 ) / + 42 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) / Int64\(4\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-59\) \* \(\- \(\- sum\(Int64\(87\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) / Int64\(4\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-59\) \* \(\- \(\- sum\(Int64\(87\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 31 / + + 4 + + CAST ( NULL AS INTEGER ) AS col1, - 59 * - - SUM ( ALL + 87 ) col1 query I rowsort @@ -2207,7 +2207,7 @@ SELECT ALL - CAST ( 74 AS INTEGER ), - ( - - 62 ) * COUNT ( * ) + + 69 * + 32 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* min\(Int64\(\-94\)\) \* Int64\(\-84\) \+ Int64\(\-95\) AS col0" at position 0 and "nullif\(Int64\(14\), Int64\(\-74\) \+ Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* min\(Int64\(\-94\)\) \* Int64\(\-84\) \+ Int64\(\-95\) AS col0" at position 0 and "nullif\(Int64\(14\), Int64\(\-74\) \+ Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * MIN ( ALL - 94 ) * ( + - 84 ) + + - 95 AS col0, NULLIF ( 14, - 74 + + 26 ) col0 query I rowsort @@ -6548,7 +6548,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-47\)\) \+ \(\- CAST\(Int64\(79\) AS Int32\)\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-47\)\) \+ \(\- CAST\(Int64\(79\) AS Int64\)\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 47 + - CAST ( 79 AS INTEGER ) + - CAST ( NULL AS FLOAT8 ) AS col2, + ( + + 5 ) AS col2 query I rowsort label-1240 @@ -7892,7 +7892,7 @@ SELECT + COUNT ( ALL + 93 ) * + 68 * - 99 AS col0, 67 * 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1740 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- Int64\(\-29\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(62\) / \(\- Int64\(18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- Int64\(\-29\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(62\) / \(\- Int64\(18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + 60 ) * - + ( + - 29 ) AS col1, CAST ( NULL AS INTEGER ) + 62 / - + 18 + - COUNT ( * ) AS col1 query I rowsort @@ -11935,7 +11935,7 @@ SELECT ALL - 27 * + - ( + 51 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(\-21\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(4\) / \(\- coalesce\(Int64\(36\), Int64\(4\), Int64\(\-52\)\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(\-21\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(4\) / \(\- coalesce\(Int64\(36\), Int64\(4\), Int64\(\-52\)\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 52 + - 21 + - CAST ( NULL AS INTEGER ) * + 4 / ( + - ( + + COALESCE ( 36, 4, + - 52 ) ) ) AS col2, - 5 col2 query I rowsort @@ -17376,7 +17376,7 @@ SELECT CASE + + 98 WHEN + ( + COUNT ( * ) ) / + 82 - COUNT ( * ) THEN NULL ELSE # Datafusion - Expected - 901 # Datafusion - Expected - 74 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- coalesce\(max\(Int64\(74\)\), Int64\(\-34\), Int64\(71\) \+ Int64\(\-95\) \+ Int64\(44\)\)\) AS Int32\)\) AS col1" at position 1 and "Int64\(7\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- coalesce\(max\(Int64\(74\)\), Int64\(\-34\), Int64\(71\) \+ Int64\(\-95\) \+ Int64\(44\)\)\) AS Int64\)\) AS col1" at position 1 and "Int64\(7\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 67 * - CAST ( - - 12 AS INTEGER ) - - + 97, - CAST ( - COALESCE ( MAX ( ALL + 74 ), - 34, + 71 + - 95 + 44 ) AS INTEGER ) AS col1, 7 AS col1 query I rowsort @@ -17790,7 +17790,7 @@ SELECT - SUM ( DISTINCT - 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* \(\- sum\(Int64\(55\)\)\) AS col2" at position 0 and "count\(\(\- Int64\(\-64\)\)\) \+ \(\- nullif\(Int64\(23\), Int64\(26\) \+ Int64\(\-65\) \+ \(\- Int64\(\-44\)\)\)\) \- Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \* \(\- sum\(Int64\(55\)\)\) AS col2" at position 0 and "count\(\(\- Int64\(\-64\)\)\) \+ \(\- nullif\(Int64\(23\), Int64\(26\) \+ Int64\(\-65\) \+ \(\- Int64\(\-44\)\)\)\) \- Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + SUM ( + 55 ) AS col2, COUNT ( - - 64 ) + - NULLIF ( + + 23, 26 + - 65 + - ( - 44 ) ) - + 31 AS col2 query I rowsort label-3367 @@ -20622,7 +20622,7 @@ SELECT - - COUNT ( * ) * 5 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-14\), coalesce\(\(\- \(\- Int64\(48\)\)\), nullif\(Int64\(88\), CAST\(Int64\(\-22\) AS Int32\) \+ Int64\(98\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-14\), coalesce\(\(\- \(\- Int64\(48\)\)\), nullif\(Int64\(88\), CAST\(Int64\(\-22\) AS Int64\) \+ Int64\(98\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 82 col0, + COUNT ( * ) + + NULLIF ( - 14, COALESCE ( - ( - + 48 ), + NULLIF ( 88, CAST ( - 22 AS INTEGER ) + 98 ) ) ) AS col0 query I rowsort label-3910 @@ -21277,7 +21277,7 @@ SELECT NULLIF ( - 3, COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(37\) AS Int32\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(37\) AS Int64\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) + - + ( + CAST ( + 37 AS INTEGER ) ) AS col1, + 69 AS col1 query II rowsort label-4036 @@ -21400,7 +21400,7 @@ SELECT ALL + 79 + - MAX ( - 77 ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(94\) \+ \(\- nullif\(Int64\(\-31\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(36\) \+ Int64\(\-48\) \- Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(94\) \+ \(\- nullif\(Int64\(\-31\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(36\) \+ Int64\(\-48\) \- Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 + - CAST ( NULL AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * 94 + + - NULLIF ( - 31, + COUNT ( * ) ) + + ( + 36 ) + - 48 - + 35 col1 query I rowsort @@ -24548,7 +24548,7 @@ SELECT - 9 + - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(49\), Int64\(64\) \* Int64\(\-44\) \* Int64\(95\) \* Int64\(\-4\) / Int64\(\-16\)\)\) \+ Int64\(\-94\) \+ sum\(\(\- Int64\(\-34\)\)\) \* Int64\(5\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(49\), Int64\(64\) \* Int64\(\-44\) \* Int64\(95\) \* Int64\(\-4\) / Int64\(\-16\)\)\) \+ Int64\(\-94\) \+ sum\(\(\- Int64\(\-34\)\)\) \* Int64\(5\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + 49, + + 64 * + - 44 * + 95 * - 4 / + - 16 ) + + - 94 + + + SUM ( - - 34 ) * 5 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-4659 @@ -27455,7 +27455,7 @@ SELECT DISTINCT 10 * - 82 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(21\) WHEN CAST\(Int64\(35\) AS Int32\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(21\) WHEN CAST\(Int64\(35\) AS Int64\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE 21 WHEN + CAST ( + 35 AS INTEGER ) THEN NULL ELSE + ( + - COUNT ( * ) ) END AS col1, - 20 AS col1 query I rowsort label-5209 @@ -29399,7 +29399,7 @@ SELECT DISTINCT COUNT ( - + 41 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(\-15\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(\-15\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 + - 15 AS col1, + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) * - COUNT ( * ) AS col1 query I rowsort label-5579 @@ -30182,7 +30182,7 @@ SELECT DISTINCT + 85 * - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 96 * - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * + - 14 AS col0 query I rowsort label-5727 @@ -33860,7 +33860,7 @@ SELECT + 82 * - 77 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(19\) AS Int32\)\) \+ \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(11\)\) / \(\- Int64\(\-91\)\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(19\) AS Int64\)\) \+ \(\- CAST\(NULL AS Int64\)\) \- \(\- Int64\(11\)\) / \(\- Int64\(\-91\)\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( 19 AS INTEGER ) + - CAST ( NULL AS INTEGER ) - - + 11 / - - 91 AS col2, + 72 AS col2 query I rowsort @@ -38782,7 +38782,7 @@ SELECT + 25 * + 81 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - -2304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* sum\(CAST\(NULL AS Int32\)\) \+ Int64\(22\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(2\) \* Int64\(32\) \* \(\- Int64\(36\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* sum\(CAST\(NULL AS Int64\)\) \+ Int64\(22\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(2\) \* Int64\(32\) \* \(\- Int64\(36\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) * + SUM ( CAST ( NULL AS INTEGER ) ) + 22 + + - 11 AS col0, CAST ( NULL AS INTEGER ), 2 * + + 32 * - + 36 AS col0 query I rowsort label-7367 @@ -44683,7 +44683,7 @@ SELECT DISTINCT + CAST ( 22 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(\-18\) WHEN Int64\(\-32\) THEN Int64\(58\) ELSE Int64\(3\) \+ Int64\(74\) END AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(\-18\) WHEN Int64\(\-32\) THEN Int64\(58\) ELSE Int64\(3\) \+ Int64\(74\) END AS Int64\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + CASE + - 18 WHEN - 32 THEN + 58 ELSE + 3 + 74 END AS INTEGER ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -44783,7 +44783,7 @@ SELECT - 24 / + + 75 * + 99 + + - 23 AS col2, 54 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(21\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(85\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(21\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(85\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + SUM ( + 21 ) AS col2, - CAST ( - + 85 AS INTEGER ) AS col2 query I rowsort label-8503 @@ -49857,7 +49857,7 @@ SELECT - ( + + 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-27\) \+ \(\- nullif\(Int64\(\-94\), Int64\(55\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(\-27\) \+ \(\- nullif\(Int64\(\-94\), Int64\(55\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 46 col1, + CAST ( NULL AS INTEGER ) / - 27 + - NULLIF ( + - 94, 55 ) AS col1 query I rowsort label-9474 @@ -50517,7 +50517,7 @@ SELECT DISTINCT + + 63 * - COUNT ( * ) - - + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4446 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-57\) AS col1" at position 0 and "sum\(DISTINCT CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-57\) AS col1" at position 0 and "sum\(DISTINCT CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 78 * - 57 AS col1, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + 64 AS col1 query II rowsort label-9600 @@ -52489,7 +52489,7 @@ SELECT DISTINCT 91 * + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1764 # Datafusion - Expected - -901 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(28\)\) \* Int64\(\-63\) AS col2" at position 0 and "Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(min\(Int64\(\-53\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(28\)\) \* Int64\(\-63\) AS col2" at position 0 and "Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(min\(Int64\(\-53\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( 28 ) * + - 63 col2, 17 * COUNT ( * ) * + CAST ( + MIN ( + - 53 ) AS INTEGER ) AS col2 query I rowsort label-9972 diff --git a/data/sqlite/random/expr/slt_good_106.slt b/data/sqlite/random/expr/slt_good_106.slt index c184f38..f4f694d 100644 --- a/data/sqlite/random/expr/slt_good_106.slt +++ b/data/sqlite/random/expr/slt_good_106.slt @@ -5621,7 +5621,7 @@ SELECT DISTINCT - 28 + + + COUNT ( * ), - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(9\) AS Int32\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(9\) AS Int64\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + + 9 AS INTEGER ) AS col1, 19 AS col1 query I rowsort @@ -7801,7 +7801,7 @@ SELECT ALL - ( - - 93 ) AS col0, - 19 + - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 1079 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(66\) AS Int32\)\) AS col0" at position 0 and "Int64\(13\) \* \(\- Int64\(\-83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(66\) AS Int64\)\) AS col0" at position 0 and "Int64\(13\) \* \(\- Int64\(\-83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( 66 AS INTEGER ) col0, 13 * - - 83 AS col0 query I rowsort label-1486 @@ -15003,7 +15003,7 @@ SELECT ALL 6 * + - ( 66 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(57\)\)\)\) \* \(\- Int64\(30\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(\(\- sum\(Int64\(5\)\)\) AS Int32\) \* Int64\(77\) \* Int64\(32\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-64\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(57\)\)\)\) \* \(\- Int64\(30\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(\(\- sum\(Int64\(5\)\)\) AS Int64\) \* Int64\(77\) \* Int64\(32\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-64\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - MAX ( 57 ) * - + 30 * + + COUNT ( * ) * + + CAST ( + - SUM ( ALL + + 5 ) AS INTEGER ) * + 77 * 32 + + + CAST ( NULL AS INTEGER ) AS col2, - 64 * - - 58 AS col2 query I rowsort @@ -15193,7 +15193,7 @@ SELECT + 79 - + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-80\)\) \* CASE Int64\(72\) WHEN Int64\(0\) THEN NULL WHEN Int64\(2\) THEN Int64\(\-14\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(45\) \* Int64\(20\) \- Int64\(96\) \* Int64\(\-92\) \* Int64\(10\) THEN \(\- Int64\(91\)\) ELSE NULL END AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-80\)\) \* CASE Int64\(72\) WHEN Int64\(0\) THEN NULL WHEN Int64\(2\) THEN Int64\(\-14\) WHEN CAST\(NULL AS Int64\) THEN NULL WHEN Int64\(45\) \* Int64\(20\) \- Int64\(96\) \* Int64\(\-92\) \* Int64\(10\) THEN \(\- Int64\(91\)\) ELSE NULL END AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( + - 80 ) * + CASE 72 WHEN 0 THEN NULL WHEN 2 THEN - 14 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 * 20 - 96 * + - 92 * 10 THEN - + 91 ELSE NULL END AS col0, 28 AS col0 query I rowsort label-2900 @@ -15204,7 +15204,7 @@ SELECT + + 68 * + 23 / - + COUNT ( * ) - + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "Int64\(\-14\) \* nullif\(Int64\(56\), \(\- Int64\(10\)\) \* nullif\(Int64\(\-39\), \(\- CASE Int64\(\-75\) WHEN Int64\(30\) \* Int64\(63\) \* \(\- Int64\(\-86\)\) \- Int64\(43\) \+ \(\- nullif\(Int64\(13\), \(\- Int64\(\-42\)\) \* Int64\(31\)\)\) THEN NULL WHEN Int64\(32\) \+ Int64\(65\) \* nullif\(Int64\(71\), Int64\(8\) \* Int64\(57\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) \* CAST\(Int64\(\-76\) AS Int32\) WHEN nullif\(Int64\(29\), Int64\(28\)\) \+ Int64\(9\) THEN nullif\(Int64\(13\), Int64\(\-94\) \+ Int64\(\-75\)\) ELSE NULL END\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(85\) \* Int64\(47\) END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "Int64\(\-14\) \* nullif\(Int64\(56\), \(\- Int64\(10\)\) \* nullif\(Int64\(\-39\), \(\- CASE Int64\(\-75\) WHEN Int64\(30\) \* Int64\(63\) \* \(\- Int64\(\-86\)\) \- Int64\(43\) \+ \(\- nullif\(Int64\(13\), \(\- Int64\(\-42\)\) \* Int64\(31\)\)\) THEN NULL WHEN Int64\(32\) \+ Int64\(65\) \* nullif\(Int64\(71\), Int64\(8\) \* Int64\(57\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) \* CAST\(Int64\(\-76\) AS Int64\) WHEN nullif\(Int64\(29\), Int64\(28\)\) \+ Int64\(9\) THEN nullif\(Int64\(13\), Int64\(\-94\) \+ Int64\(\-75\)\) ELSE NULL END\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(85\) \* Int64\(47\) END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 AS col2, + ( - 14 ) * + NULLIF ( + 56, - + 10 * NULLIF ( + - 39, - CASE - 75 WHEN 30 * 63 * - - 86 - 43 + - NULLIF ( 13, - ( + - 42 ) * 31 ) THEN NULL WHEN 32 + 65 * ( NULLIF ( 71, 8 * 57 + - CASE COUNT ( * ) + - 30 * + CAST ( - 76 AS INTEGER ) WHEN NULLIF ( + 29, 28 ) + 9 THEN + NULLIF ( 13, - 94 + - 75 ) ELSE NULL END ) * COUNT ( * ) ) THEN 85 * 47 END ) ) AS col2 # Datafusion - Types were automatically converted from: @@ -15301,7 +15301,7 @@ SELECT DISTINCT 16 + + 43 * + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- coalesce\(Int64\(\-99\), \(\- Int64\(5\)\), \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(68\)\)\) AS col2" at position 0 and "Int64\(98\) \* Int64\(\-95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-19\) \* CASE CAST\(Int64\(83\) AS Float64\) WHEN Int64\(88\) \* Int64\(88\) THEN Int64\(37\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- coalesce\(Int64\(\-99\), \(\- Int64\(5\)\), \(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(68\)\)\) AS col2" at position 0 and "Int64\(98\) \* Int64\(\-95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-19\) \* CASE CAST\(Int64\(83\) AS Float64\) WHEN Int64\(88\) \* Int64\(88\) THEN Int64\(37\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 39 ) - - + COALESCE ( - 99, - + 5, ( - + ( - + CAST ( NULL AS INTEGER ) ) ) * + 68 ) AS col2, 98 * - 95 + - COUNT ( * ) * - 19 * + CASE + CAST ( 83 AS FLOAT8 ) WHEN 88 * + 88 THEN 37 END col2 query I rowsort @@ -15487,7 +15487,7 @@ SELECT + 36 * COALESCE ( CASE - 58 WHEN - - COALESCE ( + 3, + 68 ) + 47 THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7824 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* CAST\(\(\- nullif\(\(\- Int64\(85\)\), Int64\(\-19\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS Int32\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(42\) \+ Int64\(8\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* CAST\(\(\- nullif\(\(\- Int64\(85\)\), Int64\(\-19\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS Int64\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(42\) \+ Int64\(8\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 92 * + + CAST ( - NULLIF ( - + 85, - 19 * - - COUNT ( * ) ) AS INTEGER ) + + 4 AS col0, 42 + 8 + 44 AS col0 query I rowsort label-2955 @@ -16782,7 +16782,7 @@ SELECT MAX ( - 99 ) * MIN ( - 91 ) + + + 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -44981 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- max\(DISTINCT Int64\(6\)\)\) AS col1" at position 0 and "CAST\(Int64\(\-51\) AS Int32\) \* Int64\(\-14\) \* Int64\(\-63\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- max\(DISTINCT Int64\(6\)\)\) AS col1" at position 0 and "CAST\(Int64\(\-51\) AS Int64\) \* Int64\(\-14\) \* Int64\(\-63\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 52 + - + MAX ( DISTINCT 6 ) AS col1, CAST ( - 51 AS INTEGER ) * - 14 * - 63 + COUNT ( * ) col1 query I rowsort @@ -17453,7 +17453,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* \(\- \(\- CAST\(\(\- \(\- avg\(Int64\(26\)\)\)\) AS Int32\)\)\) \- Int64\(56\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* \(\- \(\- CAST\(\(\- \(\- avg\(Int64\(26\)\)\)\) AS Int64\)\)\) \- Int64\(56\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 1 * - - CAST ( - - AVG ( + 26 ) AS INTEGER ) - + + 56 AS col0, 90 AS col0 query I rowsort label-3329 @@ -18342,7 +18342,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- Int64\(11\) / \(\- CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(24\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(28\)\) THEN Int64\(73\) WHEN \(\- Int64\(\-50\)\) \* CAST\(Int64\(\-93\) AS Int32\) \- Int64\(\-5\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-90\) THEN NULL END END\) \- max\(Int64\(2\)\) \* Int64\(97\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- Int64\(11\) / \(\- CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(24\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(28\)\) THEN Int64\(73\) WHEN \(\- Int64\(\-50\)\) \* CAST\(Int64\(\-93\) AS Int64\) \- Int64\(\-5\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-90\) THEN NULL END END\) \- max\(Int64\(2\)\) \* Int64\(97\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 10 - + 11 / - CASE 38 WHEN + - COUNT ( * ) * COUNT ( * ) THEN + 24 * + CASE + COUNT ( * ) WHEN - ( 28 ) THEN 73 WHEN - - 50 * + CAST ( - 93 AS INTEGER ) - - 5 + 1 * COUNT ( * ) * - 90 THEN NULL END END - + + MAX ( 2 ) * 97 AS col2, + 45 col2 query I rowsort @@ -18750,7 +18750,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col2" at position 0 and "CASE \(\- CAST\(NULL AS Int32\)\) WHEN \(\- coalesce\(Int64\(26\), \(\- Int64\(\-65\)\)\)\) \+ Int64\(\-20\) \* Int64\(27\) THEN NULL WHEN Int64\(17\) THEN Int64\(\-84\) \+ Int64\(20\) ELSE \(\- max\(DISTINCT Int64\(\-48\)\)\) END \+ Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col2" at position 0 and "CASE \(\- CAST\(NULL AS Int64\)\) WHEN \(\- coalesce\(Int64\(26\), \(\- Int64\(\-65\)\)\)\) \+ Int64\(\-20\) \* Int64\(27\) THEN NULL WHEN Int64\(17\) THEN Int64\(\-84\) \+ Int64\(20\) ELSE \(\- max\(DISTINCT Int64\(\-48\)\)\) END \+ Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( + - 37 ) AS col2, CASE ( ( + - CAST ( NULL AS INTEGER ) ) ) WHEN - + ( + COALESCE ( + 26, - - 65 ) ) + - 20 * 27 THEN NULL WHEN + 17 THEN - 84 + + 20 ELSE - MAX ( DISTINCT - 48 ) END + - 41 AS col2 query I rowsort @@ -19540,7 +19540,7 @@ SELECT 26 - - - 93 + 72 + + ( + ( + 54 ) ) * + 87 + + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8612 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(88\) \* \(\- CAST\(Int64\(\-98\) AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(11\) \+ Int64\(89\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(88\) \* \(\- CAST\(Int64\(\-98\) AS Int64\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(11\) \+ Int64\(89\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 12 + + 88 * - + CAST ( - 98 AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) * 11 + 89 * CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-3723 @@ -23662,7 +23662,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(45\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-92\) / Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(45\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / Int64\(\-92\) / Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 * + 45 AS col0, - CAST ( NULL AS INTEGER ) / - 92 / + 39 AS col0 query II rowsort label-4504 @@ -24374,7 +24374,7 @@ SELECT ALL - COALESCE ( + 4, + + 86 - + 18 + 84, + COALESCE ( 7, 27 + - - 62 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CASE \(\- Int64\(76\)\) WHEN Int64\(76\) THEN Int64\(\-79\) \* nullif\(Int64\(67\), CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ Int64\(44\) \+ \(\- Int64\(\-82\)\) \* Int64\(\-1\) \* coalesce\(Int64\(\-42\), Int64\(30\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-85\) \* Int64\(\-99\)\)\) \- Int64\(15\) END \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CASE \(\- Int64\(76\)\) WHEN Int64\(76\) THEN Int64\(\-79\) \* nullif\(Int64\(67\), CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\) \+ Int64\(44\) \+ \(\- Int64\(\-82\)\) \* Int64\(\-1\) \* coalesce\(Int64\(\-42\), Int64\(30\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-85\) \* Int64\(\-99\)\)\) \- Int64\(15\) END \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 47 AS col2, + 66 * COUNT ( * ) + + CASE - + 76 WHEN + 76 THEN - 79 * NULLIF ( + 67, + CAST ( - - COUNT ( * ) AS INTEGER ) + 44 + ( - ( - 82 ) ) * - 1 * + COALESCE ( - 42, + 30 * - COUNT ( * ) * + - 85 * - 99 ) ) - + 15 END * - 27 col2 query I rowsort label-4639 @@ -26105,7 +26105,7 @@ SELECT 58 + - 17 / + 24 * 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "max\(Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "max\(Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 + CAST ( NULL AS INTEGER ) col2, MAX ( ALL 47 ) AS col2 query I rowsort @@ -26837,7 +26837,7 @@ SELECT DISTINCT - + 60 + - + 17 AS col0, + ( - 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "sum\(Int64\(53\)\) \+ CAST\(NULL AS Int32\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "sum\(Int64\(53\)\) \+ CAST\(NULL AS Int64\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 61 AS col2, + SUM ( + 53 ) + + + CAST ( NULL AS INTEGER ) * + 6 AS col2 query I rowsort label-5111 @@ -27239,7 +27239,7 @@ SELECT 20 / + ( + 49 ) * 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1475 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-25\) AS Int32\) \* Int64\(59\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-25\) AS Int64\) \* Int64\(59\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - 25 AS INTEGER ) * 59 AS col0, + 79 AS col0 query I rowsort @@ -27520,7 +27520,7 @@ SELECT ALL + SUM ( ALL + 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "count\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 80 col0, + ( + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0 query I rowsort @@ -28064,7 +28064,7 @@ SELECT ALL - 6 * 83 - - + 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-97\)\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-81\)\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-97\)\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-81\)\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 col0, + COALESCE ( - - 97, COUNT ( * ) + - - 81 * - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 query II rowsort label-5343 @@ -31059,7 +31059,7 @@ SELECT 3 + - 95 AS col0 # Datafusion - Expected - 93 # Datafusion - Expected - -57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 93 AS col0, + ( - + 57 ), - + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -33699,7 +33699,7 @@ SELECT ALL + 47 * - + 46 * 34 - - 53 - + - COUNT ( * ) + - NULLIF ( 9, - - 45 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(61\) / CASE Int64\(\-6\) WHEN CAST\(Int64\(\-80\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(70\) THEN Int64\(\-83\) \+ \(\- Int64\(45\)\) ELSE NULL END \* \(\- Int64\(4\)\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(61\) / CASE Int64\(\-6\) WHEN CAST\(Int64\(\-80\) AS Int64\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(70\) THEN Int64\(\-83\) \+ \(\- Int64\(45\)\) ELSE NULL END \* \(\- Int64\(4\)\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 99 AS col2, + 61 / CASE + - 6 WHEN CAST ( + - 80 AS INTEGER ) + - - COUNT ( * ) + + 70 THEN - 83 + - + 45 ELSE NULL END * - + 4 + + 1 * + COUNT ( * ) / 73 AS col2 query I rowsort label-6418 @@ -33952,7 +33952,7 @@ SELECT + 82 + + + COALESCE ( + 48, - - COALESCE ( - 51, COUNT ( * ), - + 2 ) ) A # Datafusion - Expected - NULL # Datafusion - Expected - 31 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(3\) WHEN CAST\(NULL AS Int32\) \+ Int64\(66\) THEN Int64\(15\) \+ Int64\(\-51\) WHEN \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(\-65\)\) THEN NULL WHEN \(\- min\(Int64\(60\)\)\) \* Int64\(\-36\) \- Int64\(49\) THEN Int64\(49\) \* Int64\(\-15\) \+ Int64\(\-16\) END / Int64\(25\) \* Int64\(\-79\) \* Int64\(\-27\) \- Int64\(\-41\) \+ Int64\(\-43\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-74\) / Int64\(18\) AS col2" at position 0 and "\(\- Int64\(\-31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(3\) WHEN CAST\(NULL AS Int64\) \+ Int64\(66\) THEN Int64\(15\) \+ Int64\(\-51\) WHEN \(\- CAST\(NULL AS Int64\)\) \- \(\- Int64\(\-65\)\) THEN NULL WHEN \(\- min\(Int64\(60\)\)\) \* Int64\(\-36\) \- Int64\(49\) THEN Int64\(49\) \* Int64\(\-15\) \+ Int64\(\-16\) END / Int64\(25\) \* Int64\(\-79\) \* Int64\(\-27\) \- Int64\(\-41\) \+ Int64\(\-43\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-74\) / Int64\(18\) AS col2" at position 0 and "\(\- Int64\(\-31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + 3 WHEN CAST ( NULL AS INTEGER ) + + + 66 THEN 15 + - 51 WHEN - CAST ( NULL AS INTEGER ) - - - 65 THEN NULL WHEN - MIN ( 60 ) * + - 36 - 49 THEN + 49 * - 15 + - 16 END / + 25 * + ( - 79 ) * - 27 - - 41 + - 43 * + - COUNT ( * ) / - 74 / 18 AS col2, - ( - 31 ) AS col2, + - 54 col1 query I rowsort label-6466 @@ -35476,7 +35476,7 @@ SELECT - 61 + 63 * 40 AS col1 # Datafusion - Expected - -27 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-28\) AS col2" at position 0 and "CASE Int64\(13\) WHEN CASE nullif\(Int64\(34\), CAST\(NULL AS Int32\)\) WHEN Int64\(\-27\) \* \(\- Int64\(\-29\)\) THEN NULL ELSE count\(Int64\(8\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-47\) \+ \(\- Int64\(\-76\)\) END THEN Int64\(6\) \+ Int64\(\-97\) \+ Int64\(93\) \+ Int64\(79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(26\) \* Int64\(5\) \* Int64\(99\) WHEN Int64\(34\) \+ Int64\(\-79\) \* Int64\(49\) / Int64\(41\) \+ max\(Int64\(99\)\) THEN Int64\(\-76\) WHEN Int64\(46\) \* Int64\(\-40\) THEN Int64\(52\) / Int64\(\-39\) \* Int64\(\-34\) \* Int64\(76\) ELSE NULL END \+ Int64\(\-78\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-28\) AS col2" at position 0 and "CASE Int64\(13\) WHEN CASE nullif\(Int64\(34\), CAST\(NULL AS Int64\)\) WHEN Int64\(\-27\) \* \(\- Int64\(\-29\)\) THEN NULL ELSE count\(Int64\(8\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-47\) \+ \(\- Int64\(\-76\)\) END THEN Int64\(6\) \+ Int64\(\-97\) \+ Int64\(93\) \+ Int64\(79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(26\) \* Int64\(5\) \* Int64\(99\) WHEN Int64\(34\) \+ Int64\(\-79\) \* Int64\(49\) / Int64\(41\) \+ max\(Int64\(99\)\) THEN Int64\(\-76\) WHEN Int64\(46\) \* Int64\(\-40\) THEN Int64\(52\) / Int64\(\-39\) \* Int64\(\-34\) \* Int64\(76\) ELSE NULL END \+ Int64\(\-78\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 28 AS col2, COUNT ( * ) AS col0, CASE + 13 WHEN CASE + NULLIF ( + + 34, CAST ( NULL AS INTEGER ) ) WHEN - 27 * - - 29 THEN NULL ELSE COUNT ( + 8 ) * ( - COUNT ( * ) ) * - 47 + - - 76 END THEN 6 + + - 97 + + + 93 + + 79 + - COUNT ( * ) - 26 * 5 * + 99 WHEN + 34 + - 79 * 49 / + 41 + MAX ( ALL + + 99 ) THEN + - 76 WHEN + + 46 * - 40 THEN + 52 / + - 39 * + - 34 * 76 ELSE NULL END + - 78 col2 query I rowsort label-6752 @@ -36153,7 +36153,7 @@ SELECT DISTINCT - - ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* Int64\(\-38\) \* Int64\(58\) \* Int64\(0\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* Int64\(\-38\) \* Int64\(58\) \* Int64\(0\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 5 * - 38 * 58 * 0 AS col1, - ( - CAST ( NULL AS INTEGER ) ) AS col1 query II rowsort @@ -41354,7 +41354,7 @@ SELECT DISTINCT CAST ( - + 72 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(8\) \* Int64\(\-82\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(8\) \* Int64\(\-82\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 91 AS col0, + CAST ( NULL AS INTEGER ) + 8 * - 82 * ( + 82 ) AS col0 query I rowsort label-7872 @@ -41713,7 +41713,7 @@ SELECT - COUNT ( * ) * + 59 * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-38\) AS Int32\) \+ \(\- Int64\(\-75\)\) \* Int64\(2\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-38\) AS Int64\) \+ \(\- Int64\(\-75\)\) \* Int64\(2\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 38 AS INTEGER ) + - - 75 * + 2 col2, + 54 AS col2 query I rowsort label-7941 @@ -46856,7 +46856,7 @@ SELECT - 53 * - + 37 + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 5980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) AS col2" at position 0 and "CAST\(Int64\(92\) AS Int32\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) AS col2" at position 0 and "CAST\(Int64\(92\) AS Int64\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + + 91 AS col2, + CAST ( 92 AS INTEGER ) * 65 AS col2 query I rowsort @@ -48946,7 +48946,7 @@ SELECT COALESCE ( - 33, + COUNT ( * ) ) AS col0 # Datafusion - Expected - 56 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \+ Int64\(\-76\) \* \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \+ Int64\(\-76\) \* \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CAST\(NULL AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + 48 + - 60 + 68, COUNT ( * ) * + + 48 + ( + - 76 ) * - - CAST ( NULL AS FLOAT8 ) AS col1, + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9324 @@ -51555,7 +51555,7 @@ SELECT ALL + 13 * COUNT ( * ) - - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3510 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-45\) AS col0" at position 0 and "Int64\(19\) \* Int64\(46\) \* \(\- Int64\(\-41\)\) / Int64\(\-83\) \* \(\- \(\- min\(CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(58\) THEN Int64\(\-57\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-45\) AS col0" at position 0 and "Int64\(19\) \* Int64\(46\) \* \(\- Int64\(\-41\)\) / Int64\(\-83\) \* \(\- \(\- min\(CASE \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(58\) THEN Int64\(\-57\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 * - 45 AS col0, 19 * + 46 * - - 41 / - 83 * - - MIN ( ALL CASE - CAST ( NULL AS INTEGER ) WHEN + + 58 THEN - 57 END ) AS col0 query I rowsort label-9818 diff --git a/data/sqlite/random/expr/slt_good_107.slt b/data/sqlite/random/expr/slt_good_107.slt index 8c9a012..bc4f341 100644 --- a/data/sqlite/random/expr/slt_good_107.slt +++ b/data/sqlite/random/expr/slt_good_107.slt @@ -950,7 +950,7 @@ SELECT ALL - 45 * + ( + + 56 ) * - 92 * 45 + + + 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-79\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(47\) \* Int64\(\-90\) ELSE NULL END AS col2" at position 0 and "Int64\(72\) \* CAST\(Int64\(87\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ coalesce\(Int64\(\-35\), Int64\(56\) \* Int64\(\-6\) \- Int64\(55\) \+ Int64\(62\) \+ Int64\(46\) \* Int64\(83\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-79\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(47\) \* Int64\(\-90\) ELSE NULL END AS col2" at position 0 and "Int64\(72\) \* CAST\(Int64\(87\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ coalesce\(Int64\(\-35\), Int64\(56\) \* Int64\(\-6\) \- Int64\(55\) \+ Int64\(62\) \+ Int64\(46\) \* Int64\(83\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE - 79 WHEN - COUNT ( * ) THEN 47 * - 90 ELSE NULL END AS col2, 72 * + CAST ( + 87 AS INTEGER ) * - COUNT ( * ) * - COUNT ( * ) * 15 + COALESCE ( + - 35, 56 * - 6 - + 55 + + 62 + + + 46 * 83 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) + + ( 99 ) AS col2 query I rowsort @@ -5318,7 +5318,7 @@ SELECT ALL + 84 AS col0, - 79 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) \* min\(Int64\(\-90\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Int64\) \* min\(Int64\(\-90\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * MIN ( + - 90 ) AS col2, COUNT ( * ) * ( + 86 ) AS col2 query I rowsort label-1009 @@ -5980,7 +5980,7 @@ SELECT + 96 / 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( + 93, CAST ( NULL AS INTEGER ) ) col2, + 29 AS col2 query I rowsort @@ -7465,7 +7465,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2335 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(70\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(70\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) AS col1, + 25 + + 70 * - + ( + - 33 ) AS col1 query I rowsort @@ -8435,7 +8435,7 @@ SELECT ALL 22 + - CAST ( + + COALESCE ( - 69, + AVG ( DISTINCT + 99 ) / 80, 30 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(\-1\), Int64\(32\), Int64\(\-20\)\)\) \* coalesce\(\(\- min\(Int64\(36\)\)\), Int64\(31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- coalesce\(CAST\(NULL AS Int64\), Int64\(\-1\), Int64\(32\), Int64\(\-20\)\)\) \* coalesce\(\(\- min\(Int64\(36\)\)\), Int64\(31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 AS col0, + CAST ( NULL AS INTEGER ) * - COALESCE ( CAST ( NULL AS INTEGER ), - 1, + 32, - 20 ) * + COALESCE ( + - MIN ( + 36 ), + 31 ) col0 query I rowsort label-1606 @@ -14910,7 +14910,7 @@ SELECT + 77 * - ( + 4 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1386 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(22\), \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-24\)\) \+ \(\- Int64\(\-84\)\)\) \* Int64\(63\) AS col0" at position 0 and "\(\- CAST\(Int64\(80\) AS Int32\)\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(22\), \(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(\-24\)\) \+ \(\- Int64\(\-84\)\)\) \* Int64\(63\) AS col0" at position 0 and "\(\- CAST\(Int64\(80\) AS Int64\)\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + 22, - CAST ( NULL AS INTEGER ) + - - 24 + - - 84 ) * 63 AS col0, - CAST ( + + 80 AS INTEGER ) + 14 AS col0 query I rowsort label-2834 @@ -15913,7 +15913,7 @@ SELECT 49 * + 59 + 34 * - 76 * 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-18\) AS Int32\) AS col2" at position 0 and "nullif\(Int64\(37\), Int64\(\-56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-18\) AS Int64\) AS col2" at position 0 and "nullif\(Int64\(37\), Int64\(\-56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 18 AS INTEGER ) AS col2, NULLIF ( + 37, - 56 ) AS col2 # Datafusion - Datafusion expected results: @@ -16043,7 +16043,7 @@ SELECT + NULLIF ( - 87, + CAST ( ( COUNT ( * ) ) AS INTEGER ) * - MAX ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -6944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(74\) \* CAST\(Int64\(\-94\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(74\) \* CAST\(Int64\(\-94\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 82 AS col0, 12 + + + 74 * CAST ( - 94 AS INTEGER ) col0 query II rowsort label-3053 @@ -16259,7 +16259,7 @@ SELECT - 83, + 61 * 88 * - MIN ( ALL 71 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -880 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(88\) AS col0" at position 0 and "Int64\(11\) \+ CAST\(NULL AS Int32\) \+ Int64\(43\) \- Int64\(86\) \* Int64\(93\) \* Int64\(\-46\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(88\) AS col0" at position 0 and "Int64\(11\) \+ CAST\(NULL AS Int64\) \+ Int64\(43\) \- Int64\(86\) \* Int64\(93\) \* Int64\(\-46\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 10 * 88 AS col0, 11 + + CAST ( NULL AS INTEGER ) + + 43 - + 86 * + 93 * - 46 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -16644,7 +16644,7 @@ SELECT 91 + + 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -122 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \- CAST\(Int64\(79\) AS Int32\) \+ \(\- \(\- Int64\(\-69\)\)\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(29\)\)\) \+ Int64\(56\) \* sum\(Int64\(\-10\)\) \* Int64\(35\) \+ \(\- CASE Int64\(94\) WHEN \(\- Int64\(26\)\) \- Int64\(41\) THEN Int64\(\-1\) WHEN Int64\(\-12\) THEN Int64\(\-61\) \+ \(\- coalesce\(\(\- Int64\(\-36\)\), Int64\(84\), Int64\(39\) \* Int64\(12\)\)\) END\) \* Int64\(0\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \- CAST\(Int64\(79\) AS Int64\) \+ \(\- \(\- Int64\(\-69\)\)\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(29\)\)\) \+ Int64\(56\) \* sum\(Int64\(\-10\)\) \* Int64\(35\) \+ \(\- CASE Int64\(94\) WHEN \(\- Int64\(26\)\) \- Int64\(41\) THEN Int64\(\-1\) WHEN Int64\(\-12\) THEN Int64\(\-61\) \+ \(\- coalesce\(\(\- Int64\(\-36\)\), Int64\(84\), Int64\(39\) \* Int64\(12\)\)\) END\) \* Int64\(0\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 - + CAST ( + 79 AS INTEGER ) + - - ( - 69 ) AS col1, - SUM ( DISTINCT 29 ) + 56 * + SUM ( ALL + + ( - 10 ) ) * + 35 + - CASE + 94 WHEN - + 26 - + 41 THEN - 1 WHEN + - 12 THEN - 61 + + - COALESCE ( - - 36, 84, 39 * 12 ) END * + 0 + 93 col1 query II rowsort @@ -22179,7 +22179,7 @@ SELECT 71 * - ( + 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(30\) \+ \(\- Int64\(\-31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(30\) \+ \(\- Int64\(\-31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / + 30 + - - 31 AS col1 query I rowsort @@ -23920,7 +23920,7 @@ SELECT ALL 5 * + + 32 + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, 40 AS col0 query II rowsort label-4542 @@ -30351,7 +30351,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-99\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-99\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 53 * - CAST ( NULL AS INTEGER ) + + - 99 AS col1, 14 col1 query I rowsort @@ -31198,7 +31198,7 @@ SELECT ALL - COUNT ( * ), - 13 + + - 10 + 28 * + 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(33\) \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(33\) \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, 33 + 66 AS col1 query I rowsort label-5928 @@ -31619,7 +31619,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 92 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(82\) \+ \(\- CAST\(Int64\(\-10\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(82\) \+ \(\- CAST\(Int64\(\-10\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, 82 + + - CAST ( - 10 AS INTEGER ) col0, - 38 query I rowsort @@ -32058,7 +32058,7 @@ SELECT ALL 69 * - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 437429 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(83\) \+ Int64\(\-89\) \* Int64\(63\) \* CAST\(\(\- Int64\(78\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(83\) \+ Int64\(\-89\) \* Int64\(63\) \* CAST\(\(\- Int64\(78\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 61 AS col0, 83 + - 89 * 63 * + CAST ( - + 78 AS INTEGER ) AS col0 query I rowsort @@ -33909,7 +33909,7 @@ SELECT COUNT ( 26 ) * + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 291 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(3\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(54\) \* Int64\(40\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(3\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(54\) \* Int64\(40\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97 * + + 3 AS col1, 72 + + 54 * + 40 + - + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -35402,7 +35402,7 @@ SELECT ALL + 86 * + NULLIF ( 96, + - 32 + + - 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ \(\- nullif\(\(\- CAST\(Int64\(\-35\) AS Int32\)\), Int64\(\-84\)\)\) \+ Int64\(40\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ \(\- nullif\(\(\- CAST\(Int64\(\-35\) AS Int64\)\), Int64\(\-84\)\)\) \+ Int64\(40\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 75 + - NULLIF ( - + CAST ( - 35 AS INTEGER ), + - 84 ) + + 40 AS col0, + 98 AS col0 query I rowsort @@ -39088,7 +39088,7 @@ SELECT - 79 * - 43 AS col2 # Datafusion - Expected - 23 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- Int64\(\-62\)\) \+ Int64\(\-53\) \+ Int64\(60\) \- Int64\(18\) \* Int64\(42\) / Int64\(\-53\) / CASE Int64\(36\) WHEN Int64\(34\) THEN Int64\(\-7\) WHEN Int64\(\-63\) \+ coalesce\(Int64\(35\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), sum\(CAST\(NULL AS Int32\)\) \- Int64\(75\)\) THEN NULL END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- Int64\(\-62\)\) \+ Int64\(\-53\) \+ Int64\(60\) \- Int64\(18\) \* Int64\(42\) / Int64\(\-53\) / CASE Int64\(36\) WHEN Int64\(34\) THEN Int64\(\-7\) WHEN Int64\(\-63\) \+ coalesce\(Int64\(35\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), sum\(CAST\(NULL AS Int64\)\) \- Int64\(75\)\) THEN NULL END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 AS col1, 18 / + 10, ( - - 62 ) + - 53 + + ( + + 60 ) - + 18 * + 42 / - 53 / CASE 36 WHEN 34 THEN - 7 WHEN - 63 + + COALESCE ( 35, - COUNT ( * ), SUM ( ALL CAST ( NULL AS INTEGER ) ) - 75 ) THEN NULL END col1 query I rowsort label-7428 @@ -41077,7 +41077,7 @@ SELECT - 63 + ( 36 ) - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(36\), \(\- Int64\(\-25\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-50\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-52\)\) WHEN \(\- Int64\(15\)\) / Int64\(1\) \- Int64\(74\) / Int64\(77\) THEN Int64\(\-57\) \* Int64\(90\) \+ Int64\(62\) ELSE NULL END \- CAST\(NULL AS Int32\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(36\), \(\- Int64\(\-25\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-50\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-52\)\) WHEN \(\- Int64\(15\)\) / Int64\(1\) \- Int64\(74\) / Int64\(77\) THEN Int64\(\-57\) \* Int64\(90\) \+ Int64\(62\) ELSE NULL END \- CAST\(NULL AS Int64\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( 36, - - 25 * + COUNT ( * ) - - 50 ) col0, + CASE - - 52 WHEN - + 15 / + 1 - + 74 / 77 THEN - 57 * + + 90 + + 62 ELSE NULL END - + + CAST ( NULL AS INTEGER ) * 34 AS col0 query II rowsort @@ -41727,7 +41727,7 @@ SELECT - 69 * - - 1 + - - 2 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 183 # Datafusion - Expected - -5493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \- Int64\(7\) \+ Int64\(\-89\) \- Int64\(56\) \* Int64\(\-6\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(62\) \- Int64\(29\) \+ Int64\(83\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(79\) \* \(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \- Int64\(7\) \+ Int64\(\-89\) \- Int64\(56\) \* Int64\(\-6\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(62\) \- Int64\(29\) \+ Int64\(83\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(79\) \* \(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 - + + 7 + - 89 - 56 * - 6 + + 31 AS col1, 62 - + + 29 + + 83 + + + CAST ( + COUNT ( * ) AS INTEGER ) * + + 79 * - + 71 AS col1 query I rowsort label-7931 @@ -42538,7 +42538,7 @@ SELECT ALL + + 58 * + ( - - 63 ) * - 45 * - 56, CAST ( + 50 AS INTEGER ) * 24 co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \- Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) - + 16 AS col2 query II rowsort label-8084 @@ -43736,7 +43736,7 @@ SELECT ALL + 2 + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \+ CASE Int64\(11\) WHEN Int64\(74\) THEN NULL ELSE CAST\(NULL AS Int32\) END \* Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(20\) AS col0" at position 0 and "\(\- Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \+ CASE Int64\(11\) WHEN Int64\(74\) THEN NULL ELSE CAST\(NULL AS Int64\) END \* Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(20\) AS col0" at position 0 and "\(\- Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 71 + + ( + CASE ( 11 ) WHEN 74 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) * 41 - + ( + + COUNT ( * ) ) - - COUNT ( * ) * 20 AS col0, - ( - 25 ) AS col0 query I rowsort @@ -44860,7 +44860,7 @@ SELECT ALL + 93 * CAST ( - 28 AS INTEGER ) AS col2 # Datafusion - Expected - 29 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- max\(Int64\(38\)\)\), \(\- CASE \(\- Int64\(89\)\) WHEN Int64\(85\) / CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) THEN Int64\(8\) \+ Int64\(75\) \+ Int64\(1\) \* Int64\(\-17\) \- Int64\(\-63\) END\)\)\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(13\) \+ min\(DISTINCT Int64\(30\)\) \- \(\- CASE Int64\(4\) WHEN Int64\(\-93\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- \(\- sum\(Int64\(\-42\)\)\)\) WHEN \(\- Int64\(84\)\) \* Int64\(27\) \+ Int64\(\-59\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- max\(Int64\(38\)\)\), \(\- CASE \(\- Int64\(89\)\) WHEN Int64\(85\) / CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) THEN Int64\(8\) \+ Int64\(75\) \+ Int64\(1\) \* Int64\(\-17\) \- Int64\(\-63\) END\)\)\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(13\) \+ min\(DISTINCT Int64\(30\)\) \- \(\- CASE Int64\(4\) WHEN Int64\(\-93\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- \(\- sum\(Int64\(\-42\)\)\)\) WHEN \(\- Int64\(84\)\) \* Int64\(27\) \+ Int64\(\-59\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - MAX ( 38 ), - + CASE - + ( 89 ) WHEN + + 85 / + CAST ( - + COUNT ( * ) AS INTEGER ) THEN + 8 + 75 + 1 * + - 17 - - 63 END ) + - 9 col1, + 13 + MIN ( DISTINCT + + 30 ) - - + CASE + 4 WHEN - 93 - - COUNT ( * ) THEN - - SUM ( + - 42 ) WHEN - ( + 84 ) * 27 + - 59 THEN NULL END col1, 5 query I rowsort @@ -46194,7 +46194,7 @@ SELECT ALL COALESCE ( - - 19, + ( + 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -107 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ \(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(4\) / \(\- CASE Int64\(82\) WHEN \(\- nullif\(Int64\(29\), Int64\(\-74\) / count\(DISTINCT Int64\(15\) \* Int64\(35\)\)\)\) / Int64\(10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CAST\(NULL AS Int32\) THEN NULL END\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ \(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(4\) / \(\- CASE Int64\(82\) WHEN \(\- nullif\(Int64\(29\), Int64\(\-74\) / count\(DISTINCT Int64\(15\) \* Int64\(35\)\)\)\) / Int64\(10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CAST\(NULL AS Int64\) THEN NULL END\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 39 + - + 68 col1, + 4 / - CASE 82 WHEN - NULLIF ( 29, - 74 / COUNT ( DISTINCT 15 * ( + 35 ) ) ) / 10 THEN + COUNT ( * ) * - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END + 74 AS col1 query I rowsort label-8787 @@ -46313,7 +46313,7 @@ SELECT DISTINCT - MAX ( - 51 ) - - - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 18 AS col0 query I rowsort @@ -47323,7 +47323,7 @@ SELECT CAST ( + 98 AS INTEGER ) AS col0, + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 5060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / \(\- Int64\(33\)\) \- \(\- Int64\(\-57\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-81\) / Int64\(89\) AS col1" at position 0 and "Int64\(55\) \* CAST\(\(\- Int64\(\-46\)\) AS Int32\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / \(\- Int64\(33\)\) \- \(\- Int64\(\-57\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-81\) / Int64\(89\) AS col1" at position 0 and "Int64\(55\) \* CAST\(\(\- Int64\(\-46\)\) AS Int64\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 58 / - ( 33 ) - - - 57 / - - COUNT ( * ) + - 81 / 89 AS col1, 55 * CAST ( - - 46 AS INTEGER ) * + 2 col1 query I rowsort label-9002 @@ -49632,7 +49632,7 @@ SELECT ALL - 85 * - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(67\) \* \(\- Int64\(91\)\) \+ \(\- CASE \(\- Int64\(\-16\)\) WHEN CAST\(Int64\(29\) AS Int32\) THEN Int64\(71\) / Int64\(21\) \+ Int64\(30\) \- CAST\(Int64\(\-87\) AS Int32\) \+ \(\- Int64\(\-20\)\) ELSE CAST\(NULL AS Int32\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(67\) \* \(\- Int64\(91\)\) \+ \(\- CASE \(\- Int64\(\-16\)\) WHEN CAST\(Int64\(29\) AS Int64\) THEN Int64\(71\) / Int64\(21\) \+ Int64\(30\) \- CAST\(Int64\(\-87\) AS Int64\) \+ \(\- Int64\(\-20\)\) ELSE CAST\(NULL AS Int64\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 2 AS col0, + ( + 67 ) * - + 91 + - ( + + CASE - - 16 WHEN + CAST ( 29 AS INTEGER ) THEN + 71 / + 21 + 30 - + CAST ( - 87 AS INTEGER ) + - - 20 ELSE + CAST ( NULL AS INTEGER ) END ) col0 # Datafusion - Types were automatically converted from: @@ -50334,7 +50334,7 @@ SELECT DISTINCT + + 11 * - CAST ( - ( - - 43 ) AS INTEGER ) + + + 75 + - NULLIF # Datafusion - Datafusion expected results: # Datafusion - Expected - -133 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ Int64\(\-67\) AS col0" at position 0 and "Int64\(34\) \* CASE count\(\(\- CAST\(NULL AS Int32\)\)\) WHEN Int64\(\-2\) THEN Int64\(98\) END \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ Int64\(\-67\) AS col0" at position 0 and "Int64\(34\) \* CASE count\(\(\- CAST\(NULL AS Int64\)\)\) WHEN Int64\(\-2\) THEN Int64\(98\) END \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 66 + + - 67 AS col0, 34 * + CASE + + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) WHEN + - 2 THEN 98 END * + + 44 AS col0 query I rowsort label-9579 @@ -51251,7 +51251,7 @@ SELECT ALL + 4 / + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -288 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-32\) AS col1" at position 0 and "coalesce\(Int64\(\-11\), \(\- sum\(CAST\(Int64\(\-82\) AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-32\) AS col1" at position 0 and "coalesce\(Int64\(\-11\), \(\- sum\(CAST\(Int64\(\-82\) AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 9 * - 32 col1, COALESCE ( - 11, + - SUM ( + + CAST ( - 82 AS INTEGER ) ) ) col1 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_108.slt b/data/sqlite/random/expr/slt_good_108.slt index 22c38aa..fc490e6 100644 --- a/data/sqlite/random/expr/slt_good_108.slt +++ b/data/sqlite/random/expr/slt_good_108.slt @@ -1425,7 +1425,7 @@ SELECT DISTINCT 22 + + 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(38\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(38\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col2, 38 / COUNT ( * ) AS col2 query I rowsort label-270 @@ -3107,7 +3107,7 @@ SELECT 67 + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - 37 AS col1 query I rowsort label-590 @@ -4987,7 +4987,7 @@ SELECT 95 * + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col2, - 77 AS col2 query I rowsort label-947 @@ -7019,7 +7019,7 @@ SELECT ALL - 12 - - 73 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) 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\. SELECT ALL 42 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -8837,7 +8837,7 @@ SELECT ALL + 74 + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- CAST\(\(\- Int64\(\-75\)\) AS Int32\)\) \- Int64\(17\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(15\) THEN Int64\(69\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-71\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- CAST\(\(\- Int64\(\-75\)\) AS Int64\)\) \- Int64\(17\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(15\) THEN Int64\(69\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-71\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 + - CAST ( - - 75 AS INTEGER ) - 17 * - COUNT ( * ) col1, CASE - COUNT ( * ) WHEN 15 THEN 69 ELSE COUNT ( * ) * + - 71 END AS col1 query I rowsort label-1676 @@ -8929,7 +8929,7 @@ SELECT DISTINCT + 22 / - + COUNT ( * ), 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19232 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(21\), Int64\(0\) \- Int64\(\-29\)\)\) \* Int64\(10\) \* Int64\(91\) \+ Int64\(\-61\) \* Int64\(2\) AS col1" at position 0 and "CAST\(Int64\(94\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(21\), Int64\(0\) \- Int64\(\-29\)\)\) \* Int64\(10\) \* Int64\(91\) \+ Int64\(\-61\) \* Int64\(2\) AS col1" at position 0 and "CAST\(Int64\(94\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( + 21, 0 - - 29 ) * + 10 * + + 91 + - 61 * + 2 AS col1, CAST ( 94 AS INTEGER ) AS col1 query I rowsort label-1693 @@ -11390,7 +11390,7 @@ SELECT ALL - 84 - - COUNT ( * ) * 17 - - 86 * - - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT 68 * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -13652,7 +13652,7 @@ SELECT DISTINCT 85 * + COALESCE ( 26, 39 * 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -1208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(23\), Int64\(\-38\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(CASE \(\- count\(Int64\(44\)\)\) WHEN Int64\(\-96\) THEN NULL WHEN CAST\(NULL AS Float64\) \+ Int64\(13\) \+ \(\- Int64\(\-85\)\) \+ Int64\(58\) / Int64\(56\) THEN NULL ELSE Int64\(94\) END AS Int32\)\) AS col2" at position 0 and "Int64\(\-94\) \* nullif\(Int64\(13\), Int64\(40\)\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(23\), Int64\(\-38\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(CASE \(\- count\(Int64\(44\)\)\) WHEN Int64\(\-96\) THEN NULL WHEN CAST\(NULL AS Float64\) \+ Int64\(13\) \+ \(\- Int64\(\-85\)\) \+ Int64\(58\) / Int64\(56\) THEN NULL ELSE Int64\(94\) END AS Int64\)\) AS col2" at position 0 and "Int64\(\-94\) \* nullif\(Int64\(13\), Int64\(40\)\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 23, - 38 ) * + COUNT ( * ) + - + CAST ( + CASE - COUNT ( ALL 44 ) WHEN - 96 THEN NULL WHEN + CAST ( NULL AS FLOAT8 ) + 13 + - - 85 + + + 58 / 56 THEN NULL ELSE 94 END AS INTEGER ) AS col2, - 94 * + NULLIF ( ( 13 ), + 40 ) + + 14 AS col2 query I rowsort label-2593 @@ -14009,7 +14009,7 @@ SELECT 47 + - + ( - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(11\), Int64\(\-30\)\)\) AS col1" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(8\) THEN CAST\(NULL AS Int32\) \+ Int64\(\-96\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(11\), Int64\(\-30\)\)\) AS col1" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(8\) THEN CAST\(NULL AS Int64\) \+ Int64\(\-96\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( 11, + - 30 ) AS col1, - CASE - + COUNT ( * ) WHEN + 8 THEN + CAST ( NULL AS INTEGER ) + - 96 ELSE NULL END AS col1 # Datafusion - Datafusion expected results: @@ -19647,7 +19647,7 @@ SELECT 60 * COUNT ( * ) + MAX ( DISTINCT 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(24\) AS Int32\) \+ Int64\(\-8\) AS col1" at position 0 and "Int64\(\-74\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(24\) AS Int64\) \+ Int64\(\-8\) AS col1" at position 0 and "Int64\(\-74\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( 24 AS INTEGER ) + - 8 col1, - 74 - - COUNT ( * ) AS col1 query I rowsort @@ -23313,7 +23313,7 @@ SELECT DISTINCT 1 * + - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(4\) \- CAST\(\(\- \(\- nullif\(\(\- Int64\(\-71\)\), Int64\(81\)\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(4\) \- CAST\(\(\- \(\- nullif\(\(\- Int64\(\-71\)\), Int64\(81\)\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 10 AS col2, 4 - CAST ( - - NULLIF ( - - 71, 81 ) AS INTEGER ) AS col2 query I rowsort @@ -24289,7 +24289,7 @@ SELECT + CAST ( + 57 AS INTEGER ) * 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(59\) \* Int64\(\-18\) \- Int64\(37\) / Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(59\) \* Int64\(\-18\) \- Int64\(37\) / Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1, 59 * + - 18 - + 37 / + - 13 AS col1 query I rowsort label-4627 @@ -31129,7 +31129,7 @@ SELECT ALL 10 * 48 + - + 76 + - 6 + + - 27 + - 26 + 63 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) \* Int64\(58\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) \* Int64\(58\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 78 * + 58 * CAST ( NULL AS INTEGER ) AS col1, 26 AS col1 query I rowsort label-5931 @@ -33319,7 +33319,7 @@ SELECT ALL 44 AS col1, - 90 / COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "CAST\(Int64\(86\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "CAST\(Int64\(86\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 AS col2, CAST ( + + 86 AS INTEGER ) AS col2 query I rowsort @@ -36100,7 +36100,7 @@ SELECT ALL - - 96 - + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(31\) \* Int64\(69\) \+ \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-51\) / Int64\(\-44\)\)\) \+ Int64\(\-89\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(31\) \* Int64\(69\) \+ \(\- nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-51\) / Int64\(\-44\)\)\) \+ Int64\(\-89\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 2 AS col2, + 31 * 69 + - NULLIF ( - CAST ( NULL AS INTEGER ), + - 51 / - 44 ) + - 89 * 80 AS col2 query II rowsort @@ -36552,7 +36552,7 @@ SELECT ALL 69 + COUNT ( * ) + + - 65 + - - 1 / - 66 AS col1, + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7654 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(89\) AS col0" at position 0 and "CASE Int64\(96\) WHEN Int64\(\-15\) \+ count\(Int64\(8\)\) THEN CAST\(Int64\(15\) AS Int32\) \* Int64\(25\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(89\) AS col0" at position 0 and "CASE Int64\(96\) WHEN Int64\(\-15\) \+ count\(Int64\(8\)\) THEN CAST\(Int64\(15\) AS Int64\) \* Int64\(25\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 86 ) * + COUNT ( * ) * + + 89 AS col0, CASE 96 WHEN + - 15 + COUNT ( ( + 8 ) ) THEN CAST ( 15 AS INTEGER ) * + 25 END AS col0 query II rowsort @@ -37993,7 +37993,7 @@ SELECT ALL 92 + + 65 - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 336487 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \- Int64\(89\) \+ Int64\(79\) \* \(\- \(\- CAST\(Int64\(71\) AS Int32\)\)\) \* Int64\(60\) AS col0" at position 0 and "Int64\(12\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- Int64\(\-58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \- Int64\(89\) \+ Int64\(79\) \* \(\- \(\- CAST\(Int64\(71\) AS Int64\)\)\) \* Int64\(60\) AS col0" at position 0 and "Int64\(12\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ \(\- Int64\(\-58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 - 89 + 79 * + + ( - - CAST ( 71 AS INTEGER ) ) * 60 AS col0, + 12 + - - CAST ( NULL AS INTEGER ) + - - 58 AS col0 query I rowsort @@ -39051,7 +39051,7 @@ SELECT MAX ( ALL + + 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(90\), \(\- Int64\(52\)\) \+ CAST\(NULL AS Int32\) / Int64\(\-60\)\) AS col2" at position 0 and "Int64\(\-20\) \+ Int64\(34\) \* \(\- Int64\(\-75\)\) \+ Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(90\), \(\- Int64\(52\)\) \+ CAST\(NULL AS Int64\) / Int64\(\-60\)\) AS col2" at position 0 and "Int64\(\-20\) \+ Int64\(34\) \* \(\- Int64\(\-75\)\) \+ Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * NULLIF ( 90, - ( 52 ) + + ( + CAST ( NULL AS INTEGER ) ) / + - 60 ) AS col2, - 20 + + + 34 * - - 75 + + - 11 col2 query I rowsort @@ -41641,7 +41641,7 @@ SELECT COUNT ( * ) * + + 26 - + 80 * 48 * 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(34\)\)\)\) AS col0" at position 0 and "CAST\(CAST\(Int64\(0\) AS Int32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(34\)\)\)\) AS col0" at position 0 and "CAST\(CAST\(Int64\(0\) AS Int64\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - - MAX ( 34 ) ) AS col0, CAST ( CAST ( 0 AS INTEGER ) AS INTEGER ) AS col0 query I rowsort label-7931 @@ -42319,7 +42319,7 @@ SELECT ALL ( + 0 ) * + + 15 - - + 6 - - NULLIF ( - + CAST ( 18 AS INTEGER ), - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(52\) AS Int32\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(52\) AS Int64\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + 52 AS INTEGER ) AS col1, + 19 AS col1 query I rowsort label-8061 @@ -42416,7 +42416,7 @@ SELECT 85 + + ( - 20 ) + + ( + - NULLIF ( - + 26, + + 58 ) ) AS col0, COUNT ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 72 + - 46 col1 query I rowsort label-8079 @@ -45296,7 +45296,7 @@ SELECT + MIN ( + + 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5222 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* \(\- Int64\(\-85\)\) \+ nullif\(Int64\(\-37\), Int64\(95\)\) AS col1" at position 0 and "Int64\(97\) \+ \(\- Int64\(24\)\) \+ nullif\(\(\- Int64\(\-52\)\), \(\- nullif\(Int64\(47\), CASE \(\- coalesce\(\(\- nullif\(Int64\(83\), min\(DISTINCT Int64\(\-12\)\)\)\), Int64\(80\)\)\) WHEN min\(Int64\(13\)\) THEN Int64\(88\) \+ Int64\(53\) \* Int64\(74\) ELSE min\(DISTINCT Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* CAST\(\(\- CASE Int64\(95\) WHEN Int64\(\-99\) THEN NULL ELSE max\(Int64\(\-60\)\) / Int64\(\-50\) END\) AS Int32\) \+ Int64\(\-99\)\)\) \* Int64\(73\)\) / Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* \(\- Int64\(\-85\)\) \+ nullif\(Int64\(\-37\), Int64\(95\)\) AS col1" at position 0 and "Int64\(97\) \+ \(\- Int64\(24\)\) \+ nullif\(\(\- Int64\(\-52\)\), \(\- nullif\(Int64\(47\), CASE \(\- coalesce\(\(\- nullif\(Int64\(83\), min\(DISTINCT Int64\(\-12\)\)\)\), Int64\(80\)\)\) WHEN min\(Int64\(13\)\) THEN Int64\(88\) \+ Int64\(53\) \* Int64\(74\) ELSE min\(DISTINCT Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* CAST\(\(\- CASE Int64\(95\) WHEN Int64\(\-99\) THEN NULL ELSE max\(Int64\(\-60\)\) / Int64\(\-50\) END\) AS Int64\) \+ Int64\(\-99\)\)\) \* Int64\(73\)\) / Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 61 * - - 85 + + NULLIF ( - 37, 95 ) AS col1, 97 + - + 24 + NULLIF ( - - 52, - NULLIF ( + 47, + CASE - COALESCE ( - NULLIF ( 83, MIN ( DISTINCT - 12 ) ), 80 ) WHEN MIN ( + 13 ) THEN 88 + 53 * + 74 ELSE + MIN ( DISTINCT + 35 ) + COUNT ( * ) END * + CAST ( - CASE 95 WHEN - 99 THEN NULL ELSE MAX ( - 60 ) / - 50 END AS INTEGER ) + - 99 ) * 73 ) / - 35 AS col1 query I rowsort label-8629 @@ -46292,7 +46292,7 @@ SELECT COUNT ( * ) * + 51 * + - 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1368 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-38\), CAST\(\(\- Int64\(53\)\) AS Int32\) / Int64\(\-31\)\) \* \(\- \(\- Int64\(36\)\)\) AS col0" at position 0 and "sum\(\(\- Int64\(78\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-38\), CAST\(\(\- Int64\(53\)\) AS Int64\) / Int64\(\-31\)\) \* \(\- \(\- Int64\(36\)\)\) AS col0" at position 0 and "sum\(\(\- Int64\(78\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - 38, ( + CAST ( - + 53 AS INTEGER ) ) / - 31 ) * - - ( 36 ) AS col0, + SUM ( ALL - + 78 ) col0 query I rowsort label-8818 @@ -46418,7 +46418,7 @@ SELECT ALL - CASE + 81 WHEN - + 27 THEN + + 34 * + + 91 + 18 + - - NULLIF ( ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -1081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \* CAST\(Int64\(\-23\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \* CAST\(Int64\(\-23\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 28 AS col2, + COUNT ( * ) * + 47 * ( + CAST ( - 23 AS INTEGER ) ) AS col2 query II rowsort @@ -46939,7 +46939,7 @@ SELECT DISTINCT - COUNT ( * ) + - COUNT ( ALL - + 76 ) + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3626 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(47\) \* Int64\(\-78\) AS col1" at position 0 and "CAST\(Int64\(\-47\) AS Int32\) \+ \(\- count\(Int64\(\-78\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(47\) \* Int64\(\-78\) AS col1" at position 0 and "CAST\(Int64\(\-47\) AS Int64\) \+ \(\- count\(Int64\(\-78\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( 40 ) + 47 * - 78 col1, + CAST ( + - 47 AS INTEGER ) + - COUNT ( - 78 ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_109.slt b/data/sqlite/random/expr/slt_good_109.slt index 12509b1..b6f4292 100644 --- a/data/sqlite/random/expr/slt_good_109.slt +++ b/data/sqlite/random/expr/slt_good_109.slt @@ -1463,7 +1463,7 @@ SELECT DISTINCT - 6 * + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int64\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 84 AS INTEGER ) AS col2, - 12 + + 98 AS col2 query I rowsort @@ -2734,7 +2734,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- Int64\(\-4\)\) AS Int32\)\) AS Int32\)\) \* Int64\(23\) AS col0" at position 0 and "\(\- count\(Int64\(\-30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- Int64\(\-4\)\) AS Int64\)\) AS Int64\)\) \* Int64\(23\) AS col0" at position 0 and "\(\- count\(Int64\(\-30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - + CAST ( - - 4 AS INTEGER ) AS INTEGER ) * + 23 AS col0, - COUNT ( - 30 ) col0 query I rowsort label-514 @@ -5410,7 +5410,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(45\)\)\) \+ Int64\(28\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(45\)\)\) \+ Int64\(28\) 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\. SELECT DISTINCT - - ( + ( 45 ) ) + + 28 AS col0, + CAST ( NULL AS INTEGER ) col0 query I rowsort label-1025 @@ -9265,7 +9265,7 @@ SELECT ALL 34 / + + CAST ( + 58 AS INTEGER ) + + 8 * + 44 * + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(99\) AS Int32\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(99\) AS Int64\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + + CAST ( + 99 AS INTEGER ) ) AS col2, - 17 AS col2 query I rowsort label-1765 @@ -10599,7 +10599,7 @@ SELECT DISTINCT 56 + - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(53\), Int64\(34\) \+ CASE Int64\(55\) WHEN Int64\(74\) \+ Int64\(\-19\) THEN NULL WHEN Int64\(68\) THEN NULL WHEN Int64\(30\) THEN count\(Int64\(14\)\) \* count\(Int64\(1\)\) AS count\(\*\) END \* \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(53\), Int64\(34\) \+ CASE Int64\(55\) WHEN Int64\(74\) \+ Int64\(\-19\) THEN NULL WHEN Int64\(68\) THEN NULL WHEN Int64\(30\) THEN count\(Int64\(14\)\) \* count\(Int64\(1\)\) AS count\(\*\) END \* \(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + 53, + 34 + CASE + ( + 55 ) WHEN + 74 + - 19 THEN NULL WHEN 68 THEN NULL WHEN 30 THEN COUNT ( ALL 14 ) * ( COUNT ( * ) ) END * - CAST ( NULL AS INTEGER ) ) AS col2, 13 AS col2 query I rowsort @@ -11058,7 +11058,7 @@ SELECT DISTINCT 18 * + SUM ( ALL - CAST ( 96 AS INTEGER ) ) * - 59 + + ( - 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 32 col2, + ( - CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -13823,7 +13823,7 @@ SELECT - ( ( - 63 ) ) + - SUM ( - 10 ) + + - 18 + COUNT ( * ) - - 87 * + COALESC # Datafusion - Expected - 68 # Datafusion - Expected - -7968 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(96\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-23\) THEN Int64\(88\) \+ Int64\(92\) \+ Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-83\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(96\) \* \(\- CASE CAST\(NULL AS Int64\) WHEN Int64\(\-23\) THEN Int64\(88\) \+ Int64\(92\) \+ Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-83\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 AS col1, 96 * - CASE + + CAST ( NULL AS INTEGER ) WHEN - 23 THEN 88 + + 92 + 39 * + COUNT ( * ) ELSE + - COUNT ( * ) * + - 83 END col1, 81 AS col1 query I rowsort label-2638 @@ -14371,7 +14371,7 @@ SELECT + COUNT ( * ) * + 15 * + - 30 + + 85 + - MIN ( + 68 ) + - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* CAST\(\(\- CASE Int64\(\-31\) WHEN Int64\(56\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* CAST\(\(\- CASE Int64\(\-31\) WHEN Int64\(56\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) AS Int64\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + - CASE - 31 WHEN + 56 THEN + COUNT ( * ) END AS INTEGER ) AS col0, 32 AS col0 query I rowsort @@ -17119,7 +17119,7 @@ SELECT DISTINCT + 44 - 90 AS col1, NULLIF ( + + 25, - - 90 + ( - COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5402700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* Int64\(54\) \* Int64\(69\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* Int64\(54\) \* Int64\(69\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 * + + COUNT ( * ) * 29 * 54 * + 69 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -18502,7 +18502,7 @@ SELECT - 27 * 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 395 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- Int64\(79\)\) AS col0" at position 0 and "coalesce\(min\(\(\- Int64\(84\)\)\), \(\- CAST\(NULL AS Int32\)\) / CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- Int64\(79\)\) AS col0" at position 0 and "coalesce\(min\(\(\- Int64\(84\)\)\), \(\- CAST\(NULL AS Int64\)\) / CAST\(NULL AS Int64\) \- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 5 * - + 79 col0, + COALESCE ( MIN ( ALL - + 84 ), - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) - COUNT ( * ) ) AS col0 # Datafusion - Types were automatically converted from: @@ -19849,7 +19849,7 @@ SELECT + + COUNT ( * ) + + COUNT ( * ) + + - 18 + - + 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(91\) \+ Int64\(\-72\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-84\) \* Int64\(68\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(26\)\) AS col0" at position 0 and "Int64\(64\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(91\) \+ Int64\(\-72\) \+ CAST\(NULL AS Int64\) \+ Int64\(\-84\) \* Int64\(68\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(26\)\) AS col0" at position 0 and "Int64\(64\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 53 / 91 + - 72 + + CAST ( NULL AS INTEGER ) + - 84 * + 68 * - - COUNT ( * ) + - + 26 col0, 64 - + 50 AS col0 query I rowsort label-3788 @@ -22108,7 +22108,7 @@ SELECT 42 * 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(18\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(18\) / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 AS col0, + 18 / - CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-4218 @@ -22711,7 +22711,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(3\) \+ \(\- Int64\(55\)\) \+ Int64\(28\) / Int64\(96\) \* \(\- Int64\(57\)\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(3\) \+ \(\- Int64\(55\)\) \+ Int64\(28\) / Int64\(96\) \* \(\- Int64\(57\)\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + 3 + - ( 55 ) + + 28 / + + 96 * - + 57 AS col2, 1 AS col2 query I rowsort @@ -23158,7 +23158,7 @@ SELECT - 79 / + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2453 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(34\) \+ \(\- Int64\(\-29\)\) \+ Int64\(\-68\) \* Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \- CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(34\) \+ \(\- Int64\(\-29\)\) \+ Int64\(\-68\) \* Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 32 - + CAST ( NULL AS INTEGER ) AS col2, 34 + - - 29 + + - 68 * + 37 col2 query II rowsort label-4418 @@ -26047,7 +26047,7 @@ SELECT - - 67 + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "\(\- \(\- CASE \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- CASE Int64\(69\) WHEN Int64\(77\) \+ Int64\(0\) \* Int64\(22\) THEN Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(79\) THEN NULL END\) \- CASE Int64\(88\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(39\) / Int64\(\-64\) THEN \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) ELSE NULL END\)\) WHEN Int64\(\-34\) THEN count\(Int64\(1\)\) AS count\(\*\) END\)\) \+ \(\- CAST\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "\(\- \(\- CASE \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- CASE Int64\(69\) WHEN Int64\(77\) \+ Int64\(0\) \* Int64\(22\) THEN Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(79\) THEN NULL END\) \- CASE Int64\(88\) WHEN \(\- CAST\(NULL AS Int64\)\) \+ Int64\(39\) / Int64\(\-64\) THEN \(\- sum\(DISTINCT CAST\(NULL AS Int64\)\)\) ELSE NULL END\)\) WHEN Int64\(\-34\) THEN count\(Int64\(1\)\) AS count\(\*\) END\)\) \+ \(\- CAST\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 14 col2, - ( + - CASE - NULLIF ( - COUNT ( * ), - CASE 69 WHEN ( + 77 ) + 0 * + 22 THEN 45 * COUNT ( * ) WHEN + 79 THEN NULL END - + CASE 88 WHEN - CAST ( NULL AS INTEGER ) + + 39 / - 64 THEN - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ELSE NULL END ) WHEN - 34 THEN COUNT ( * ) END ) + - CAST ( CAST ( COUNT ( * ) AS FLOAT8 ) AS INTEGER ) AS col2 query II rowsort @@ -27172,7 +27172,7 @@ SELECT ALL - - 88 + + 45 * + - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(17\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(17\) AS Int64\)\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - CAST ( 17 AS INTEGER ) ) AS col1, - 49 AS col1 query I rowsort label-5189 @@ -27753,7 +27753,7 @@ SELECT DISTINCT 34 * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 4050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(54\) \* \(\- CAST\(Int64\(\-75\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(54\) \* \(\- CAST\(Int64\(\-75\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 AS col0, 54 * - CAST ( - 75 AS INTEGER ) col0 query I rowsort @@ -27781,7 +27781,7 @@ SELECT 94, 25 + + + 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -27871,7 +27871,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int32\) \+ Int64\(\-15\) \+ \(\- min\(DISTINCT Int64\(\-1\)\)\) \* \(\- Int64\(\-72\)\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int64\) \+ Int64\(\-15\) \+ \(\- min\(DISTINCT Int64\(\-1\)\)\) \* \(\- Int64\(\-72\)\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, CAST ( 47 AS INTEGER ) + + - 15 + - MIN ( DISTINCT + - 1 ) * - - 72 + 35 AS col0 query I rowsort label-5322 @@ -29114,7 +29114,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -283 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \- Int64\(93\) \+ \(\- Int64\(79\)\) \+ Int64\(\-63\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \- Int64\(93\) \+ \(\- Int64\(79\)\) \+ Int64\(\-63\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( - 48 ) * - CAST ( - COUNT ( * ) AS INTEGER ) - 93 + - + 79 + - 63 AS col0, + CAST ( NULL AS FLOAT8 ) * + - 29 AS col0 query I rowsort label-5560 @@ -30474,7 +30474,7 @@ SELECT DISTINCT 0 * - + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-93\), Int64\(37\) \+ Int64\(67\) \+ Int64\(\-45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(91\)\) \+ Int64\(52\) AS col0" at position 0 and "\(\- coalesce\(Int64\(99\), Int64\(80\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(Int64\(\-43\), Int64\(12\) \+ Int64\(9\)\)\) \* \(\- Int64\(0\)\) \+ \(\- Int64\(80\)\) \+ Int64\(32\) \+ \(\- CAST\(NULL AS Int32\)\), Int64\(\-60\)\)\) \+ Int64\(14\) \- Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-93\), Int64\(37\) \+ Int64\(67\) \+ Int64\(\-45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(91\)\) \+ Int64\(52\) AS col0" at position 0 and "\(\- coalesce\(Int64\(99\), Int64\(80\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(Int64\(\-43\), Int64\(12\) \+ Int64\(9\)\)\) \* \(\- Int64\(0\)\) \+ \(\- Int64\(80\)\) \+ Int64\(32\) \+ \(\- CAST\(NULL AS Int64\)\), Int64\(\-60\)\)\) \+ Int64\(14\) \- Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( - 93, + 37 + + 67 + + ( - 45 ) / - + COUNT ( * ) * 91 ) + + 52 AS col0, - COALESCE ( + 99, + 80, - + COUNT ( * ) * - COALESCE ( - 43, 12 + 9 ) * - ( + 0 ) + + ( - + 80 ) + 32 + - CAST ( NULL AS INTEGER ), + - 60 ) + + 14 - - 42 AS col0 query I rowsort label-5814 @@ -31050,7 +31050,7 @@ SELECT MIN ( DISTINCT - ( - 49 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(28\)\)\) \* \(\- count\(Int64\(95\)\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(28\)\)\) \* \(\- count\(Int64\(95\)\)\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( DISTINCT 28 ) * - COUNT ( 95 ) + - - CAST ( NULL AS INTEGER ) AS col2, - 83 AS col2 query II rowsort @@ -35935,7 +35935,7 @@ SELECT DISTINCT - + 15 + + 60 + + - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 53 + CAST ( NULL AS INTEGER ) AS col1, - 25 col1 query I rowsort label-6858 @@ -36579,7 +36579,7 @@ SELECT 97 AS col1, - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-54\), Int64\(47\) \* \(\- Int64\(24\)\) \* Int64\(2\)\) \+ Int64\(\-25\) / \(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(74\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-54\), Int64\(47\) \* \(\- Int64\(24\)\) \* Int64\(2\)\) \+ Int64\(\-25\) / \(\- sum\(\(\- CAST\(NULL AS Int64\)\)\)\) \+ Int64\(74\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - 54, 47 * - + 24 * + 2 ) + - 25 / - SUM ( + - CAST ( NULL AS INTEGER ) ) + + 74 AS col0, + 77 AS col0 query I rowsort label-6981 @@ -36595,7 +36595,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ Int64\(75\) \+ \(\- CAST\(Int64\(\-59\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ Int64\(75\) \+ \(\- CAST\(Int64\(\-59\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 14 + + + 75 + - CAST ( - 59 AS INTEGER ) AS col2, - 51 AS col2 query I rowsort label-6984 @@ -40932,7 +40932,7 @@ SELECT + COUNT ( * ) * + + 17 AS col2, MIN ( ALL + 20 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ Int64\(47\) AS col0" at position 0 and "avg\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ Int64\(47\) AS col0" at position 0 and "avg\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 44 + 47 AS col0, AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -43119,7 +43119,7 @@ SELECT - 21 - COUNT ( * ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 21 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* CAST\(CASE Int64\(\-64\) WHEN Int64\(\-24\) THEN NULL ELSE Int64\(60\) \+ Int64\(31\) END AS Int32\) \* Int64\(68\) \+ Int64\(6\) \+ Int64\(80\) \* \(\- Int64\(38\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* CAST\(CASE Int64\(\-64\) WHEN Int64\(\-24\) THEN NULL ELSE Int64\(60\) \+ Int64\(31\) END AS Int64\) \* Int64\(68\) \+ Int64\(6\) \+ Int64\(80\) \* \(\- Int64\(38\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + CASE - 64 WHEN + - 24 THEN NULL ELSE 60 + 31 END AS INTEGER ) * + 68 + 6 + 80 * - + 38 AS col2, 21 AS col2, - - 72 AS col2 query I rowsort @@ -43244,7 +43244,7 @@ SELECT ALL - 37, 79 + - 5 + - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-9\) / Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(\-9\) / Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0, - 9 / - 2 AS col0 # Datafusion - Types were automatically converted from: @@ -46239,7 +46239,7 @@ SELECT ALL - - ( COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7098 # Datafusion - Expected - 3324181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(78\) AS col1" at position 0 and "Int64\(\-76\) \* Int64\(27\) \* \(\- max\(DISTINCT Int64\(\-45\)\)\) \* CAST\(\(\- Int64\(36\)\) AS Int32\) \+ \(\- coalesce\(Int64\(59\), Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\), \(\- min\(Int64\(42\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(78\) AS col1" at position 0 and "Int64\(\-76\) \* Int64\(27\) \* \(\- max\(DISTINCT Int64\(\-45\)\)\) \* CAST\(\(\- Int64\(36\)\) AS Int64\) \+ \(\- coalesce\(Int64\(59\), Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\), \(\- min\(Int64\(42\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 91 * + 78 AS col1, - 76 * 27 * - MAX ( DISTINCT - 45 ) * + CAST ( - + 36 AS INTEGER ) + + - COALESCE ( 59, + + 97 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ), - MIN ( 42 ) ) col1 query I rowsort label-8829 @@ -49767,7 +49767,7 @@ SELECT COALESCE ( + 77, ( - 42 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(22\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(62\) ELSE Int64\(36\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(15\) THEN Int64\(\-68\) \* \(\- CAST\(\(\- \(\- CASE Int64\(\-25\) WHEN Int64\(\-63\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(84\) WHEN \(\- CAST\(Int64\(33\) AS Int32\)\) \* Int64\(\-80\) THEN NULL END\)\) AS Int32\)\) WHEN Int64\(\-30\) THEN NULL ELSE NULL END END\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(22\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(62\) ELSE Int64\(36\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(15\) THEN Int64\(\-68\) \* \(\- CAST\(\(\- \(\- CASE Int64\(\-25\) WHEN Int64\(\-63\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(84\) WHEN \(\- CAST\(Int64\(33\) AS Int64\)\) \* Int64\(\-80\) THEN NULL END\)\) AS Int64\)\) WHEN Int64\(\-30\) THEN NULL ELSE NULL END END\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 5 * + 22 AS col2, COUNT ( * ) + + - CASE + + 66 WHEN - + COUNT ( * ) THEN + + 62 ELSE 36 + CASE + COUNT ( * ) WHEN + 15 THEN - 68 * - CAST ( - - CASE - 25 WHEN - 63 * + + COUNT ( * ) THEN + 84 WHEN - + CAST ( 33 AS INTEGER ) * - 80 THEN NULL END AS INTEGER ) WHEN - 30 THEN NULL ELSE NULL END END + - 70 col2 query I rowsort label-9504 @@ -51721,7 +51721,7 @@ SELECT 68 * - 71 - - COALESCE ( 64, + 14 / 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 7990 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-94\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* \(\- Int64\(\-85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-94\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \* \(\- Int64\(\-85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 AS col0, - 94 * + CAST ( - COUNT ( * ) AS INTEGER ) * - - 85 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_11.slt b/data/sqlite/random/expr/slt_good_11.slt index 553c498..49a156d 100644 --- a/data/sqlite/random/expr/slt_good_11.slt +++ b/data/sqlite/random/expr/slt_good_11.slt @@ -444,7 +444,7 @@ SELECT 53 * - 36 + - COUNT ( * ) * - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "CAST\(NULL AS Int64\) / Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 58 col0, CAST ( NULL AS INTEGER ) / - 52 AS col0 query III rowsort @@ -1313,7 +1313,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(62\) \+ Int64\(\-79\) \* max\(Int64\(1\)\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(\-71\) \+ Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(62\) \+ Int64\(\-79\) \* max\(Int64\(1\)\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(\-71\) \+ Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + + + 62 + - 79 * MAX ( 1 ) * - 35 AS col2, - 71 + - 25 AS col2 query I rowsort label-244 @@ -1740,7 +1740,7 @@ SELECT MAX ( DISTINCT - 78 ) + 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) / \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(96\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) / \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(96\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 63 / - + 53 AS col1, 96 * CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-325 @@ -1932,7 +1932,7 @@ SELECT - 42 + SUM ( + 14 ) * 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -55174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-9\) \* Int64\(15\) \+ Int64\(\-32\) / Int64\(42\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(8\)\) AS Int32\) \* Int64\(86\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-9\) \* Int64\(15\) \+ Int64\(\-32\) / Int64\(42\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(8\)\) AS Int64\) \* Int64\(86\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 81 AS col0, + ( + - 9 ) * 15 + + - 32 / 42 + ( + COUNT ( * ) ) + + CAST ( - + 8 AS INTEGER ) * + 86 * 80 AS col0 query I rowsort label-362 @@ -2310,7 +2310,7 @@ SELECT DISTINCT - 27 * + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- coalesce\(Int64\(51\), Int64\(8\) \* CAST\(NULL AS Int32\)\) / max\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- coalesce\(Int64\(51\), Int64\(8\) \* CAST\(NULL AS Int64\)\) / max\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 54 + - + COUNT ( * ) - COALESCE ( 51, + + 8 * CAST ( NULL AS INTEGER ) ) / MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0, 95 col0 query I rowsort label-433 @@ -5846,7 +5846,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "max\(DISTINCT CAST\(NULL AS Int32\)\) \+ Int64\(82\) / Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "max\(DISTINCT CAST\(NULL AS Int64\)\) \+ Int64\(82\) / Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 78 AS col0, MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + 82 / + 40 AS col0 query I rowsort label-1116 @@ -7372,7 +7372,7 @@ SELECT ALL - 61 / 7 / + 26 AS col2, - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1043 # Datafusion - Expected - 5190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(68\) \* \(\- Int64\(\-15\)\) AS col1" at position 0 and "CAST\(Int64\(63\) AS Int32\) \+ Int64\(61\) \- Int64\(\-58\) \* Int64\(86\) \+ \(\- Int64\(\-78\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(68\) \* \(\- Int64\(\-15\)\) AS col1" at position 0 and "CAST\(Int64\(63\) AS Int64\) \+ Int64\(61\) \- Int64\(\-58\) \* Int64\(86\) \+ \(\- Int64\(\-78\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 23 + 68 * - - 15 AS col1, + CAST ( 63 AS INTEGER ) + + + 61 - - 58 * 86 + - - 78 AS col1 query I rowsort @@ -7772,7 +7772,7 @@ SELECT DISTINCT 27 / - ( - CAST ( - 32 AS INTEGER ) ) AS col2 # Datafusion - Expected - 85 # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) / Int64\(\-35\) AS col0" at position 1 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) / Int64\(\-35\) AS col0" at position 1 and "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85, - 24 / + - 35 AS col0, - CAST ( NULL AS INTEGER ) col0 query I rowsort label-1481 @@ -7905,7 +7905,7 @@ SELECT + 17 + 0 / - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -1386 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(93\)\) AS Int32\)\) \- Int64\(0\) AS col0" at position 0 and "Int64\(\-68\) \* Int64\(20\) \+ CAST\(Int64\(\-26\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(93\)\) AS Int64\)\) \- Int64\(0\) AS col0" at position 0 and "Int64\(\-68\) \* Int64\(20\) \+ CAST\(Int64\(\-26\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - + 93 AS INTEGER ) - + 0 AS col0, - 68 * 20 + CAST ( + - 26 AS INTEGER ) AS col0 query I rowsort label-1506 @@ -8191,7 +8191,7 @@ SELECT CAST ( MAX ( + 25 ) AS INTEGER ) + - COUNT ( * ) + - - 25 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(33\) / \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-23\)\) \* Int64\(10\) \+ Int64\(\-40\) / Int64\(44\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(33\) / \(\- CAST\(NULL AS Int64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-23\)\) \* Int64\(10\) \+ Int64\(\-40\) / Int64\(44\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 26 * + 33 / - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - - 23 * + + 10 + - 40 / 44 col1, 53 AS col1 # Datafusion - Types were automatically converted from: @@ -8488,7 +8488,7 @@ SELECT - CAST ( + 68 AS INTEGER ), - 23 * + 66 - + - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(15\) AS col0" at position 0 and "CAST\(nullif\(coalesce\(Int64\(\-74\), Int64\(\-97\) \* Int64\(11\) \* Int64\(73\) \+ \(\- Int64\(\-89\)\)\), Int64\(93\) \+ Int64\(\-24\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(15\) AS col0" at position 0 and "CAST\(nullif\(coalesce\(Int64\(\-74\), Int64\(\-97\) \* Int64\(11\) \* Int64\(73\) \+ \(\- Int64\(\-89\)\)\), Int64\(93\) \+ Int64\(\-24\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 + + 15 col0, + CAST ( + + NULLIF ( COALESCE ( - 74, - 97 * 11 * 73 + - - 89 ), + 93 + - 24 ) AS INTEGER ) AS col0 query I rowsort label-1616 @@ -10175,7 +10175,7 @@ SELECT - 1 + + 88 # Datafusion - Expected - -1 # Datafusion - Expected - 26 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-1\), nullif\(CAST\(NULL AS Int32\), sum\(Int64\(63\)\) \- \(\- CASE Int64\(\-70\) WHEN Int64\(14\) THEN NULL WHEN nullif\(Int64\(14\), Int64\(53\)\) \+ Int64\(54\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(75\) END\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(39\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(61\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-1\), nullif\(CAST\(NULL AS Int64\), sum\(Int64\(63\)\) \- \(\- CASE Int64\(\-70\) WHEN Int64\(14\) THEN NULL WHEN nullif\(Int64\(14\), Int64\(53\)\) \+ Int64\(54\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(75\) END\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(39\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(61\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( - 1, + NULLIF ( + + CAST ( NULL AS INTEGER ), + SUM ( 63 ) - - CASE - 70 WHEN + 14 THEN NULL WHEN + NULLIF ( + 14, + + 53 ) + + + 54 THEN - + COUNT ( * ) / 75 END + + - CAST ( NULL AS INTEGER ) * + 39 ) * + COUNT ( * ) + - 97 * + 92 + COUNT ( * ) + - COUNT ( * ) / - COUNT ( * ) + 61 ) AS col0, 26 AS col0, 37 query I rowsort label-1931 @@ -13332,7 +13332,7 @@ SELECT 78 AS col1, + 15 * + + 4 * 7 AS col1 # Datafusion - Expected - 49 # Datafusion - Expected - -92 # Datafusion - Expected - 960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-92\)\), CASE Int64\(69\) WHEN max\(DISTINCT Int64\(18\)\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) THEN Int64\(66\) END \+ \(\- Int64\(\-46\)\)\)\) AS col2" at position 1 and "\(\- Int64\(\-10\)\) \- Int64\(\-10\) \* Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-92\)\), CASE Int64\(69\) WHEN max\(DISTINCT Int64\(18\)\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) THEN Int64\(66\) END \+ \(\- Int64\(\-46\)\)\)\) AS col2" at position 1 and "\(\- Int64\(\-10\)\) \- Int64\(\-10\) \* Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 49, - NULLIF ( - - 92, CASE + + 69 WHEN + MAX ( DISTINCT + 18 ) + + CAST ( + COUNT ( * ) AS INTEGER ) THEN 66 END + - - 46 ) AS col2, - - 10 - + - 10 * 95 AS col2 query I rowsort @@ -13411,7 +13411,7 @@ SELECT CAST ( + 96 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(CAST\(NULL AS Int64\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ), CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) query I rowsort label-2550 @@ -14922,7 +14922,7 @@ SELECT DISTINCT 89 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) * + + 77 + 61 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -16040,13 +16040,13 @@ SELECT ALL + 19 * - NULLIF ( - COUNT ( * ), 91 * + 39 + + 27 + + + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -254 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-76\) AS col0" at position 0 and "Int64\(31\) \* max\(DISTINCT Int64\(\-79\)\) / sum\(Int64\(11\)\) \* count\(Int64\(80\)\) \+ \(\- CASE Int64\(\-47\) WHEN Int64\(50\) \* Int64\(\-4\) THEN NULL WHEN \(\- CAST\(sum\(\(\- Int64\(54\)\)\) AS Int32\)\) THEN NULL ELSE Int64\(73\) END\) \+ Int64\(\-70\) \+ Int64\(77\) \+ Int64\(35\) \+ Int64\(55\) / Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-76\) AS col0" at position 0 and "Int64\(31\) \* max\(DISTINCT Int64\(\-79\)\) / sum\(Int64\(11\)\) \* count\(Int64\(80\)\) \+ \(\- CASE Int64\(\-47\) WHEN Int64\(50\) \* Int64\(\-4\) THEN NULL WHEN \(\- CAST\(sum\(\(\- Int64\(54\)\)\) AS Int64\)\) THEN NULL ELSE Int64\(73\) END\) \+ Int64\(\-70\) \+ Int64\(77\) \+ Int64\(35\) \+ Int64\(55\) / Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 + - 76 AS col0, 31 * MAX ( DISTINCT + - 79 ) / + + SUM ( ALL + 11 ) * COUNT ( ALL 80 ) + - ( CASE - 47 WHEN + 50 * - 4 THEN NULL WHEN - CAST ( SUM ( ALL - + 54 ) AS INTEGER ) THEN NULL ELSE 73 END ) + - 70 + + ( ( + 77 ) ) + + 35 + + + 55 / - 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 34884 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(Int64\(28\), Int64\(\-37\)\)\) AS Int32\) / Int64\(42\) AS col0" at position 0 and "Int64\(76\) \* Int64\(\-17\) \* Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(Int64\(28\), Int64\(\-37\)\)\) AS Int64\) / Int64\(42\) AS col0" at position 0 and "Int64\(76\) \* Int64\(\-17\) \* Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - COALESCE ( 28, + - 37 ) AS INTEGER ) / + 42 AS col0, 76 * - 17 * - 27 AS col0 query I rowsort @@ -17033,7 +17033,7 @@ SELECT DISTINCT 73 + - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(59\) \+ Int64\(\-10\) \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(59\) \+ Int64\(\-10\) \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 38 AS col2, - CAST ( NULL AS INTEGER ) * 59 + - 10 + 18 AS col2 query I rowsort label-3235 @@ -18477,7 +18477,7 @@ SELECT - - COUNT ( DISTINCT - 38 ) + 45 AS col0, - ( + - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "CAST\(avg\(DISTINCT Int64\(0\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "CAST\(avg\(DISTINCT Int64\(0\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 16 AS col2, + CAST ( + ( + AVG ( DISTINCT - 0 ) ) AS INTEGER ) AS col2 query I rowsort label-3509 @@ -18892,7 +18892,7 @@ SELECT ALL - - 74 * - 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) query II rowsort label-3588 @@ -20442,7 +20442,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 259840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-99\)\) AS col0" at position 0 and "Int64\(58\) \* CAST\(Int64\(70\) AS Int32\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(\-99\)\) AS col0" at position 0 and "Int64\(58\) \* CAST\(Int64\(70\) AS Int64\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) * - - 99 AS col0, + 58 * CAST ( + 70 AS INTEGER ) * + 64 AS col0 query II rowsort @@ -20701,7 +20701,7 @@ SELECT 9 - - CAST ( - 86 AS INTEGER ) * + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\. SELECT ALL 78 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -22078,7 +22078,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 * + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * 86 AS col1 query II rowsort label-4196 @@ -23507,7 +23507,7 @@ SELECT ALL + 61 * - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4689 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(NULL AS Int32\) WHEN \(\- CAST\(Int64\(\-13\) AS Float64\)\) \+ Int64\(\-79\) \* Int64\(28\) \+ Int64\(91\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(16\)\) WHEN Int64\(\-45\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END\) AS col2" at position 0 and "Int64\(41\) \* Int64\(24\) \+ Int64\(97\) \+ Int64\(86\) \* Int64\(42\) \+ CAST\(Int64\(\-8\) AS Int32\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(NULL AS Int64\) WHEN \(\- CAST\(Int64\(\-13\) AS Float64\)\) \+ Int64\(\-79\) \* Int64\(28\) \+ Int64\(91\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(16\)\) WHEN Int64\(\-45\) THEN NULL ELSE \(\- CAST\(NULL AS Int64\)\) END\) AS col2" at position 0 and "Int64\(41\) \* Int64\(24\) \+ Int64\(97\) \+ Int64\(86\) \* Int64\(42\) \+ CAST\(Int64\(\-8\) AS Int64\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + ( + - CASE + CAST ( NULL AS INTEGER ) WHEN - CAST ( - 13 AS FLOAT8 ) + - 79 * + 28 + + 91 THEN NULL WHEN + COUNT ( * ) THEN - + 16 WHEN - 45 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END ) ) AS col2, 41 * + 24 + + 97 + + 86 * 42 + CAST ( - 8 AS INTEGER ) - + - 4 AS col2 query II rowsort label-4467 @@ -25138,7 +25138,7 @@ SELECT 48 * 21 # Datafusion - Expected - -5775 # Datafusion - Expected - -1368 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(72\) AS Int32\) \* Int64\(\-19\) AS col0" at position 1 and "Int64\(85\) \+ \(\- Int64\(94\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(72\) AS Int64\) \* Int64\(\-19\) AS col0" at position 1 and "Int64\(85\) \+ \(\- Int64\(94\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 77 * 75 AS col2, CAST ( + 72 AS INTEGER ) * - 19 AS col0, 85 + - + 94 AS col0 query I rowsort label-4772 @@ -26018,7 +26018,7 @@ SELECT ALL + 73 * - SUM ( ALL - 67 ) AS col0, - 10 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(\-96\) AS col1" at position 0 and "CAST\(\(\- nullif\(Int64\(\-14\), Int64\(33\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(\-96\) AS col1" at position 0 and "CAST\(\(\- nullif\(Int64\(\-14\), Int64\(33\)\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 * - 96 AS col1, + CAST ( - + NULLIF ( - 14, 33 ) AS INTEGER ) AS col1 query I rowsort @@ -26347,7 +26347,7 @@ SELECT 17 + + COUNT ( * ) - + 86 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(37\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(3\) \+ \(\- \(\- max\(Int64\(26\)\)\)\) \+ Int64\(\-83\) \* Int64\(\-54\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(37\) \- \(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(3\) \+ \(\- \(\- max\(Int64\(26\)\)\)\) \+ Int64\(\-83\) \* Int64\(\-54\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) - + 37 - - - CAST ( NULL AS INTEGER ) * + + 3 + - - MAX ( 26 ) + - 83 * - 54 + 53 AS col2, 19 AS col2, + - 25 + - CAST ( COUNT ( * ) AS INTEGER ) * 74 AS col2 query I rowsort @@ -27532,7 +27532,7 @@ SELECT 35 * + 26 col0, 50 * + - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ count\(Int64\(41\)\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ count\(Int64\(41\)\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 AS col1, CAST ( NULL AS INTEGER ) + + COUNT ( 41 ) * 43 AS col1 query I rowsort @@ -28056,7 +28056,7 @@ SELECT + CASE WHEN COUNT ( * ) <> - CAST ( NULL AS INTEGER ) * MAX ( + 74 ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \- Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 17 ) AS col0, CAST ( NULL AS INTEGER ) - 62 AS col0 query I rowsort label-5324 @@ -30270,7 +30270,7 @@ SELECT + 8 + + NULLIF ( NULLIF ( COUNT ( * ), - 84 - - ( - ( + + 73 ) ) ), 78 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) / Int64\(\-41\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-40\), \(\- Int64\(51\)\) \* Int64\(43\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) / Int64\(\-41\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- coalesce\(Int64\(\-40\), \(\- Int64\(51\)\) \* Int64\(43\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 17 / + - 41 AS col1, CAST ( NULL AS INTEGER ) * - + COALESCE ( + ( + - 40 ), - + 51 * + 43 ) AS col1 query I rowsort label-5750 @@ -31012,7 +31012,7 @@ SELECT 5 * - + 48 * - 45, + ( - COUNT ( * ) ) * + 31 * - 48 col2 # Datafusion - Expected - 77 # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(65\) \* \(\- Int64\(\-75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(65\) \* \(\- Int64\(\-75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 77 AS col2, CAST ( NULL AS INTEGER ) + 65 * - - 75 AS col2, + 44 query I rowsort @@ -34509,7 +34509,7 @@ SELECT DISTINCT + + ( + 79 ) + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(78\) AS col2" at position 0 and "nullif\(CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(\-55\)\) \+ Int64\(\-45\) THEN NULL WHEN CAST\(coalesce\(Int64\(\-21\), Int64\(52\), Int64\(95\)\) AS Int32\) THEN NULL WHEN \(\- Int64\(\-57\)\) \- Int64\(95\) THEN CAST\(NULL AS Int32\) \* Int64\(9\) END, \(\- Int64\(66\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(78\) AS col2" at position 0 and "nullif\(CASE CAST\(NULL AS Int64\) WHEN \(\- Int64\(\-55\)\) \+ Int64\(\-45\) THEN NULL WHEN CAST\(coalesce\(Int64\(\-21\), Int64\(52\), Int64\(95\)\) AS Int64\) THEN NULL WHEN \(\- Int64\(\-57\)\) \- Int64\(95\) THEN CAST\(NULL AS Int64\) \* Int64\(9\) END, \(\- Int64\(66\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 63 + 78 col2, NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN - - 55 + - 45 THEN NULL WHEN CAST ( COALESCE ( - 21, 52, + 95 ) AS INTEGER ) THEN NULL WHEN ( - - 57 ) - + 95 THEN CAST ( NULL AS INTEGER ) * 9 END, - + 66 ) col2 query I rowsort label-6559 @@ -39373,7 +39373,7 @@ SELECT CASE + 70 WHEN - 94 * + 2 + - - MAX ( 70 ) THEN - 96 WHEN - 47 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-78\) \+ Int64\(83\) AS col1" at position 0 and "\(\- Int64\(\-46\)\) \+ nullif\(Int64\(43\), Int64\(\-62\) \* CAST\(NULL AS Int32\) \* Int64\(82\) \+ Int64\(\-34\) \* Int64\(33\) \+ Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-78\) \+ Int64\(83\) AS col1" at position 0 and "\(\- Int64\(\-46\)\) \+ nullif\(Int64\(43\), Int64\(\-62\) \* CAST\(NULL AS Int64\) \* Int64\(82\) \+ Int64\(\-34\) \* Int64\(33\) \+ Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + - 78 + + 83 AS col1, - ( - 46 ) + NULLIF ( + 43, - 62 * CAST ( NULL AS INTEGER ) * 82 + - 34 * + 33 + + ( + 47 ) ) AS col1 query I rowsort label-7481 @@ -42227,7 +42227,7 @@ SELECT - 83 + + 30 / 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ max\(Int64\(\-97\)\) / Int64\(\-63\) AS col2" at position 0 and "Int64\(88\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ max\(Int64\(\-97\)\) / Int64\(\-63\) AS col2" at position 0 and "Int64\(88\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 89 + + + MAX ( ALL - 97 ) / - 63 AS col2, 88 * + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -42904,7 +42904,7 @@ SELECT - ( 11 ) AS col0, - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ Int64\(\-53\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ Int64\(\-53\) 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\. SELECT - 90 + - 53 AS col0, CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -47540,7 +47540,7 @@ SELECT 76 / + + 88 / COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(\-7\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- Int64\(\-7\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 34 / + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - - 7 AS col2 # Datafusion - Data was automatically updated based on comparison db results @@ -49516,7 +49516,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -1980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "\(\- nullif\(Int64\(11\), coalesce\(CAST\(Int64\(33\) AS Int32\), Int64\(68\) \* Int64\(\-21\) \+ Int64\(\-27\) \+ Int64\(82\)\)\)\) \* coalesce\(CASE \(\- max\(Int64\(76\)\)\) WHEN Int64\(81\) THEN \(\- count\(Int64\(77\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE CASE \(\- Int64\(9\)\) WHEN Int64\(61\) THEN NULL WHEN Int64\(\-37\) THEN Int64\(96\) \+ Int64\(20\) \+ CAST\(NULL AS Int32\) END \- Int64\(\-61\) \+ Int64\(84\) END, Int64\(94\) \+ Int64\(86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "\(\- nullif\(Int64\(11\), coalesce\(CAST\(Int64\(33\) AS Int64\), Int64\(68\) \* Int64\(\-21\) \+ Int64\(\-27\) \+ Int64\(82\)\)\)\) \* coalesce\(CASE \(\- max\(Int64\(76\)\)\) WHEN Int64\(81\) THEN \(\- count\(Int64\(77\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE CASE \(\- Int64\(9\)\) WHEN Int64\(61\) THEN NULL WHEN Int64\(\-37\) THEN Int64\(96\) \+ Int64\(20\) \+ CAST\(NULL AS Int64\) END \- Int64\(\-61\) \+ Int64\(84\) END, Int64\(94\) \+ Int64\(86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col0, - NULLIF ( 11, COALESCE ( CAST ( 33 AS INTEGER ), 68 * - 21 + + - 27 + 82 ) ) * COALESCE ( + CASE - MAX ( + 76 ) WHEN + 81 THEN - COUNT ( ALL 77 ) + + COUNT ( * ) ELSE CASE + - ( 9 ) WHEN + ( + 61 ) THEN NULL WHEN - 37 THEN 96 + 20 + CAST ( NULL AS INTEGER ) END - + ( - 61 + 84 ) END, 94 + 86 ) AS col0 query I rowsort label-9420 @@ -51439,7 +51439,7 @@ SELECT 49 * + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(9\) \+ \(\- CAST\(Int64\(82\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(9\) \+ \(\- CAST\(Int64\(82\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 94 AS col0, 9 + - CAST ( 82 AS INTEGER ) col0 query I rowsort label-9785 @@ -51920,7 +51920,7 @@ SELECT ALL 18 - + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -1059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "CASE \(\- Int64\(38\)\) WHEN Int64\(\-68\) \* Int64\(18\) THEN CAST\(Int64\(\-61\) AS Int32\) WHEN Int64\(99\) THEN \(\- Int64\(6\)\) ELSE \(\- coalesce\(Int64\(49\), Int64\(94\), Int64\(\-14\), Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- \(\- Int64\(23\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-50\) END \* Int64\(38\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "CASE \(\- Int64\(38\)\) WHEN Int64\(\-68\) \* Int64\(18\) THEN CAST\(Int64\(\-61\) AS Int64\) WHEN Int64\(99\) THEN \(\- Int64\(6\)\) ELSE \(\- coalesce\(Int64\(49\), Int64\(94\), Int64\(\-14\), Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- \(\- Int64\(23\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-50\) END \* Int64\(38\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 56 col0, + CASE - + ( 38 ) WHEN - 68 * + 18 THEN + CAST ( - 61 AS INTEGER ) WHEN 99 THEN - ( + 6 ) ELSE - + COALESCE ( + + 49, 94, - 14, + + 51 * + - COUNT ( * ) ) - - + 23 + + COUNT ( * ) / - 50 END * + + 38 + - 71 col0 query I rowsort label-9878 diff --git a/data/sqlite/random/expr/slt_good_110.slt b/data/sqlite/random/expr/slt_good_110.slt index b707531..38c4ab9 100644 --- a/data/sqlite/random/expr/slt_good_110.slt +++ b/data/sqlite/random/expr/slt_good_110.slt @@ -1407,7 +1407,7 @@ SELECT - 40 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -940 # Datafusion - Expected - 7144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(94\) \* \(\- \(\- CAST\(Int64\(1\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(94\) \* Int64\(76\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(94\) \* \(\- \(\- CAST\(Int64\(1\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(94\) \* Int64\(76\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 * 94 * - - CAST ( 1 AS INTEGER ) AS col1, + 94 * 76 / + + COUNT ( * ) AS col1 query I rowsort @@ -2248,7 +2248,7 @@ SELECT ALL 16 - - CAST ( NULLIF ( - 66, + + 55 ) AS INTEGER ) # Datafusion - Expected - -1220 # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-61\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / max\(Int64\(84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-61\) AS col2" at position 0 and "CAST\(NULL AS Int64\) / max\(Int64\(84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + 20 ) * ( + - 61 ) AS col2, CAST ( NULL AS INTEGER ) / MAX ( 84 ) AS col2, + 63 AS col2 query I rowsort @@ -3543,7 +3543,7 @@ SELECT DISTINCT 46 / - 73 AS col2, 94 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(92\) AS col2" at position 0 and "CASE nullif\(Int64\(\-12\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- coalesce\(sum\(Int64\(\-82\)\), CASE \(\- Int64\(95\)\) WHEN Int64\(65\) THEN Int64\(\-93\) \+ \(\- min\(Int64\(23\)\)\) \+ CAST\(count\(Int64\(34\)\) AS Int32\) \* Int64\(\-18\) \- Int64\(\-78\) ELSE Int64\(80\) END\)\)\)\) WHEN Int64\(21\) THEN CASE Int64\(\-96\) WHEN Int64\(69\) \* Int64\(\-72\) THEN count\(Int64\(\-34\)\) \* Int64\(47\) WHEN Int64\(84\) \+ Int64\(82\) THEN NULL ELSE NULL END \* Int64\(10\) \+ Int64\(\-1\) \* Int64\(43\) ELSE Int64\(22\) END \* \(\- nullif\(Int64\(3\), Int64\(82\) \+ Int64\(8\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(92\) AS col2" at position 0 and "CASE nullif\(Int64\(\-12\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- coalesce\(sum\(Int64\(\-82\)\), CASE \(\- Int64\(95\)\) WHEN Int64\(65\) THEN Int64\(\-93\) \+ \(\- min\(Int64\(23\)\)\) \+ CAST\(count\(Int64\(34\)\) AS Int64\) \* Int64\(\-18\) \- Int64\(\-78\) ELSE Int64\(80\) END\)\)\)\) WHEN Int64\(21\) THEN CASE Int64\(\-96\) WHEN Int64\(69\) \* Int64\(\-72\) THEN count\(Int64\(\-34\)\) \* Int64\(47\) WHEN Int64\(84\) \+ Int64\(82\) THEN NULL ELSE NULL END \* Int64\(10\) \+ Int64\(\-1\) \* Int64\(43\) ELSE Int64\(22\) END \* \(\- nullif\(Int64\(3\), Int64\(82\) \+ Int64\(8\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 11 + + 92 AS col2, CASE + NULLIF ( + ( - 12 ), + COALESCE ( + COUNT ( * ), - COALESCE ( + SUM ( + - 82 ), + CASE - + 95 WHEN 65 THEN - 93 + + - MIN ( ALL 23 ) + + CAST ( + COUNT ( 34 ) AS INTEGER ) * - 18 - - 78 ELSE + + 80 END ) ) ) WHEN 21 THEN CASE - 96 WHEN ( + 69 ) * - 72 THEN COUNT ( - 34 ) * 47 WHEN + 84 + + 82 THEN NULL ELSE NULL END * + 10 + - 1 * + ( 43 ) ELSE + 22 END * - ( + NULLIF ( 3, 82 + + 8 ) ) AS col2 query I rowsort @@ -3731,7 +3731,7 @@ SELECT DISTINCT + 60 * + 17 * + - ( - 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(9\) \* Int64\(\-64\) AS col1" at position 0 and "\(\- sum\(DISTINCT CAST\(Int64\(\-58\) AS Int32\)\)\) / \(\- sum\(DISTINCT Int64\(\-73\)\)\) \+ nullif\(Int64\(\-64\), \(\- Int64\(71\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(9\) \* Int64\(\-64\) AS col1" at position 0 and "\(\- sum\(DISTINCT CAST\(Int64\(\-58\) AS Int64\)\)\) / \(\- sum\(DISTINCT Int64\(\-73\)\)\) \+ nullif\(Int64\(\-64\), \(\- Int64\(71\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) / + ( ( + 9 ) ) * - 64 AS col1, + ( - + SUM ( DISTINCT + + CAST ( - 58 AS INTEGER ) ) ) / - + SUM ( DISTINCT - 73 ) + NULLIF ( - 64, - + 71 ) + COUNT ( * ) + + COUNT ( * ) AS col1 query I rowsort label-702 @@ -5563,7 +5563,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -400 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-87\) \+ \(\- min\(DISTINCT CAST\(NULL AS Int32\)\)\) \+ Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-87\) \+ \(\- min\(DISTINCT CAST\(NULL AS Int64\)\)\) \+ Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col1, 10 * + - 40, - 87 + - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + + 31 AS col1 query I rowsort @@ -10511,7 +10511,7 @@ SELECT 28 / + 1 + - 59 / 86 * 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(46\)\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(46\)\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + - CAST ( - COUNT ( ALL + 46 ) AS INTEGER ) ) AS col0, + 94 col0 query I rowsort label-1991 @@ -11771,7 +11771,7 @@ SELECT - 60 + 69 * - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CASE \(\- Int64\(\-42\)\) WHEN Int64\(86\) THEN Int64\(79\) END \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "CASE \(\- Int64\(\-42\)\) WHEN Int64\(86\) THEN Int64\(79\) END \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, CASE - - 42 WHEN + + 86 THEN + 79 END * - 48 AS col0 query II rowsort label-2231 @@ -13251,7 +13251,7 @@ SELECT - 7 + COUNT ( * ) * + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(95\) AS Int32\)\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(95\) AS Int64\)\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 95 AS INTEGER ) col1, 79 AS col1 query I rowsort @@ -13960,7 +13960,7 @@ SELECT ALL - + NULLIF ( + - 7, + 48 * + ( 13 ) + + 21 + - 70 / + 77 ) + + + 34 - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- \(\- sum\(Int64\(68\)\)\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- \(\- sum\(Int64\(68\)\)\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2, - ( + ( - SUM ( ALL + + 68 ) ) ) * + - 0 AS col2 query II rowsort @@ -14078,7 +14078,7 @@ SELECT NULLIF ( - - 83, - COUNT ( * ) ) + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \+ Int64\(54\), \(\- \(\- nullif\(Int64\(2\), Int64\(\-52\) \* Int64\(35\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\)\)\) \+ Int64\(43\) \- Int64\(14\) \- Int64\(98\) \* Int64\(90\) \* Int64\(\-7\) \* \(\- Int64\(75\)\) \* \(\- Int64\(16\)\)\)\) \* Int64\(\-5\) \+ Int64\(\-56\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-73\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \+ Int64\(54\), \(\- \(\- nullif\(Int64\(2\), Int64\(\-52\) \* Int64\(35\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\)\)\)\) \+ Int64\(43\) \- Int64\(14\) \- Int64\(98\) \* Int64\(90\) \* Int64\(\-7\) \* \(\- Int64\(75\)\) \* \(\- Int64\(16\)\)\)\) \* Int64\(\-5\) \+ Int64\(\-56\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-73\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + 13, + + COUNT ( * ) * 47 + + 54, - - NULLIF ( 2, - 52 * 35 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 43 - + + 14 - + 98 * 90 * - 7 * - ( + 75 ) * - + 16 ) * ( - 5 ) + - 56 col1, + NULLIF ( - - 73, COUNT ( * ) ) AS col1 # Datafusion - Types were automatically converted from: @@ -16183,7 +16183,7 @@ SELECT DISTINCT + MIN ( - 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -191 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(DISTINCT Int64\(24\)\) AS Int32\)\) \* Int64\(8\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(DISTINCT Int64\(24\)\) AS Int64\)\) \* Int64\(8\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + AVG ( DISTINCT + 24 ) AS INTEGER ) * + 8 - + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-3063 @@ -18152,7 +18152,7 @@ SELECT ALL - 57 * - + 0 * + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-68\)\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-68\)\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( - CAST ( NULL AS INTEGER ), - 68 ) AS col1, - 23 AS col1 query I rowsort label-3441 @@ -20450,7 +20450,7 @@ SELECT ALL - 11 - + 25 / ( + 85 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2576 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(56\) THEN CASE Int64\(\-77\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN NULL WHEN Int64\(2\) THEN \(\- Int64\(62\)\) \* Int64\(85\) \* \(\- Int64\(35\)\) ELSE \(\- Int64\(\-37\)\) \* Int64\(51\) \+ Int64\(75\) / Int64\(72\) END WHEN Int64\(85\) THEN NULL ELSE Int64\(28\) END \* Int64\(\-92\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(56\) THEN CASE Int64\(\-77\) WHEN \(\- \(\- CAST\(NULL AS Int64\)\)\) THEN NULL WHEN Int64\(2\) THEN \(\- Int64\(62\)\) \* Int64\(85\) \* \(\- Int64\(35\)\) ELSE \(\- Int64\(\-37\)\) \* Int64\(51\) \+ Int64\(75\) / Int64\(72\) END WHEN Int64\(85\) THEN NULL ELSE Int64\(28\) END \* Int64\(\-92\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + + ( + COUNT ( * ) ) WHEN 56 THEN + CASE - 77 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 2 THEN - + 62 * + 85 * - ( + 35 ) ELSE - - 37 * 51 + + + 75 / 72 END WHEN + 85 THEN NULL ELSE 28 END * - 92 AS col0, 0 AS col0 query I rowsort label-3878 @@ -24885,7 +24885,7 @@ SELECT ALL - ( + 64 ) / - 36 - + 18 # Datafusion - Expected - NULL # Datafusion - Expected - 110 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "min\(Int64\(38\)\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "min\(Int64\(38\)\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 60 * - - CAST ( NULL AS INTEGER ) * - - 93 AS col2, + MIN ( ALL + 38 ) + 72 col2, + ( 39 ) AS col2 query II rowsort label-4724 @@ -27767,7 +27767,7 @@ SELECT + COALESCE ( - - COUNT ( * ), - ( + + 15 ) * 72, COALESCE ( 27, - 55, 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(0\) \+ Int64\(14\) \+ Int64\(\-18\) \- \(\- CASE Int64\(\-2\) WHEN \(\- Int64\(\-6\)\) THEN NULL ELSE Int64\(47\) END\) \+ Int64\(54\) \* Int64\(26\) \* Int64\(\-34\) \+ Int64\(\-91\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(0\) \+ Int64\(14\) \+ Int64\(\-18\) \- \(\- CASE Int64\(\-2\) WHEN \(\- Int64\(\-6\)\) THEN NULL ELSE Int64\(47\) END\) \+ Int64\(54\) \* Int64\(26\) \* Int64\(\-34\) \+ Int64\(\-91\) / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 AS col0, + 0 + ( + + 14 ) + - 18 - - CASE - 2 WHEN - - 6 THEN NULL ELSE 47 END + 54 * + 26 * - 34 + + - 91 / + + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -30539,7 +30539,7 @@ SELECT - + 13, 49 * + MAX ( - 10 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-42\) AS Int32\) \+ Int64\(\-56\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-42\) AS Int64\) \+ Int64\(\-56\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 42 AS INTEGER ) + - 56 + 33 AS col1, 52 AS col1 query I rowsort @@ -31946,7 +31946,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-67\), Int64\(29\) / Int64\(2\) \+ Int64\(13\)\) AS col2" at position 0 and "Int64\(10\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-67\), Int64\(29\) / Int64\(2\) \+ Int64\(13\)\) AS col2" at position 0 and "Int64\(10\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - 67, 29 / 2 + 13 ) AS col2, 10 * + + ( CAST ( NULL AS INTEGER ) ) col2 query I rowsort @@ -32255,7 +32255,7 @@ SELECT 3 + MAX ( DISTINCT - 69 ) + 46 + - + 83 + 22 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(78\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(78\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - CAST ( 78 AS INTEGER ) ) AS col2, + 40 AS col2 query I rowsort @@ -32619,7 +32619,7 @@ SELECT DISTINCT COUNT ( ALL + 36 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - CAST ( NULL AS INTEGER ) ) AS col0, 56 AS col0 query I rowsort label-6196 @@ -33503,7 +33503,7 @@ SELECT ALL MAX ( ALL 51 ) * COUNT ( * ) + 55 col1 # Datafusion - Expected - -10 # Datafusion - Expected - -34 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) / Int64\(\-5\) AS col2" at position 0 and "coalesce\(\(\- CAST\(Int64\(34\) AS Int32\)\), Int64\(37\), Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) / Int64\(\-5\) AS col2" at position 0 and "coalesce\(\(\- CAST\(Int64\(34\) AS Int64\)\), Int64\(37\), Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 / - 5 AS col2, COALESCE ( - + CAST ( + 34 AS INTEGER ), + 37, + 48 ) AS col2, - + COUNT ( * ) query II rowsort label-6364 @@ -35827,7 +35827,7 @@ SELECT - COUNT ( * ) + + - ( + NULLIF ( + + 32, 51 ) ) * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int64\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 90 AS INTEGER ) AS col2, 95 col2 query II rowsort @@ -36474,7 +36474,7 @@ SELECT - COALESCE ( - - 32, + 91 * - 65 * ( SUM ( - 29 ) ) ) - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(avg\(Int64\(8\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-57\) \+ Int64\(93\) \+ Int64\(71\) \- Int64\(1\) \+ Int64\(\-32\) \+ Int64\(18\) \+ CASE Int64\(64\) WHEN Int64\(\-99\) THEN Int64\(85\) \+ Int64\(28\) ELSE NULL END \* Int64\(26\) \+ Int64\(44\) / Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(avg\(Int64\(8\)\) AS Int64\) AS col2" at position 0 and "Int64\(\-57\) \+ Int64\(93\) \+ Int64\(71\) \- Int64\(1\) \+ Int64\(\-32\) \+ Int64\(18\) \+ CASE Int64\(64\) WHEN Int64\(\-99\) THEN Int64\(85\) \+ Int64\(28\) ELSE NULL END \* Int64\(26\) \+ Int64\(44\) / Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( CAST ( + AVG ( 8 ) AS INTEGER ) ) AS col2, - 57 + + + 93 + + 71 - 1 + - 32 + + 18 + + CASE 64 WHEN - 99 THEN + 85 + + 28 ELSE NULL END * 26 + 44 / 90 AS col2 query I rowsort label-6937 @@ -38740,7 +38740,7 @@ SELECT ALL - 67 + + 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(\-95\) \+ CAST\(Int64\(67\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(\-95\) \+ CAST\(Int64\(67\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 AS col2, - 95 + + CAST ( 67 AS INTEGER ) col2 query I rowsort label-7367 @@ -38813,7 +38813,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* \(\- CAST\(NULL AS Int32\)\) \* coalesce\(\(\- Int64\(\-23\)\), \(\- CAST\(NULL AS Int32\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* \(\- CAST\(NULL AS Int64\)\) \* coalesce\(\(\- Int64\(\-23\)\), \(\- CAST\(NULL AS Int64\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 78 * - CAST ( NULL AS INTEGER ) * + COALESCE ( - - 23, - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 query I rowsort @@ -39321,7 +39321,7 @@ SELECT ALL 65 * COALESCE ( - 49, + 81 * + 80 * - 67, - 37 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "CASE \(\- Int64\(\-18\)\) WHEN Int64\(\-97\) THEN Int64\(12\) \* \(\- sum\(Int64\(0\)\)\) / Int64\(82\) ELSE Int64\(\-94\) \* \(\- Int64\(\-56\)\) END \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "CASE \(\- Int64\(\-18\)\) WHEN Int64\(\-97\) THEN Int64\(12\) \* \(\- sum\(Int64\(0\)\)\) / Int64\(82\) ELSE Int64\(\-94\) \* \(\- Int64\(\-56\)\) END \- \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 17 AS col0, CASE - - 18 WHEN + - 97 THEN 12 * + - SUM ( 0 ) / + + 82 ELSE - 94 * - - 56 END - - CAST ( NULL AS INTEGER ) + - 99 AS col0 query II rowsort @@ -40559,7 +40559,7 @@ SELECT ALL 10 AS col1, - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(97\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(97\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 62 col0, 97 * + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-7712 @@ -41315,7 +41315,7 @@ SELECT DISTINCT + 15 * 70 + + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(42\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(42\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( CAST ( NULL AS INTEGER ) ) AS col0, 42 - 39 AS col0 query II rowsort label-7854 @@ -43782,7 +43782,7 @@ SELECT ALL + 25 + + ( + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ nullif\(Int64\(\-48\), \(\- CAST\(Int64\(\-21\) AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ nullif\(Int64\(\-48\), \(\- CAST\(Int64\(\-21\) AS Int64\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 51 + - - COUNT ( * ) + + NULLIF ( - 48, - + CAST ( + - 21 AS INTEGER ) ) AS col0, + COUNT ( * ) AS col0 query I rowsort label-8326 @@ -43908,7 +43908,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-64\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(\-64\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + - - 64 AS col2, + ( + 21 ) AS col2 query I rowsort label-8350 @@ -44719,7 +44719,7 @@ SELECT - SUM ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) + + + 99 AS col1 query I rowsort @@ -45116,7 +45116,7 @@ SELECT COUNT ( * ), - COUNT ( DISTINCT + 9 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 656 # Datafusion - Expected - -223174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- CAST\(Int64\(\-41\) AS Int32\)\) AS col0" at position 0 and "Int64\(26\) \- \(\- Int64\(1\)\) \* Int64\(80\) \* Int64\(\-30\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- CAST\(Int64\(\-41\) AS Int64\)\) AS col0" at position 0 and "Int64\(26\) \- \(\- Int64\(1\)\) \* Int64\(80\) \* Int64\(\-30\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 16 * + ( + - CAST ( + - 41 AS INTEGER ) ) AS col0, 26 - - ( 1 ) * 80 * - 30 * + 93 AS col0 query II rowsort @@ -47319,7 +47319,7 @@ SELECT 16 / - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(44\) \+ \(\- Int64\(56\)\) \+ \(\- CAST\(Int64\(75\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(44\) \+ \(\- Int64\(56\)\) \+ \(\- CAST\(Int64\(75\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 56 AS col1, 44 + - + 56 + - CAST ( ( 75 ) AS INTEGER ) AS col1 query I rowsort label-8998 @@ -47964,7 +47964,7 @@ SELECT - - 87 - - 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-42\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-42\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col1, - 42 + + 18 AS col1 query I rowsort label-9119 @@ -50285,7 +50285,7 @@ SELECT DISTINCT + 80 * + ( + 5 ) AS col0, + MAX ( DISTINCT 47 ) # Datafusion - Expected - NULL # Datafusion - Expected - -1014 # Datafusion - Expected - 48048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- CAST\(NULL AS Int32\)\) \* nullif\(Int64\(\-5\), \(\- Int64\(35\)\)\) \+ \(\- Int64\(79\)\) \+ Int64\(\-37\) AS col2" at position 0 and "Int64\(28\) \* Int64\(\-52\) \* \(\- Int64\(33\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- CAST\(NULL AS Int64\)\) \* nullif\(Int64\(\-5\), \(\- Int64\(35\)\)\) \+ \(\- Int64\(79\)\) \+ Int64\(\-37\) AS col2" at position 0 and "Int64\(28\) \* Int64\(\-52\) \* \(\- Int64\(33\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 12 * - CAST ( NULL AS INTEGER ) * + NULLIF ( - 5, - + 35 ) + ( - + 79 ) + - 37 AS col2, 78 * + - 13 AS col0, 28 * - 52 * - + 33 AS col2 query I rowsort label-9555 @@ -50698,7 +50698,7 @@ SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) 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\. SELECT 20 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-9632 @@ -52251,7 +52251,7 @@ SELECT NULLIF ( - - 90, + 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(81\) AS col1" at position 0 and "Int64\(88\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN \(\- coalesce\(Int64\(30\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(98\)\)\) THEN max\(DISTINCT Int64\(86\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(81\) AS col1" at position 0 and "Int64\(88\) \+ CASE \(\- CAST\(NULL AS Int64\)\) WHEN \(\- coalesce\(Int64\(30\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(98\)\)\) THEN max\(DISTINCT Int64\(86\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - COUNT ( * ) ) * + 81 col1, + 88 + + CASE + - CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + 30, + COUNT ( * ) * 98 ) THEN MAX ( DISTINCT 86 ) ELSE NULL END AS col1 query I rowsort label-9931 diff --git a/data/sqlite/random/expr/slt_good_111.slt b/data/sqlite/random/expr/slt_good_111.slt index ac34f4c..f039cfd 100644 --- a/data/sqlite/random/expr/slt_good_111.slt +++ b/data/sqlite/random/expr/slt_good_111.slt @@ -3643,7 +3643,7 @@ SELECT - - 59 + - 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "coalesce\(Int64\(64\), Int64\(24\) \* CAST\(NULL AS Int32\) \+ \(\- Int64\(52\)\) \* Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "coalesce\(Int64\(64\), Int64\(24\) \* CAST\(NULL AS Int64\) \+ \(\- Int64\(52\)\) \* Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 78 col2, COALESCE ( ( 64 ), + 24 * + CAST ( NULL AS INTEGER ) + - + 52 * - 35 ) AS col2 query I rowsort @@ -5903,7 +5903,7 @@ SELECT DISTINCT + 10 * 56 + + 61 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1, CASE COALESCE ( - - 80, - 35 / + COUNT ( * ), - 71, + - 41 ) WHEN 79 THEN - + NULLIF ( 8, - NULLIF ( + - ( + 8 ), 20 ) ) * - CAST ( NULL AS INTEGER ) WHEN - 66 THEN NULL ELSE NULL END - + 31, - COUNT ( * ) AS col1 query I rowsort label-1117 @@ -7552,7 +7552,7 @@ SELECT + 10 * + + CAST ( + CASE + 44 WHEN 95 * - COUNT ( * ) THEN + 75 WHEN 85 T # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(41\) AS col1" at position 0 and "Int64\(79\) / Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(41\) AS col1" at position 0 and "Int64\(79\) / Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( NULL AS INTEGER ) * 41 AS col1, + 79 / + + 94 AS col1 query I rowsort @@ -8715,7 +8715,7 @@ SELECT CASE - 40 WHEN 8 THEN NULL WHEN - 94 * 49 * 7 THEN NULL ELSE + - 9 / - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2870 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(33\) \* min\(Int64\(1\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(13\) \* CAST\(NULL AS Int32\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(33\) \* min\(Int64\(1\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(13\) \* CAST\(NULL AS Int64\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 * 33 * + MIN ( + ( 1 ) ) + - COUNT ( * ) AS col0, 13 * CAST ( NULL AS INTEGER ) + + 5 AS col0 # Datafusion - Types were automatically converted from: @@ -9282,7 +9282,7 @@ SELECT - COUNT ( * ) - - - 74 / + ( + 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(45\) AS Int32\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(45\) AS Int64\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( + 45 AS INTEGER ) AS col1, + 55 AS col1 query I rowsort label-1766 @@ -11304,7 +11304,7 @@ SELECT ALL + COUNT ( * ) / + - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, + 61 col0 query I rowsort label-2155 @@ -12615,7 +12615,7 @@ SELECT COALESCE ( + 19, + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - ( + ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- max\(\(\- Int64\(28\)\)\)\) AS col0" at position 0 and "Int64\(70\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- max\(\(\- Int64\(28\)\)\)\) AS col0" at position 0 and "Int64\(70\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - MAX ( ALL - + 28 ) AS col0, 70 + + 91 AS col0 query I rowsort @@ -13763,7 +13763,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 1059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(9\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(53\)\) \+ CAST\(Int64\(24\) AS Int32\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(9\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(53\)\) \+ CAST\(Int64\(24\) AS Int64\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 47 AS col0, 9 * - ( - + COUNT ( * ) ) * - ( + 53 ) + CAST ( 24 AS INTEGER ) * 64 AS col0 # Datafusion - Datafusion expected results: @@ -14670,7 +14670,7 @@ SELECT 69 AS col1, - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(22\) AS Int32\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(22\) AS Int64\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + 22 AS INTEGER ) AS col0, 30 AS col0 query II rowsort @@ -15085,7 +15085,7 @@ SELECT ALL + + 15 * - CAST ( - 89 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 AS col1, - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -19100,7 +19100,7 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 40 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 1 and "\(\- \(\- CAST\(Int64\(91\) AS Int32\)\)\) \+ Int64\(6\) \+ \(\- Int64\(72\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 1 and "\(\- \(\- CAST\(Int64\(91\) AS Int64\)\)\) \+ Int64\(6\) \+ \(\- Int64\(72\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 68 * + COUNT ( * ), 40 AS col0, - - CAST ( + 91 AS INTEGER ) + + 6 + - + 72 AS col0 query I rowsort @@ -22306,7 +22306,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -335 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \- Int64\(\-68\) \* Int64\(\-4\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \- Int64\(\-68\) \* Int64\(\-4\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - 63 ) - - 68 * - 4 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query II rowsort @@ -22471,7 +22471,7 @@ SELECT DISTINCT + COUNT ( * ) * - - 98 - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -675 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* \(\- Int64\(\-15\)\) AS col0" at position 0 and "nullif\(nullif\(Int64\(79\), \(\- CAST\(Int64\(\-88\) AS Int32\)\)\), \(\- coalesce\(Int64\(23\), Int64\(43\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* \(\- Int64\(\-15\)\) AS col0" at position 0 and "nullif\(nullif\(Int64\(79\), \(\- CAST\(Int64\(\-88\) AS Int64\)\)\), \(\- coalesce\(Int64\(23\), Int64\(43\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 45 * - - 15 AS col0, NULLIF ( + NULLIF ( 79, + - CAST ( - 88 AS INTEGER ) ), - COALESCE ( 23, + 43 ) ) AS col0 query II rowsort label-4283 @@ -22946,7 +22946,7 @@ SELECT - COUNT ( + - 92 ) * - 9 * + 54 + + 9 / + - ( + - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 39 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-4373 @@ -22986,7 +22986,7 @@ SELECT ALL 10 + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(96\) \+ Int64\(5\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- Int64\(96\) \+ Int64\(5\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) - + + 96 + + 5 col2, COUNT ( * ) AS col2 query II rowsort label-4380 @@ -23044,7 +23044,7 @@ SELECT + 82 + - - COALESCE ( - 85, ( - 15 ) * + 53 ) / + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(63\) \+ Int64\(\-52\) \* nullif\(CAST\(NULL AS Int32\), Int64\(\-53\)\) \* Int64\(\-63\) \+ Int64\(95\) \- Int64\(71\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(63\) \+ Int64\(\-52\) \* nullif\(CAST\(NULL AS Int64\), Int64\(\-53\)\) \* Int64\(\-63\) \+ Int64\(95\) \- Int64\(71\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 1 * 63 + - 52 * + NULLIF ( + CAST ( NULL AS INTEGER ), + - 53 ) * - 63 + + + 95 - + 71 AS col0, + COUNT ( * ) col0 query II rowsort @@ -27658,7 +27658,7 @@ SELECT ALL NULLIF ( + + COUNT ( * ), - 58 * - ( - - 35 ) + - - COUNT ( - + 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / min\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(DISTINCT Int64\(94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / min\(CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(DISTINCT Int64\(94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) / + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( DISTINCT + 94 ) AS col1 query I rowsort label-5268 @@ -27929,7 +27929,7 @@ SELECT + 33 * - MAX ( + + ( + ( + 41 ) ) ) * - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(63\) AS col0" at position 0 and "Int64\(33\) \+ Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(63\) AS col0" at position 0 and "Int64\(33\) \+ Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * + 63 AS col0, 33 + 21 AS col0 query I rowsort @@ -28885,7 +28885,7 @@ SELECT + 86 - + 99 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(21\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(40\) \- Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(21\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(40\) \- Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 94 AS col0, + 21 + - - CAST ( NULL AS INTEGER ) + + 40 - + - 10 AS col0 query I rowsort label-5500 @@ -29507,7 +29507,7 @@ SELECT 56 / - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-17\) AS Int32\) \- CAST\(NULL AS Int32\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-96\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-17\) AS Int64\) \- CAST\(NULL AS Int64\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(\-96\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 17 AS INTEGER ) - + CAST ( NULL AS INTEGER ) * + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, - 96 * - 85 AS col0 query I rowsort label-5617 @@ -30346,7 +30346,7 @@ SELECT ALL + ( - 70 ) + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ CASE Int64\(8\) WHEN Int64\(77\) \+ \(\- CAST\(Int64\(46\) AS Int32\)\) THEN Int64\(\-93\) \+ coalesce\(Int64\(4\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(21\) \* Int64\(\-25\) \* \(\- Int64\(\-78\)\) \* Int64\(18\) ELSE NULL END AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ CASE Int64\(8\) WHEN Int64\(77\) \+ \(\- CAST\(Int64\(46\) AS Int64\)\) THEN Int64\(\-93\) \+ coalesce\(Int64\(4\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(21\) \* Int64\(\-25\) \* \(\- Int64\(\-78\)\) \* Int64\(18\) ELSE NULL END AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + CASE 8 WHEN 77 + + ( - + CAST ( + 46 AS INTEGER ) ) THEN + - 93 + + COALESCE ( + 4, + COUNT ( * ) ) + + 21 * - 25 * - - 78 * 18 ELSE NULL END col2, COUNT ( * ) - 9 col2 query I rowsort label-5777 @@ -31045,7 +31045,7 @@ SELECT DISTINCT COALESCE ( - + 30, - 5, - ( COUNT ( * ) ) * - 57 + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* CAST\(NULL AS Int32\) \- Int64\(\-70\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* CAST\(NULL AS Int64\) \- Int64\(\-70\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 5 ) * + CAST ( NULL AS INTEGER ) - - 70 * - - COUNT ( * ) * - - 55 AS col1, ( + 29 ) AS col1 query I rowsort @@ -31077,7 +31077,7 @@ SELECT + 77 + + 52 * - CAST ( + + 78 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "CAST\(Int64\(96\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "CAST\(Int64\(96\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 33 AS col1, CAST ( + ( 96 ) AS INTEGER ) AS col1 query I rowsort label-5916 @@ -35935,7 +35935,7 @@ SELECT + 51, - 34 + + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) AS col0" at position 0 and "CAST\(Int64\(10\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) AS col0" at position 0 and "CAST\(Int64\(10\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) - 21 col0, CAST ( + 10 AS INTEGER ) AS col0 query I rowsort label-6842 @@ -37561,7 +37561,7 @@ SELECT DISTINCT + - 98 + + SUM ( ALL + + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-63\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-63\)\) AS Int64\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - 63 AS INTEGER ) AS col2, - 87 col2 query I rowsort @@ -37913,7 +37913,7 @@ SELECT DISTINCT + 31 * + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 21215844 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(3\), Int64\(96\) \* Int64\(54\) \* \(\- coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(Int64\(99\), coalesce\(nullif\(Int64\(78\), Int64\(7\) \+ Int64\(72\)\), Int64\(22\), Int64\(37\)\) \* Int64\(35\) \* Int64\(26\) \* Int64\(\-31\)\)\), Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-69\) \* \(\- Int64\(73\)\) \* Int64\(\-81\) \* \(\- Int64\(52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(3\), Int64\(96\) \* Int64\(54\) \* \(\- coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(Int64\(99\), coalesce\(nullif\(Int64\(78\), Int64\(7\) \+ Int64\(72\)\), Int64\(22\), Int64\(37\)\) \* Int64\(35\) \* Int64\(26\) \* Int64\(\-31\)\)\), Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-69\) \* \(\- Int64\(73\)\) \* Int64\(\-81\) \* \(\- Int64\(52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 3, + 96 * 54 * - + COALESCE ( + COALESCE ( + COUNT ( * ), + COALESCE ( 99, COALESCE ( + + NULLIF ( 78, + 7 + + 72 ), + 22, 37 ) * 35 * + 26 * - 31 ) ), + 40 * + COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) ) AS col2, - 69 * - + 73 * + - 81 * - + 52 AS col2 query I rowsort @@ -37939,7 +37939,7 @@ SELECT + COUNT ( - + 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-61\)\) / \(\- Int64\(19\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-96\), Int64\(\-57\) \* CASE Int64\(46\) WHEN Int64\(\-34\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) \* nullif\(coalesce\(Int64\(\-4\), Int64\(11\)\), Int64\(\-84\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-65\)\) \+ Int64\(65\) \+ Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) \+ Int64\(\-86\) \+ Int64\(25\) \+ \(\- CASE Int64\(\-64\) WHEN \(\- min\(Int64\(23\)\)\) THEN Int64\(2\) WHEN Int64\(\-51\) / Int64\(\-61\) THEN Int64\(\-92\) ELSE NULL END\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(\-67\) WHEN Int64\(\-51\) THEN \(\- CAST\(nullif\(Int64\(\-86\), Int64\(83\)\) AS Int32\)\) END\)\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-61\)\) / \(\- Int64\(19\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-96\), Int64\(\-57\) \* CASE Int64\(46\) WHEN Int64\(\-34\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) \* nullif\(coalesce\(Int64\(\-4\), Int64\(11\)\), Int64\(\-84\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-65\)\) \+ Int64\(65\) \+ Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) \+ Int64\(\-86\) \+ Int64\(25\) \+ \(\- CASE Int64\(\-64\) WHEN \(\- min\(Int64\(23\)\)\) THEN Int64\(2\) WHEN Int64\(\-51\) / Int64\(\-61\) THEN Int64\(\-92\) ELSE NULL END\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(\-67\) WHEN Int64\(\-51\) THEN \(\- CAST\(nullif\(Int64\(\-86\), Int64\(83\)\) AS Int64\)\) END\)\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - COUNT ( * ), - - 61 / - + 19 + COUNT ( * ) ) AS col1, - NULLIF ( - 96, - 57 * CASE 46 WHEN - 34 * COUNT ( * ) * + 74 * + NULLIF ( COALESCE ( + - 4, 11 ), + - 84 ) * + COUNT ( * ) + - - 65 + 65 + + + 4 * - COUNT ( * ) * 79 + + - 86 + 25 + - CASE + - 64 WHEN - + MIN ( ALL + + 23 ) THEN + + 2 WHEN - 51 / - 61 THEN + - 92 ELSE NULL END THEN COUNT ( * ) + 97 * - 67 WHEN - 51 THEN - CAST ( NULLIF ( - 86, 83 ) AS INTEGER ) END ) + 49 AS col1 query I rowsort label-7222 @@ -38816,7 +38816,7 @@ SELECT COALESCE ( - 29, + 63, 83 * + 58 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 8624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-51\) AS Int32\) AS col0" at position 0 and "Int64\(\-98\) \* Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-51\) AS Int64\) AS col0" at position 0 and "Int64\(\-98\) \* Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 51 AS INTEGER ) AS col0, - 98 * + - 88 AS col0 query I rowsort @@ -39345,7 +39345,7 @@ SELECT + 16 * - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1360 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- coalesce\(Int64\(16\), Int64\(38\)\)\) AS col2" at position 0 and "\(\- CAST\(CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) THEN Int64\(34\) WHEN Int64\(21\) THEN NULL ELSE Int64\(97\) END AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- coalesce\(Int64\(16\), Int64\(38\)\)\) AS col2" at position 0 and "\(\- CAST\(CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- \(\- \(\- CAST\(NULL AS Int64\)\)\)\) THEN Int64\(34\) WHEN Int64\(21\) THEN NULL ELSE Int64\(97\) END AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85 * - COALESCE ( + + 16, + 38 ) AS col2, - CAST ( + + CASE - - COUNT ( * ) WHEN - - ( - CAST ( NULL AS INTEGER ) ) THEN 34 WHEN + + 21 THEN NULL ELSE 97 END AS INTEGER ) AS col2 query I rowsort label-7489 @@ -42115,7 +42115,7 @@ SELECT 84 AS col0, - 64 / 31 * 38 / + - 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) AS col0" at position 0 and "nullif\(\(\- Int64\(19\)\), \(\- CASE WHEN NOT Int64\(47\) IN \(\[max\(Int64\(16\)\)\]\) THEN count\(DISTINCT Int64\(24\)\) ELSE NULL END\)\) \- \(\- CAST\(Int64\(35\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) AS col0" at position 0 and "nullif\(\(\- Int64\(19\)\), \(\- CASE WHEN NOT Int64\(47\) IN \(\[max\(Int64\(16\)\)\]\) THEN count\(DISTINCT Int64\(24\)\) ELSE NULL END\)\) \- \(\- CAST\(Int64\(35\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 39 col0, NULLIF ( - + 19, - CASE WHEN NOT 47 IN ( + MAX ( + 16 ) ) THEN + COUNT ( DISTINCT 24 ) ELSE NULL END ) - - CAST ( + 35 AS INTEGER ) col0 query I rowsort @@ -45658,7 +45658,7 @@ SELECT DISTINCT - ( + 40 ) + 87 - 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(44\)\), Int64\(28\)\) \+ \(\- CASE \(\- Int64\(\-28\)\) WHEN Int64\(\-67\) THEN Int64\(96\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN \(\- Int64\(2\)\) \* Int64\(81\) THEN \(\- count\(Int64\(\-53\)\)\) \+ Int64\(\-6\) END\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(44\)\), Int64\(28\)\) \+ \(\- CASE \(\- Int64\(\-28\)\) WHEN Int64\(\-67\) THEN Int64\(96\) WHEN CAST\(NULL AS Int64\) THEN NULL WHEN \(\- Int64\(2\)\) \* Int64\(81\) THEN \(\- count\(Int64\(\-53\)\)\) \+ Int64\(\-6\) END\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( - + 44, 28 ) + - + CASE - - 28 WHEN - 67 THEN + 96 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 2 * 81 THEN - COUNT ( ALL - 53 ) + - 6 END AS col2, + COUNT ( * ) AS col2 query II rowsort label-8693 @@ -47281,7 +47281,7 @@ SELECT ALL 14 / COUNT ( * ) + + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(NULL AS Int32\), Int64\(\-60\)\) AS col2" at position 0 and "\(\- sum\(Int64\(84\)\)\) \* Int64\(\-1\) \- Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(NULL AS Int64\), Int64\(\-60\)\) AS col2" at position 0 and "\(\- sum\(Int64\(84\)\)\) \* Int64\(\-1\) \- Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( + + CAST ( NULL AS INTEGER ), - 60 ) AS col2, - SUM ( ALL 84 ) * - 1 - - 12 AS col2 query I rowsort label-9001 @@ -51301,7 +51301,7 @@ SELECT ALL - + 45 / - ( + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) / Int64\(39\) \* \(\- Int64\(\-96\)\) AS col0" at position 0 and "CAST\(Int64\(36\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) / Int64\(39\) \* \(\- Int64\(\-96\)\) AS col0" at position 0 and "CAST\(Int64\(36\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 9 / + 39 * - - 96 AS col0, CAST ( + 36 AS INTEGER ) AS col0 query I rowsort @@ -51481,7 +51481,7 @@ SELECT ALL - - 10 * COALESCE ( 93, + COUNT ( * ), - + 29 / 4 ) AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -153 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(17\) \* Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(17\) \* Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1, + 17 * + ( + - 9 ) AS col1, + + 19 + + 93 AS col0 query I rowsort label-9804 @@ -51728,7 +51728,7 @@ SELECT ALL 51 * + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(20\) \+ \(\- CAST\(\(\- Int64\(6\)\) AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- min\(DISTINCT \(\- Int64\(\-15\)\)\)\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(20\) \+ \(\- CAST\(\(\- Int64\(6\)\) AS Int64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- min\(DISTINCT \(\- Int64\(\-15\)\)\)\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 64 * + COUNT ( * ) - + 20 + - CAST ( - + 6 AS INTEGER ) + - COUNT ( * ) * - - MIN ( DISTINCT - - 15 ) AS col0, 42 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_112.slt b/data/sqlite/random/expr/slt_good_112.slt index 37359a6..d19aaf9 100644 --- a/data/sqlite/random/expr/slt_good_112.slt +++ b/data/sqlite/random/expr/slt_good_112.slt @@ -433,7 +433,7 @@ SELECT + 87 + + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14863 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(\-44\) AS col1" at position 0 and "coalesce\(\(\- Int64\(10\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-1\) \* CAST\(NULL AS Int32\) \+ Int64\(90\), Int64\(32\) \+ \(\- Int64\(70\)\)\) \* Int64\(45\) \* \(\- Int64\(33\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(\-44\) AS col1" at position 0 and "coalesce\(\(\- Int64\(10\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-1\) \* CAST\(NULL AS Int64\) \+ Int64\(90\), Int64\(32\) \+ \(\- Int64\(70\)\)\) \* Int64\(45\) \* \(\- Int64\(33\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) / + - 44 AS col1, COALESCE ( - + 10, - - COUNT ( * ) * 52 + + COUNT ( * ) * - 1 * + CAST ( NULL AS INTEGER ) + 90, + + 32 + - + 70 ) * 45 * - + 33 / - COUNT ( * ) + - 13 AS col1 query II rowsort label-76 @@ -1467,7 +1467,7 @@ SELECT 82 AS col1, 71 * - + MIN ( - + 30 ) * - 77 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 30 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(\-30\) \* CAST\(NULL AS Int32\) \* Int64\(\-95\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-91\) \* Int64\(72\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(\-30\) \* CAST\(NULL AS Int64\) \* Int64\(\-95\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-91\) \* Int64\(72\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 81 / - 30 * + CAST ( NULL AS INTEGER ) * + - 95 - + - COUNT ( * ) + - 91 * + 72 AS col0, + ( + 30 ) AS col1, 51 AS col0 query I rowsort @@ -2607,7 +2607,7 @@ SELECT 13 * + 43 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(64\) WHEN \(\- sum\(Int64\(\-89\)\)\) \+ Int64\(9\) \* \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-58\) WHEN Int64\(\-59\) THEN NULL END / Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(64\) WHEN \(\- sum\(Int64\(\-89\)\)\) \+ Int64\(9\) \* \(\- CAST\(NULL AS Int64\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-58\) WHEN Int64\(\-59\) THEN NULL END / Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 * - COUNT ( * ) AS col2, + CASE + + 64 WHEN - + SUM ( - 89 ) + + 9 * + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * 38 + - COUNT ( * ) THEN - 58 WHEN - 59 THEN NULL END / 39 col2 query I rowsort label-490 @@ -4597,7 +4597,7 @@ SELECT 21 * + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(44\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(44\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 / 44 AS col2, CAST ( + + COUNT ( * ) AS INTEGER ) col2 query I rowsort label-864 @@ -7031,7 +7031,7 @@ SELECT ALL + NULLIF ( 20, - - 50 ) / - + 70 + + 80 * + COUNT ( * ) + - COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- min\(DISTINCT Int64\(\-57\)\)\) AS Int32\) AS col1" at position 0 and "Int64\(73\) \+ Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- min\(DISTINCT Int64\(\-57\)\)\) AS Int64\) AS col1" at position 0 and "Int64\(73\) \+ Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - MIN ( DISTINCT - 57 ) AS INTEGER ) AS col1, 73 + + - 3 col1 query I rowsort @@ -9245,7 +9245,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- Int64\(78\)\) \+ Int64\(84\) \- CAST\(NULL AS Int32\) \- Int64\(88\) \+ Int64\(67\) \+ Int64\(90\) \+ Int64\(29\) \+ min\(DISTINCT Int64\(97\)\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- Int64\(78\)\) \+ Int64\(84\) \- CAST\(NULL AS Int64\) \- Int64\(88\) \+ Int64\(67\) \+ Int64\(90\) \+ Int64\(29\) \+ min\(DISTINCT Int64\(97\)\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 42 * - + 78 + + + 84 - + ( + + CAST ( NULL AS INTEGER ) ) - + 88 + + + 67 + + + 90 + 29 + MIN ( DISTINCT 97 ) AS col2, - 81 AS col2 query I rowsort label-1750 @@ -9956,7 +9956,7 @@ SELECT DISTINCT + MAX ( + - 28 ) * - - 40 + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(\-1\) / Int64\(60\) \+ \(\- Int64\(\-58\)\) \+ \(\- sum\(Int64\(\-53\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(\-21\)\) \* Int64\(58\) \* \(\- \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\)\) / Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(\-1\) / Int64\(60\) \+ \(\- Int64\(\-58\)\) \+ \(\- sum\(Int64\(\-53\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- Int64\(\-21\)\) \* Int64\(58\) \* \(\- \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\)\) / Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 52 * - 1 / + 60 + - - 58 + - SUM ( ALL - 53 ) AS col1, + CAST ( NULL AS INTEGER ) * - - 21 * + 58 * - - ( + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) / 99 AS col1 query I rowsort label-1884 @@ -10419,7 +10419,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(84\) \* Int64\(46\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(84\) \* Int64\(46\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) / + 84 * 46 col0, 25 AS col0 query I rowsort label-1971 @@ -12213,7 +12213,7 @@ SELECT + 85 AS col0, - 17 * - + 38 AS col0 # Datafusion - Expected - 28 # Datafusion - Expected - -1501 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(39\) \* Int64\(\-21\) \+ Int64\(28\) AS col2" at position 0 and "\(\- Int64\(80\)\) \+ \(\- coalesce\(\(\- CASE Int64\(85\) WHEN Int64\(68\) THEN Int64\(\-91\) ELSE \(\- \(\- CAST\(NULL AS Int32\)\)\) END\), \(\- Int64\(59\)\), \(\- avg\(Int64\(\-64\)\)\) / Int64\(34\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(39\) \* Int64\(\-21\) \+ Int64\(28\) AS col2" at position 0 and "\(\- Int64\(80\)\) \+ \(\- coalesce\(\(\- CASE Int64\(85\) WHEN Int64\(68\) THEN Int64\(\-91\) ELSE \(\- \(\- CAST\(NULL AS Int64\)\)\) END\), \(\- Int64\(59\)\), \(\- avg\(Int64\(\-64\)\)\) / Int64\(34\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 36 / + 39 * - 21 + + 28 AS col2, + 79 * ( + - 19 ) AS col1, + ( + - ( 80 ) ) + - COALESCE ( - CASE + + 85 WHEN ( + 68 ) THEN - 91 ELSE - ( + - CAST ( NULL AS INTEGER ) ) END, - + 59, - AVG ( - 64 ) / + 34 ) col2 query I rowsort @@ -13315,7 +13315,7 @@ SELECT 14 + - - 98 + 49 * + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2522 @@ -18217,7 +18217,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + + 33 AS col1, - 92 AS col1 query I rowsort label-3458 @@ -20235,7 +20235,7 @@ SELECT + - 63 AS col0, - 48 * + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "nullif\(Int64\(\-85\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(91\) / Int64\(26\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-80\) \+ Int64\(23\) \* \(\- Int64\(\-8\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(93\) \+ max\(Int64\(79\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int32\) \* Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "nullif\(Int64\(\-85\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(91\) / Int64\(26\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-80\) \+ Int64\(23\) \* \(\- Int64\(\-8\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(93\) \+ max\(Int64\(79\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int64\) \* Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 41 AS col2, ( + + NULLIF ( - 85, - COUNT ( * ) + + 91 / + 26 * - - COUNT ( * ) - - 80 + + ( + + 23 ) * - - 8 + - ( + - COUNT ( * ) ) + + 93 + + MAX ( + 79 ) + - 88 * + + CAST ( NULL AS INTEGER ) * 27 ) ) AS col2 query I rowsort label-3842 @@ -24435,7 +24435,7 @@ SELECT 31 col1, + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + COUNT ( * ) ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -25361,7 +25361,7 @@ SELECT ALL - 91 + - 60 AS col1, + ( 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(82\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(82\)\)\) 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\. SELECT DISTINCT MAX ( ALL - + 82 ) AS col0, - ( + CAST ( NULL AS INTEGER ) ) AS col0 query II rowsort @@ -26067,7 +26067,7 @@ SELECT ALL CASE + 81 WHEN - 94 + + 57 * - 67 - + 36 * + + 80 THEN NULL ELSE ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 41496 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) \* Int64\(57\) \* Int64\(\-91\) AS col0" at position 0 and "Int64\(79\) \+ CAST\(Int64\(23\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) \* Int64\(57\) \* Int64\(\-91\) AS col0" at position 0 and "Int64\(79\) \+ CAST\(Int64\(23\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + 8 ) * + 57 * - 91 AS col0, 79 + + CAST ( 23 AS INTEGER ) AS col0 query I rowsort label-4953 @@ -27668,7 +27668,7 @@ SELECT + 12 AS col2, 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "coalesce\(Int64\(\-23\), Int64\(\-24\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-71\)\) \+ Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "coalesce\(Int64\(\-23\), Int64\(\-24\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-71\)\) \+ Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 AS col1, COALESCE ( - 23, - 24 * + - CAST ( NULL AS INTEGER ) * - - 71 + - 76 ) AS col1 query II rowsort label-5255 @@ -32886,7 +32886,7 @@ SELECT ALL 71 + - + CAST ( - - 53 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ CAST\(Int64\(\-41\) AS Int32\) \+ \(\- Int64\(74\)\) / Int64\(\-98\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ CAST\(Int64\(\-41\) AS Int64\) \+ \(\- Int64\(74\)\) / Int64\(\-98\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 7 + CAST ( + - 41 AS INTEGER ) + - + 74 / - 98 + + COUNT ( * ) + 41 AS col1, - 7 AS col1 query I rowsort label-6247 @@ -35146,7 +35146,7 @@ SELECT ALL + 14 * + 36 * - COUNT ( 60 ) * + 77 * + + 91 * - + COUNT ( * ) * + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-6678 @@ -35483,7 +35483,7 @@ SELECT DISTINCT + 64 * - 17 + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -2116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-10\) AS Int32\) \+ coalesce\(Int64\(30\), \(\- Int64\(\-12\)\) \* Int64\(53\), Int64\(33\) \* Int64\(\-29\) \+ Int64\(6\) \* Int64\(49\)\) AS col0" at position 0 and "Int64\(\-23\) \* Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-10\) AS Int64\) \+ coalesce\(Int64\(30\), \(\- Int64\(\-12\)\) \* Int64\(53\), Int64\(33\) \* Int64\(\-29\) \+ Int64\(6\) \* Int64\(49\)\) AS col0" at position 0 and "Int64\(\-23\) \* Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + - 10 AS INTEGER ) + COALESCE ( + 30, - - 12 * + 53, 33 * - 29 + 6 * 49 ) AS col0, - 23 * 92 col0 # Datafusion - Types were automatically converted from: @@ -36027,7 +36027,7 @@ SELECT ALL - 15 - + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(coalesce\(Int64\(\-58\), Int64\(20\) / Int64\(71\) \* Int64\(\-68\) \* CAST\(Int64\(\-4\) AS Int32\) \* Int64\(\-68\) \+ Int64\(79\) \* \(\- coalesce\(Int64\(\-23\), CASE Int64\(\-88\) WHEN Int64\(\-8\) THEN Int64\(\-5\) WHEN coalesce\(Int64\(\-93\), Int64\(27\)\) \+ Int64\(\-25\) / \(\- Int64\(20\)\) THEN Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) END / Int64\(67\) / count\(\(\- Int64\(66\)\)\)\)\) \+ \(\- Int64\(49\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(coalesce\(Int64\(\-58\), Int64\(20\) / Int64\(71\) \* Int64\(\-68\) \* CAST\(Int64\(\-4\) AS Int64\) \* Int64\(\-68\) \+ Int64\(79\) \* \(\- coalesce\(Int64\(\-23\), CASE Int64\(\-88\) WHEN Int64\(\-8\) THEN Int64\(\-5\) WHEN coalesce\(Int64\(\-93\), Int64\(27\)\) \+ Int64\(\-25\) / \(\- Int64\(20\)\) THEN Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) END / Int64\(67\) / count\(\(\- Int64\(66\)\)\)\)\) \+ \(\- Int64\(49\)\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - CAST ( + COALESCE ( - 58, + 20 / + 71 * - 68 * + + CAST ( - 4 AS INTEGER ) * - 68 + + 79 * + - COALESCE ( - 23, CASE - 88 WHEN - 8 THEN - 5 WHEN + COALESCE ( - 93, + + 27 ) + - 25 / - + 20 THEN + 62 * + COUNT ( * ) END / 67 / + COUNT ( - + 66 ) ) + - ( 49 ) ) AS INTEGER ) AS col2 query I rowsort @@ -38164,7 +38164,7 @@ SELECT DISTINCT 46 - 78 AS col1, 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(\-10\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(\-10\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - 8 AS col1, - 10 + - + 93 AS col1 query I rowsort label-7248 @@ -40218,7 +40218,7 @@ SELECT 0 + + NULLIF ( - 4, - 10 * - ( - - ( + NULLIF ( - 74, - 72 * - 22 + - 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(CAST\(Int64\(48\) AS Int32\) AS Int32\)\) AS col1" at position 0 and "nullif\(Int64\(\-76\), CASE Int64\(71\) WHEN min\(Int64\(\-45\)\) THEN avg\(\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\) END \* Int64\(28\)\) / Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(CAST\(Int64\(48\) AS Int64\) AS Int64\)\) AS col1" at position 0 and "nullif\(Int64\(\-76\), CASE Int64\(71\) WHEN min\(Int64\(\-45\)\) THEN avg\(\(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\)\) END \* Int64\(28\)\) / Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( + CAST ( + + CAST ( + 48 AS INTEGER ) AS INTEGER ) ) col1, NULLIF ( - 76, CASE 71 WHEN MIN ( - 45 ) THEN AVG ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) END * 28 ) / 36 AS col1 query II rowsort label-7644 @@ -43112,7 +43112,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(76\) AS col2" at position 0 and "Int64\(\-69\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(88\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(76\) AS col2" at position 0 and "Int64\(\-69\) \+ \(\- CAST\(NULL AS Int64\)\) / Int64\(88\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 30 * 76 AS col2, - 69 + - CAST ( NULL AS INTEGER ) / + + 88 + + ( + COUNT ( * ) ) AS col2 query I rowsort @@ -43893,7 +43893,7 @@ SELECT DISTINCT 98 + 52 AS col1, 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 + - CAST ( NULL AS INTEGER ) AS col0, 11 AS col0 query I rowsort @@ -44943,7 +44943,7 @@ SELECT MAX ( DISTINCT - + 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "Int64\(\-93\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "Int64\(\-93\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 AS col2, - 93 * + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-8543 @@ -45198,7 +45198,7 @@ SELECT ALL - NULLIF ( - ( + COUNT ( * ) ), 50 * - 20 + 37 ) + - SUM ( + CAST ( ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- max\(Int64\(59\)\)\) \+ \(\- Int64\(\-79\)\) AS col0" at position 0 and "\(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- max\(Int64\(59\)\)\) \+ \(\- Int64\(\-79\)\) AS col0" at position 0 and "\(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - MAX ( + ( + 59 ) ) + - - 79 AS col0, - ( + 98 ) col0 query I rowsort @@ -47532,7 +47532,7 @@ SELECT ALL + 47 AS col0, 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 47093 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-21\)\) AS Int32\) \* Int64\(32\) \* Int64\(70\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-21\)\) AS Int64\) \* Int64\(32\) \* Int64\(70\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 AS col0, + CAST ( - - 21 AS INTEGER ) * + 32 * 70 + 53 col0 query I rowsort label-9034 @@ -49549,7 +49549,7 @@ SELECT ALL COUNT ( * ) * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(28\)\) AS col1" at position 0 and "count\(Int64\(50\)\) \+ \(\- Int64\(80\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(28\)\) AS col1" at position 0 and "count\(Int64\(50\)\) \+ \(\- Int64\(80\)\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 87 * - COUNT ( * ) + - + 28 AS col1, COUNT ( 50 ) + - + 80 + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9424 @@ -51341,7 +51341,7 @@ SELECT ALL + 60 * 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -245 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "coalesce\(Int64\(\-5\), Int64\(65\) \+ Int64\(\-87\) \+ \(\- coalesce\(CAST\(NULL AS Int32\), \(\- Int64\(66\)\) \+ Int64\(51\) \* Int64\(\-73\)\)\), \(\- Int64\(\-65\)\) \* Int64\(6\) \* Int64\(\-31\)\) \* \(\- Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "coalesce\(Int64\(\-5\), Int64\(65\) \+ Int64\(\-87\) \+ \(\- coalesce\(CAST\(NULL AS Int64\), \(\- Int64\(66\)\) \+ Int64\(51\) \* Int64\(\-73\)\)\), \(\- Int64\(\-65\)\) \* Int64\(6\) \* Int64\(\-31\)\) \* \(\- Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 41 col0, + COALESCE ( - 5, 65 + + - 87 + - COALESCE ( + CAST ( NULL AS INTEGER ), - + 66 + 51 * - 73 ), - - 65 * 6 * - 31 ) * - - 49 AS col0 query I rowsort @@ -52093,7 +52093,7 @@ SELECT ALL + COUNT ( * ) * + 88 / - - CAST ( - 72 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- \(\- nullif\(Int64\(50\), Int64\(21\) \+ Int64\(44\)\)\)\)\)\) \* Int64\(52\) \* avg\(\(\- CAST\(NULL AS Int32\)\)\) \* max\(Int64\(59\)\) \* \(\- Int64\(58\)\) \+ \(\- max\(DISTINCT Int64\(6\)\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(75\) / \(\- Int64\(\-1\)\) \+ \(\- Int64\(38\)\)\) / Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- \(\- nullif\(Int64\(50\), Int64\(21\) \+ Int64\(44\)\)\)\)\)\) \* Int64\(52\) \* avg\(\(\- CAST\(NULL AS Int64\)\)\) \* max\(Int64\(59\)\) \* \(\- Int64\(58\)\) \+ \(\- max\(DISTINCT Int64\(6\)\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(75\) / \(\- Int64\(\-1\)\) \+ \(\- Int64\(38\)\)\) / Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - SUM ( ALL - - NULLIF ( + 50, + 21 + 44 ) ) * + 52 * AVG ( ALL + - CAST ( NULL AS INTEGER ) ) * + MAX ( 59 ) * - + 58 + - + ( ( + MAX ( DISTINCT + 6 ) ) ) AS col0, + COALESCE ( + + COUNT ( * ), + 75 / - + ( + - 1 ) + + - ( + ( 38 ) ) ) / - 39 AS col0 query I rowsort @@ -52514,7 +52514,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CASE Int64\(12\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(\-27\) \+ \(\- Int64\(28\)\) \+ \(\- count\(Int64\(61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) \* Int64\(\-35\) / \(\- Int64\(35\)\) \* \(\- CAST\(NULL AS Int32\)\) END, Int64\(80\)\) AS col1" at position 0 and "Int64\(17\) \* \(\- Int64\(14\)\) / \(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CASE Int64\(12\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN NULL ELSE Int64\(\-27\) \+ \(\- Int64\(28\)\) \+ \(\- count\(Int64\(61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) \* Int64\(\-35\) / \(\- Int64\(35\)\) \* \(\- CAST\(NULL AS Int64\)\) END, Int64\(80\)\) AS col1" at position 0 and "Int64\(17\) \* \(\- Int64\(14\)\) / \(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( + CASE + + 12 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 27 + - + ( + 28 ) + - COUNT ( + + 61 ) * + COUNT ( * ) - 66 * - 35 / - + 35 * - CAST ( NULL AS INTEGER ) END, + + 80 ) AS col1, + 17 * - + 14 / - + 2 AS col1 query I rowsort label-9987 diff --git a/data/sqlite/random/expr/slt_good_113.slt b/data/sqlite/random/expr/slt_good_113.slt index d7d8c09..9c26326 100644 --- a/data/sqlite/random/expr/slt_good_113.slt +++ b/data/sqlite/random/expr/slt_good_113.slt @@ -277,7 +277,7 @@ SELECT + CASE WHEN + 60 IS NOT NULL THEN + MAX ( 53 ) ELSE NULL END col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(NULL AS Int32\) \+ \(\- Int64\(\-19\)\) AS col2" at position 0 and "Int64\(32\) \- Int64\(\-10\) \+ Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(NULL AS Int64\) \+ \(\- Int64\(\-19\)\) AS col2" at position 0 and "Int64\(32\) \- Int64\(\-10\) \+ Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 * + CAST ( NULL AS INTEGER ) + - - 19 col2, 32 - - 10 + 39 AS col2 query I rowsort @@ -2044,7 +2044,7 @@ SELECT ALL COUNT ( * ) * - - 0 * - MAX ( + + 45 ) - - + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(38\) \+ Int64\(73\) \+ \(\- \(\- CAST\(Int64\(6\) AS Int32\)\)\) / \(\- CAST\(NULL AS Int32\)\) / Int64\(68\) \* Int64\(50\) AS col1" at position 0 and "Int64\(88\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(38\) \+ Int64\(73\) \+ \(\- \(\- CAST\(Int64\(6\) AS Int64\)\)\) / \(\- CAST\(NULL AS Int64\)\) / Int64\(68\) \* Int64\(50\) AS col1" at position 0 and "Int64\(88\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 70 * + + 38 + + 73 + + - ( - + CAST ( + 6 AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) / + 68 * + 50 AS col1, + 88 + 56 col1 query I rowsort label-377 @@ -3258,7 +3258,7 @@ SELECT DISTINCT + ( 74 ) * 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-16\) / avg\(Int64\(\-5\)\)\)\) AS Float64\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-73\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-16\) / avg\(Int64\(\-5\)\)\)\) AS Float64\)\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(\-73\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 - - CAST ( - COALESCE ( COUNT ( * ), - 16 / + AVG ( ALL - 5 ) ) AS FLOAT8 ) + - - CAST ( NULL AS INTEGER ) col1, - 73 * ( + + 94 ) AS col1 query I rowsort @@ -3386,7 +3386,7 @@ SELECT 67 AS col0, + 73 + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 124 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ \(\- Int64\(27\)\) \+ Int64\(86\) AS col0" at position 0 and "CASE Int64\(\-23\) WHEN Int64\(45\) \* Int64\(\-59\) \+ Int64\(68\) THEN NULL WHEN Int64\(98\) THEN Int64\(60\) WHEN max\(DISTINCT \(\- CAST\(Int64\(\-67\) AS Int32\)\)\) \+ Int64\(75\) \* Int64\(19\) \* Int64\(78\) THEN Int64\(59\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ \(\- Int64\(27\)\) \+ Int64\(86\) AS col0" at position 0 and "CASE Int64\(\-23\) WHEN Int64\(45\) \* Int64\(\-59\) \+ Int64\(68\) THEN NULL WHEN Int64\(98\) THEN Int64\(60\) WHEN max\(DISTINCT \(\- CAST\(Int64\(\-67\) AS Int64\)\)\) \+ Int64\(75\) \* Int64\(19\) \* Int64\(78\) THEN Int64\(59\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 65 + - + 27 + + 86 AS col0, CASE - 23 WHEN + 45 * - 59 + 68 THEN NULL WHEN + 98 THEN 60 WHEN + MAX ( DISTINCT - CAST ( - 67 AS INTEGER ) ) + 75 * + 19 * 78 THEN 59 END col0 # Datafusion - Types were automatically converted from: @@ -4495,7 +4495,7 @@ SELECT - COALESCE ( - NULLIF ( 99, - 30 * - CASE + COUNT ( * ) WHEN AVG ( ALL + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(93\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(93\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 24 AS col1, COUNT ( * ) * + MIN ( 93 ) - - COUNT ( * ) AS col1 query I rowsort label-850 @@ -7714,7 +7714,7 @@ SELECT + 79 * COALESCE ( 47, - + 16 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) 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\. SELECT ALL + 82 AS col0, CAST ( NULL AS INTEGER ) col0 query II rowsort label-1465 @@ -8790,7 +8790,7 @@ SELECT + - ( 23 ) * 28 + - + COUNT ( * ) + + + ( + 65 ) + + 14 * + 56 * + 38 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-75\) \* Int64\(64\) \+ Int64\(79\) \* Int64\(9\) \+ Int64\(46\) \+ Int64\(14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(54\) \* CAST\(NULL AS Int32\) \- \(\- CASE Int64\(80\) WHEN Int64\(40\) THEN NULL ELSE avg\(Int64\(45\)\) \* Int64\(4\) \* Int64\(55\) END\) \- Int64\(\-8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-75\) \* Int64\(64\) \+ Int64\(79\) \* Int64\(9\) \+ Int64\(46\) \+ Int64\(14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(54\) \* CAST\(NULL AS Int64\) \- \(\- CASE Int64\(80\) WHEN Int64\(40\) THEN NULL ELSE avg\(Int64\(45\)\) \* Int64\(4\) \* Int64\(55\) END\) \- Int64\(\-8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 75 * 64 + + + 79 * 9 + + 46 + 14 + - COUNT ( * ) * ( 54 ) * CAST ( NULL AS INTEGER ) - - CASE + 80 WHEN + 40 THEN NULL ELSE + + AVG ( ALL 45 ) * + + 4 * + 55 END - - 8 col1, + COUNT ( * ) col1 query I rowsort @@ -9600,7 +9600,7 @@ SELECT - SUM ( ALL 9 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- count\(Int64\(91\)\)\) \+ Int64\(90\) AS col1" at position 0 and "Int64\(51\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- count\(Int64\(91\)\)\) \+ Int64\(90\) AS col1" at position 0 and "Int64\(51\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 3 + - COUNT ( 91 ) + 90 AS col1, 51 * - CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-1824 @@ -11058,7 +11058,7 @@ SELECT DISTINCT + 33 + ( + ( 36 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(48\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \+ Int64\(48\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + 48 AS col0, + 2 AS col0 query I rowsort @@ -11580,7 +11580,7 @@ SELECT ALL - 15 + + - 5 # Datafusion - Expected - 24 # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-33\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-33\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 24 AS col1, 54 AS col0, + CAST ( NULL AS INTEGER ) * - 33 AS col1 query II rowsort label-2200 @@ -15359,7 +15359,7 @@ SELECT ALL ( + 18 ) AS col1, - 54 * COUNT ( * ) + 73 + - ( - - COUNT ( * ) ) # Datafusion - Expected - 66 # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(5\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-1\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(5\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-1\) AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 + 5 col1, 9, + - CAST ( - 1 AS INTEGER ) AS col1 query I rowsort @@ -20325,7 +20325,7 @@ SELECT ALL 91 * 75 AS col0, - 0 * - 57 * - SUM ( - 49 ) * - + 62 / - + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -2900 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-58\) AS col0" at position 0 and "Int64\(70\) / Int64\(\-47\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-58\) AS col0" at position 0 and "Int64\(70\) / Int64\(\-47\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 50 * - 58 AS col0, 70 / - 47 * - CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) col0 query I rowsort label-3862 @@ -20674,7 +20674,7 @@ SELECT 69 * - + ( - + 52 ) AS col2, 33 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2976 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* CAST\(NULL AS Int32\) \- Int64\(49\) AS col0" at position 0 and "Int64\(96\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* CAST\(NULL AS Int64\) \- Int64\(49\) AS col0" at position 0 and "Int64\(96\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 16 * + + CAST ( NULL AS INTEGER ) - 49 AS col0, + 96 * + 31 AS col0 query I rowsort label-3927 @@ -24272,7 +24272,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(1\) \* Int64\(65\) AS col1" at position 0 and "Int64\(21\) \* Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(1\) \* Int64\(65\) AS col1" at position 0 and "Int64\(21\) \* Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + 1 * 65 AS col1, 21 * + 61 col1 query I rowsort @@ -25471,7 +25471,7 @@ SELECT ALL 25 * - ( - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-76\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-76\) 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\. SELECT COUNT ( * ) * - 76 col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-4843 @@ -27924,7 +27924,7 @@ SELECT - COUNT ( * ) AS col1, 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(40\) \- Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(40\) \- Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) * 40 - + 99 AS col0 query II rowsort label-5306 @@ -28918,7 +28918,7 @@ SELECT ALL 5 + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ Int64\(60\) AS col1" at position 0 and "Int64\(\-44\) \+ \(\- count\(Int64\(8\)\)\) \+ Int64\(74\) \+ Int64\(78\) \+ \(\- \(\- CAST\(Int64\(86\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(14\)\) \+ CASE Int64\(\-12\) WHEN Int64\(54\) \* Int64\(\-63\) THEN Int64\(99\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- Int64\(94\)\) \* \(\- Int64\(\-99\)\) / Int64\(46\) THEN NULL END \+ Int64\(68\) \+ Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ Int64\(60\) AS col1" at position 0 and "Int64\(\-44\) \+ \(\- count\(Int64\(8\)\)\) \+ Int64\(74\) \+ Int64\(78\) \+ \(\- \(\- CAST\(Int64\(86\) AS Int64\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(14\)\) \+ CASE Int64\(\-12\) WHEN Int64\(54\) \* Int64\(\-63\) THEN Int64\(99\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- Int64\(94\)\) \* \(\- Int64\(\-99\)\) / Int64\(46\) THEN NULL END \+ Int64\(68\) \+ Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 75 + 60 AS col1, - 44 + - COUNT ( ALL 8 ) + + 74 + + 78 + - - CAST ( + + 86 AS INTEGER ) * + + ( - COUNT ( * ) ) + + + AVG ( ALL 14 ) + CASE - 12 WHEN + 54 * - 63 THEN 99 WHEN - COUNT ( * ) THEN NULL WHEN - + 94 * - - 99 / + 46 THEN NULL END + + 68 + 32 AS col1 query II rowsort @@ -31430,7 +31430,7 @@ SELECT DISTINCT MAX ( ALL 96 ) * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(88\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-72\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(88\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-72\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 + + + 88 AS col1, - CAST ( - 72 AS INTEGER ) AS col1 query I rowsort label-5974 @@ -31441,7 +31441,7 @@ SELECT 80 + + + 90 / 9 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(\-74\) \+ Int64\(\-96\) \- \(\- sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(\-74\) \+ Int64\(\-96\) \- \(\- sum\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 AS col2, - 74 + - 96 - - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) col2 query I rowsort label-5976 @@ -33549,7 +33549,7 @@ SELECT ALL 82 AS col2, 39 + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11640 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-12\) \* Int64\(97\) AS col0" at position 0 and "Int64\(\-6\) \+ \(\- CAST\(\(\- nullif\(Int64\(0\), coalesce\(Int64\(\-65\), Int64\(41\) \* Int64\(83\)\) \* Int64\(30\) \+ Int64\(\-37\) \+ CAST\(NULL AS Int32\) \* Int64\(\-33\)\)\) AS Int32\)\) \+ Int64\(\-10\) \+ Int64\(81\) / \(\- Int64\(\-21\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- CAST\(NULL AS Int32\)\) \+ Int64\(12\), Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-12\) \* Int64\(97\) AS col0" at position 0 and "Int64\(\-6\) \+ \(\- CAST\(\(\- nullif\(Int64\(0\), coalesce\(Int64\(\-65\), Int64\(41\) \* Int64\(83\)\) \* Int64\(30\) \+ Int64\(\-37\) \+ CAST\(NULL AS Int64\) \* Int64\(\-33\)\)\) AS Int64\)\) \+ Int64\(\-10\) \+ Int64\(81\) / \(\- Int64\(\-21\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- CAST\(NULL AS Int64\)\) \+ Int64\(12\), Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 10 * + - 12 * + + 97 AS col0, - 6 + - CAST ( - NULLIF ( - 0, + COALESCE ( - 65, + 41 * 83 ) * + ( 30 ) + + - 37 + CAST ( NULL AS INTEGER ) * + ( - 33 ) ) AS INTEGER ) + - 10 + + 81 / - - 21 * - + COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) + + 12, 50 ) AS col0 query I rowsort label-6374 @@ -33866,7 +33866,7 @@ SELECT ALL 38 - + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 44 AS col2, - CAST ( NULL AS INTEGER ) col2 query I rowsort @@ -33972,7 +33972,7 @@ SELECT ALL - 84, + 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(70\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(57\) \+ Int64\(\-2\) \* \(\- CAST\(Int64\(\-13\) AS Int32\)\) \* \(\- Int64\(\-45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(70\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(57\) \+ Int64\(\-2\) \* \(\- CAST\(Int64\(\-13\) AS Int64\)\) \* \(\- Int64\(\-45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col0, 70 - COUNT ( * ) - + + 57 + + ( - 2 ) * - CAST ( - 13 AS INTEGER ) * - - 45 AS col0 query II rowsort @@ -34863,7 +34863,7 @@ SELECT ALL - 34 / + MAX ( DISTINCT + 27 ) * + 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(11\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(11\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 22 AS col2, + CAST ( NULL AS INTEGER ) + 11 + + 30 AS col2 query I rowsort @@ -34916,7 +34916,7 @@ SELECT + - 26 * - - 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 4272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(89\) \* \(\- \(\- CAST\(Int64\(48\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(89\) \* \(\- \(\- CAST\(Int64\(48\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 55 ) AS col2, 89 * - - CAST ( ( + + 48 ) AS INTEGER ) AS col2 query I rowsort label-6634 @@ -36311,7 +36311,7 @@ SELECT ALL + 41 * + 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(\-43\) / Int64\(56\) \- Int64\(25\) \+ count\(DISTINCT Int64\(\-63\)\) \+ Int64\(26\) \* \(\- Int64\(67\)\) \- Int64\(15\) / \(\- CAST\(NULL AS Int32\)\) \* sum\(DISTINCT Int64\(97\)\) \* \(\- Int64\(\-2\)\) \+ \(\- Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(\-43\) / Int64\(56\) \- Int64\(25\) \+ count\(DISTINCT Int64\(\-63\)\) \+ Int64\(26\) \* \(\- Int64\(67\)\) \- Int64\(15\) / \(\- CAST\(NULL AS Int64\)\) \* sum\(DISTINCT Int64\(97\)\) \* \(\- Int64\(\-2\)\) \+ \(\- Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 AS col0, + ( + - 43 ) / + 56 - + 25 + + COUNT ( DISTINCT - 63 ) + + 26 * - + 67 - ( + 15 ) / - + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + 97 ) * - - 2 + - + 93 AS col0 query II rowsort @@ -41756,7 +41756,7 @@ SELECT - 87 + + 90 * 58 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) \- \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) \- \(\- CAST\(NULL AS Int64\)\) \- Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 56 AS col1, COUNT ( * ) / + 39 - + - CAST ( NULL AS INTEGER ) - + - 56 col1 query I rowsort @@ -42580,7 +42580,7 @@ SELECT + 95 * 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(78\) \* CAST\(Int64\(\-28\) AS Int32\) / Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(78\) \* CAST\(Int64\(\-28\) AS Int64\) / Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 99 AS col2, + 78 * CAST ( - 28 AS INTEGER ) / 70 AS col2 query II rowsort @@ -43523,7 +43523,7 @@ SELECT - + ( + + 88 ) / + 53 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47257 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(13\) \* Int64\(57\) \+ Int64\(\-49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-12\) \+ Int64\(14\) AS col1" at position 0 and "\(\- CAST\(Int64\(79\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(13\) \* Int64\(57\) \+ Int64\(\-49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-12\) \+ Int64\(14\) AS col1" at position 0 and "\(\- CAST\(Int64\(79\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 63 * + 13 * 57 + - 49 * - COUNT ( * ) * + - 12 + 14 AS col1, + ( - CAST ( 79 AS INTEGER ) ) AS col1 query I rowsort label-8273 @@ -44738,7 +44738,7 @@ SELECT - + 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) / Int64\(\-79\) AS col2" at position 0 and "Int64\(\-6\) \+ \(\- \(\- Int64\(8\)\)\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) / Int64\(\-79\) AS col2" at position 0 and "Int64\(\-6\) \+ \(\- \(\- Int64\(8\)\)\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 61 - + + CAST ( + COUNT ( * ) AS INTEGER ) / - 79 AS col2, - 6 + - ( - ( + 8 ) ) * + 11 AS col2 query I rowsort label-8504 @@ -48827,7 +48827,7 @@ SELECT 40 AS col1, MAX ( - 49 ) + - 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(42\) AS Int32\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(42\) AS Int64\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + CAST ( + 42 AS INTEGER ) ) AS col1, - ( - CAST ( NULL AS INTEGER ) ) * + 79 AS col1 query I rowsort @@ -49790,7 +49790,7 @@ SELECT ALL + - COUNT ( * ) + + - 42 * 64 * - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3634 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) \* \(\- coalesce\(CAST\(Int64\(\-79\) AS Int32\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- min\(Int64\(\-45\)\)\)\) \* Int64\(3\) \+ Int64\(69\) \- Int64\(\-56\)\)\) AS col0" at position 0 and "Int64\(82\) \* \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(43\)\) \* Int64\(67\) \+ \(\- max\(\(\- coalesce\(\(\- Int64\(63\)\), Int64\(\-70\) \* Int64\(36\), Int64\(15\)\)\)\)\) \+ min\(DISTINCT Int64\(20\)\) \* Int64\(53\) \* nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- min\(Int64\(4\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int64\) \* \(\- coalesce\(CAST\(Int64\(\-79\) AS Int64\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- min\(Int64\(\-45\)\)\)\) \* Int64\(3\) \+ Int64\(69\) \- Int64\(\-56\)\)\) AS col0" at position 0 and "Int64\(82\) \* \(\- CAST\(NULL AS Int64\)\) \- \(\- Int64\(43\)\) \* Int64\(67\) \+ \(\- max\(\(\- coalesce\(\(\- Int64\(63\)\), Int64\(\-70\) \* Int64\(36\), Int64\(15\)\)\)\)\) \+ min\(DISTINCT Int64\(20\)\) \* Int64\(53\) \* nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- min\(Int64\(4\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + 46 AS INTEGER ) * - COALESCE ( + CAST ( + - 79 AS INTEGER ), COUNT ( * ) * - - MIN ( ALL - 45 ) * 3 + 69 - - 56 ) AS col0, 82 * - CAST ( NULL AS INTEGER ) - - + 43 * 67 + + - MAX ( ALL - COALESCE ( - ( 63 ), - 70 * 36, 15 ) ) + MIN ( DISTINCT + 20 ) * 53 * NULLIF ( - COUNT ( * ), + ( - MIN ( + 4 ) ) ) AS col0 query II rowsort label-9466 @@ -49849,7 +49849,7 @@ SELECT DISTINCT - + ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 4389 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "Int64\(\-77\) \* Int64\(\-57\) \+ \(\- nullif\(Int64\(0\), CAST\(NULL AS Int32\) \* Int64\(14\) \* Int64\(\-19\) \- \(\- \(\- nullif\(\(\- Int64\(\-25\)\), Int64\(0\) / Int64\(\-28\) / Int64\(5\) / Int64\(\-85\) \* \(\- CAST\(NULL AS Int32\)\)\)\)\)\)\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-54\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "Int64\(\-77\) \* Int64\(\-57\) \+ \(\- nullif\(Int64\(0\), CAST\(NULL AS Int64\) \* Int64\(14\) \* Int64\(\-19\) \- \(\- \(\- nullif\(\(\- Int64\(\-25\)\), Int64\(0\) / Int64\(\-28\) / Int64\(5\) / Int64\(\-85\) \* \(\- CAST\(NULL AS Int64\)\)\)\)\)\)\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-54\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 62 AS col2, - 77 * - 57 + + - NULLIF ( + 0, CAST ( NULL AS INTEGER ) * + 14 * - 19 - - - NULLIF ( - - 25, + 0 / - 28 / 5 / + - 85 * + - CAST ( NULL AS INTEGER ) ) ) / NULLIF ( + COUNT ( * ), - 54 ) AS col2 query I rowsort label-9477 @@ -50586,7 +50586,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-3\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-3\) \* \(\- CAST\(NULL AS Int64\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 3 * - CAST ( NULL AS INTEGER ) / + + 24 * COUNT ( * ) AS col2 query I rowsort @@ -50995,7 +50995,7 @@ SELECT 8 * + ( + 83 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(96\) \+ \(\- min\(CAST\(Int64\(80\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(96\) \+ \(\- min\(CAST\(Int64\(80\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 64 AS col2, 96 + - + MIN ( CAST ( 80 AS INTEGER ) ) AS col2 query II rowsort @@ -52562,7 +52562,7 @@ SELECT + 47 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(74\) AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ nullif\(Int64\(63\), Int64\(74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(74\) AS Int64\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ nullif\(Int64\(63\), Int64\(74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - CAST ( + 74 AS INTEGER ) ) col2, CAST ( NULL AS INTEGER ) + NULLIF ( + 63, + 74 ) col2 query I rowsort label-9987 diff --git a/data/sqlite/random/expr/slt_good_114.slt b/data/sqlite/random/expr/slt_good_114.slt index 20b53cb..5e72ac8 100644 --- a/data/sqlite/random/expr/slt_good_114.slt +++ b/data/sqlite/random/expr/slt_good_114.slt @@ -206,7 +206,7 @@ SELECT ALL - 19 * - - 72 AS col1, 81 - - COALESCE ( - CASE + - CASE + 48 WHEN 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(Int64\(18\) AS Int32\) \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(Int64\(18\) AS Int64\) \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, CAST ( + 18 AS INTEGER ) + - 84 AS col1 query II rowsort label-32 @@ -474,7 +474,7 @@ SELECT ALL 87 * + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(49\), Int64\(18\) \+ \(\- Int64\(\-66\)\) \+ count\(Int64\(1\)\) AS count\(\*\), CAST\(Int64\(34\) AS Int32\) \+ Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(49\), Int64\(18\) \+ \(\- Int64\(\-66\)\) \+ count\(Int64\(1\)\) AS count\(\*\), CAST\(Int64\(34\) AS Int64\) \+ Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * 75 * COUNT ( * ) AS col1, COALESCE ( + 49, + 18 + - - 66 + + COUNT ( * ), + CAST ( + 34 AS INTEGER ) + + ( + 42 ) ) AS col1 query I rowsort @@ -2167,7 +2167,7 @@ SELECT + 30 AS col0, 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col1" at position 0 and "Int64\(97\) / CAST\(\(\- coalesce\(Int64\(46\), Int64\(\-73\) \* Int64\(7\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-26\)\), \(\- CAST\(NULL AS Int32\)\), Int64\(10\), Int64\(\-50\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col1" at position 0 and "Int64\(97\) / CAST\(\(\- coalesce\(Int64\(46\), Int64\(\-73\) \* Int64\(7\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-26\)\), \(\- CAST\(NULL AS Int64\)\), Int64\(10\), Int64\(\-50\)\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 87 AS col1, 97 / CAST ( - COALESCE ( + + 46, - 73 * + 7 + + + COALESCE ( + + COUNT ( * ), - 26 ), - CAST ( NULL AS INTEGER ), 10, - 50 ) AS INTEGER ) AS col1 query I rowsort @@ -4370,7 +4370,7 @@ SELECT COUNT ( * ) AS col1, - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4485 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(64\) \* \(\- CAST\(\(\- Int64\(\-70\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(64\) \* \(\- CAST\(\(\- Int64\(\-70\)\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 5 + + 64 * - CAST ( - - 70 AS INTEGER ) AS col2, - 96 AS col2 query I rowsort label-823 @@ -5772,7 +5772,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -2342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- Int64\(\-30\) AS col0" at position 0 and "max\(Int64\(34\)\) \* Int64\(67\) \* \(\- coalesce\(CAST\(NULL AS Int32\), count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- Int64\(\-30\) AS col0" at position 0 and "max\(Int64\(34\)\) \* Int64\(67\) \* \(\- coalesce\(CAST\(NULL AS Int64\), count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 - - 30 AS col0, MAX ( ALL + 34 ) * + + 67 * - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ), + COUNT ( * ) ) + + - 64 AS col0 query I rowsort label-1090 @@ -10464,7 +10464,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 * - 2 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1978 @@ -14195,7 +14195,7 @@ SELECT 49 - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -1722 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "CAST\(\(\- Int64\(42\)\) AS Int32\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "CAST\(\(\- Int64\(42\)\) AS Int64\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 AS col2, + CAST ( - + 42 AS INTEGER ) * + 41 AS col2 query II rowsort @@ -17206,7 +17206,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-21\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-21\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 AS col0, ( CAST ( - - 21 AS INTEGER ) ) AS col0 # Datafusion - Types were automatically converted from: @@ -17575,7 +17575,7 @@ SELECT DISTINCT + 59 / COUNT ( * ) * + COUNT ( + 55 ), - 35 * + COUNT ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - -896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col0" at position 0 and "Int64\(\-14\) \* CAST\(Int64\(64\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col0" at position 0 and "Int64\(\-14\) \* CAST\(Int64\(64\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 72 AS col0, - 14 * CAST ( 64 AS INTEGER ) AS col0 query I rowsort @@ -18322,7 +18322,7 @@ SELECT - 29 + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -37050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int32\) AS col1" at position 0 and "Int64\(\-38\) \* Int64\(65\) \* Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int64\) AS col1" at position 0 and "Int64\(\-38\) \* Int64\(65\) \* Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - 61 AS INTEGER ) AS col1, - 38 * + 65 * + 15 AS col1 query I rowsort @@ -21546,7 +21546,7 @@ SELECT ALL + 60 + - - 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "nullif\(Int64\(94\), Int64\(5\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-20\) \+ Int64\(56\) \* \(\- \(\- min\(DISTINCT Int64\(85\)\)\)\) \* Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "nullif\(Int64\(94\), Int64\(5\)\) \* CAST\(NULL AS Int64\) \+ Int64\(\-20\) \+ Int64\(56\) \* \(\- \(\- min\(DISTINCT Int64\(85\)\)\)\) \* Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( + 94, + 5 ) * + CAST ( NULL AS INTEGER ) + - 20 + 56 * - ( + ( - MIN ( DISTINCT 85 ) ) ) * - 40 AS col0 # Datafusion - Types were automatically converted from: @@ -22334,7 +22334,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 140421 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(18\) \* Int64\(36\) \* Int64\(44\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE WHEN NOT Int64\(47\) IS NOT NULL THEN \(\- CAST\(NULL AS Int32\)\) \- Int64\(55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-36\) \+ \(\- Int64\(\-27\)\) ELSE Int64\(62\) \* Int64\(95\) END \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(18\) \* Int64\(36\) \* Int64\(44\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE WHEN NOT Int64\(47\) IS NOT NULL THEN \(\- CAST\(NULL AS Int64\)\) \- Int64\(55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-36\) \+ \(\- Int64\(\-27\)\) ELSE Int64\(62\) \* Int64\(95\) END \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 AS col2, + 18 * 36 * + 44 + + ( + - COUNT ( * ) ) + CASE WHEN NOT + 47 IS NOT NULL THEN + - CAST ( NULL AS INTEGER ) - + + 55 * - COUNT ( * ) * - 36 + - - 27 ELSE + 62 * 95 END * + 19 col2 query I rowsort @@ -23406,7 +23406,7 @@ SELECT + 13 + + 32 AS col1, 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-73\) AS col1" at position 0 and "Int64\(52\) \+ Int64\(44\) / Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-73\) AS col1" at position 0 and "Int64\(52\) \+ Int64\(44\) / Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) + + - 73 AS col1, 52 + + 44 / + 81 AS col1 query I rowsort label-4450 @@ -25316,7 +25316,7 @@ SELECT + 48 + + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -2406 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(\-50\) \* Int64\(47\) \+ Int64\(2\) \* CAST\(Int64\(\-49\) AS Int32\) \+ Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(\-50\) \* Int64\(47\) \+ Int64\(2\) \* CAST\(Int64\(\-49\) AS Int64\) \+ Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 63 AS col0, - 50 * + ( + + 47 ) + + 2 * + CAST ( - 49 AS INTEGER ) + + + 42 AS col0 query I rowsort @@ -27955,7 +27955,7 @@ SELECT DISTINCT + + 55, - 3 * + + COUNT ( DISTINCT + 34 ) + + 12 * + 35 * + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(23\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / Int64\(23\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) / + + 23 AS col2, - 81 AS col2 query I rowsort label-5317 @@ -30314,7 +30314,7 @@ SELECT - ( 38 ) * + 30 + 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 4923102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) \+ \(\- Int64\(78\)\) AS col0" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(\-70\)\) \+ Int64\(28\) \* nullif\(min\(Int64\(74\)\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(36\) \* Int64\(66\) \+ min\(Int64\(50\) \- Int64\(23\)\) \+ CASE WHEN Int64\(\-24\) BETWEEN Int64\(\-82\) \* Int64\(38\) \+ \(\- avg\(Int64\(\-91\)\)\) AND Int64\(18\) \* Int64\(49\) THEN Int64\(0\) WHEN NULL NOT BETWEEN Int64\(87\) AND NULL THEN NULL WHEN NOT \(\- max\(Int64\(20\)\)\) \+ Int64\(6\) \* Int64\(\-36\) NOT BETWEEN Int64\(3\) AND Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / CAST\(Int64\(9\) AS Int32\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) \+ \(\- Int64\(78\)\) AS col0" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(\-70\)\) \+ Int64\(28\) \* nullif\(min\(Int64\(74\)\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(36\) \* Int64\(66\) \+ min\(Int64\(50\) \- Int64\(23\)\) \+ CASE WHEN Int64\(\-24\) BETWEEN Int64\(\-82\) \* Int64\(38\) \+ \(\- avg\(Int64\(\-91\)\)\) AND Int64\(18\) \* Int64\(49\) THEN Int64\(0\) WHEN NULL NOT BETWEEN Int64\(87\) AND NULL THEN NULL WHEN NOT \(\- max\(Int64\(20\)\)\) \+ Int64\(6\) \* Int64\(\-36\) NOT BETWEEN Int64\(3\) AND Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / CAST\(Int64\(9\) AS Int64\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 95 + - + 78 AS col0, - 67 + - ( - 70 ) + + + ( + 28 ) * + NULLIF ( + MIN ( ALL + + 74 ), COUNT ( * ) ) * + 36 * + 66 + MIN ( ALL 50 - + 23 ) + + CASE WHEN ( - 24 ) BETWEEN - 82 * + 38 + - AVG ( ALL - 91 ) AND 18 * 49 THEN + 0 WHEN ( NULL ) NOT BETWEEN ( 87 ) AND NULL THEN NULL WHEN NOT - MAX ( ALL 20 ) + 6 * - 36 NOT BETWEEN 3 AND 1 - ( - COUNT ( * ) ) / CAST ( 9 AS INTEGER ) THEN NULL ELSE NULL END AS col0 query I rowsort label-5774 @@ -31208,7 +31208,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(44\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(44\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 61 * + - CAST ( NULL AS INTEGER ) * + 44 AS col1, 71 AS col1 query I rowsort @@ -32256,7 +32256,7 @@ SELECT ALL COUNT ( * ), - 49 * 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(\-45\) \* \(\- min\(\(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(\-45\) \* \(\- min\(\(\- CAST\(NULL AS Int64\)\)\)\) \+ Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 col1, - 45 * - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) + - 72 AS col1 query I rowsort @@ -33854,7 +33854,7 @@ SELECT DISTINCT - 84 + - COUNT ( DISTINCT - COALESCE ( - - 16, + 17 / 69, - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- count\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 + - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1, - 72 AS col1 # Datafusion - Datafusion expected results: @@ -34185,7 +34185,7 @@ SELECT NULLIF ( - COUNT ( * ), 70 ) * - - COUNT ( * ) - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-89\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-89\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) * - 89 AS col2, + 43 AS col2 query I rowsort @@ -35342,7 +35342,7 @@ SELECT DISTINCT - 54 * 44 + + - 15 * - + CAST ( CAST ( - 56 AS INTEGER ) AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 AS col0, CAST ( NULL AS INTEGER ) * - + 89 AS col0 query I rowsort @@ -35532,7 +35532,7 @@ SELECT DISTINCT + + NULLIF ( + 30, 50 ) * + 15 * + + COALESCE ( + 70, COALESCE ( # Datafusion - Expected - 1178 # Datafusion - Expected - 41 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- \(\- CAST\(Int64\(\-19\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-26\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- \(\- CAST\(Int64\(\-19\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(\-26\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 62 * - - CAST ( - 19 AS INTEGER ) col2, - 26 + 67 AS col2, + 70 query I rowsort label-6764 @@ -37461,7 +37461,7 @@ SELECT - - COUNT ( * ) + - - NULLIF ( - 80, + CAST ( - 84 AS INTEGER ) * CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "min\(DISTINCT Int64\(\-10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "min\(DISTINCT Int64\(\-10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, MIN ( DISTINCT - 10 ) AS col0 query I rowsort label-7134 @@ -38471,7 +38471,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 48 / - - CAST ( NULL AS FLOAT8 ) AS col0, CAST ( NULL AS INTEGER ) * + 6 col0 query I rowsort label-7328 @@ -38979,7 +38979,7 @@ SELECT + 79 * + - COUNT ( * ), 40 * - 34 * + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -7561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col0" at position 0 and "CAST\(Int64\(\-65\) AS Int32\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(73\) \+ Int64\(\-75\), \(\- Int64\(\-41\)\) \* Int64\(\-84\)\)\) \+ Int64\(\-93\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col0" at position 0 and "CAST\(Int64\(\-65\) AS Int64\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(73\) \+ Int64\(\-75\), \(\- Int64\(\-41\)\) \* Int64\(\-84\)\)\) \+ Int64\(\-93\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 96 ) AS col0, CAST ( - 65 AS INTEGER ) * - COALESCE ( COUNT ( * ), + 73 + ( - 75 ), - - 41 * - 84 ) + + - 93 * + 82 col0 query I rowsort label-7425 @@ -42348,7 +42348,7 @@ SELECT ALL 35 * + + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 273 # Datafusion - Expected - 2087 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(20\) \- Int64\(47\) AS col1" at position 0 and "coalesce\(CAST\(NULL AS Int32\), Int64\(42\) \* Int64\(49\)\) \+ Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(20\) \- Int64\(47\) AS col1" at position 0 and "coalesce\(CAST\(NULL AS Int64\), Int64\(42\) \* Int64\(49\)\) \+ Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 16 * + 20 - + 47 AS col1, COALESCE ( CAST ( NULL AS INTEGER ), + 42 * 49 ) + + + 29 AS col1 query I rowsort label-8063 @@ -42609,7 +42609,7 @@ SELECT ALL + 21 * - + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(\-61\) \+ Int64\(14\) \+ \(\- \(\- CASE Int64\(\-90\) WHEN Int64\(11\) \+ Int64\(\-58\) THEN Int64\(92\) ELSE NULL END\)\) \* Int64\(\-94\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(89\) \* Int64\(88\) \- \(\- Int64\(\-17\)\) \+ Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ Int64\(58\) / CAST\(NULL AS Int32\) \+ Int64\(\-17\) / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(\-61\) \+ Int64\(14\) \+ \(\- \(\- CASE Int64\(\-90\) WHEN Int64\(11\) \+ Int64\(\-58\) THEN Int64\(92\) ELSE NULL END\)\) \* Int64\(\-94\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(89\) \* Int64\(88\) \- \(\- Int64\(\-17\)\) \+ Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ Int64\(58\) / CAST\(NULL AS Int64\) \+ Int64\(\-17\) / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 60 * - 61 + + 14 + - - CASE - 90 WHEN + 11 + - 58 THEN + + 92 ELSE NULL END * + - 94 * - - CAST ( NULL AS INTEGER ) col1, + 89 * + 88 - - - 17 + - 29 + COUNT ( * ) + 20 + 58 / + CAST ( NULL AS INTEGER ) + - 17 / + 52 AS col1 query I rowsort label-8110 @@ -46334,7 +46334,7 @@ SELECT DISTINCT 20 * 8 * - + 3 + 46 * + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "CASE nullif\(Int64\(\-47\), Int64\(66\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \+ Int64\(64\) \* Int64\(\-31\)\) WHEN Int64\(16\) THEN Int64\(24\) \* max\(DISTINCT Int64\(58\)\) \+ CAST\(Int64\(8\) AS Int32\) \* Int64\(59\) WHEN Int64\(79\) \+ Int64\(9\) THEN Int64\(44\) \* \(\- CASE CASE Int64\(4\) WHEN Int64\(\-54\) / Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) THEN Int64\(50\) END WHEN Int64\(\-29\) THEN Int64\(\-4\) \+ Int64\(15\) \* Int64\(\-18\) WHEN CASE Int64\(92\) WHEN CAST\(NULL AS Int32\) \+ \(\- min\(Int64\(97\)\)\) THEN Int64\(63\) END \* Int64\(8\) THEN NULL ELSE NULL END\) END \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "CASE nullif\(Int64\(\-47\), Int64\(66\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \+ Int64\(64\) \* Int64\(\-31\)\) WHEN Int64\(16\) THEN Int64\(24\) \* max\(DISTINCT Int64\(58\)\) \+ CAST\(Int64\(8\) AS Int64\) \* Int64\(59\) WHEN Int64\(79\) \+ Int64\(9\) THEN Int64\(44\) \* \(\- CASE CASE Int64\(4\) WHEN Int64\(\-54\) / Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) THEN Int64\(50\) END WHEN Int64\(\-29\) THEN Int64\(\-4\) \+ Int64\(15\) \* Int64\(\-18\) WHEN CASE Int64\(92\) WHEN CAST\(NULL AS Int64\) \+ \(\- min\(Int64\(97\)\)\) THEN Int64\(63\) END \* Int64\(8\) THEN NULL ELSE NULL END\) END \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 71 AS col1, + CASE + NULLIF ( - 47, + 66 / + + COUNT ( * ) + + 65 + 64 * - 31 ) WHEN 16 THEN ( + 24 ) * + MAX ( DISTINCT + 58 ) + CAST ( 8 AS INTEGER ) * 59 WHEN 79 + 9 THEN 44 * - CASE + CASE + 4 WHEN - 54 / - 21 + COUNT ( * ) * ( 61 ) THEN 50 END WHEN - 29 THEN - 4 + + 15 * - 18 WHEN CASE + 92 WHEN CAST ( NULL AS INTEGER ) + - MIN ( ALL + 97 ) THEN + 63 END * 8 THEN NULL ELSE NULL END END * - 70 col1 query I rowsort label-8824 @@ -50330,7 +50330,7 @@ SELECT 70 + + COALESCE ( + 64, + - 60, COUNT ( * ) + - ( + 23 ) / + MIN ( 10 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -315 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-44\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(7\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-44\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \* Int64\(7\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - + CAST ( NULL AS INTEGER ), - 44 * COUNT ( * ) + CAST ( - + COUNT ( * ) AS INTEGER ) ) * + 7 AS col2, 3 AS col2 query I rowsort label-9584 @@ -51253,7 +51253,7 @@ SELECT ALL NULLIF ( - 51, - + 69 ) + + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-98\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(\-8\), Int64\(\-57\)\) / Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-98\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(\-8\), Int64\(\-57\)\) / Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - 98 * - COUNT ( * ) AS col2, NULLIF ( - 8, - 57 ) / - 46 AS col2 query I rowsort label-9758 @@ -51337,7 +51337,7 @@ SELECT + + 39 + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 123648 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(92\) \* coalesce\(Int64\(48\), \(\- CAST\(coalesce\(Int64\(\-98\), Int64\(32\)\) AS Int32\)\), Int64\(67\)\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(92\) \* coalesce\(Int64\(48\), \(\- CAST\(coalesce\(Int64\(\-98\), Int64\(32\)\) AS Int64\)\), Int64\(67\)\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 28 * + 92 * + COALESCE ( 48, - CAST ( COALESCE ( - 98, + ( + + 32 ) ) AS INTEGER ), 67 ) AS col1, - 2 col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_115.slt b/data/sqlite/random/expr/slt_good_115.slt index 133313c..73f9d1d 100644 --- a/data/sqlite/random/expr/slt_good_115.slt +++ b/data/sqlite/random/expr/slt_good_115.slt @@ -2579,7 +2579,7 @@ SELECT DISTINCT 44 * - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1440 # Datafusion - Expected - 46550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(44\) \* CAST\(Int64\(\-34\) AS Int32\) AS col2" at position 0 and "CAST\(Int64\(49\) AS Int32\) \* \(Int64\(53\) \* Int64\(18\) \+ Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(44\) \* CAST\(Int64\(\-34\) AS Int64\) AS col2" at position 0 and "CAST\(Int64\(49\) AS Int64\) \* \(Int64\(53\) \* Int64\(18\) \+ Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 56 + - COUNT ( * ) * + + 44 * + CAST ( - 34 AS INTEGER ) AS col2, CAST ( 49 AS INTEGER ) * + ( 53 * 18 + ( - 4 ) ) AS col2 query I rowsort label-486 @@ -3207,7 +3207,7 @@ SELECT + 29 / 71 AS col1, 40 * - - 97 * + 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(\-58\) \- CAST\(Int64\(11\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(\-58\) \- CAST\(Int64\(11\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 48 AS col2, - 58 - CAST ( ( ( 11 ) ) AS INTEGER ) AS col2 query I rowsort label-606 @@ -3445,7 +3445,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4472 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(86\) AS col2" at position 0 and "Int64\(\-11\) \- CAST\(NULL AS Int32\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(86\) AS col2" at position 0 and "Int64\(\-11\) \- CAST\(NULL AS Int64\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 * + 86 AS col2, - 11 - CAST ( NULL AS INTEGER ) * + 39 AS col2 query I rowsort @@ -5751,7 +5751,7 @@ SELECT + 85 - + - 45 + + - 36 # Datafusion - Expected - 76 # Datafusion - Expected - -5369 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- max\(DISTINCT Int64\(91\)\)\) AS col1" at position 1 and "CASE \(\- \(\- coalesce\(Int64\(18\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) WHEN CASE Int64\(26\) WHEN \(\- count\(Int64\(32\)\)\) \+ Int64\(23\) \+ CAST\(\(\- Int64\(\-75\)\) AS Int32\) \* Int64\(50\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \- Int64\(\-47\) END / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-26\) END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- max\(DISTINCT Int64\(91\)\)\) AS col1" at position 1 and "CASE \(\- \(\- coalesce\(Int64\(18\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) WHEN CASE Int64\(26\) WHEN \(\- count\(Int64\(32\)\)\) \+ Int64\(23\) \+ CAST\(\(\- Int64\(\-75\)\) AS Int64\) \* Int64\(50\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int64\) \- Int64\(\-47\) END / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-26\) END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 76 AS col0, 59 * + - MAX ( DISTINCT 91 ) col1, CASE - - COALESCE ( 18, + COUNT ( * ) ) WHEN CASE + 26 WHEN - COUNT ( + + 32 ) + 23 + + CAST ( - - 75 AS INTEGER ) * + + 50 THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - 47 END / + + COUNT ( * ) THEN - 26 END AS col1 query I rowsort @@ -6471,7 +6471,7 @@ SELECT ALL - COALESCE ( 96, - - CASE + 4 WHEN + 96 * 83 THEN NULL ELSE + ( + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13289 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-77\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ \(\- Int64\(\-57\)\) \+ Int64\(5\) \* Int64\(29\) \* \(\- coalesce\(Int64\(92\), \(\- Int64\(\-76\)\) \+ Int64\(\-98\) \+ Int64\(\-40\)\)\) \+ Int64\(22\) / Int64\(\-68\) \+ Int64\(72\) AS col1" at position 0 and "coalesce\(Int64\(\-47\), Int64\(54\) \* \(\- min\(DISTINCT Int64\(42\)\)\) \+ \(\- \(\- nullif\(Int64\(27\), Int64\(\-55\) \+ Int64\(6\) \* Int64\(70\) \+ Int64\(77\) / Int64\(63\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) AS Int32\)\)\)\)\)\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-77\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \+ \(\- Int64\(\-57\)\) \+ Int64\(5\) \* Int64\(29\) \* \(\- coalesce\(Int64\(92\), \(\- Int64\(\-76\)\) \+ Int64\(\-98\) \+ Int64\(\-40\)\)\) \+ Int64\(22\) / Int64\(\-68\) \+ Int64\(72\) AS col1" at position 0 and "coalesce\(Int64\(\-47\), Int64\(54\) \* \(\- min\(DISTINCT Int64\(42\)\)\) \+ \(\- \(\- nullif\(Int64\(27\), Int64\(\-55\) \+ Int64\(6\) \* Int64\(70\) \+ Int64\(77\) / Int64\(63\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) AS Int64\)\)\)\)\)\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 2 + - 77 + - CAST ( - COUNT ( * ) AS INTEGER ) + + ( - - 57 ) + + + 5 * 29 * - COALESCE ( + + 92, - + ( - 76 ) + + - 98 + ( - 40 ) ) + 22 / + - 68 + + 72 AS col1, COALESCE ( - 47, 54 * + - MIN ( DISTINCT + 42 ) + - - NULLIF ( + 27, - 55 + 6 * 70 + + + 77 / + 63 + - CAST ( COUNT ( * ) + + 73 AS INTEGER ) ) ) + 16 AS col1 query I rowsort label-1230 @@ -11730,7 +11730,7 @@ SELECT - 39, 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CASE Int64\(23\) WHEN \(\- Int64\(\-19\)\) \* Int64\(\-16\) \+ CAST\(Int64\(\-59\) AS Int32\) THEN \(\- Int64\(\-31\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-89\) \- Int64\(73\) \- Int64\(41\) WHEN Int64\(79\) \* Int64\(42\) \+ Int64\(24\) THEN NULL ELSE Int64\(\-12\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CASE Int64\(23\) WHEN \(\- Int64\(\-19\)\) \* Int64\(\-16\) \+ CAST\(Int64\(\-59\) AS Int64\) THEN \(\- Int64\(\-31\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-89\) \- Int64\(73\) \- Int64\(41\) WHEN Int64\(79\) \* Int64\(42\) \+ Int64\(24\) THEN NULL ELSE Int64\(\-12\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 41 AS col2, CASE 23 WHEN - - 19 * - 16 + CAST ( - 59 AS INTEGER ) THEN - - 31 / COUNT ( * ) + - 89 - + + 73 - + ( 41 ) WHEN 79 * 42 + 24 THEN NULL ELSE - 12 END AS col2 # Datafusion - Types were automatically converted from: @@ -12000,7 +12000,7 @@ SELECT ALL - + 39 + + 28 - MAX ( DISTINCT - 67 ) - - NULLIF ( 43, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) \+ Int64\(\-12\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) \+ Int64\(\-12\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 9 + - 12 AS col1, - CAST ( NULL AS INTEGER ) col1 query I rowsort label-2279 @@ -12358,7 +12358,7 @@ SELECT ALL - ( - 70 ) AS col2, + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2349 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int32\) \* coalesce\(Int64\(\-87\), Int64\(67\) \* Int64\(28\) \* Int64\(\-80\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(6\)\) AS col1" at position 0 and "max\(Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int64\) \* coalesce\(Int64\(\-87\), Int64\(67\) \* Int64\(28\) \* Int64\(\-80\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(6\)\) AS col1" at position 0 and "max\(Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 27 AS INTEGER ) * + COALESCE ( + - 87, + + 67 * + 28 * - 80 + COUNT ( * ), + + 6 ) AS col1, MAX ( ALL 14 ) AS col1 query I rowsort @@ -13958,7 +13958,7 @@ SELECT - + 21 - + 47 * - - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(74\) AS Int32\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(74\) AS Int64\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + 74 AS INTEGER ) AS col2, + 78 AS col2 query I rowsort label-2651 @@ -19247,7 +19247,7 @@ SELECT ALL 70 + + 99 - COUNT ( * ), + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(99\), Int64\(2\)\) AS col0" at position 0 and "Int64\(17\) \+ nullif\(Int64\(\-19\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\)\) \* CASE Int64\(34\) / Int64\(84\) WHEN CAST\(Int64\(85\) AS Int32\) THEN coalesce\(Int64\(43\), CAST\(NULL AS Int32\) \- Int64\(92\) / Int64\(94\)\) \- Int64\(87\) \* \(CASE Int64\(2\) WHEN CASE Int64\(17\) WHEN Int64\(\-33\) THEN NULL WHEN Int64\(57\) \- Int64\(\-72\) THEN NULL WHEN Int64\(87\) THEN NULL ELSE Int64\(\-6\) END \+ Int64\(97\) THEN Int64\(\-16\) ELSE Int64\(56\) \+ Int64\(97\) END \+ Int64\(77\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(99\), Int64\(2\)\) AS col0" at position 0 and "Int64\(17\) \+ nullif\(Int64\(\-19\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\)\) \* CASE Int64\(34\) / Int64\(84\) WHEN CAST\(Int64\(85\) AS Int64\) THEN coalesce\(Int64\(43\), CAST\(NULL AS Int64\) \- Int64\(92\) / Int64\(94\)\) \- Int64\(87\) \* \(CASE Int64\(2\) WHEN CASE Int64\(17\) WHEN Int64\(\-33\) THEN NULL WHEN Int64\(57\) \- Int64\(\-72\) THEN NULL WHEN Int64\(87\) THEN NULL ELSE Int64\(\-6\) END \+ Int64\(97\) THEN Int64\(\-16\) ELSE Int64\(56\) \+ Int64\(97\) END \+ Int64\(77\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( 99, + 2 ) AS col0, + 17 + + NULLIF ( ( - 19 ), COUNT ( * ) + 81 ) * CASE 34 / + 84 WHEN CAST ( 85 AS INTEGER ) THEN COALESCE ( + 43, + CAST ( NULL AS INTEGER ) - + 92 / 94 ) - + 87 * ( CASE + 2 WHEN CASE + 17 WHEN - 33 THEN NULL WHEN 57 - - 72 THEN NULL WHEN 87 THEN NULL ELSE - 6 END + 97 THEN - 16 ELSE 56 + 97 END + + 77 ) ELSE NULL END AS col0 query II rowsort label-3668 @@ -20514,7 +20514,7 @@ SELECT 93 + - CAST ( + 68 AS INTEGER ) * + 64 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -101 # Datafusion - Expected - -862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-76\), Int64\(\-39\)\) \- Int64\(25\) AS col1" at position 0 and "coalesce\(nullif\(Int64\(19\), \(\- Int64\(60\)\)\), \(\- CAST\(Int64\(57\) AS Int32\)\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-47\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-76\), Int64\(\-39\)\) \- Int64\(25\) AS col1" at position 0 and "coalesce\(nullif\(Int64\(19\), \(\- Int64\(60\)\)\), \(\- CAST\(Int64\(57\) AS Int64\)\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(\-47\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - 76, - 39 ) - 25 AS col1, COALESCE ( + NULLIF ( 19, - + 60 ), - CAST ( 57 AS INTEGER ) ) * + CAST ( + COUNT ( * ) AS INTEGER ) * - 47 + + 31 AS col1 query II rowsort @@ -20754,7 +20754,7 @@ SELECT DISTINCT + - 13 * - 47 * + + 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25800 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-75\)\)\) \* Int64\(4\) \* Int64\(86\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-75\)\)\) \* Int64\(4\) \* Int64\(86\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - ( - 75 ) * 4 * + 86 AS col1, - CAST ( NULL AS INTEGER ) col1 query I rowsort label-3953 @@ -20941,7 +20941,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) AS col2" at position 0 and "Int64\(34\) / CAST\(max\(Int64\(57\)\) AS Int32\) \* Int64\(\-77\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) AS col2" at position 0 and "Int64\(34\) / CAST\(max\(Int64\(57\)\) AS Int64\) \* Int64\(\-77\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 25 AS col2, 34 / ( CAST ( + MAX ( 57 ) AS INTEGER ) ) * - 77 * + - 0 AS col2 query II rowsort label-3988 @@ -22502,7 +22502,7 @@ SELECT ALL + MAX ( ALL 29 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(52\) WHEN Int64\(55\) THEN coalesce\(Int64\(71\), Int64\(68\)\) \- \(\- Int64\(73\)\) ELSE NULL END \* CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(52\) WHEN Int64\(55\) THEN coalesce\(Int64\(71\), Int64\(68\)\) \- \(\- Int64\(73\)\) ELSE NULL END \* CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE 52 WHEN + 55 THEN + COALESCE ( 71, 68 ) - + ( + - ( + + 73 ) ) ELSE NULL END * CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * + 4 * 55 AS col2 query I rowsort @@ -24411,7 +24411,7 @@ SELECT + + 28 * - + COUNT ( * ) * + 54 * + + 36 + 15 + - 80 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) query II rowsort label-4645 @@ -27939,7 +27939,7 @@ SELECT ALL 26 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- Int64\(15\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- CAST\(Int64\(45\) AS Float64\)\) \* Int64\(87\) \* \(\- CASE Int64\(61\) WHEN Int64\(55\) \+ Int64\(42\) THEN NULL WHEN min\(DISTINCT Int64\(\-74\)\) THEN Int64\(\-68\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- Int64\(15\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- CAST\(Int64\(45\) AS Float64\)\) \* Int64\(87\) \* \(\- CASE Int64\(61\) WHEN Int64\(55\) \+ Int64\(42\) THEN NULL WHEN min\(DISTINCT Int64\(\-74\)\) THEN Int64\(\-68\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 71 - 15 AS col1, CAST ( NULL AS INTEGER ) + - CAST ( 45 AS FLOAT8 ) * + 87 * - CASE 61 WHEN 55 + 42 THEN NULL WHEN MIN ( DISTINCT - 74 ) THEN - 68 ELSE NULL END AS col1 query I rowsort label-5322 @@ -28787,7 +28787,7 @@ SELECT ALL - 56 * - 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(\-63\) AS col1" at position 0 and "Int64\(71\) \* \(\- sum\(Int64\(37\)\)\) \+ Int64\(95\) \+ \(\- avg\(Int64\(68\)\)\) \+ min\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(\-63\) AS col1" at position 0 and "Int64\(71\) \* \(\- sum\(Int64\(37\)\)\) \+ Int64\(95\) \+ \(\- avg\(Int64\(68\)\)\) \+ min\(DISTINCT CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 89 + - 63 AS col1, ( + 71 ) * + - SUM ( 37 ) + + 95 + - AVG ( ALL + 68 ) + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -30270,7 +30270,7 @@ SELECT ALL - 14 + + COALESCE ( - CAST ( - 19 AS INTEGER ), 82 * + 86 + SUM ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 + + + CAST ( NULL AS INTEGER ) AS col2, + 9 AS col2 query I rowsort @@ -30403,7 +30403,7 @@ SELECT + COUNT ( * ) - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 87 + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) + 43 AS col0 query I rowsort label-5791 @@ -31807,7 +31807,7 @@ SELECT DISTINCT + 32 * 26 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - -1932 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(75\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- Int64\(81\)\), Int64\(34\)\) \+ \(\- \(\- Int64\(54\)\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Float64\) WHEN \(\- sum\(Int64\(\-47\)\)\) THEN Int64\(42\) WHEN CASE Int64\(8\) WHEN \(\- Int64\(\-61\)\) THEN NULL ELSE Int64\(2\) END THEN \(\- Int64\(\-93\)\) END\) AS col2" at position 0 and "sum\(Int64\(39\)\) \* Int64\(\-48\) \+ \(\- CAST\(Int64\(60\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(75\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- Int64\(81\)\), Int64\(34\)\) \+ \(\- \(\- Int64\(54\)\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Float64\) WHEN \(\- sum\(Int64\(\-47\)\)\) THEN Int64\(42\) WHEN CASE Int64\(8\) WHEN \(\- Int64\(\-61\)\) THEN NULL ELSE Int64\(2\) END THEN \(\- Int64\(\-93\)\) END\) AS col2" at position 0 and "sum\(Int64\(39\)\) \* Int64\(\-48\) \+ \(\- CAST\(Int64\(60\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE + + 75 WHEN + + COUNT ( * ) * COALESCE ( - + 81, + + 34 ) + - - ( 54 ) THEN + COUNT ( * ) * + CAST ( NULL AS FLOAT8 ) WHEN - SUM ( - 47 ) THEN 42 WHEN + CASE + + 8 WHEN - - 61 THEN NULL ELSE 2 END THEN - - 93 END AS col2, SUM ( + 39 ) * - 48 + - CAST ( + + 60 AS INTEGER ) AS col2, + COUNT ( * ) query I rowsort @@ -32672,7 +32672,7 @@ SELECT DISTINCT + 4, - 26 * - ( - + 14 ) * + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 AS col0, CAST ( NULL AS INTEGER ) * - 54 AS col0 query I rowsort label-6221 @@ -33942,7 +33942,7 @@ SELECT - ( 10 ) + + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-3\) AS Int32\) \+ Int64\(\-73\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-3\) AS Int64\) \+ Int64\(\-73\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 3 AS INTEGER ) + - 73 AS col1, 21 AS col1 query I rowsort label-6457 @@ -34443,7 +34443,7 @@ SELECT ALL - COUNT ( * ) - 69 + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( CAST ( NULL AS INTEGER ) ) AS col1, 18 AS col1 query I rowsort label-6552 @@ -42739,7 +42739,7 @@ SELECT ALL 51 AS col2, 48 + 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, + ( - 99 ) AS col2 query I rowsort label-8130 @@ -46564,7 +46564,7 @@ SELECT ALL + + 69 * 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6300 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(70\) AS col0" at position 0 and "Int64\(\-71\) \+ CAST\(NULL AS Int32\) \+ Int64\(77\) \* coalesce\(CAST\(\(\- Int64\(\-10\)\) AS Int32\), max\(Int64\(47\)\) \+ Int64\(\-36\), Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(70\) AS col0" at position 0 and "Int64\(\-71\) \+ CAST\(NULL AS Int64\) \+ Int64\(77\) \* coalesce\(CAST\(\(\- Int64\(\-10\)\) AS Int64\), max\(Int64\(47\)\) \+ Int64\(\-36\), Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 90 * + 70 AS col0, - 71 + CAST ( NULL AS INTEGER ) + 77 * COALESCE ( + CAST ( - - 10 AS INTEGER ), + MAX ( ALL ( 47 ) ) + - 36, + 4 ) AS col0 query I rowsort label-8858 @@ -47195,7 +47195,7 @@ SELECT ALL - - 8 * - + 15 * + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(\(\- \(\- coalesce\(Int64\(0\), Int64\(98\), Int64\(47\) \* Int64\(20\)\)\)\), \(\- \(\- \(\- Int64\(82\)\)\)\)\)\), Int64\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-37\) / CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(2\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(\(\- \(\- coalesce\(Int64\(0\), Int64\(98\), Int64\(47\) \* Int64\(20\)\)\)\), \(\- \(\- \(\- Int64\(82\)\)\)\)\)\), Int64\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-37\) / CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(2\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - + NULLIF ( - - COALESCE ( + + 0, + 98, + 47 * 20 ), - - ( - + 82 ) ), - 54 * + ( + COUNT ( * ) ) / - 37 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ), 2 / + COUNT ( * ) ) + 69 AS col0, CAST ( NULL AS INTEGER ) * + 10 AS col0 query II rowsort @@ -47922,7 +47922,7 @@ SELECT - 17 * ( - - SUM ( DISTINCT - 67 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 88 AS col1, + CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -49213,7 +49213,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(28\), Int64\(39\) \+ \(\- Int64\(47\)\) \+ Int64\(27\) \* Int64\(\-19\) \- Int64\(\-41\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-42\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-92\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\)\) THEN coalesce\(Int64\(40\), Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\)\) END \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(\-98\)\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(28\), Int64\(39\) \+ \(\- Int64\(47\)\) \+ Int64\(27\) \* Int64\(\-19\) \- Int64\(\-41\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-42\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-92\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int64\)\) THEN coalesce\(Int64\(40\), Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\)\) END \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(\-98\)\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( 28, 39 + - + 47 + + 27 * - 19 - - 41 + CASE - - COUNT ( * ) WHEN - 42 + COUNT ( * ) * - 92 + + NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) THEN + COALESCE ( 40, + 85 * + COUNT ( * ) ) END + ( + COUNT ( * ) ), - 98 ) + + 25 AS col1, 71 + - 38 AS col1 query I rowsort label-9360 diff --git a/data/sqlite/random/expr/slt_good_116.slt b/data/sqlite/random/expr/slt_good_116.slt index 1a3b003..48da13d 100644 --- a/data/sqlite/random/expr/slt_good_116.slt +++ b/data/sqlite/random/expr/slt_good_116.slt @@ -3774,7 +3774,7 @@ SELECT DISTINCT + 27 * - + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7200 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(85\) \+ Int64\(\-60\) AS col0" at position 0 and "CAST\(Int64\(40\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(85\) \+ Int64\(\-60\) AS col0" at position 0 and "CAST\(Int64\(40\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 84 * + 85 + - 60 AS col0, ( CAST ( 40 AS INTEGER ) ) AS col0 query I rowsort @@ -7125,7 +7125,7 @@ SELECT DISTINCT - - 91 - - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8686 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(max\(Int64\(99\)\), \(\- coalesce\(\(\- \(\- sum\(\(\- CAST\(Int64\(8\) AS Int32\)\)\)\)\), Int64\(\-94\) \* Int64\(5\), Int64\(80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* CASE \(\- Int64\(\-31\)\) WHEN Int64\(43\) THEN NULL WHEN \(\- nullif\(Int64\(2\), Int64\(\-47\)\)\) THEN \(\- Int64\(41\)\) ELSE NULL END \+ Int64\(\-53\) \* Int64\(14\)\) \* Int64\(87\) \+ \(\- Int64\(10\)\) \+ \(\- nullif\(Int64\(\-83\), Int64\(10\) \+ Int64\(2\)\)\) AS col1" at position 0 and "Int64\(7\) \- Int64\(50\) / Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(max\(Int64\(99\)\), \(\- coalesce\(\(\- \(\- sum\(\(\- CAST\(Int64\(8\) AS Int64\)\)\)\)\), Int64\(\-94\) \* Int64\(5\), Int64\(80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* CASE \(\- Int64\(\-31\)\) WHEN Int64\(43\) THEN NULL WHEN \(\- nullif\(Int64\(2\), Int64\(\-47\)\)\) THEN \(\- Int64\(41\)\) ELSE NULL END \+ Int64\(\-53\) \* Int64\(14\)\) \* Int64\(87\) \+ \(\- Int64\(10\)\) \+ \(\- nullif\(Int64\(\-83\), Int64\(10\) \+ Int64\(2\)\)\) AS col1" at position 0 and "Int64\(7\) \- Int64\(50\) / Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( ( MAX ( + + 99 ) ), - COALESCE ( - - SUM ( ALL - CAST ( ( 8 ) AS INTEGER ) ), + - 94 * + 5, 80 * - COUNT ( * ) ) * + CASE - - 31 WHEN 43 THEN NULL WHEN - NULLIF ( + 2, - 47 ) THEN - + 41 ELSE NULL END + - 53 * 14 ) * + 87 + - + 10 + - NULLIF ( - 83, 10 + + 2 ) AS col1, + 7 - 50 / + - 7 AS col1 query I rowsort @@ -7168,7 +7168,7 @@ SELECT ALL - - 4 AS col2, 31 * COUNT ( * ) + + 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 44 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1356 @@ -7903,7 +7903,7 @@ SELECT + 54 * 78 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-69\) \* \(\- Int64\(\-3\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int64\) \* Int64\(\-69\) \* \(\- Int64\(\-3\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 24 AS col1, 87 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 69 * - - 3 + 60 col1 query II rowsort label-1494 @@ -9242,7 +9242,7 @@ SELECT + 7 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(84\) \* CASE Int64\(\-4\) WHEN Int64\(97\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-49\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) WHEN Int64\(52\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) ELSE Int64\(23\) / Int64\(68\) END \* Int64\(66\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(84\) \* CASE Int64\(\-4\) WHEN Int64\(97\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-49\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) WHEN Int64\(52\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) ELSE Int64\(23\) / Int64\(68\) END \* Int64\(66\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 AS col2, 84 * CASE - 4 WHEN 97 * - - 39 + - 49 THEN ( + COUNT ( * ) ) + + 91 WHEN + 52 THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE 23 / 68 END * 66 + 99 AS col2 # Datafusion - Datafusion expected results: @@ -11319,7 +11319,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1674 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(54\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(54\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 54 * + 31 AS col0 query I rowsort @@ -12991,7 +12991,7 @@ SELECT - 40 + + ( - - 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-56\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(\-76\)\) \* Int64\(6\) \+ Int64\(55\) \+ Int64\(\-37\) / Int64\(61\) \+ Int64\(\-46\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-56\) \+ \(\- CAST\(NULL AS Int64\)\) / \(\- Int64\(\-76\)\) \* Int64\(6\) \+ Int64\(55\) \+ Int64\(\-37\) / Int64\(61\) \+ Int64\(\-46\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 + - 56 + - CAST ( NULL AS INTEGER ) / - - 76 * + 6 + + 55 + - 37 / 61 + - 46 AS col1, - 57 AS col1 query I rowsort label-2466 @@ -13832,7 +13832,7 @@ SELECT - 17 / 67 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col0, 61 AS col0 query I rowsort label-2626 @@ -14365,7 +14365,7 @@ SELECT ALL + 90 * - + 16 - + - 4 * - + 98 - - 78 # Datafusion - Expected - -58 # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(88\) \+ Int64\(\-26\) AS col1" at position 1 and "Int64\(\-29\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(88\) \+ Int64\(\-26\) AS col1" at position 1 and "Int64\(\-29\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 58 AS col0, CAST ( NULL AS INTEGER ) / 88 + + - 26 AS col1, + ( + - 29 ) AS col1 query I rowsort @@ -14435,7 +14435,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-72\) AS Int32\)\)\) \+ CAST\(Int64\(\-14\) AS Int32\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-72\) AS Int64\)\)\) \+ CAST\(Int64\(\-14\) AS Int64\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( + - 72 AS INTEGER ) + CAST ( + - 14 AS INTEGER ) AS col0, 53 AS col0 query II rowsort @@ -15081,7 +15081,7 @@ SELECT + MAX ( - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(93\)\), CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(93\)\), CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( - + 93, + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 query I rowsort label-2866 @@ -22687,7 +22687,7 @@ SELECT COUNT ( + + 69 ) AS col1, - 80 * - MIN ( - + 47 ) * - + 4 + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(20\), Int64\(\-5\) \+ Int64\(1\) \- \(\- coalesce\(\(\- Int64\(95\)\), \(\- \(\- CAST\(Int64\(\-78\) AS Int32\)\)\), Int64\(\-53\)\)\) / Int64\(6\)\) \+ \(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(20\), Int64\(\-5\) \+ Int64\(1\) \- \(\- coalesce\(\(\- Int64\(95\)\), \(\- \(\- CAST\(Int64\(\-78\) AS Int64\)\)\), Int64\(\-53\)\)\) / Int64\(6\)\) \+ \(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + 20, + - 5 + 1 - - COALESCE ( - + 95, - - CAST ( - 78 AS INTEGER ), + - 53 ) / + 6 ) + ( - + 81 ) AS col0, 78 AS col0 query I rowsort @@ -31665,7 +31665,7 @@ SELECT ALL 76 AS col1, + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -2648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "\(\- CAST\(Int64\(67\) AS Int32\)\) \* Int64\(40\) \- Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "\(\- CAST\(Int64\(67\) AS Int64\)\) \* Int64\(40\) \- Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 87 AS col1, - CAST ( + + 67 AS INTEGER ) * 40 - - 32 AS col1 query II rowsort label-6024 @@ -31866,7 +31866,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 2550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int32\) AS col0" at position 0 and "Int64\(50\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int64\) AS col0" at position 0 and "Int64\(50\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 38 AS INTEGER ) AS col0, 50 * + + 51 AS col0 query I rowsort label-6061 @@ -33842,7 +33842,7 @@ SELECT + 92 + - 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(49\)\) AS col1" at position 0 and "CAST\(Int64\(6\) AS Int32\) \* Int64\(\-46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(49\)\) AS col1" at position 0 and "CAST\(Int64\(6\) AS Int64\) \* Int64\(\-46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + SUM ( ALL + 49 ) AS col1, CAST ( + 6 AS INTEGER ) * - 46 * + - COUNT ( * ) AS col1 query I rowsort label-6434 @@ -36767,7 +36767,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1073 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(37\) AS col2" at position 0 and "nullif\(\(\- max\(DISTINCT Int64\(\-64\)\)\), Int64\(\-16\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(37\) AS col2" at position 0 and "nullif\(\(\- max\(DISTINCT Int64\(\-64\)\)\), Int64\(\-16\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 29 * 37 AS col2, + NULLIF ( - MAX ( DISTINCT + - 64 ), - 16 ) * - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -38873,7 +38873,7 @@ SELECT 39, NULLIF ( 40, + 9 * + + 82 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18954 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(\-9\) \* Int64\(26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(\-9\) \* Int64\(26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 * - 9 * + 26 AS col0, + COUNT ( * ) * + - CAST ( + + 84 AS INTEGER ) col0 query II rowsort @@ -38895,7 +38895,7 @@ SELECT DISTINCT + ( - 99 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-87\) AS Int32\) / Int64\(\-13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-87\) AS Int64\) / Int64\(\-13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 87 AS INTEGER ) / - 13 AS col2, COUNT ( * ) - - - COUNT ( * ) AS col2 query I rowsort label-7400 @@ -41252,7 +41252,7 @@ SELECT ALL 4 + + 95 + 16 * 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10626 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(2\) \* Int64\(77\) AS col2" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- Int64\(\-47\)\) / Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(2\) \* Int64\(77\) AS col2" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) \+ \(\- Int64\(\-47\)\) / Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 * + + ( 2 ) * 77 AS col2, MIN ( - - CAST ( NULL AS INTEGER ) ) + - - 47 / - 54 col2 # Datafusion - Datafusion expected results: @@ -44339,7 +44339,7 @@ SELECT 60 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "CASE Int64\(\-70\) WHEN Int64\(\-20\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ \(\- nullif\(nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-87\)\), max\(\(\- Int64\(50\)\)\)\)\) \+ Int64\(37\) \* avg\(CASE Int64\(83\) WHEN Int64\(\-92\) \- Int64\(93\) THEN NULL WHEN Int64\(24\) \+ Int64\(28\) THEN Int64\(58\) \* nullif\(Int64\(23\), Int64\(94\)\) ELSE Int64\(73\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "CASE Int64\(\-70\) WHEN Int64\(\-20\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ \(\- nullif\(nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-87\)\), max\(\(\- Int64\(50\)\)\)\)\) \+ Int64\(37\) \* avg\(CASE Int64\(83\) WHEN Int64\(\-92\) \- Int64\(93\) THEN NULL WHEN Int64\(24\) \+ Int64\(28\) THEN Int64\(58\) \* nullif\(Int64\(23\), Int64\(94\)\) ELSE Int64\(73\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col0, CASE - 70 WHEN - 20 THEN - COUNT ( * ) END + - + NULLIF ( + NULLIF ( - + CAST ( NULL AS INTEGER ), - 87 ), + MAX ( - + 50 ) ) + 37 * AVG ( CASE + 83 WHEN - 92 - 93 THEN NULL WHEN + 24 + ( 28 ) THEN 58 * + NULLIF ( 23, 94 ) ELSE 73 END ) col0 query I rowsort label-8437 @@ -44541,7 +44541,7 @@ SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(67\)\)\) AS col1" at position 0 and "CAST\(Int64\(24\) AS Int32\) \* Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(67\)\)\) AS col1" at position 0 and "CAST\(Int64\(24\) AS Int64\) \* Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( + 67 ) AS col1, + CAST ( + 24 AS INTEGER ) * 58 AS col1 query II rowsort label-8475 @@ -45007,7 +45007,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2745 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* CAST\(Int64\(\-61\) AS Int32\) AS col2" at position 0 and "Int64\(81\) \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* CAST\(Int64\(\-61\) AS Int64\) AS col2" at position 0 and "Int64\(81\) \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 45 * CAST ( - 61 AS INTEGER ) AS col2, 81 + - 31 AS col2 query I rowsort @@ -45896,7 +45896,7 @@ SELECT ALL 45 - + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(30\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(22\) / nullif\(Int64\(\-38\), Int64\(18\)\) \* \(\- coalesce\(Int64\(50\), \(\- Int64\(87\)\), Int64\(53\)\)\) \+ \(\- coalesce\(Int64\(33\), Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(30\)\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(22\) / nullif\(Int64\(\-38\), Int64\(18\)\) \* \(\- coalesce\(Int64\(50\), \(\- Int64\(87\)\), Int64\(53\)\)\) \+ \(\- coalesce\(Int64\(33\), Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( 30 ) * + CAST ( NULL AS INTEGER ) AS col1, 22 / NULLIF ( - 38, 18 ) * - COALESCE ( 50, - + 87, + + 53 ) + - + COALESCE ( 33, + ( + + 62 ) ) AS col1 query I rowsort @@ -48460,7 +48460,7 @@ SELECT DISTINCT 14 * - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109134 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(94\) \* Int64\(27\) AS col2" at position 0 and "Int64\(\-42\) / Int64\(29\) \* Int64\(72\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(94\) \* Int64\(27\) AS col2" at position 0 and "Int64\(\-42\) / Int64\(29\) \* Int64\(72\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 * + 94 * 27 AS col2, - 42 / 29 * + 72 * + CAST ( COUNT ( * ) AS INTEGER ) AS col2 query I rowsort label-9220 @@ -49715,7 +49715,7 @@ SELECT ALL 74 * + 30 * - ( + 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -5686 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(Int64\(\-67\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-6\) \* count\(Int64\(1\)\) \+ \(\- Int64\(80\)\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(Int64\(\-67\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-6\) \* count\(Int64\(1\)\) \+ \(\- Int64\(80\)\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( + CAST ( + - 67 AS INTEGER ) ) AS col2, - 6 * + ( + + COUNT ( + 1 ) ) + - + 80 * 71 AS col2 query I rowsort label-9458 diff --git a/data/sqlite/random/expr/slt_good_117.slt b/data/sqlite/random/expr/slt_good_117.slt index b9ca472..4ae00f9 100644 --- a/data/sqlite/random/expr/slt_good_117.slt +++ b/data/sqlite/random/expr/slt_good_117.slt @@ -2338,7 +2338,7 @@ SELECT - COUNT ( ALL + - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1825 # Datafusion - Expected - -7505 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(\-79\) \* CAST\(Int64\(95\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(\-79\) \* CAST\(Int64\(95\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 * - 73 AS col0, - 79 * + CAST ( + 95 AS INTEGER ) AS col0 query I rowsort label-438 @@ -5202,7 +5202,7 @@ SELECT DISTINCT + 68 / + 60 + + COUNT ( DISTINCT - 41 ), + 25 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 409920 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* Int64\(\-61\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(48\) \* CASE Int64\(92\) WHEN avg\(Int64\(49\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(25\), Int64\(92\)\) WHEN Int64\(\-29\) THEN NULL WHEN Int64\(38\) THEN Int64\(\-82\) \* \(\- CAST\(Int64\(\-82\) AS Int32\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* Int64\(\-61\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(48\) \* CASE Int64\(92\) WHEN avg\(Int64\(49\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(25\), Int64\(92\)\) WHEN Int64\(\-29\) THEN NULL WHEN Int64\(38\) THEN Int64\(\-82\) \* \(\- CAST\(Int64\(\-82\) AS Int64\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + ( - 80 ) * + - 61 * - 84 AS col1, 48 * CASE + 92 WHEN AVG ( ALL 49 ) - - COUNT ( * ) THEN - + COUNT ( * ) * + NULLIF ( + 25, 92 ) WHEN - 29 THEN NULL WHEN + 38 THEN - 82 * ( - CAST ( ( - 82 ) AS INTEGER ) ) ELSE NULL END AS col1 query I rowsort label-985 @@ -5567,7 +5567,7 @@ SELECT - 43 AS col0, + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT Int64\(81\)\)\) \* Int64\(62\) \+ Int64\(\-84\) \- Int64\(\-76\) \* Int64\(82\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(11\) AS col2" at position 0 and "Int64\(\-94\) / \(\- CAST\(Int64\(\-88\) AS Int32\)\) \+ \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT Int64\(81\)\)\) \* Int64\(62\) \+ Int64\(\-84\) \- Int64\(\-76\) \* Int64\(82\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(11\) AS col2" at position 0 and "Int64\(\-94\) / \(\- CAST\(Int64\(\-88\) AS Int64\)\) \+ \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - AVG ( DISTINCT 81 ) ) * 62 + - 84 - - 76 * 82 * - CAST ( NULL AS INTEGER ) + 11 AS col2, - 94 / - CAST ( + - 88 AS INTEGER ) + - + 14 AS col2 query II rowsort label-1053 @@ -6106,7 +6106,7 @@ SELECT - ( - 11 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(45\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(45\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 AS col2, 45 + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-1157 @@ -11080,7 +11080,7 @@ SELECT 98 * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(\-19\) / Int64\(\-46\) \+ min\(Int64\(76\)\) \* count\(\(\- CAST\(NULL AS Int32\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(77\) \* count\(Int64\(\-65\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(\-19\) / Int64\(\-46\) \+ min\(Int64\(76\)\) \* count\(\(\- CAST\(NULL AS Int64\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(77\) \* count\(Int64\(\-65\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 69 ) + - 19 / + - 46 + MIN ( 76 ) * + COUNT ( - + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - + 77 * + + COUNT ( + - 65 ) AS col0, 28 AS col0 # Datafusion - Types were automatically converted from: @@ -14422,7 +14422,7 @@ SELECT + 9 * - - COALESCE ( + - CASE - - 87 WHEN 34 THEN NULL WHEN + + 18 THEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(49\)\) AS Int32\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(49\)\) AS Int64\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + 49 AS INTEGER ) col1, 88 AS col1 query I rowsort label-2741 @@ -14528,7 +14528,7 @@ SELECT 85 - + - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "count\(Int64\(35\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "count\(Int64\(35\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 col1, + COUNT ( 35 ) + - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -14554,7 +14554,7 @@ SELECT ALL ( - 71 ) - 53 * 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4030 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \* Int64\(62\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-69\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \* Int64\(62\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-69\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + - 65 * + 62 col0, + 90 * - 69 + CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -16685,7 +16685,7 @@ SELECT ALL 22 / + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- Int64\(47\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- Int64\(47\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 84 + - + CAST ( NULL AS INTEGER ) AS col2, - ( + 47 ) - + COUNT ( * ) + - 20 AS col2 query I rowsort label-3173 @@ -16892,7 +16892,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(42\) AS Int32\) / \(\- Int64\(38\)\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-57\)\), sum\(Int64\(84\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(42\) AS Int64\) / \(\- Int64\(38\)\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-57\)\), sum\(Int64\(84\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + 42 AS INTEGER ) / - + 38 AS col1, NULLIF ( - - 57, + SUM ( 84 ) ) col1 query I rowsort label-3212 @@ -17739,7 +17739,7 @@ SELECT + COUNT ( ALL - + 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 99 AS col0 query I rowsort label-3370 @@ -21784,7 +21784,7 @@ SELECT ALL COUNT ( * ) - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 57 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -22512,7 +22512,7 @@ SELECT ALL 48 * + - 74 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1537 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / Int64\(93\) \* Int64\(88\) \+ max\(Int64\(53\)\) \* \(\- nullif\(Int64\(29\), Int64\(9\) \* CASE \(\- Int64\(64\)\) WHEN Int64\(59\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE CAST\(Int64\(\-26\) AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 0 and "nullif\(Int64\(17\), Int64\(58\) \* Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / Int64\(93\) \* Int64\(88\) \+ max\(Int64\(53\)\) \* \(\- nullif\(Int64\(29\), Int64\(9\) \* CASE \(\- Int64\(64\)\) WHEN Int64\(59\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE CAST\(Int64\(\-26\) AS Int64\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 0 and "nullif\(Int64\(17\), Int64\(58\) \* Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 64 / + 93 * 88 + ( + + MAX ( ALL 53 ) ) * - ( + NULLIF ( + + 29, + 9 * CASE - ( 64 ) WHEN + + 59 THEN + COUNT ( * ) ELSE + CAST ( - 26 AS INTEGER ) / COUNT ( * ) * + COUNT ( * ) END ) ) AS col1, NULLIF ( 17, 58 * + 95 ) AS col1 query I rowsort label-4275 @@ -23378,7 +23378,7 @@ SELECT 22 + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 257 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "count\(CASE Int64\(40\) WHEN Int64\(88\) / \(\- Int64\(\-97\)\) THEN \(\- CAST\(NULL AS Int32\)\) END\) \+ Int64\(29\) \+ Int64\(19\) \* Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "count\(CASE Int64\(40\) WHEN Int64\(88\) / \(\- Int64\(\-97\)\) THEN \(\- CAST\(NULL AS Int64\)\) END\) \+ Int64\(29\) \+ Int64\(19\) \* Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 AS col1, COUNT ( ALL CASE + 40 WHEN + 88 / - - 97 THEN - CAST ( NULL AS INTEGER ) END ) + + 29 + + + 19 * + 12 AS col1 query II rowsort @@ -24837,7 +24837,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(4\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(4\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - CAST ( NULL AS INTEGER ) ) * + 4 AS col1, - 1 col1 query I rowsort label-4720 @@ -26219,7 +26219,7 @@ SELECT - 29 * + 3 * + 24 * - + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(41\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(41\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 * - CAST ( NULL AS INTEGER ) * + 41 / + COUNT ( * ) + 20 AS col2, 42 col2 query I rowsort label-4984 @@ -27710,7 +27710,7 @@ SELECT - NULLIF ( + + COUNT ( * ), + 65 ) + + MAX ( - - 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(54\) \* \(\- \(\- CASE Int64\(55\) WHEN Int64\(\-48\) THEN Int64\(11\) \* Int64\(\-81\) \+ CAST\(NULL AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-88\) \* Int64\(35\) THEN Int64\(22\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(54\) \* \(\- \(\- CASE Int64\(55\) WHEN Int64\(\-48\) THEN Int64\(11\) \* Int64\(\-81\) \+ CAST\(NULL AS Int64\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-88\) \* Int64\(35\) THEN Int64\(22\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 34 AS col0, 54 * - - CASE + + 55 WHEN - 48 THEN 11 * + - 81 + + + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN + - 88 * + 35 THEN 22 END AS col0 query I rowsort @@ -28968,7 +28968,7 @@ SELECT + COUNT ( * ) * 99 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1164 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) / \(\- CAST\(Int64\(94\) AS Int32\)\) \+ \(\- Int64\(97\)\) \* coalesce\(Int64\(\-12\), CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(87\) THEN Int64\(\-83\) ELSE NULL END / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-35\)\) AS col2" at position 0 and "CAST\(\(\- Int64\(65\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) / \(\- CAST\(Int64\(94\) AS Int64\)\) \+ \(\- Int64\(97\)\) \* coalesce\(Int64\(\-12\), CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(87\) THEN Int64\(\-83\) ELSE NULL END / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-35\)\) AS col2" at position 0 and "CAST\(\(\- Int64\(65\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 47 / - + CAST ( 94 AS INTEGER ) + - + 97 * + COALESCE ( - 12, CASE COUNT ( * ) WHEN + 87 THEN - 83 ELSE NULL END / - - COUNT ( * ), - 35 ) AS col2, + CAST ( - + 65 AS INTEGER ) AS col2 query I rowsort label-5503 @@ -30282,7 +30282,7 @@ SELECT DISTINCT 51 + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 182 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(92\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(43\) WHEN Int64\(60\) \* Int64\(75\) THEN \(\- min\(DISTINCT Int64\(16\)\)\) WHEN \(\- CASE \(\- Int64\(\-56\)\) WHEN Int64\(\-65\) \* sum\(Int64\(1\)\) \+ Int64\(69\) THEN NULL WHEN Int64\(\-42\) \* Int64\(68\) \+ \(\- \(\- nullif\(Int64\(64\), Int64\(20\) \* min\(Int64\(41\)\) \+ Int64\(\-7\)\)\)\) THEN Int64\(17\) END\) THEN NULL ELSE NULL END \+ \(\- Int64\(1\)\) \+ \(\- \(\- coalesce\(Int64\(82\), \(\- count\(Int64\(18\)\)\)\)\)\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-99\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(92\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* CASE Int64\(43\) WHEN Int64\(60\) \* Int64\(75\) THEN \(\- min\(DISTINCT Int64\(16\)\)\) WHEN \(\- CASE \(\- Int64\(\-56\)\) WHEN Int64\(\-65\) \* sum\(Int64\(1\)\) \+ Int64\(69\) THEN NULL WHEN Int64\(\-42\) \* Int64\(68\) \+ \(\- \(\- nullif\(Int64\(64\), Int64\(20\) \* min\(Int64\(41\)\) \+ Int64\(\-7\)\)\)\) THEN Int64\(17\) END\) THEN NULL ELSE NULL END \+ \(\- Int64\(1\)\) \+ \(\- \(\- coalesce\(Int64\(82\), \(\- count\(Int64\(18\)\)\)\)\)\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-99\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 90 + 92 AS col2, - CAST ( NULL AS INTEGER ) * CASE + 43 WHEN 60 * 75 THEN - MIN ( DISTINCT + 16 ) WHEN - CASE - - 56 WHEN + - 65 * + SUM ( + 1 ) + + 69 THEN NULL WHEN - 42 * 68 + + + ( - - NULLIF ( + 64, 20 * + ( + MIN ( 41 ) ) + - 7 ) ) THEN ( 17 ) END THEN NULL ELSE NULL END + - + 1 + - + ( - COALESCE ( + 82, + + ( - COUNT ( ALL 18 ) ) ) ) / CASE - COUNT ( * ) WHEN + 88 THEN - 99 ELSE NULL END col2 query I rowsort @@ -30687,7 +30687,7 @@ SELECT ALL 54 + + - 71 + + - 61 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ nullif\(\(\- CAST\(\(\- Int64\(24\)\) AS Int32\)\), Int64\(\-73\)\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ nullif\(\(\- CAST\(\(\- Int64\(24\)\) AS Int64\)\), Int64\(\-73\)\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 24 + + + NULLIF ( - CAST ( - + 24 AS INTEGER ), - 73 ) AS col0, 79 + 98 AS col0 query I rowsort @@ -30862,7 +30862,7 @@ SELECT 51 * - - 64 # Datafusion - Expected - 2724 # Datafusion - Expected - 0 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- Int64\(67\)\) \+ sum\(Int64\(29\)\) \* \(\- CAST\(Int64\(\-92\) AS Int32\)\) \+ Int64\(59\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- Int64\(67\)\) \+ sum\(Int64\(29\)\) \* \(\- CAST\(Int64\(\-92\) AS Int64\)\) \+ Int64\(59\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 + - + 67 + SUM ( + 29 ) * + - CAST ( - 92 AS INTEGER ) + 59 AS col2, - 23 / 44 AS col1, - COUNT ( * ) * 18 AS col2 query I rowsort @@ -31146,7 +31146,7 @@ SELECT ( + COUNT ( * ) ) * + 42, - 49 col2 # Datafusion - Expected - NULL # Datafusion - Expected - 51 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / nullif\(CASE CAST\(NULL AS Int32\) WHEN Int64\(\-21\) THEN Int64\(34\) \- count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-99\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-14\) END, \(\- Int64\(69\)\)\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / nullif\(CASE CAST\(NULL AS Int64\) WHEN Int64\(\-21\) THEN Int64\(34\) \- count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-99\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-14\) END, \(\- Int64\(69\)\)\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) / + NULLIF ( + CASE CAST ( NULL AS INTEGER ) WHEN + - 21 THEN 34 - ( + COUNT ( * ) ) WHEN - 99 THEN NULL WHEN 0 THEN - 14 END, - + 69 ) AS col0, + 53 + 78 / - 38, + 75 AS col0 query II rowsort label-5914 @@ -32120,7 +32120,7 @@ SELECT ALL + SUM ( 80 ) + COUNT ( * ) + - - 55 / + 56 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(13\) AS col0" at position 0 and "max\(\(\- coalesce\(Int64\(88\), CAST\(Int64\(5\) AS Int32\) \+ Int64\(95\) / Int64\(72\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(13\) AS col0" at position 0 and "max\(\(\- coalesce\(Int64\(88\), CAST\(Int64\(5\) AS Int64\) \+ Int64\(95\) / Int64\(72\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 32 + - - COUNT ( * ) + 13 AS col0, MAX ( - COALESCE ( 88, + CAST ( + 5 AS INTEGER ) + + 95 / + 72 ) ) AS col0 query I rowsort label-6097 @@ -34178,7 +34178,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int32\)\) \+ \(\- Int64\(94\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int64\)\) \+ \(\- Int64\(94\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - + 94 AS col0, 82 AS col0 query II rowsort label-6491 @@ -36050,7 +36050,7 @@ SELECT - 54 + - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(99\) \+ Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(99\) \+ Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 35 AS col0, CAST ( NULL AS INTEGER ) + 99 + + 95 * + - COUNT ( * ) AS col0 query I rowsort label-6844 @@ -39711,7 +39711,7 @@ SELECT ALL ( 74 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-44\) AS Int32\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-44\) AS Int64\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 44 AS INTEGER ) AS col0, 98 AS col0 query I rowsort @@ -39929,7 +39929,7 @@ SELECT DISTINCT - COALESCE ( 71, + + 38 * 25, - + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68640 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(20\) \* Int64\(\-66\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(20\) \* Int64\(\-66\) 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\. SELECT 52 * 20 * - 66 AS col0, + CAST ( NULL AS INTEGER ) col0 # Datafusion - Types were automatically converted from: @@ -40141,7 +40141,7 @@ SELECT + 9 * + NULLIF ( + 24, - 70 ) + + + 71 + + 71 + - 97 + + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-89\), Int64\(68\) / Int64\(\-58\) / count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) \+ Int64\(\-85\) \+ Int64\(\-7\) \+ Int64\(\-30\) AS col0" at position 0 and "Int64\(16\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-89\), Int64\(68\) / Int64\(\-58\) / count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int64\) \+ Int64\(\-85\) \+ Int64\(\-7\) \+ Int64\(\-30\) AS col0" at position 0 and "Int64\(16\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( - 89, 68 / - 58 / COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + + - 85 + - 7 + - 30 AS col0, 16 * 59 AS col0 query I rowsort label-7617 @@ -40847,7 +40847,7 @@ SELECT DISTINCT 38 / - - NULLIF ( 25, + 14 ) AS col2, - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2738 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* CAST\(\(\- Int64\(42\)\) AS Int32\) \+ Int64\(50\) AS col2" at position 0 and "\(\- \(\- Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* CAST\(\(\- Int64\(42\)\) AS Int64\) \+ Int64\(50\) AS col2" at position 0 and "\(\- \(\- Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 64 * + + CAST ( - + 42 AS INTEGER ) + + 50 AS col2, - ( - + 80 ) col2 query I rowsort @@ -41662,7 +41662,7 @@ SELECT ALL + 71 AS col1, 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(\-44\) \* CAST\(NULL AS Int32\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(\-44\) \* CAST\(NULL AS Int64\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 42 AS col2, - 44 * + ( CAST ( NULL AS INTEGER ) ) * - 79 AS col2 query I rowsort @@ -45236,7 +45236,7 @@ SELECT ALL COUNT ( + + 71 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 3 AS col0 query I rowsort @@ -47794,7 +47794,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 202937 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-94\) / Int64\(23\) AS col1" at position 0 and "Int64\(\-30\) \- \(\- Int64\(67\)\) \+ Int64\(86\) \* Int64\(\-40\) \* CAST\(\(\- Int64\(59\)\) AS Int32\) \+ Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-94\) / Int64\(23\) AS col1" at position 0 and "Int64\(\-30\) \- \(\- Int64\(67\)\) \+ Int64\(86\) \* Int64\(\-40\) \* CAST\(\(\- Int64\(59\)\) AS Int64\) \+ Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - 94 / ( + + 23 ) AS col1, - 30 - - + 67 + + + 86 * - 40 * CAST ( - + 59 AS INTEGER ) + - 60 AS col1 query I rowsort label-9070 @@ -49183,7 +49183,7 @@ SELECT ALL MAX ( + - 75 ) + + 82 # Datafusion - Expected - -3 # Datafusion - Expected - 70 # Datafusion - Expected - 746 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(48\) WHEN Int64\(46\) THEN NULL ELSE Int64\(\-70\) \+ \(\- CAST\(\(\- \(\- Int64\(47\)\)\) AS Int32\)\) / Int64\(68\) END\) AS col2" at position 1 and "Int64\(\-93\) \+ Int64\(9\) \* Int64\(87\) \+ Int64\(56\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(48\) WHEN Int64\(46\) THEN NULL ELSE Int64\(\-70\) \+ \(\- CAST\(\(\- \(\- Int64\(47\)\)\) AS Int64\)\) / Int64\(68\) END\) AS col2" at position 1 and "Int64\(\-93\) \+ Int64\(9\) \* Int64\(87\) \+ Int64\(56\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 AS col0, - CASE 48 WHEN 46 THEN NULL ELSE - 70 + - + CAST ( - - ( + + 47 ) AS INTEGER ) / 68 END AS col2, - 93 + + ( + 9 ) * + 87 + 56 AS col2 query I rowsort label-9332 diff --git a/data/sqlite/random/expr/slt_good_118.slt b/data/sqlite/random/expr/slt_good_118.slt index bdaa3d4..ba02dd6 100644 --- a/data/sqlite/random/expr/slt_good_118.slt +++ b/data/sqlite/random/expr/slt_good_118.slt @@ -1047,7 +1047,7 @@ SELECT 60 * 93 + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "nullif\(nullif\(coalesce\(CAST\(NULL AS Int32\), Int64\(\-41\), Int64\(6\)\), Int64\(\-71\)\), Int64\(\-75\) \* \(\- Int64\(85\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "nullif\(nullif\(coalesce\(CAST\(NULL AS Int64\), Int64\(\-41\), Int64\(6\)\), Int64\(\-71\)\), Int64\(\-75\) \* \(\- Int64\(85\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 48 AS col0, ( + NULLIF ( + NULLIF ( + COALESCE ( + CAST ( NULL AS INTEGER ), - 41, 6 ), - 71 ), + - 75 * - + 85 ) ) AS col0 query I rowsort @@ -4048,7 +4048,7 @@ SELECT DISTINCT - 79 * 13 * 48 col0, + SUM ( 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(CASE Int64\(7\) WHEN Int64\(\-87\) \* Int64\(3\) THEN \(\- Int64\(74\)\) \+ \(\- CAST\(NULL AS Int32\)\) END AS Int32\), Int64\(\-11\)\) \+ Int64\(\-26\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(CASE Int64\(7\) WHEN Int64\(\-87\) \* Int64\(3\) THEN \(\- Int64\(74\)\) \+ \(\- CAST\(NULL AS Int64\)\) END AS Int64\), Int64\(\-11\)\) \+ Int64\(\-26\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( + CAST ( CASE 7 WHEN - 87 * 3 THEN - + 74 + - CAST ( NULL AS INTEGER ) END AS INTEGER ), - 11 ) + - 26 AS col2, + 52 AS col2 query I rowsort label-769 @@ -7057,7 +7057,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-12\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-12\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - 12 ) AS col0, + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 query I rowsort label-1343 @@ -7622,7 +7622,7 @@ SELECT ALL ( 60 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -736368 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(92\) \* Int64\(92\) \* Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(92\) \* Int64\(92\) \* Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 92 * 92 * - 87 AS col0, 89 + + MIN ( 39 ) query I rowsort label-1449 @@ -7778,7 +7778,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7347 # Datafusion - Expected - -75145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* \(\- Int64\(93\)\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(76\) \* Int64\(\-22\) \* CAST\(Int64\(45\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* \(\- Int64\(93\)\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(76\) \* Int64\(\-22\) \* CAST\(Int64\(45\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 79 * - + 93 AS col1, 95 + 76 * - 22 * + + CAST ( 45 AS INTEGER ) AS col1 query II rowsort label-1479 @@ -8897,7 +8897,7 @@ SELECT ALL + + 0 AS col1, + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51699 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) \* Int64\(33\) \* Int64\(\-49\) \- CAST\(Int64\(44\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) \* Int64\(33\) \* Int64\(\-49\) \- CAST\(Int64\(44\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 32 * 33 * - 49 - CAST ( + 44 AS INTEGER ) + - COUNT ( * ) AS col1, 64 AS col1 query I rowsort @@ -11457,7 +11457,7 @@ SELECT 95 + + ( + 87 ), 12 * - 31 + - 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-6\) WHEN Int64\(57\) THEN Int64\(\-19\) WHEN CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(46\) / Int64\(3\) END\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-6\) WHEN Int64\(57\) THEN Int64\(\-19\) WHEN CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(46\) / Int64\(3\) END\)\) 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\. SELECT - ( - + CASE - 6 WHEN 57 THEN - 19 WHEN CAST ( NULL AS INTEGER ) + ( + + COUNT ( * ) ) THEN NULL ELSE 46 / 3 END ) AS col0, + ( CAST ( NULL AS INTEGER ) ) col0 query I rowsort label-2181 @@ -12489,7 +12489,7 @@ SELECT DISTINCT CAST ( - ( - 72 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col0, COUNT ( * ) AS col0 query II rowsort label-2379 @@ -13476,7 +13476,7 @@ SELECT - 22 + + + COUNT ( * ) AS col1, 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(27\) \* CAST\(NULL AS Int32\) \- Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(27\) \* CAST\(NULL AS Int64\) \- Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 col1, 27 * + CAST ( NULL AS INTEGER ) - 87 col1 query I rowsort @@ -19244,7 +19244,7 @@ SELECT - - COUNT ( * ) * + CAST ( + 79 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(Int64\(\-9\) AS Int32\) \+ \(\- Int64\(\-75\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(Int64\(\-9\) AS Int64\) \+ \(\- Int64\(\-75\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 56 AS col0, + CAST ( - 9 AS INTEGER ) + - - 75 * + COUNT ( * ) AS col0 query I rowsort label-3667 @@ -20845,7 +20845,7 @@ SELECT DISTINCT - COUNT ( * ) * + + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(50\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int32\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(50\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int64\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 AS col2, 50 + + - COUNT ( * ) + - 88 * + + CAST ( NULL AS INTEGER ) * 11 AS col2 query I rowsort label-3971 @@ -21338,7 +21338,7 @@ SELECT ALL MAX ( ALL + - 99 ) + + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2017 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(91\) \+ Int64\(87\) \* Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(11\) \+ Int64\(\-24\) \+ Int64\(70\) \* Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(91\) \+ Int64\(87\) \* Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(11\) \+ Int64\(\-24\) \+ Int64\(70\) \* Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * + 91 + ( + 87 ) * 63 + COUNT ( * ) col0, 11 + - 24 + + 70 * + 29 AS col0 query II rowsort label-4064 @@ -21750,7 +21750,7 @@ SELECT ALL + 68 + - 6 + + 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2084 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- sum\(DISTINCT Int64\(\-4\)\)\), Int64\(\-31\)\) \+ \(\- Int64\(58\)\) \* Int64\(36\) AS col1" at position 0 and "CAST\(Int64\(60\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- sum\(DISTINCT Int64\(\-4\)\)\), Int64\(\-31\)\) \+ \(\- Int64\(58\)\) \* Int64\(36\) AS col1" at position 0 and "CAST\(Int64\(60\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( - + SUM ( DISTINCT - 4 ), - 31 ) + - + 58 * + + 36 AS col1, CAST ( + ( ( 60 ) ) AS INTEGER ) AS col1 query II rowsort label-4142 @@ -24510,7 +24510,7 @@ SELECT - + ( + + 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(84\) \+ \(\- \(\- coalesce\(\(\- \(\- count\(DISTINCT Int64\(\-13\)\)\)\), Int64\(\-51\)\)\)\) \+ CASE WHEN NOT NULL NOT BETWEEN NULL AND Int64\(28\) THEN coalesce\(Int64\(88\), Int64\(68\)\) WHEN NOT Int64\(3\) BETWEEN Int64\(26\) \* Int64\(19\) AND CAST\(Int64\(67\) AS Int32\) THEN NULL END \* Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(84\) \+ \(\- \(\- coalesce\(\(\- \(\- count\(DISTINCT Int64\(\-13\)\)\)\), Int64\(\-51\)\)\)\) \+ CASE WHEN NOT NULL NOT BETWEEN NULL AND Int64\(28\) THEN coalesce\(Int64\(88\), Int64\(68\)\) WHEN NOT Int64\(3\) BETWEEN Int64\(26\) \* Int64\(19\) AND CAST\(Int64\(67\) AS Int64\) THEN NULL END \* Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, 84 + - - COALESCE ( - - COUNT ( DISTINCT - 13 ), - 51 ) + + + CASE WHEN NOT NULL NOT BETWEEN NULL AND 28 THEN COALESCE ( ( 88 ), 68 ) WHEN NOT 3 BETWEEN + 26 * 19 AND + CAST ( 67 AS INTEGER ) THEN NULL END * - 25 AS col2 query I rowsort @@ -24788,7 +24788,7 @@ SELECT - 10 - + 39 + - 42, - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(71\)\) AS col1" at position 0 and "\(\- CAST\(CAST\(NULL AS Int32\) AS Float64\)\) \* nullif\(Int64\(23\), Int64\(\-81\) \* Int64\(\-30\)\) \+ Int64\(82\) \+ Int64\(\-96\) / Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(71\)\) AS col1" at position 0 and "\(\- CAST\(CAST\(NULL AS Int64\) AS Float64\)\) \* nullif\(Int64\(23\), Int64\(\-81\) \* Int64\(\-30\)\) \+ Int64\(82\) \+ Int64\(\-96\) / Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( + ( 71 ) ) AS col1, - CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) * NULLIF ( + + 23, - 81 * + - 30 ) + + 82 + - 96 / + 33 AS col1 query I rowsort label-4726 @@ -25455,7 +25455,7 @@ SELECT 23 + + COUNT ( ALL + + 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 741 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT CAST\(Int64\(95\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(57\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT CAST\(Int64\(95\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(57\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( DISTINCT + CAST ( + 95 AS INTEGER ) ) AS col2, + 57 * + 13 AS col2 query I rowsort @@ -25669,7 +25669,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(75\) \* coalesce\(CAST\(Int64\(8\) AS Int32\), Int64\(19\) \* \(\- Int64\(5\)\) \+ Int64\(\-66\) \+ Int64\(\-4\) \- Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(75\) \* coalesce\(CAST\(Int64\(8\) AS Int64\), Int64\(19\) \* \(\- Int64\(5\)\) \+ Int64\(\-66\) \+ Int64\(\-4\) \- Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + 75 * + ( COALESCE ( CAST ( + + 8 AS INTEGER ), + 19 * + - ( + 5 ) + - 66 + + - 4 - + 17 * + + COUNT ( * ) * 65 + CAST ( COUNT ( * ) AS INTEGER ) ) ) AS col2 query I rowsort label-4893 @@ -26585,7 +26585,7 @@ SELECT - 48 + - 28 + + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- Int64\(\-38\)\)\) \* Int64\(86\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-45\)\) \* \(\- Int64\(\-97\)\) \* Int64\(\-62\) \+ Int64\(\-73\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(74\) \* Int64\(4\) \- Int64\(65\) \+ Int64\(\-7\) \* Int64\(98\) \- Int64\(\-42\) END\) \+ Int64\(68\) \+ CAST\(Int64\(\-61\) AS Int32\) \+ Int64\(\-36\) / Int64\(59\) \* Int64\(24\) / Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- Int64\(\-38\)\)\) \* Int64\(86\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-45\)\) \* \(\- Int64\(\-97\)\) \* Int64\(\-62\) \+ Int64\(\-73\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(74\) \* Int64\(4\) \- Int64\(65\) \+ Int64\(\-7\) \* Int64\(98\) \- Int64\(\-42\) END\) \+ Int64\(68\) \+ CAST\(Int64\(\-61\) AS Int64\) \+ Int64\(\-36\) / Int64\(59\) \* Int64\(24\) / Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 AS col0, 67 * - - ( - 38 ) * + + 86 * - - COUNT ( * ) + - - 45 * - - 97 * - 62 + - 73 + - CASE 66 WHEN + - COUNT ( * ) THEN 74 * + + 4 - + + 65 + - 7 * + 98 - - 42 END + + 68 + + CAST ( - 61 AS INTEGER ) + - 36 / 59 * 24 / - 22 AS col0 query I rowsort @@ -27533,7 +27533,7 @@ SELECT DISTINCT + - 64 * - 98 AS col0, - 79 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-93\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(95\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-93\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(95\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - MIN ( DISTINCT - 93 ) AS col1, COUNT ( * ) * CAST ( + ( + + 95 ) AS INTEGER ) AS col1 query I rowsort @@ -27549,7 +27549,7 @@ SELECT DISTINCT + ( - 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(93\) \* Int64\(\-42\) \- Int64\(\-36\) \+ Int64\(\-77\)\)\) AS Int32\) / \(\- Int64\(\-99\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(93\) \* Int64\(\-42\) \- Int64\(\-36\) \+ Int64\(\-77\)\)\) AS Int64\) / \(\- Int64\(\-99\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - COALESCE ( COUNT ( * ), + 93 * - 42 - + - 36 + + - 77 ) AS INTEGER ) / - - 99 AS col1, + 69 AS col1 query I rowsort @@ -28066,7 +28066,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(91\) \+ Int64\(44\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(44\) \+ Int64\(\-75\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-22\) \- Int64\(\-85\) \+ \(\- Int64\(88\)\) THEN NULL END AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(91\) \+ Int64\(44\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(44\) \+ Int64\(\-75\) \+ CAST\(NULL AS Int64\) \+ Int64\(\-22\) \- Int64\(\-85\) \+ \(\- Int64\(88\)\) THEN NULL END AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - - COUNT ( * ) WHEN + 91 + 44 THEN + COUNT ( * ) WHEN 44 + - 75 + CAST ( NULL AS INTEGER ) + - 22 - - 85 + - + 88 THEN NULL END AS col0, 33 AS col0 query I rowsort @@ -29048,7 +29048,7 @@ SELECT ALL - - MAX ( ALL - - 15 ) + + 42 * + 59 * NULLIF ( COUNT ( * ), - ( - CA # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "\(\- Int64\(82\)\) \- Int64\(97\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(96\)\) \+ Int64\(34\) \+ Int64\(63\) \* Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "\(\- Int64\(82\)\) \- Int64\(97\) \* CAST\(NULL AS Int64\) \* \(\- Int64\(96\)\) \+ Int64\(34\) \+ Int64\(63\) \* Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 AS col1, - ( 82 ) - + ( 97 ) * CAST ( NULL AS INTEGER ) * - + 96 + 34 + + 63 * ( - 69 ) AS col1 query I rowsort label-5533 @@ -30232,7 +30232,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 5278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(22\)\) AS Int32\) \- \(\- nullif\(Int64\(27\), nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(35\)\) \+ Int64\(55\) \+ Int64\(43\)\)\) AS col2" at position 0 and "Int64\(58\) \* \(\- \(\- nullif\(Int64\(91\), Int64\(44\) \- Int64\(73\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(22\)\) AS Int64\) \- \(\- nullif\(Int64\(27\), nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(35\)\) \+ Int64\(55\) \+ Int64\(43\)\)\) AS col2" at position 0 and "Int64\(58\) \* \(\- \(\- nullif\(Int64\(91\), Int64\(44\) \- Int64\(73\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - + 22 AS INTEGER ) - - NULLIF ( + 27, NULLIF ( COUNT ( * ), + 35 ) + + 55 + 43 ) AS col2, 58 * - - NULLIF ( 91, + 44 - + + 73 ) AS col2 query I rowsort label-5759 @@ -35363,7 +35363,7 @@ SELECT ALL - 9, - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(35\) \* avg\(\(\- Int64\(73\)\)\) \+ Int64\(29\) AS col0" at position 0 and "Int64\(92\) \* Int64\(74\) \+ Int64\(46\) \* \(\- max\(Int64\(35\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(35\) \* avg\(\(\- Int64\(73\)\)\) \+ Int64\(29\) AS col0" at position 0 and "Int64\(92\) \* Int64\(74\) \+ Int64\(46\) \* \(\- max\(Int64\(35\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 22 * - CAST ( NULL AS INTEGER ) * 35 * AVG ( - + 73 ) + + 29 AS col0, + 92 * + 74 + 46 * - + MAX ( 35 ) AS col0 query II rowsort label-6731 @@ -35686,7 +35686,7 @@ SELECT ALL - - 48, + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "CAST\(Int64\(40\) AS Int32\) / Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CASE \(\- Int64\(65\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(95\) \* Int64\(12\) \+ Int64\(99\) \- Int64\(21\) ELSE Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "CAST\(Int64\(40\) AS Int64\) / Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CASE \(\- Int64\(65\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(95\) \* Int64\(12\) \+ Int64\(99\) \- Int64\(21\) ELSE Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 71 AS col1, CAST ( 40 AS INTEGER ) / 10 * + COUNT ( * ) + - - CASE - + 65 WHEN + COUNT ( * ) THEN + + 95 * + 12 + + 99 - 21 ELSE + 1 + + ( + COUNT ( * ) ) END AS col1 query II rowsort label-6792 @@ -37069,7 +37069,7 @@ SELECT 61 * 65 / + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- \(\- Int64\(\-4\)\) AS col0" at position 0 and "CAST\(Int64\(\-65\) AS Int32\) \+ Int64\(1\) \+ Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- \(\- Int64\(\-4\)\) AS col0" at position 0 and "CAST\(Int64\(\-65\) AS Int64\) \+ Int64\(1\) \+ Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 - - - 4 AS col0, CAST ( + - 65 AS INTEGER ) + 1 + - 3 AS col0 query II rowsort @@ -37981,7 +37981,7 @@ SELECT + 75 + - 55 * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) / Int64\(78\) AS col0" at position 0 and "Int64\(15\) \* \(\- CAST\(sum\(DISTINCT Int64\(1\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) / Int64\(78\) AS col0" at position 0 and "Int64\(15\) \* \(\- CAST\(sum\(DISTINCT Int64\(1\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 68 / 78 col0, 15 * - CAST ( + SUM ( DISTINCT 1 ) AS INTEGER ) AS col0 query I rowsort @@ -42480,7 +42480,7 @@ SELECT CAST ( 17 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(54\)\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-62\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(54\)\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-62\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( DISTINCT + + 54 ) AS col0, + CAST ( - - 62 AS INTEGER ) AS col0 query I rowsort label-8091 @@ -45542,7 +45542,7 @@ SELECT DISTINCT + 61 / - - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(12\)\) AS col0" at position 0 and "coalesce\(nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(7\) \* max\(Int64\(\-15\)\) / nullif\(\(\- \(\- Int64\(\-57\)\)\), min\(Int64\(72\)\) / CASE Int64\(\-62\) WHEN \(\- CAST\(Int64\(1\) AS Int32\)\) THEN Int64\(51\) END\) \- max\(\(\- Int64\(58\)\)\)\), Int64\(44\) \* \(\- Int64\(85\)\) \* Int64\(10\) \+ \(\- CAST\(Int64\(\-66\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(12\)\) AS col0" at position 0 and "coalesce\(nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(7\) \* max\(Int64\(\-15\)\) / nullif\(\(\- \(\- Int64\(\-57\)\)\), min\(Int64\(72\)\) / CASE Int64\(\-62\) WHEN \(\- CAST\(Int64\(1\) AS Int64\)\) THEN Int64\(51\) END\) \- max\(\(\- Int64\(58\)\)\)\), Int64\(44\) \* \(\- Int64\(85\)\) \* Int64\(10\) \+ \(\- CAST\(Int64\(\-66\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( ALL + 12 ) AS col0, + COALESCE ( + NULLIF ( - - COUNT ( * ), 7 * MAX ( - 15 ) / + + NULLIF ( - ( - - 57 ), MIN ( ALL + 72 ) / CASE - 62 WHEN - CAST ( 1 AS INTEGER ) THEN + 51 END ) - + MAX ( - + 58 ) ), + 44 * - + 85 * 10 + - CAST ( - 66 AS INTEGER ) ) col0 query I rowsort label-8672 @@ -47313,7 +47313,7 @@ SELECT - 85 + + 12 col2, 25 * + 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1734 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ \(\- Int64\(\-37\)\) \* Int64\(48\) \- \(\- nullif\(Int64\(37\), \(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ \(\- Int64\(\-37\)\) \* Int64\(48\) \- \(\- nullif\(Int64\(37\), \(\- CAST\(NULL AS Int64\)\)\)\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 79 + - ( + - 37 ) * 48 - - NULLIF ( + 37, - CAST ( NULL AS INTEGER ) ) AS col0, 44 AS col0 query I rowsort @@ -47541,7 +47541,7 @@ SELECT - COUNT ( * ) + + + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(81\) \- Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(32\) \+ \(\- CAST\(max\(\(\- Int64\(3\)\)\) AS Float64\)\) / \(\- nullif\(Int64\(52\), Int64\(4\) \* Int64\(39\)\)\) \+ CASE \(\- Int64\(54\)\) WHEN Int64\(\-73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-45\)\) THEN NULL WHEN Int64\(\-92\) / Int64\(\-90\) \* nullif\(Int64\(\-67\), Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-24\)\) THEN Int64\(51\) END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- Int64\(81\) \- Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(32\) \+ \(\- CAST\(max\(\(\- Int64\(3\)\)\) AS Float64\)\) / \(\- nullif\(Int64\(52\), Int64\(4\) \* Int64\(39\)\)\) \+ CASE \(\- Int64\(54\)\) WHEN Int64\(\-73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-45\)\) THEN NULL WHEN Int64\(\-92\) / Int64\(\-90\) \* nullif\(Int64\(\-67\), Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-24\)\) THEN Int64\(51\) END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) - + 81 - 55 * COUNT ( * ) * 32 + - CAST ( + MAX ( ALL - + 3 ) AS FLOAT8 ) / - NULLIF ( + 52, + 4 * + 39 ) + + CASE - ( + + 54 ) WHEN - 73 + - COUNT ( * ) - - - 45 THEN NULL WHEN - 92 / - 90 * + NULLIF ( - 67, 64 * COUNT ( * ) + - 24 ) THEN 51 END AS col0, - 3 AS col0 query I rowsort @@ -47708,7 +47708,7 @@ NULL # Datafusion - Expected - -348928 # Datafusion - Expected - 7826 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- Int64\(64\)\) \* CAST\(Int64\(58\) AS Int32\) AS col0" at position 0 and "CAST\(Int64\(86\) AS Int32\) \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- Int64\(64\)\) \* CAST\(Int64\(58\) AS Int64\) AS col0" at position 0 and "CAST\(Int64\(86\) AS Int64\) \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 94 * - + 64 * + CAST ( 58 AS INTEGER ) AS col0, CAST ( 86 AS INTEGER ) * + 91 col0, + + NULLIF ( + 88, + + 27 * - ( + 87 ) + - ( 46 ) + + 96 + ( + 27 ) ) query I rowsort label-9082 @@ -47877,7 +47877,7 @@ SELECT ALL 29 + + MAX ( DISTINCT + 20 ) + + SUM ( - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 365 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* CASE CAST\(NULL AS Int32\) WHEN Int64\(\-78\) THEN NULL ELSE Int64\(73\) END AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* CASE CAST\(NULL AS Int64\) WHEN Int64\(\-78\) THEN NULL ELSE Int64\(73\) END AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 * CASE + CAST ( NULL AS INTEGER ) WHEN - 78 THEN NULL ELSE 73 END col2, 71 AS col2 query I rowsort @@ -51454,7 +51454,7 @@ SELECT - - NULLIF ( - COALESCE ( 36, - COUNT ( * ) ), COALESCE ( + CAST ( NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "CAST\(Int64\(\-70\) AS Int32\) / Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "CAST\(Int64\(\-70\) AS Int64\) / Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 70 AS col0, CAST ( - 70 AS INTEGER ) / - 95 col0 query I rowsort label-9794 @@ -51754,7 +51754,7 @@ SELECT - 72 - - + ( - COUNT ( * ) ) * + - ( - COUNT ( * ) ) / + 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + 56 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_119.slt b/data/sqlite/random/expr/slt_good_119.slt index 66c2c95..907eade 100644 --- a/data/sqlite/random/expr/slt_good_119.slt +++ b/data/sqlite/random/expr/slt_good_119.slt @@ -160,7 +160,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-86\) \* Int64\(0\) \* Int64\(\-83\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-86\) \* Int64\(0\) \* Int64\(\-83\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 + - 86 * + 0 * - 83 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -1297,7 +1297,7 @@ SELECT ALL - 26 AS col1, - SUM ( - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-241 @@ -2347,7 +2347,7 @@ SELECT ALL - 78 + + 68 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 9 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "nullif\(coalesce\(Int64\(\-14\), Int64\(\-51\)\), \(\- Int64\(\-54\)\) \* \(\- max\(Int64\(\-9\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "nullif\(coalesce\(Int64\(\-14\), Int64\(\-51\)\), \(\- Int64\(\-54\)\) \* \(\- max\(Int64\(\-9\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 73 * - CAST ( NULL AS INTEGER ) AS col1, 9, NULLIF ( COALESCE ( - 14, - 51 ), - - 54 * - MAX ( - 9 ) ) AS col1 query I rowsort label-440 @@ -10093,7 +10093,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(\-55\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \* Int64\(\-55\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 55 AS col1, - 18 AS col1 query I rowsort @@ -11884,7 +11884,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-22\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-22\) AS Int64\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( - 22 AS INTEGER ) * - COUNT ( * ) + + 19 AS col0, + ( - 56 ) AS col0 query I rowsort @@ -14455,7 +14455,7 @@ SELECT ALL - + 5 + - 53 * + 16, + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(70\) AS Int32\) \+ Int64\(34\) AS col2" at position 0 and "Int64\(17\) \* Int64\(29\) \+ Int64\(66\) \* \(\- Int64\(66\)\) \* min\(Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(70\) AS Int64\) \+ Int64\(34\) AS col2" at position 0 and "Int64\(17\) \* Int64\(29\) \+ Int64\(66\) \* \(\- Int64\(66\)\) \* min\(Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 70 AS INTEGER ) + 34 AS col2, + 17 * 29 + 66 * - + 66 * + MIN ( ALL + 0 ) AS col2 query I rowsort @@ -14899,7 +14899,7 @@ SELECT - ( + 78 ) + 15 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ Int64\(9\) AS col0" at position 0 and "CASE Int64\(\-77\) WHEN Int64\(\-95\) THEN NULL WHEN Int64\(82\) \+ Int64\(62\) THEN Int64\(\-13\) \- \(\- coalesce\(Int64\(\-6\), Int64\(64\) / \(\- CASE Int64\(\-66\) WHEN Int64\(9\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-50\) \* Int64\(82\) THEN NULL ELSE Int64\(62\) END\), Int64\(92\)\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ Int64\(9\) AS col0" at position 0 and "CASE Int64\(\-77\) WHEN Int64\(\-95\) THEN NULL WHEN Int64\(82\) \+ Int64\(62\) THEN Int64\(\-13\) \- \(\- coalesce\(Int64\(\-6\), Int64\(64\) / \(\- CASE Int64\(\-66\) WHEN Int64\(9\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-50\) \* Int64\(82\) THEN NULL ELSE Int64\(62\) END\), Int64\(92\)\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 74 + 9 AS col0, CASE - 77 WHEN + - 95 THEN NULL WHEN 82 + + + 62 THEN - 13 - - COALESCE ( - 6, + 64 / - CASE + - 66 WHEN 9 + - CAST ( NULL AS INTEGER ) + - 50 * 82 THEN NULL ELSE 62 END, 92 ) END AS col0 query I rowsort @@ -15295,7 +15295,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) 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\. SELECT DISTINCT 25 AS col0, CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -15428,7 +15428,7 @@ SELECT - - 25 * 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) \* Int64\(36\) \+ \(\- Int64\(74\)\) \+ Int64\(54\) \+ Int64\(\-12\) \* \(\- Int64\(61\)\) \- Int64\(41\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* \(\- Int64\(89\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(23\) \+ CASE Int64\(31\) WHEN \(\- max\(Int64\(31\)\)\) THEN NULL WHEN Int64\(\-15\) \+ Int64\(\-19\) \* Int64\(6\) THEN Int64\(35\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) \* Int64\(36\) \+ \(\- Int64\(74\)\) \+ Int64\(54\) \+ Int64\(\-12\) \* \(\- Int64\(61\)\) \- Int64\(41\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \* \(\- Int64\(89\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(23\) \+ CASE Int64\(31\) WHEN \(\- max\(Int64\(31\)\)\) THEN NULL WHEN Int64\(\-15\) \+ Int64\(\-19\) \* Int64\(6\) THEN Int64\(35\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 58 * 36 + - + 74 + 54 + - 12 * - ( 61 ) - + 41 + - - CAST ( NULL AS INTEGER ) * - + 89 / - COUNT ( * ) * + - 67 AS col0, 23 + CASE + 31 WHEN ( + - MAX ( 31 ) ) THEN NULL WHEN - 15 + - 19 * 6 THEN 35 END col0 query I rowsort label-2937 @@ -15660,7 +15660,7 @@ SELECT DISTINCT 1 * - + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -2654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \* Int64\(56\) \- \(\- Int64\(10\)\) \* Int64\(\-34\) \* \(\- \(\- CAST\(avg\(Int64\(13\)\) AS Int32\)\)\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \* Int64\(56\) \- \(\- Int64\(10\)\) \* Int64\(\-34\) \* \(\- \(\- CAST\(avg\(Int64\(13\)\) AS Int64\)\)\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 AS col0, COUNT ( * ) * + 31 * + 56 - - + 10 * - 34 * - - CAST ( + AVG ( + 13 ) AS INTEGER ) + 30 AS col0 query I rowsort label-2981 @@ -17180,7 +17180,7 @@ SELECT DISTINCT + NULLIF ( - - ( - + ( + 70 ) ), - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "nullif\(\(\- Int64\(\-45\)\), Int64\(97\)\) \* CASE \(\- Int64\(\-56\)\) WHEN Int64\(58\) THEN CAST\(NULL AS Int32\) \- Int64\(\-44\) WHEN \(\- Int64\(15\)\) / Int64\(75\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) THEN Int64\(\-47\) END \+ coalesce\(\(\- Int64\(7\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(84\)\), \(\- Int64\(52\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "nullif\(\(\- Int64\(\-45\)\), Int64\(97\)\) \* CASE \(\- Int64\(\-56\)\) WHEN Int64\(58\) THEN CAST\(NULL AS Int64\) \- Int64\(\-44\) WHEN \(\- Int64\(15\)\) / Int64\(75\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) THEN Int64\(\-47\) END \+ coalesce\(\(\- Int64\(7\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(84\)\), \(\- Int64\(52\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 28 AS col2, NULLIF ( - - 45, 97 ) * CASE - - 56 WHEN + 58 THEN + CAST ( NULL AS INTEGER ) - - 44 WHEN - + 15 / 75 - COUNT ( * ) + - 33 THEN + - 47 END + COALESCE ( - + 7, - COUNT ( * ) + AVG ( + 84 ), - + 52 ) AS col2 query I rowsort @@ -17284,7 +17284,7 @@ SELECT + - 7 + 58 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2755 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(30\) AS Int32\) \+ Int64\(\-29\) \* Int64\(96\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(30\) AS Int64\) \+ Int64\(\-29\) \* Int64\(96\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) + CAST ( 30 AS INTEGER ) + - 29 * 96 AS col2, 98 AS col2 query I rowsort @@ -17333,7 +17333,7 @@ SELECT + COUNT ( * ) * + 17 # Datafusion - Expected - 98 # Datafusion - Expected - NULL # Datafusion - Expected - 252 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-85\) \* Int64\(\-3\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(76\) \- Int64\(94\) \* CAST\(\(\- Int64\(14\)\) AS Int32\) THEN Int64\(98\) \* Int64\(53\) END \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-85\) \* Int64\(\-3\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(76\) \- Int64\(94\) \* CAST\(\(\- Int64\(14\)\) AS Int64\) THEN Int64\(98\) \* Int64\(53\) END \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 98 col1, - 85 * + - 3 / CASE - + COUNT ( * ) WHEN 76 - 94 * + CAST ( - + 14 AS INTEGER ) THEN + 98 * 53 END + 10 col1, 63 * 4 AS col1 query I rowsort label-3298 @@ -20963,7 +20963,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "\(\- nullif\(Int64\(18\), Int64\(6\) \* Int64\(27\) \- CAST\(Int64\(\-81\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "\(\- nullif\(Int64\(18\), Int64\(6\) \* Int64\(27\) \- CAST\(Int64\(\-81\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 39 AS col2, - NULLIF ( 18, + 6 * + 27 - + CAST ( - 81 AS INTEGER ) ) AS col2 query I rowsort label-3988 @@ -22787,7 +22787,7 @@ NULL # Datafusion - Expected - -188006 # Datafusion - Expected - 126 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(33\) \* Int64\(\-60\) \* Int64\(95\) AS col0" at position 0 and "CAST\(Int64\(88\) AS Int32\) / Int64\(\-34\) \+ Int64\(47\) \+ Int64\(81\) \+ Int64\(1\) / Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(33\) \* Int64\(\-60\) \* Int64\(95\) AS col0" at position 0 and "CAST\(Int64\(88\) AS Int64\) / Int64\(\-34\) \+ Int64\(47\) \+ Int64\(81\) \+ Int64\(1\) / Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 + + + 33 * - 60 * + + 95 AS col0, CAST ( 88 AS INTEGER ) / - 34 + 47 + 81 + + 1 / - 50 AS col0, + + 26 * - COUNT ( DISTINCT - 34 ) query II rowsort @@ -23257,7 +23257,7 @@ SELECT + + 42 * 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col0" at position 0 and "avg\(DISTINCT \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), \(\- Int64\(66\)\) / Int64\(29\)\)\)\) \+ Int64\(\-87\) \* Int64\(\-78\) / \(\- min\(Int64\(\-74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col0" at position 0 and "avg\(DISTINCT \(\- nullif\(\(\- CAST\(NULL AS Int64\)\), \(\- Int64\(66\)\) / Int64\(29\)\)\)\) \+ Int64\(\-87\) \* Int64\(\-78\) / \(\- min\(Int64\(\-74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( + ( - + 63 ) ) AS col0, AVG ( DISTINCT - + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 66 / + 29 ) ) + - 87 * + - 78 / - MIN ( - 74 ) AS col0 query I rowsort @@ -24160,7 +24160,7 @@ SELECT - ( 30 ) / - 44 * + + COUNT ( * ) * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(0\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE sum\(DISTINCT Int64\(18\)\) WHEN Int64\(11\) THEN Int64\(\-79\) ELSE NULL END\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(0\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE sum\(DISTINCT Int64\(18\)\) WHEN Int64\(11\) THEN Int64\(\-79\) ELSE NULL END\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * + + 91 + - - CAST ( NULL AS FLOAT8 ) + - - 55 AS col1, 0 - - COUNT ( * ) + + - CASE SUM ( DISTINCT 18 ) WHEN + 11 THEN - 79 ELSE NULL END + + CAST ( NULL AS INTEGER ) col1 query I rowsort label-4596 @@ -27246,7 +27246,7 @@ SELECT COUNT ( * ) col0, 40 + ( - MAX ( ALL - 18 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "CAST\(Int64\(64\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "CAST\(Int64\(64\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 9 AS col0, + CAST ( + 64 AS INTEGER ) AS col0 query I rowsort @@ -27335,7 +27335,7 @@ SELECT ALL NULLIF ( - 26, - 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51382 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \* Int64\(10\) \* min\(\(\- coalesce\(Int64\(78\), \(\- Int64\(98\)\), CAST\(\(\- Int64\(33\)\) AS Int32\)\)\)\) \- Int64\(98\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \* Int64\(10\) \* min\(\(\- coalesce\(Int64\(78\), \(\- Int64\(98\)\), CAST\(\(\- Int64\(33\)\) AS Int64\)\)\)\) \- Int64\(98\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 66 * + 10 * MIN ( - COALESCE ( + 78, - + 98, + CAST ( - + 33 AS INTEGER ) ) ) - ( 98 ) AS col0, - 42 AS col0 query II rowsort label-5203 @@ -28689,7 +28689,7 @@ SELECT SUM ( + 99 ) + + ( - 72 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- Int64\(\-76\)\)\) \+ Int64\(51\) \+ Int64\(\-70\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(\-29\) WHEN \(\- Int64\(\-16\)\) THEN Int64\(92\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- Int64\(\-76\)\)\) \+ Int64\(51\) \+ Int64\(\-70\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* CASE Int64\(\-29\) WHEN \(\- Int64\(\-16\)\) THEN Int64\(92\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( DISTINCT - - 76 ) + + 51 + + - 70 AS col1, - CAST ( NULL AS INTEGER ) * + CASE + - 29 WHEN - - 16 THEN + 92 END AS col1 query I rowsort label-5460 @@ -29998,7 +29998,7 @@ SELECT + 68 * ( 75 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- avg\(CAST\(NULL AS Int32\)\)\) \* Int64\(68\) \+ Int64\(\-15\) \* Int64\(8\) \* \(\- count\(Int64\(\-64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- avg\(CAST\(NULL AS Int64\)\)\) \* Int64\(68\) \+ Int64\(\-15\) \* Int64\(8\) \* \(\- count\(Int64\(\-64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 90 AS col2, - AVG ( CAST ( NULL AS INTEGER ) ) * + 68 + - 15 * 8 * - COUNT ( ALL - 64 ) AS col2 query I rowsort label-5716 @@ -31874,7 +31874,7 @@ SELECT - COALESCE ( - 71, - CASE + CASE ( + - 18 ) WHEN CASE - 38 WHEN - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- CAST\(NULL AS Float64\)\) \* coalesce\(Int64\(\-38\), \(\- Int64\(\-64\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(86\)\) / \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-2\) AS col1" at position 0 and "Int64\(8\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- CAST\(NULL AS Float64\)\) \* coalesce\(Int64\(\-38\), \(\- Int64\(\-64\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(86\)\) / \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(\-2\) AS col1" at position 0 and "Int64\(8\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 89 * - + CAST ( NULL AS FLOAT8 ) * COALESCE ( - 38, - - 64, + - COUNT ( * ) + COUNT ( DISTINCT 86 ) / - CAST ( NULL AS INTEGER ) ) + - 2 AS col1, + 8 + 31 AS col1 query I rowsort label-6073 @@ -35096,7 +35096,7 @@ SELECT - 24 + + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2355696 # Datafusion - Expected - 523 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- sum\(Int64\(\-38\)\)\)\)\) \* Int64\(\-63\) \* Int64\(24\) \* CAST\(Int64\(41\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(8\) \* \(\- min\(Int64\(\-61\)\)\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- sum\(Int64\(\-38\)\)\)\)\) \* Int64\(\-63\) \* Int64\(24\) \* CAST\(Int64\(41\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(8\) \* \(\- min\(Int64\(\-61\)\)\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - ( - SUM ( + - 38 ) ) * - 63 * 24 * CAST ( 41 AS INTEGER ) * COUNT ( * ) AS col0, 8 * ( - MIN ( - 61 ) ) + 35 AS col0 query II rowsort label-6689 @@ -41686,7 +41686,7 @@ SELECT ALL - ( + 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -567 # Datafusion - Expected - 1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-81\) \* \(\- \(\- CAST\(Int64\(7\) AS Int32\)\)\) AS col0" at position 0 and "nullif\(Int64\(42\), \(\- Int64\(12\)\)\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-81\) \* \(\- \(\- CAST\(Int64\(7\) AS Int64\)\)\) AS col0" at position 0 and "nullif\(Int64\(42\), \(\- Int64\(12\)\)\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - 81 * - - CAST ( 7 AS INTEGER ) AS col0, NULLIF ( + 42, - ( 12 ) ) * 45 AS col0 query I rowsort @@ -44578,7 +44578,7 @@ SELECT + 6 + - 79 * - 40 * + + 3, 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(60\) \* \(\- sum\(CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(60\) \* \(\- sum\(CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 * + 60 * - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) * + 34 AS col1 query I rowsort @@ -45402,7 +45402,7 @@ SELECT 40 * - 59 - COUNT ( * ) + 35 * + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 4798 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(\-15\) \- Int64\(63\) \+ nullif\(Int64\(58\), CAST\(coalesce\(\(\- coalesce\(Int64\(35\), Int64\(\-15\) \* Int64\(80\), Int64\(\-22\)\)\), Int64\(16\), coalesce\(\(\- Int64\(\-34\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE Int64\(83\) WHEN Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(75\) \+ \(\- \(\- coalesce\(Int64\(46\), Int64\(61\), CAST\(Int64\(\-16\) AS Int32\)\)\)\) \+ Int64\(47\) \* \(\- Int64\(\-99\)\) THEN \(\- CAST\(NULL AS Int32\)\) END\), Int64\(51\) \* Int64\(\-55\) \+ CASE Int64\(\-14\) WHEN count\(DISTINCT Int64\(16\)\) THEN Int64\(40\) END \+ Int64\(\-50\) \+ Int64\(\-36\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\) \* Int64\(73\)\) \* Int64\(76\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(\-15\) \- Int64\(63\) \+ nullif\(Int64\(58\), CAST\(coalesce\(\(\- coalesce\(Int64\(35\), Int64\(\-15\) \* Int64\(80\), Int64\(\-22\)\)\), Int64\(16\), coalesce\(\(\- Int64\(\-34\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE Int64\(83\) WHEN Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(75\) \+ \(\- \(\- coalesce\(Int64\(46\), Int64\(61\), CAST\(Int64\(\-16\) AS Int64\)\)\)\) \+ Int64\(47\) \* \(\- Int64\(\-99\)\) THEN \(\- CAST\(NULL AS Int64\)\) END\), Int64\(51\) \* Int64\(\-55\) \+ CASE Int64\(\-14\) WHEN count\(DISTINCT Int64\(16\)\) THEN Int64\(40\) END \+ Int64\(\-50\) \+ Int64\(\-36\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int64\) \* Int64\(73\)\) \* Int64\(76\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 AS col0, ( - 29 ) * - 15 - + 63 + + NULLIF ( 58, + CAST ( COALESCE ( - + COALESCE ( 35, - 15 * 80, - 22 ), + 16, + + COALESCE ( - - 34, - COUNT ( * ) + - ( + + CASE + 83 WHEN - 0 / + - COUNT ( * ) + 75 + - - COALESCE ( 46, + + 61, CAST ( + + ( - 16 ) AS INTEGER ) ) + 47 * - - 99 THEN + ( - + CAST ( NULL AS INTEGER ) ) END ), + 51 * - 55 + CASE - 14 WHEN + COUNT ( DISTINCT + + 16 ) THEN + + 40 END + - 50 + - 36 * + - COUNT ( * ) ) ) AS INTEGER ) * 73 ) * 76 + + 18 AS col0 query II rowsort label-8644 @@ -45608,7 +45608,7 @@ SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + - 56 + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CASE Int64\(95\) WHEN Int64\(53\) / avg\(DISTINCT Int64\(57\)\) THEN Int64\(\-24\) WHEN Int64\(56\) \* \(\- coalesce\(Int64\(16\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(66\) \* CAST\(NULL AS Int32\) / Int64\(\-42\) \+ Int64\(\-50\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(6\) \+ Int64\(0\) / Int64\(25\) WHEN CAST\(NULL AS Int32\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CASE Int64\(95\) WHEN Int64\(53\) / avg\(DISTINCT Int64\(57\)\) THEN Int64\(\-24\) WHEN Int64\(56\) \* \(\- coalesce\(Int64\(16\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(66\) \* CAST\(NULL AS Int64\) / Int64\(\-42\) \+ Int64\(\-50\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(6\) \+ Int64\(0\) / Int64\(25\) WHEN CAST\(NULL AS Int64\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 63 + - - COUNT ( * ) col2, CASE 95 WHEN + 53 / + AVG ( DISTINCT + 57 ) THEN + - 24 WHEN 56 * - COALESCE ( + 16, COUNT ( * ) * + + COUNT ( * ), + 66 * + CAST ( NULL AS INTEGER ) / - 42 + - 50 ) + - COUNT ( * ) THEN 6 + 0 / 25 WHEN CAST ( NULL AS INTEGER ) THEN NULL END AS col2 # Datafusion - Types were automatically converted from: diff --git a/data/sqlite/random/expr/slt_good_12.slt b/data/sqlite/random/expr/slt_good_12.slt index 11fb2f8..9a73a8e 100644 --- a/data/sqlite/random/expr/slt_good_12.slt +++ b/data/sqlite/random/expr/slt_good_12.slt @@ -219,7 +219,7 @@ SELECT ALL - 79 + - + 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3789 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(52\)\) \+ Int64\(\-45\) AS col2" at position 0 and "CASE sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) WHEN CAST\(NULL AS Float64\) \+ Int64\(38\) THEN \(\- Int64\(\-42\)\) \+ Int64\(\-28\) WHEN Int64\(\-62\) \* Int64\(41\) \- \(\- Int64\(24\)\) THEN CAST\(\(\- Int64\(\-36\)\) AS Int32\) WHEN Int64\(\-64\) \* Int64\(56\) \+ \(\- max\(Int64\(65\)\)\) THEN \(\- sum\(Int64\(80\)\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-71\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN coalesce\(Int64\(62\), min\(Int64\(13\)\) \* Int64\(98\)\) \* Int64\(31\) \* Int64\(22\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \- Int64\(\-17\) THEN Int64\(86\) \* \(\- Int64\(\-35\)\) \+ Int64\(38\) WHEN Int64\(20\) \* Int64\(47\) THEN \(\- Int64\(51\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END THEN NULL WHEN CASE Int64\(62\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(23\) \* Int64\(55\) \- Int64\(66\) WHEN Int64\(88\) THEN Int64\(82\) \* \(\- \(\- CASE Int64\(\-16\) WHEN Int64\(47\) THEN Int64\(\-18\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-15\) END / Int64\(24\) \+ Int64\(\-23\) THEN Int64\(96\) END \* \(\- \(\- count\(DISTINCT Int64\(24\)\)\) \* Int64\(\-3\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\)\) ELSE Int64\(\-54\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(52\)\) \+ Int64\(\-45\) AS col2" at position 0 and "CASE sum\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) WHEN CAST\(NULL AS Float64\) \+ Int64\(38\) THEN \(\- Int64\(\-42\)\) \+ Int64\(\-28\) WHEN Int64\(\-62\) \* Int64\(41\) \- \(\- Int64\(24\)\) THEN CAST\(\(\- Int64\(\-36\)\) AS Int64\) WHEN Int64\(\-64\) \* Int64\(56\) \+ \(\- max\(Int64\(65\)\)\) THEN \(\- sum\(Int64\(80\)\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-71\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN coalesce\(Int64\(62\), min\(Int64\(13\)\) \* Int64\(98\)\) \* Int64\(31\) \* Int64\(22\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \- Int64\(\-17\) THEN Int64\(86\) \* \(\- Int64\(\-35\)\) \+ Int64\(38\) WHEN Int64\(20\) \* Int64\(47\) THEN \(\- Int64\(51\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END THEN NULL WHEN CASE Int64\(62\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(23\) \* Int64\(55\) \- Int64\(66\) WHEN Int64\(88\) THEN Int64\(82\) \* \(\- \(\- CASE Int64\(\-16\) WHEN Int64\(47\) THEN Int64\(\-18\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-15\) END / Int64\(24\) \+ Int64\(\-23\) THEN Int64\(96\) END \* \(\- \(\- count\(DISTINCT Int64\(24\)\)\) \* Int64\(\-3\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\)\) ELSE Int64\(\-54\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 * - + 52 + - 45 AS col2, CASE + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS FLOAT8 ) + 38 THEN - - 42 + - 28 WHEN - 62 * + 41 - - + 24 THEN + CAST ( - - 36 AS INTEGER ) WHEN - 64 * 56 + - MAX ( + 65 ) THEN - SUM ( 80 ) / 24 * COUNT ( * ) + + - 71 + + CASE - - COUNT ( * ) WHEN + COALESCE ( 62, + + MIN ( + 13 ) * + 98 ) * + 31 * 22 * + CASE COUNT ( * ) WHEN + 75 - - 17 THEN 86 * - - 35 + + + 38 WHEN + + 20 * + 47 THEN - + 51 WHEN + - COUNT ( * ) THEN NULL END THEN NULL WHEN CASE 62 WHEN - COUNT ( * ) THEN 23 * 55 - + 66 WHEN + 88 THEN + 82 * - ( - CASE - 16 WHEN 47 THEN + ( ( - 18 ) ) END * - COUNT ( * ) ) - - 15 END / 24 + - 23 THEN 96 END * - ( - COUNT ( DISTINCT 24 ) * - 3 + COUNT ( * ) * + 86 ) ELSE - 54 END col2 query II rowsort label-36 @@ -842,7 +842,7 @@ SELECT + CAST ( 0 AS INTEGER ) * + COALESCE ( + 91, + 81 - 89, + 50 ) * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-66\) / Int64\(71\) / Int64\(62\) \* Int64\(30\) \+ min\(Int64\(30\)\) \- \(\- \(\- nullif\(Int64\(\-66\), \(\- max\(Int64\(\-90\)\)\) / Int64\(97\) \* min\(Int64\(89\)\) \* CAST\(\(\- Int64\(\-47\)\) AS Int32\) \+ Int64\(41\)\)\)\) \+ Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-66\) / Int64\(71\) / Int64\(62\) \* Int64\(30\) \+ min\(Int64\(30\)\) \- \(\- \(\- nullif\(Int64\(\-66\), \(\- max\(Int64\(\-90\)\)\) / Int64\(97\) \* min\(Int64\(89\)\) \* CAST\(\(\- Int64\(\-47\)\) AS Int64\) \+ Int64\(41\)\)\)\) \+ Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 * + + ( - 66 ) / 71 / 62 * 30 + + MIN ( + + ( 30 ) ) - - - NULLIF ( - 66, - ( MAX ( ALL - 90 ) ) / + 97 * MIN ( 89 ) * + CAST ( - ( - 47 ) AS INTEGER ) + + 41 ) + + - 98 * + COUNT ( * ) + + + COUNT ( * ) + + - 48 AS col0, 14 AS col0 query II rowsort label-152 @@ -950,7 +950,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(53\) AS Int32\)\) \+ Int64\(\-23\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(53\) AS Int64\)\) \+ Int64\(\-23\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( 53 AS INTEGER ) + - 23 AS col1, 36 AS col1 query I rowsort label-172 @@ -2965,7 +2965,7 @@ SELECT DISTINCT 32 * + + 89 * COUNT ( * ) * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -1899 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(\-79\) \- nullif\(CAST\(Int64\(52\) AS Int32\), Int64\(8\)\) \* Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(\-79\) \- nullif\(CAST\(Int64\(52\) AS Int64\), Int64\(8\)\) \* Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 28 ) AS col2, - 79 - + NULLIF ( CAST ( 52 AS INTEGER ), + 8 ) * + + 35 AS col2 query I rowsort label-556 @@ -2986,7 +2986,7 @@ SELECT DISTINCT + 85 * - 61 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int32\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int64\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 41 AS INTEGER ) AS col0, 72 col0 query I rowsort label-560 @@ -3699,7 +3699,7 @@ SELECT + COUNT ( * ) * - 75 + + - 78 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -1224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-19\) \* \(\- Int64\(\-63\)\) \- CAST\(Int64\(27\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-19\) \* \(\- Int64\(\-63\)\) \- CAST\(Int64\(27\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 21 - COUNT ( * ) AS col2, + COUNT ( * ) * - 19 * - - 63 - + CAST ( + + 27 AS INTEGER ) AS col2 query II rowsort label-698 @@ -4828,7 +4828,7 @@ SELECT - - NULLIF ( - ( + + 78 ), + 49 ) / - 41 - - 5 * + 10 * + + CAST ( + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) \+ \(\- \(\- CAST\(Int64\(84\) AS Int32\)\)\) \+ max\(Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) \+ \(\- \(\- CAST\(Int64\(84\) AS Int64\)\)\) \+ max\(Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 * + COUNT ( * ) * 4 AS col1, + COUNT ( * ) * + - 73 + - - CAST ( 84 AS INTEGER ) + + MAX ( - 62 ) AS col1 query I rowsort label-913 @@ -5867,7 +5867,7 @@ NULL # Datafusion - Expected - 88 # Datafusion - Expected - 65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ sum\(Int64\(\-73\)\) / \(\- CAST\(Int64\(23\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ sum\(Int64\(\-73\)\) / \(\- CAST\(Int64\(23\) AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85 + + SUM ( - 73 ) / - CAST ( 23 AS INTEGER ) AS col0, + 65, + COUNT ( * ) AS col0 query I rowsort @@ -7291,7 +7291,7 @@ SELECT + 46 + - ( 66 ) * - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(8\), Int64\(57\)\) AS col0" at position 0 and "Int64\(\-79\) \* Int64\(88\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(8\), Int64\(57\)\) AS col0" at position 0 and "Int64\(\-79\) \* Int64\(88\) / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( 8, 57 ) AS col0, + ( - 79 ) * 88 / - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -7415,7 +7415,7 @@ SELECT - 8 * + 63 # Datafusion - Expected - 1440 # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 1 and "Int64\(\-84\) \* Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 1 and "Int64\(\-84\) \* Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + - 32 AS INTEGER ) * + 45, 73 AS col2, - 84 * + 64 * COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-1403 @@ -8080,7 +8080,7 @@ SELECT + 52 * 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* \(\- CAST\(Int64\(3\) AS Int32\)\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* \(\- CAST\(Int64\(3\) AS Int64\)\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 49 * - CAST ( + + 3 AS INTEGER ) AS col0, 92 + 16 AS col0 query II rowsort label-1529 @@ -12843,7 +12843,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), CAST\(NULL AS Int32\) \* Int64\(27\) \+ Int64\(71\)\) AS col1" at position 0 and "min\(Int64\(\-73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), CAST\(NULL AS Int64\) \* Int64\(27\) \+ Int64\(71\)\) AS col1" at position 0 and "min\(Int64\(\-73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( 82, CAST ( NULL AS INTEGER ) * + 27 + 71 ) AS col1, + MIN ( ALL - 73 ) AS col1 query I rowsort label-2435 @@ -13559,7 +13559,7 @@ SELECT ALL + 95, + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5937 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(81\) \- Int64\(\-43\) \+ \(\- \(\- CAST\(Int64\(95\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-27\) \+ Int64\(\-72\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(81\) \- Int64\(\-43\) \+ \(\- \(\- CAST\(Int64\(95\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(\-27\) \+ Int64\(\-72\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 75 * 81 - + - 43 + - - CAST ( 95 AS INTEGER ) AS col2, - 27 + - 72 - - COUNT ( * ) AS col2 query I rowsort label-2570 @@ -17511,7 +17511,7 @@ SELECT ALL CASE - - 73 WHEN + + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * - - S # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -305370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(63\) AS col1" at position 0 and "Int64\(\-87\) \* CAST\(Int64\(45\) AS Int32\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(63\) AS col1" at position 0 and "Int64\(\-87\) \* CAST\(Int64\(45\) AS Int64\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) * 63 AS col1, - 87 * CAST ( 45 AS INTEGER ) * + 78 col1 query I rowsort label-3321 @@ -21286,7 +21286,7 @@ SELECT 51 + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(90\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(90\) \- CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 * 90 - + CAST ( NULL AS INTEGER ) AS col0, 69 AS col0 query I rowsort label-4046 @@ -21427,7 +21427,7 @@ SELECT DISTINCT + COUNT ( * ) + - 58 / - 44 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / coalesce\(Int64\(49\), count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(93\) \+ \(\- CASE Int64\(34\) WHEN \(\- Int64\(88\)\) \+ CAST\(NULL AS Int32\) THEN \(\- \(\- Int64\(35\)\)\) WHEN Int64\(5\) THEN NULL ELSE Int64\(\-20\) END\) / Int64\(59\) \+ Int64\(98\) \+ Int64\(\-44\) AS col1" at position 0 and "CASE \(\- \(\- avg\(DISTINCT Int64\(23\)\)\)\) WHEN Int64\(\-37\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(51\) THEN Int64\(90\) \* Int64\(\-26\) WHEN Int64\(\-26\) \* Int64\(\-98\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / coalesce\(Int64\(49\), count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(93\) \+ \(\- CASE Int64\(34\) WHEN \(\- Int64\(88\)\) \+ CAST\(NULL AS Int64\) THEN \(\- \(\- Int64\(35\)\)\) WHEN Int64\(5\) THEN NULL ELSE Int64\(\-20\) END\) / Int64\(59\) \+ Int64\(98\) \+ Int64\(\-44\) AS col1" at position 0 and "CASE \(\- \(\- avg\(DISTINCT Int64\(23\)\)\)\) WHEN Int64\(\-37\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(51\) THEN Int64\(90\) \* Int64\(\-26\) WHEN Int64\(\-26\) \* Int64\(\-98\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 88 / COALESCE ( 49, COUNT ( * ) ) / + - 5 + + COUNT ( * ) * 93 + - + CASE 34 WHEN - + 88 + + CAST ( NULL AS INTEGER ) THEN - + ( - ( + 35 ) ) WHEN + 5 THEN NULL ELSE + - 20 END / 59 + + 98 + + - 44 AS col1, CASE - - AVG ( DISTINCT + 23 ) WHEN - 37 / - COUNT ( * ) - 51 THEN + 90 * - 26 WHEN - 26 * - 98 THEN NULL ELSE NULL END AS col1 query I rowsort label-4073 @@ -22649,7 +22649,7 @@ SELECT ALL + 12 * + + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* CASE CAST\(NULL AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(13\) WHEN Int64\(\-87\) THEN NULL END \* Int64\(50\) \+ Int64\(33\) \+ \(\- Int64\(\-35\)\) / Int64\(97\) \* Int64\(17\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* CASE CAST\(NULL AS Int64\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(13\) WHEN Int64\(\-87\) THEN NULL END \* Int64\(50\) \+ Int64\(33\) \+ \(\- Int64\(\-35\)\) / Int64\(97\) \* Int64\(17\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 * + CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN 13 WHEN - 87 THEN NULL END * 50 + + 33 + - - 35 / + 97 * + 17 AS col0, - 35 AS col0 query I rowsort @@ -23048,7 +23048,7 @@ SELECT ALL + + 92 + + - 76 + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \- Int64\(67\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) \- Int64\(67\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 67 AS col2, + 50 AS col2 query I rowsort label-4382 @@ -23433,7 +23433,7 @@ SELECT ALL 40 + - CAST ( MAX ( + - 24 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-81\)\) AS col0" at position 0 and "Int64\(\-26\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-81\)\) AS col0" at position 0 and "Int64\(\-26\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - - - 81 AS col0, + ( + ( - 26 ) ) * CAST ( NULL AS INTEGER ) col0 query II rowsort label-4455 @@ -24763,7 +24763,7 @@ SELECT ALL + 41 / - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(66\) \* Int64\(50\) \* Int64\(99\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- max\(Int64\(36\)\)\) \- Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(66\) \* Int64\(50\) \* Int64\(99\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- max\(Int64\(36\)\)\) \- Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 * + 66 * 50 * 99 + + CAST ( NULL AS INTEGER ) AS col2, - MAX ( ALL + 36 ) - + 84 AS col2 query I rowsort @@ -25510,7 +25510,7 @@ SELECT - COUNT ( * ) + - ( - - 98 ) - - ( 56 ) * + COUNT ( * ) - - 53, + 33 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(18\) \+ CAST\(NULL AS Int32\) \- Int64\(49\) \* Int64\(\-53\) AS col2" at position 0 and "Int64\(66\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(18\) \+ CAST\(NULL AS Int64\) \- Int64\(49\) \* Int64\(\-53\) AS col2" at position 0 and "Int64\(66\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 16 + + 18 + CAST ( NULL AS INTEGER ) - + 49 * - 53 AS col2, 66 + 94 AS col2 query I rowsort @@ -27817,7 +27817,7 @@ SELECT ( 17 ) * - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 137 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(67\) / Int64\(\-41\) \* Int64\(10\) \+ CASE \(\- coalesce\(CAST\(\(\- Int64\(66\)\) AS Int32\), Int64\(6\), Int64\(72\) \- Int64\(\-73\), Int64\(52\)\)\) WHEN avg\(DISTINCT \(\- coalesce\(Int64\(76\), Int64\(18\) \- Int64\(\-27\)\)\)\) / Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(59\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(67\) / Int64\(\-41\) \* Int64\(10\) \+ CASE \(\- coalesce\(CAST\(\(\- Int64\(66\)\) AS Int64\), Int64\(6\), Int64\(72\) \- Int64\(\-73\), Int64\(52\)\)\) WHEN avg\(DISTINCT \(\- coalesce\(Int64\(76\), Int64\(18\) \- Int64\(\-27\)\)\)\) / Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(59\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 84 + 53 AS col0, + 67 / - 41 * 10 + CASE - + COALESCE ( CAST ( - ( 66 ) AS INTEGER ), 6, 72 - - 73, 52 ) WHEN AVG ( DISTINCT - COALESCE ( + 76, + 18 - - 27 ) ) / 40 + COUNT ( * ) THEN ( + 59 ) END AS col0 query I rowsort @@ -28052,7 +28052,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * 43 AS col0 query I rowsort label-5340 @@ -33331,7 +33331,7 @@ SELECT 31 * 74 + + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* CASE Int64\(63\) WHEN Int64\(48\) \* CAST\(Int64\(89\) AS Int32\) \+ Int64\(48\) THEN Int64\(\-35\) WHEN Int64\(\-13\) THEN NULL END AS col0" at position 0 and "Int64\(22\) \+ \(\- Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* CASE Int64\(63\) WHEN Int64\(48\) \* CAST\(Int64\(89\) AS Int64\) \+ Int64\(48\) THEN Int64\(\-35\) WHEN Int64\(\-13\) THEN NULL END AS col0" at position 0 and "Int64\(22\) \+ \(\- Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 * + CASE 63 WHEN + 48 * CAST ( + 89 AS INTEGER ) + + 48 THEN - 35 WHEN + - 13 THEN NULL END col0, 22 + - + 4 AS col0 query I rowsort @@ -34156,7 +34156,7 @@ SELECT ALL + 73 + + COUNT ( ALL + - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-98\)\), CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-98\)\), CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - - 98, + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0, + 22 AS col0 # Datafusion - Types were automatically converted from: @@ -34303,7 +34303,7 @@ SELECT ALL - 82 / - + SUM ( DISTINCT - 81 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -2408 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-20\) AS Int32\) \* Int64\(\-69\) \+ Int64\(9\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(86\) \* Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-20\) AS Int64\) \* Int64\(\-69\) \+ Int64\(9\) \- CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(86\) \* Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 20 AS INTEGER ) * - 69 + 9 - ( CAST ( NULL AS INTEGER ) ) col1, 86 * ( + - 28 ) AS col1, + 7 + + CAST ( NULL AS INTEGER ) + 65 AS col0 # Datafusion - Types were automatically converted from: @@ -37096,7 +37096,7 @@ SELECT - + 90 + MIN ( 17 ) + 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \* Int64\(\-75\) / Int64\(30\) \* Int64\(\-67\) AS col2" at position 0 and "\(\- Int64\(\-62\)\) \- Int64\(\-88\) \+ \(\- Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) \* Int64\(\-75\) / Int64\(30\) \* Int64\(\-67\) AS col2" at position 0 and "\(\- Int64\(\-62\)\) \- Int64\(\-88\) \+ \(\- Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 75 / 30 * - 67 AS col2, - ( - 62 ) - - 88 + - + 58 AS col2 query I rowsort label-7063 @@ -38781,7 +38781,7 @@ SELECT DISTINCT - COUNT ( * ) * - 22 / 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-24\) \+ \(\- Int64\(94\)\) / \(\- Int64\(96\)\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-24\) \+ \(\- Int64\(94\)\) / \(\- Int64\(96\)\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + - 24 + - ( + 94 ) / - + 96 AS col0, 44 AS col0 query II rowsort @@ -40746,7 +40746,7 @@ SELECT ALL NULLIF ( - 85, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(63\) \* Int64\(6\) / Int64\(81\) AS col2" at position 0 and "\(\- CASE Int64\(\-7\) WHEN avg\(Int64\(17\)\) / Int64\(18\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CASE Int64\(35\) WHEN Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- sum\(Int64\(\-47\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) END\) THEN Int64\(\-51\) END\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(63\) \* Int64\(6\) / Int64\(81\) AS col2" at position 0 and "\(\- CASE Int64\(\-7\) WHEN avg\(Int64\(17\)\) / Int64\(18\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CASE Int64\(35\) WHEN Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- sum\(Int64\(\-47\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) END\) THEN Int64\(\-51\) END\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 63 * 6 / + 81 AS col2, - CASE - 7 WHEN ( AVG ( 17 ) ) / 18 THEN COUNT ( * ) WHEN - CASE + 35 WHEN + 1 - - COUNT ( * ) THEN - SUM ( - 47 ) * COUNT ( * ) END THEN - 51 END * CAST ( NULL AS INTEGER ) col2 query I rowsort @@ -42798,7 +42798,7 @@ SELECT ( 11 ) * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) AS col2" at position 0 and "CAST\(Int64\(\-81\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) AS col2" at position 0 and "CAST\(Int64\(\-81\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 45 AS col2, CAST ( + - 81 AS INTEGER ) AS col2 query I rowsort @@ -42925,7 +42925,7 @@ SELECT 45 / - - 71 * 8 * - NULLIF ( ( 29 ), + 46 + 57 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(\-23\) \* Int64\(13\) / Int64\(46\) / CAST\(NULL AS Int32\) \* Int64\(47\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(\-23\) \* Int64\(13\) / Int64\(46\) / CAST\(NULL AS Int64\) \* Int64\(47\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 69 * - 23 * + 13 / + + ( + 46 ) / CAST ( NULL AS INTEGER ) * + + 47 AS col0, - 26 col0 query I rowsort @@ -43420,7 +43420,7 @@ SELECT CAST ( - 33 AS INTEGER ) + + + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -51323,7 +51323,7 @@ SELECT + + COUNT ( * ) * - 46 + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(53\) \+ \(\- min\(DISTINCT Int64\(97\)\)\) \+ Int64\(\-75\) \* \(\- CAST\(NULL AS Int32\)\) \* CAST\(\(\- CASE \(\- Int64\(\-88\)\) WHEN Int64\(62\) THEN NULL WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(33\) \- Int64\(14\) THEN Int64\(25\) END\) \* sum\(Int64\(32\)\) \* \(\- Int64\(58\)\) / \(\- Int64\(92\)\) \* Int64\(73\) \* \(\- Int64\(29\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN \(\- avg\(CAST\(NULL AS Int32\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) / Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(53\) \+ \(\- min\(DISTINCT Int64\(97\)\)\) \+ Int64\(\-75\) \* \(\- CAST\(NULL AS Int64\)\) \* CAST\(\(\- CASE \(\- Int64\(\-88\)\) WHEN Int64\(62\) THEN NULL WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(33\) \- Int64\(14\) THEN Int64\(25\) END\) \* sum\(Int64\(32\)\) \* \(\- Int64\(58\)\) / \(\- Int64\(92\)\) \* Int64\(73\) \* \(\- Int64\(29\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN \(\- avg\(CAST\(NULL AS Int64\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) END\) AS Int64\) / Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) * 11 AS col1, + 53 + - MIN ( DISTINCT + 97 ) + + - 75 * + - CAST ( NULL AS INTEGER ) * CAST ( - CASE - - 88 WHEN + 62 THEN NULL WHEN + - CASE COUNT ( * ) WHEN + 33 - + 14 THEN + 25 END * + + SUM ( ALL + ( + 32 ) ) * - + 58 / - + 92 * + 73 * - + 29 + - COUNT ( * ) / COUNT ( * ) THEN - + AVG ( + CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) END AS INTEGER ) / - 86 AS col1 query I rowsort label-9774 @@ -52310,7 +52310,7 @@ SELECT - SUM ( ALL - 91 ) / ( - - MAX ( 17 ) ) + - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5274 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(65\) \+ Int64\(\-92\) \* Int64\(58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(65\) \+ Int64\(\-92\) \* Int64\(58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 / - COUNT ( * ) + + 65 + - 92 * 58 AS col1, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9963 diff --git a/data/sqlite/random/expr/slt_good_13.slt b/data/sqlite/random/expr/slt_good_13.slt index 6d254b2..e8383da 100644 --- a/data/sqlite/random/expr/slt_good_13.slt +++ b/data/sqlite/random/expr/slt_good_13.slt @@ -550,7 +550,7 @@ SELECT ALL MIN ( DISTINCT + 45 ) / - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int32\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int64\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - 49 AS INTEGER ) AS col2, 10 AS col2 query I rowsort label-98 @@ -2051,7 +2051,7 @@ SELECT + 10 + + - 6 * + 45 * + 16 + + 13 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-53\) \+ CAST\(Int64\(\-63\) AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-53\) \+ CAST\(Int64\(\-63\) AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 51 AS col0, - CAST ( NULL AS INTEGER ) * - 53 + + CAST ( - 63 AS FLOAT8 ) AS col0 query I rowsort @@ -2738,7 +2738,7 @@ SELECT ALL + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(37\) \+ Int64\(97\) \+ CASE Int64\(78\) WHEN \(\- Int64\(\-49\)\) THEN NULL ELSE Int64\(27\) \+ \(\- Int64\(60\)\) END AS col1" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(37\) \+ Int64\(97\) \+ CASE Int64\(78\) WHEN \(\- Int64\(\-49\)\) THEN NULL ELSE Int64\(27\) \+ \(\- Int64\(60\)\) END AS col1" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 * + 37 + 97 + + CASE + 78 WHEN - - 49 THEN NULL ELSE 27 + - ( 60 ) END AS col1, - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -2808,7 +2808,7 @@ SELECT - + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(65\) / Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(65\) / Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 59 + - + CAST ( NULL AS INTEGER ) AS col1, + ( 65 ) / + + 17 AS col1 query I rowsort label-534 @@ -4784,7 +4784,7 @@ SELECT ALL - 69 + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int32\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int64\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 - - COUNT ( * ) * CAST ( + MIN ( 13 ) AS INTEGER ) AS col1, 49 / 49 AS col1 query I rowsort @@ -6878,7 +6878,7 @@ SELECT ALL - + 74 * 57 + - 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(\(\- CAST\(Int64\(78\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(\(\- CAST\(Int64\(78\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 93 + + MIN ( - CAST ( 78 AS INTEGER ) ) AS col1, - 39 AS col1 query I rowsort @@ -8092,7 +8092,7 @@ SELECT + 44 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(19\)\)\)\) \+ CASE \(\- Int64\(46\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(\-65\)\) END AS col1" at position 0 and "Int64\(\-79\) \* \(\- nullif\(Int64\(\-35\), \(\- Int64\(\-2\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(19\)\)\)\) \+ CASE \(\- Int64\(46\)\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN \(\- Int64\(\-65\)\) END AS col1" at position 0 and "Int64\(\-79\) \* \(\- nullif\(Int64\(\-35\), \(\- Int64\(\-2\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MAX ( - + 19 ) + CASE - + ( + ( 46 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 65 END AS col1, - 79 * + - NULLIF ( - 35, - - 2 ) AS col1 query I rowsort label-1554 @@ -8966,7 +8966,7 @@ SELECT + 25 + - + 54 * - MIN ( DISTINCT + + ( - 53 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + MAX ( CAST ( NULL AS INTEGER ) ) AS col1, + 72 AS col1 query I rowsort @@ -11577,7 +11577,7 @@ SELECT ALL - - 36 / + 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-17\) AS col1" at position 0 and "Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-17\) AS col1" at position 0 and "Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + + - 17 AS col1, - 35 * + + COUNT ( * ) AS col1 query I rowsort @@ -12124,7 +12124,7 @@ SELECT DISTINCT 48 + - - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-8\) \- Int64\(\-62\) \- \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-8\) \- Int64\(\-62\) \- \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 8 - - 62 - - - 35 AS col2 query I rowsort @@ -19882,7 +19882,7 @@ SELECT ALL + 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 97 / + ( CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0 query I rowsort @@ -20940,7 +20940,7 @@ SELECT ALL 96 + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- count\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 92 * - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, - 26 AS col0 query I rowsort label-4021 @@ -22911,7 +22911,7 @@ SELECT DISTINCT - 3 * + + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + 46, - COUNT ( * ) ) - + ( - 37 ) + + - COUNT ( * ) + - + COALESCE ( 44, + 57 + + COUNT ( ALL + 81 ) + - - 27 + COALESCE ( 40, COUNT ( * ) * - 98 ) / + 99 ) - + 15 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 93 AS col2, 33 AS col2 query I rowsort @@ -22969,7 +22969,7 @@ SELECT + COUNT ( * ) - + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 41 AS col0, + CAST ( NULL AS INTEGER ) + + 44 AS col0 query I rowsort @@ -26652,7 +26652,7 @@ SELECT - + 61, + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "CAST\(Int64\(43\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "CAST\(Int64\(43\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 48 AS col0, + CAST ( 43 AS INTEGER ) AS col0 query I rowsort @@ -28796,7 +28796,7 @@ SELECT - 12 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 858 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int32\)\) \* Int64\(\-14\) \+ Int64\(40\) \+ Int64\(90\) AS col1" at position 0 and "\(\- count\(Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int64\)\) \* Int64\(\-14\) \+ Int64\(40\) \+ Int64\(90\) AS col1" at position 0 and "\(\- count\(Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( 52 AS INTEGER ) * + - 14 + 40 + 90 AS col1, - COUNT ( ALL 62 ) AS col1 query I rowsort label-5531 @@ -30287,7 +30287,7 @@ SELECT ALL + 69 / + 79 * - + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "\(\- nullif\(Int64\(35\), Int64\(53\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "\(\- nullif\(Int64\(35\), Int64\(53\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 56 col0, ( - NULLIF ( + + 35, 53 ) ) + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-5817 @@ -35545,7 +35545,7 @@ SELECT MIN ( ALL - 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(60\) \* Int64\(42\) \+ Int64\(47\) \+ Int64\(84\) \* \(\- Int64\(\-60\)\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(60\) \* Int64\(42\) \+ Int64\(47\) \+ Int64\(84\) \* \(\- Int64\(\-60\)\) / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 30 + + ( + 59 ) col2, 60 * + 42 + + 47 + 84 * - - 60 / - CAST ( NULL AS INTEGER ) col2 query I rowsort label-6834 @@ -36269,7 +36269,7 @@ SELECT - + 70 + - NULLIF ( - ( + 10 ), ( + AVG ( + - 51 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -114 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-92\), \(\- \(\- CAST\(Int64\(\-17\) AS Int32\)\)\)\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(4\) \+ max\(Int64\(19\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-92\), \(\- \(\- CAST\(Int64\(\-17\) AS Int64\)\)\)\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(4\) \+ max\(Int64\(19\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( + - 92, - - CAST ( - 17 AS INTEGER ) ) + + - 22 AS col1, 4 + MAX ( 19 ) + 54 AS col1 query I rowsort label-6972 @@ -38972,7 +38972,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- min\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 12 ) * + 48 AS col0, - COALESCE ( + 30, 74 ) * - COUNT ( * ) - 88 + + 79 / - COUNT ( * ) - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -41177,7 +41177,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 144160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-53\) \* Int64\(40\) \* Int64\(\-2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-53\) \* Int64\(40\) \* Int64\(\-2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 * + - 53 * 40 * - 2 AS col0, - CAST ( NULL AS INTEGER ) * + - 1 col0 query I rowsort @@ -42075,7 +42075,7 @@ SELECT + 34 AS col2, - COALESCE ( + 54, + + 48 ) + - - ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 76 AS col1, + CASE - - 87 WHEN - 52 * - 1 + - - COUNT ( * ) + + - 35 THEN - COUNT ( DISTINCT - 96 ) END * CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -42160,7 +42160,7 @@ SELECT - - 85 * + 72 * MAX ( + 21 ) * CAST ( - 31 AS INTEGER ) - + 63 col1, 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 988 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(DISTINCT Int64\(52\)\)\) AS Int32\)\) \* Int64\(19\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(DISTINCT Int64\(52\)\)\) AS Int64\)\) \* Int64\(19\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - SUM ( DISTINCT 52 ) AS INTEGER ) * + 19 AS col0, 1 AS col0 query I rowsort label-8110 @@ -43450,7 +43450,7 @@ SELECT + 85 * + + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int32\) \* Int64\(6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int64\) \* Int64\(6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 36 * + CAST ( NULL AS INTEGER ) * + 6 col1, COUNT ( * ) + - - 72 + - 93 AS col1 query I rowsort label-8358 @@ -50218,7 +50218,7 @@ SELECT ALL + 25 col1, - ( + 47 ) + - COUNT ( * ) + - 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-78\) \* \(\- Int64\(\-44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CASE Int64\(\-46\) WHEN Int64\(\-50\) THEN NULL WHEN CAST\(Int64\(20\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \+ Int64\(2\) THEN Int64\(\-26\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-78\) \* \(\- Int64\(\-44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CASE Int64\(\-46\) WHEN Int64\(\-50\) THEN NULL WHEN CAST\(Int64\(20\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \+ Int64\(2\) THEN Int64\(\-26\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 72 * - 78 * - - 44 + COUNT ( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST ( ( + 20 ) AS INTEGER ) * - + COUNT ( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2 query I rowsort label-9664 @@ -50720,7 +50720,7 @@ SELECT DISTINCT - 50 * + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(92\) \+ \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(73\)\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(92\) \+ \(\- coalesce\(CAST\(NULL AS Int64\), Int64\(73\)\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 73 ) / 9 col1 query I rowsort @@ -51048,7 +51048,7 @@ SELECT ALL + - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0 query I rowsort @@ -51246,7 +51246,7 @@ SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( C # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(\(\- sum\(Int64\(36\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(\(\- sum\(Int64\(36\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 22 AS col2, CAST ( ( - SUM ( + ( 36 ) ) ) AS INTEGER ) AS col2 query I rowsort label-9859 diff --git a/data/sqlite/random/expr/slt_good_14.slt b/data/sqlite/random/expr/slt_good_14.slt index 3eb7c96..1dfaf39 100644 --- a/data/sqlite/random/expr/slt_good_14.slt +++ b/data/sqlite/random/expr/slt_good_14.slt @@ -1373,7 +1373,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- CAST\(Int64\(0\) AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- CAST\(Int64\(0\) AS Int64\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 AS col2, - CAST ( + 0 AS INTEGER ) - + COUNT ( * ) + - 5 AS col2 query I rowsort label-255 @@ -1775,7 +1775,7 @@ SELECT + 96 / - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(18\), Int64\(77\) \* \(\- \(\- Int64\(\-57\)\)\) \* CAST\(NULL AS Int32\) \* Int64\(61\)\)\) \+ Int64\(58\) AS col1" at position 0 and "nullif\(\(\- Int64\(96\)\), Int64\(30\) / Int64\(43\) \+ Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(18\), Int64\(77\) \* \(\- \(\- Int64\(\-57\)\)\) \* CAST\(NULL AS Int64\) \* Int64\(61\)\)\) \+ Int64\(58\) AS col1" at position 0 and "nullif\(\(\- Int64\(96\)\), Int64\(30\) / Int64\(43\) \+ Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( + 18, + 77 * - ( - - 57 ) * + CAST ( NULL AS INTEGER ) * + + 61 ) + + 58 col1, + NULLIF ( - + 96, 30 / + 43 + + 69 ) AS col1 query I rowsort label-331 @@ -3299,7 +3299,7 @@ SELECT ALL 38 / - 80 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2392 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \* Int64\(52\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \* Int64\(52\) 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\. SELECT ( + - ( + 46 ) ) * 52 AS col0, + ( CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort label-621 @@ -4145,7 +4145,7 @@ NULL # Datafusion - Expected - 4009 # Datafusion - Expected - 689 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-19\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(\(\- Int64\(\-43\)\), CAST\(NULL AS Int32\) \* Int64\(21\) \+ Int64\(\-37\)\) AS col2" at position 1 and "Int64\(71\) \- Int64\(80\) \+ \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \* Int64\(10\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-19\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(\(\- Int64\(\-43\)\), CAST\(NULL AS Int64\) \* Int64\(21\) \+ Int64\(\-37\)\) AS col2" at position 1 and "Int64\(71\) \- Int64\(80\) \+ \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \* Int64\(10\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 + 74 * 53 + - 0 col0, 34 * - 19 * - COUNT ( * ) + COALESCE ( - - 43, CAST ( NULL AS INTEGER ) * 21 + + - 37 ) col2, + 71 - + + 80 + - - ( - - COUNT ( * ) ) * + 10 AS col2 query I rowsort @@ -9974,7 +9974,7 @@ SELECT ALL - 40 AS col0, + COUNT ( * ) / + 47 + + - 84 * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(84\)\) \* Int64\(28\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(84\)\) \* Int64\(28\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 19 AS col1, COALESCE ( + - COUNT ( * ), + + 84 ) * + 28 + + - CAST ( NULL AS INTEGER ) col1 query I rowsort label-1888 @@ -10026,7 +10026,7 @@ SELECT CAST ( + 72 AS INTEGER ) col0, 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(81\) AS Int32\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(81\) AS Int64\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 81 AS INTEGER ) AS col2, 26 AS col2 query I rowsort @@ -10484,7 +10484,7 @@ SELECT + 7 * - 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) AS col1, - CAST ( NULL AS INTEGER ) / - 26 AS col1 query I rowsort @@ -11564,7 +11564,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(84\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(84\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 29 + - CAST ( NULL AS INTEGER ) * + 84 AS col1, + 80 AS col1 query II rowsort @@ -14470,7 +14470,7 @@ SELECT 62 * + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 query I rowsort @@ -14820,7 +14820,7 @@ SELECT CAST ( - COALESCE ( - ( - MAX ( + - 47 ) ), - 8 + + COUNT ( * ) - + + 4 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(47\) WHEN CAST\(NULL AS Int32\) \* Int64\(59\) \* \(\- max\(Int64\(97\)\)\) \- \(\- \(\- CASE Int64\(72\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(88\)\) WHEN Int64\(\-15\) THEN Int64\(80\) \+ Int64\(68\) \* \(\- Int64\(\-59\)\) ELSE NULL END\)\) \+ Int64\(\-36\) \* Int64\(\-50\) THEN Int64\(46\) ELSE Int64\(\-49\) / Int64\(9\) \* \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) END AS col1" at position 0 and "Int64\(\-6\) \* \(\- coalesce\(Int64\(\-38\), Int64\(9\) \+ Int64\(\-62\) \+ nullif\(\(\- Int64\(33\)\), sum\(Int64\(38\)\)\) \* Int64\(3\) \* Int64\(10\) \* Int64\(\-51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(47\) WHEN CAST\(NULL AS Int64\) \* Int64\(59\) \* \(\- max\(Int64\(97\)\)\) \- \(\- \(\- CASE Int64\(72\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(88\)\) WHEN Int64\(\-15\) THEN Int64\(80\) \+ Int64\(68\) \* \(\- Int64\(\-59\)\) ELSE NULL END\)\) \+ Int64\(\-36\) \* Int64\(\-50\) THEN Int64\(46\) ELSE Int64\(\-49\) / Int64\(9\) \* \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) END AS col1" at position 0 and "Int64\(\-6\) \* \(\- coalesce\(Int64\(\-38\), Int64\(9\) \+ Int64\(\-62\) \+ nullif\(\(\- Int64\(33\)\), sum\(Int64\(38\)\)\) \* Int64\(3\) \* Int64\(10\) \* Int64\(\-51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + CASE 47 WHEN CAST ( NULL AS INTEGER ) * + 59 * + - MAX ( 97 ) - - - CASE + + 72 WHEN + COUNT ( * ) THEN - + 88 WHEN + - 15 THEN 80 + 68 * - - 59 ELSE NULL END + - 36 * - 50 THEN 46 ELSE - 49 / + 9 * - - ( - - COUNT ( * ) ) END ) AS col1, - 6 * - COALESCE ( - 38, + 9 + - 62 + + NULLIF ( - + 33, SUM ( + 38 ) ) * + 3 * + 10 * - 51 ) AS col1 query I rowsort label-2809 @@ -15577,7 +15577,7 @@ SELECT DISTINCT 74 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(42\) \+ Int64\(62\) \+ Int64\(43\) \+ Int64\(74\) \+ CASE Int64\(\-97\) WHEN Int64\(22\) \+ Int64\(59\) THEN NULL WHEN Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(46\) THEN \(\- \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\) ELSE NULL END \+ \(\- Int64\(85\)\) \- \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(42\) \+ Int64\(62\) \+ Int64\(43\) \+ Int64\(74\) \+ CASE Int64\(\-97\) WHEN Int64\(22\) \+ Int64\(59\) THEN NULL WHEN Int64\(80\) \* \(\- CAST\(NULL AS Int64\)\) / Int64\(46\) THEN \(\- \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\) ELSE NULL END \+ \(\- Int64\(85\)\) \- \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 * + COUNT ( * ) - + 42 + 62 + 43 + + + 74 + CASE - 97 WHEN 22 + + 59 THEN NULL WHEN + 80 * - + CAST ( NULL AS INTEGER ) / + 46 THEN - - ( - - ( - COUNT ( * ) ) ) ELSE NULL END + - + 85 - - + 77 col0, 13 + + 37 AS col0 query I rowsort label-2950 @@ -17922,7 +17922,7 @@ SELECT ALL + + 42 AS col2, COUNT ( * ) * + + 34 - + 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(97\) WHEN CAST\(Int64\(74\) AS Int32\) \+ Int64\(4\) THEN Int64\(\-3\) \* Int64\(36\) WHEN \(\- Int64\(2\)\) THEN Int64\(\-90\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \- Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(97\) WHEN CAST\(Int64\(74\) AS Int64\) \+ Int64\(4\) THEN Int64\(\-3\) \* Int64\(36\) WHEN \(\- Int64\(2\)\) THEN Int64\(\-90\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \- Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, CASE + 97 WHEN CAST ( 74 AS INTEGER ) + ( ( + 4 ) ) THEN - 3 * 36 WHEN - + 2 THEN - 90 ELSE - COUNT ( * ) END - + 18 AS col2 query II rowsort label-3400 @@ -18951,7 +18951,7 @@ SELECT + COUNT ( * ) - - 39 AS col2, + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(NULL AS Int32\), Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(91\)\) AS col1" at position 0 and "Int64\(29\) / Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(NULL AS Int64\), Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(91\)\) AS col1" at position 0 and "Int64\(29\) / Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( + + CAST ( NULL AS INTEGER ), - 34 + COUNT ( * ), + 91 ) AS col1, 29 / - 62 AS col1 query I rowsort @@ -20953,7 +20953,7 @@ SELECT ALL 44 + - 74 + + - 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(0\) AS Int32\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(0\) AS Int64\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( 0 AS INTEGER ) AS col2, - 53 col2 query I rowsort @@ -21944,7 +21944,7 @@ SELECT ALL + 76 + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-89\) \* \(\- Int64\(\-56\)\) \* CAST\(NULL AS Int32\) / Int64\(\-70\) AS col0" at position 0 and "Int64\(74\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-89\) \* \(\- Int64\(\-56\)\) \* CAST\(NULL AS Int64\) / Int64\(\-70\) AS col0" at position 0 and "Int64\(74\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 * - 89 * ( - - 56 ) * + CAST ( NULL AS INTEGER ) / + - 70 AS col0, 74 / 3 AS col0 query I rowsort @@ -23726,7 +23726,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(37\) AS col0" at position 0 and "\(\- nullif\(CAST\(NULL AS Int32\), Int64\(86\) \* Int64\(16\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(37\) AS col0" at position 0 and "\(\- nullif\(CAST\(NULL AS Int64\), Int64\(86\) \* Int64\(16\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 + + 37 AS col0, - NULLIF ( + CAST ( NULL AS INTEGER ), 86 * + + 16 ) AS col0 query I rowsort label-4505 @@ -23787,7 +23787,7 @@ SELECT DISTINCT COUNT ( * ) + - - 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(71\) AS Int32\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(71\) AS Int64\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 71 AS INTEGER ) AS col1, + 96 AS col1 query I rowsort label-4516 @@ -26168,7 +26168,7 @@ SELECT ALL ( + 96 ) * + CAST ( - 15 AS INTEGER ) - + + 45 AS col1, - 94 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, + 14 AS col2 query I rowsort label-4971 @@ -29149,7 +29149,7 @@ SELECT - COALESCE ( + + 25, 25, - 82 * - NULLIF ( + 34, + + 88 * 1 ) + - 76 ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - -2842 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-29\) AS Int32\) \* \(\- CAST\(Int64\(\-98\) AS Int32\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-29\) AS Int64\) \* \(\- CAST\(Int64\(\-98\) AS Int64\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - 29 AS INTEGER ) * - + CAST ( - 98 AS INTEGER ) col0, + 94 col0 query I rowsort @@ -29213,7 +29213,7 @@ SELECT - 70 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1303 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(\(\- sum\(Int64\(\-86\)\)\) AS Int32\)\)\)\) \* Int64\(\-15\) \+ Int64\(13\) AS col0" at position 0 and "coalesce\(Int64\(\-14\), Int64\(\-12\) \+ CASE Int64\(88\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-75\)\) THEN NULL WHEN \(\- \(\- \(\- CAST\(NULL AS Float64\)\)\)\) THEN Int64\(\-74\) \* Int64\(41\) ELSE \(\- sum\(\(\- Int64\(\-69\)\)\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(\(\- sum\(Int64\(\-86\)\)\) AS Int64\)\)\)\) \* Int64\(\-15\) \+ Int64\(13\) AS col0" at position 0 and "coalesce\(Int64\(\-14\), Int64\(\-12\) \+ CASE Int64\(88\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-75\)\) THEN NULL WHEN \(\- \(\- \(\- CAST\(NULL AS Float64\)\)\)\) THEN Int64\(\-74\) \* Int64\(41\) ELSE \(\- sum\(\(\- Int64\(\-69\)\)\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( - - CAST ( + - SUM ( - 86 ) AS INTEGER ) ) * - 15 + + + 13 col0, COALESCE ( - 14, - 12 + + CASE 88 WHEN - COUNT ( * ) * - - 75 THEN NULL WHEN - - ( - CAST ( NULL AS FLOAT8 ) ) THEN + - 74 * 41 ELSE - SUM ( ALL - ( + - 69 ) ) END ) AS col0 query I rowsort label-5550 @@ -32171,7 +32171,7 @@ SELECT - 61 / 37 + + NULLIF ( + 71, + 11 * 16 * 16 / - 45 ) * - 82 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "CASE Int64\(95\) WHEN Int64\(27\) THEN Int64\(\-39\) \* \(\- avg\(DISTINCT Int64\(76\)\)\) ELSE Int64\(\-71\) \* Int64\(22\) \+ avg\(DISTINCT Int64\(41\)\) END \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "CASE Int64\(95\) WHEN Int64\(27\) THEN Int64\(\-39\) \* \(\- avg\(DISTINCT Int64\(76\)\)\) ELSE Int64\(\-71\) \* Int64\(22\) \+ avg\(DISTINCT Int64\(41\)\) END \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 93 AS col1, + CASE 95 WHEN 27 THEN - 39 * - AVG ( DISTINCT 76 ) ELSE - 71 * 22 + + AVG ( DISTINCT 41 ) END * - CAST ( NULL AS INTEGER ) + + 30 AS col1 query II rowsort @@ -32559,7 +32559,7 @@ SELECT ALL + 28 / 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(\-53\) / CAST\(NULL AS Int32\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(\-53\) / CAST\(NULL AS Int64\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 71 AS col2, - 53 / + CAST ( NULL AS INTEGER ) * + + 74 AS col2 query I rowsort @@ -34196,7 +34196,7 @@ SELECT ALL + 43 * - ( ( COUNT ( * ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(86\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(86\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 0 * 86 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) AS col1 query I rowsort @@ -35400,7 +35400,7 @@ SELECT + 61 + - - SUM ( ALL + 75 ) + + 32 + + - 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2865 # Datafusion - Expected - 2574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(71\)\) \* Int64\(41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) AS col1" at position 0 and "Int64\(99\) \* Int64\(26\) \* \(\- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(71\)\) \* Int64\(41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) AS col1" at position 0 and "Int64\(99\) \* Int64\(26\) \* \(\- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 + - + 71 * 41 + + - COUNT ( * ) + - 13 AS col1, 99 * + 26 * - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 query I rowsort @@ -36111,7 +36111,7 @@ SELECT ALL MAX ( ALL ( - - 78 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(5\) WHEN Int64\(\-67\) THEN Int64\(26\) \+ Int64\(70\) WHEN \(\- sum\(DISTINCT Int64\(27\)\)\) THEN Int64\(14\) \* Int64\(85\) \- max\(Int64\(\-20\)\) \* \(\- Int64\(\-51\)\) WHEN \(\- \(\- CAST\(\(\- Int64\(\-80\)\) AS Int32\)\)\) \* Int64\(\-27\) THEN NULL ELSE NULL END \+ Int64\(\-39\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(5\) WHEN Int64\(\-67\) THEN Int64\(26\) \+ Int64\(70\) WHEN \(\- sum\(DISTINCT Int64\(27\)\)\) THEN Int64\(14\) \* Int64\(85\) \- max\(Int64\(\-20\)\) \* \(\- Int64\(\-51\)\) WHEN \(\- \(\- CAST\(\(\- Int64\(\-80\)\) AS Int64\)\)\) \* Int64\(\-27\) THEN NULL ELSE NULL END \+ Int64\(\-39\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE 5 WHEN + - 67 THEN + 26 + 70 WHEN - SUM ( DISTINCT 27 ) THEN 14 * + 85 - + MAX ( + + ( + - 20 ) ) * - - 51 WHEN - - CAST ( - - 80 AS INTEGER ) * - 27 THEN NULL ELSE NULL END + + - 39 AS col0, COUNT ( * ) AS col0 query II rowsort label-6872 @@ -38562,7 +38562,7 @@ SELECT 40 + + 60 * - + COUNT ( * ) col1, - 86 + - - 32 * - + 45 * + 38 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -404274 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(99\) \* Int64\(64\) \* \(\- sum\(CAST\(Int64\(63\) AS Int32\)\)\) \+ \(\- Int64\(74\)\) \* \(\- Int64\(\-69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(99\) \* Int64\(64\) \* \(\- sum\(CAST\(Int64\(63\) AS Int64\)\)\) \+ \(\- Int64\(74\)\) \* \(\- Int64\(\-69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 AS col2, + 99 * + 64 * + - SUM ( CAST ( ( 63 ) AS INTEGER ) ) + - ( + 74 ) * - - 69 AS col2 query II rowsort @@ -39521,7 +39521,7 @@ SELECT - 15 * + + 44 + + 8 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(24\) \* \(\- Int64\(\-96\)\) \- \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 0 and "Int64\(97\) \+ coalesce\(\(\- CASE Int64\(45\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-79\) END\), Int64\(\-97\) \* Int64\(37\) \+ Int64\(\-25\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(24\) \* \(\- Int64\(\-96\)\) \- \(\- CAST\(Int64\(9\) AS Int64\)\) AS col2" at position 0 and "Int64\(97\) \+ coalesce\(\(\- CASE Int64\(45\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-79\) END\), Int64\(\-97\) \* Int64\(37\) \+ Int64\(\-25\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) * + 24 * - - 96 - - CAST ( 9 AS INTEGER ) col2, 97 + + COALESCE ( + - CASE 45 WHEN COUNT ( * ) THEN + - 79 END, - 97 * 37 + - 25 + + COUNT ( * ) * + 41 * + + ( + - COUNT ( * ) ) ) AS col2 query I rowsort @@ -41324,7 +41324,7 @@ SELECT - NULLIF ( + COUNT ( * ), AVG ( ALL + 60 ) * + SUM ( + 49 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-70\) / \(\- sum\(Int64\(74\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(\-70\) / \(\- sum\(Int64\(74\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( NULL AS INTEGER ) * - 70 / - SUM ( 74 ) / + COUNT ( * ) AS col0, 10 AS col0 query I rowsort label-7855 @@ -42886,7 +42886,7 @@ SELECT COUNT ( * ) / 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-12\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-12\)\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( ALL - 12 ) * CAST ( NULL AS INTEGER ) AS col2, + 89 AS col2 query I rowsort @@ -44737,7 +44737,7 @@ SELECT ALL + COUNT ( * ) + - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 559 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- \(\- coalesce\(Int64\(\-13\), Int64\(\-20\)\)\)\) \+ Int64\(24\) / CAST\(Int64\(87\) AS Int32\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- \(\- coalesce\(Int64\(\-13\), Int64\(\-20\)\)\)\) \+ Int64\(24\) / CAST\(Int64\(87\) AS Int64\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 * - - COALESCE ( - 13, + - 20 ) + 24 / + CAST ( + 87 AS INTEGER ) AS col0, 83 AS col0 # Datafusion - Types were automatically converted from: @@ -45345,7 +45345,7 @@ SELECT DISTINCT COUNT ( DISTINCT 50 ) + + - ( 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(\(\- Int64\(85\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- Int64\(80\)\) \+ Int64\(54\) \+ \(\- Int64\(38\)\) \+ Int64\(9\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(\(\- Int64\(85\)\) AS Int64\)\)\) AS col1" at position 0 and "\(\- Int64\(80\)\) \+ Int64\(54\) \+ \(\- Int64\(38\)\) \+ Int64\(9\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - - CAST ( - + 85 AS INTEGER ) col1, - ( + 80 ) + + 54 + - + 38 + 9 * - 40 AS col1 query I rowsort label-8624 @@ -46238,7 +46238,7 @@ SELECT ALL + 39 * + 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5357 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(74\) \+ Int64\(29\) AS col1" at position 0 and "Int64\(13\) \* \(\- sum\(Int64\(37\)\)\) \* \(\- Int64\(26\)\) \* Int64\(44\) \+ Int64\(69\) \+ CAST\(NULL AS Int32\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(74\) \+ Int64\(29\) AS col1" at position 0 and "Int64\(13\) \* \(\- sum\(Int64\(37\)\)\) \* \(\- Int64\(26\)\) \* Int64\(44\) \+ Int64\(69\) \+ CAST\(NULL AS Int64\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 * 74 + 29 AS col1, 13 * - + SUM ( + 37 ) * - + 26 * 44 + + 69 + ( + + CAST ( NULL AS INTEGER ) ) * + + 84 AS col1 query I rowsort label-8796 @@ -47860,7 +47860,7 @@ SELECT - 86 - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* avg\(Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* avg\(Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1, + NULLIF ( COUNT ( * ), + COALESCE ( COUNT ( * ), + COUNT ( * ) ) ) * + AVG ( - 41 ) AS col1 query I rowsort label-9105 @@ -49740,7 +49740,7 @@ SELECT ALL - NULLIF ( + COUNT ( ALL 38 ), MAX ( DISTINCT 33 ) ) + - 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) \* \(\- Int64\(\-56\)\) \* Int64\(\-34\) \* Int64\(\-4\) \* Int64\(\-86\) \+ Int64\(62\) \+ sum\(Int64\(99\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-85\) \* CAST\(NULL AS Int32\) \- Int64\(25\) \+ \(\- Int64\(\-5\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) \* \(\- Int64\(\-56\)\) \* Int64\(\-34\) \* Int64\(\-4\) \* Int64\(\-86\) \+ Int64\(62\) \+ sum\(Int64\(99\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-85\) \* CAST\(NULL AS Int64\) \- Int64\(25\) \+ \(\- Int64\(\-5\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + 19 ) * - - 56 * - 34 * - 4 * - 86 + + 62 + + SUM ( ALL + + ( + 99 ) ) * COUNT ( * ) / - 85 * + CAST ( NULL AS INTEGER ) - + 25 + - - 5 AS col0, + 65 AS col0 query I rowsort label-9463 diff --git a/data/sqlite/random/expr/slt_good_15.slt b/data/sqlite/random/expr/slt_good_15.slt index b7b3eeb..c314de6 100644 --- a/data/sqlite/random/expr/slt_good_15.slt +++ b/data/sqlite/random/expr/slt_good_15.slt @@ -199,7 +199,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(\-99\) \* nullif\(CAST\(NULL AS Int32\), Int64\(\-99\) \* \(\- count\(DISTINCT Int64\(22\)\)\) \* CAST\(NULL AS Int32\) \+ Int64\(16\)\) \+ \(\- Int64\(\-22\)\) \- \(\- Int64\(\-79\)\) \+ Int64\(71\) \+ \(\- avg\(DISTINCT Int64\(\-91\)\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(\-99\) \* nullif\(CAST\(NULL AS Int64\), Int64\(\-99\) \* \(\- count\(DISTINCT Int64\(22\)\)\) \* CAST\(NULL AS Int64\) \+ Int64\(16\)\) \+ \(\- Int64\(\-22\)\) \- \(\- Int64\(\-79\)\) \+ Int64\(71\) \+ \(\- avg\(DISTINCT Int64\(\-91\)\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + 84 ) AS col2, ( + - 99 ) * + NULLIF ( CAST ( NULL AS INTEGER ), - 99 * - COUNT ( DISTINCT 22 ) * CAST ( NULL AS INTEGER ) + + 16 ) + - - 22 - - ( - 79 ) + + 71 + - AVG ( DISTINCT - 91 ) * + 3 AS col2 query I rowsort label-31 @@ -389,7 +389,7 @@ SELECT DISTINCT 78 * 6 * + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2664 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(72\) AS Int32\)\) \* Int64\(\-37\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(72\) AS Int64\)\) \* Int64\(\-37\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + 72 AS INTEGER ) * - 37 AS col0, + CAST ( NULL AS FLOAT8 ) col0 query I rowsort label-67 @@ -2481,7 +2481,7 @@ SELECT + - 47 * + - CASE + AVG ( + - 11 ) WHEN - - 37 - + MIN ( DISTINCT + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 12939 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-57\)\)\) \* \(\- coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-97\) \+ sum\(Int64\(\-2\)\) \* max\(Int64\(65\)\), Int64\(14\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(71\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-57\)\)\) \* \(\- coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-97\) \+ sum\(Int64\(\-2\)\) \* max\(Int64\(65\)\), Int64\(14\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(71\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( DISTINCT - 57 ) * + - COALESCE ( + - CAST ( NULL AS INTEGER ), - 97 + + SUM ( - 2 ) * MAX ( ALL 65 ), + 14 ) AS col0, - CAST ( + 71 AS INTEGER ) AS col0 query I rowsort @@ -2705,7 +2705,7 @@ SELECT 90 + - 81 # Datafusion - Expected - 0 # Datafusion - Expected - 63 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 1 and "CAST\(Int64\(86\) AS Int32\) \+ \(\- Int64\(51\)\) \+ Int64\(\-96\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 1 and "CAST\(Int64\(86\) AS Int64\) \+ \(\- Int64\(51\)\) \+ Int64\(\-96\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 50 / + 91, 63 AS col0, + ( CAST ( 86 AS INTEGER ) ) + - + 51 + - 96 col0 # Datafusion - Types were automatically converted from: @@ -3346,7 +3346,7 @@ SELECT COUNT ( * ) + - 78 * - - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(52\) \+ \(\- nullif\(sum\(Int64\(16\)\), Int64\(10\)\)\) AS col2" at position 0 and "CAST\(CASE Int64\(\-24\) WHEN \(\- max\(Int64\(92\)\)\) THEN \(\- nullif\(Int64\(45\), \(\- Int64\(\-13\)\) / \(\- avg\(Int64\(57\)\)\)\)\) END AS Int32\) \+ Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(52\) \+ \(\- nullif\(sum\(Int64\(16\)\), Int64\(10\)\)\) AS col2" at position 0 and "CAST\(CASE Int64\(\-24\) WHEN \(\- max\(Int64\(92\)\)\) THEN \(\- nullif\(Int64\(45\), \(\- Int64\(\-13\)\) / \(\- avg\(Int64\(57\)\)\)\)\) END AS Int64\) \+ Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 + + 52 + - NULLIF ( SUM ( ALL + 16 ), + + 10 ) AS col2, CAST ( + CASE - 24 WHEN - MAX ( ( 92 ) ) THEN + - NULLIF ( ( 45 ), - - 13 / - AVG ( 57 ) ) END AS INTEGER ) + 42 col2 query I rowsort @@ -3368,7 +3368,7 @@ SELECT - 99, 71 * 15 - + + 78 + MAX ( ALL - 94 ) / + 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(0\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- Int64\(0\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + - - 0 AS col1, 46 AS col1 query I rowsort @@ -3587,7 +3587,7 @@ SELECT DISTINCT - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 45 * - ( 67 ) * 64 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-56\)\)\) AS col2" at position 0 and "Int64\(\-36\) / \(\- Int64\(83\)\) \* CAST\(Int64\(27\) AS Int32\) \+ Int64\(\-50\) \+ Int64\(\-36\) / Int64\(50\) \* Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-56\)\)\) AS col2" at position 0 and "Int64\(\-36\) / \(\- Int64\(83\)\) \* CAST\(Int64\(27\) AS Int64\) \+ Int64\(\-50\) \+ Int64\(\-36\) / Int64\(50\) \* Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - + MAX ( DISTINCT + - 56 ) ) AS col2, - 36 / - + 83 * + CAST ( 27 AS INTEGER ) + - 50 + - 36 / 50 * + - 53 AS col2 query I rowsort label-668 @@ -3974,7 +3974,7 @@ SELECT ALL - 9 col0, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -110 # Datafusion - Expected - 1473 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-81\) \* \(\- Int64\(\-99\)\) \+ \(\- Int64\(62\)\) \+ Int64\(\-28\) \* Int64\(1\)\) / nullif\(Int64\(69\), Int64\(71\)\) \+ Int64\(63\) \- Int64\(56\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(24\) / \(\- nullif\(Int64\(34\), \(\- coalesce\(Int64\(1\), \(\- Int64\(82\)\) \* \(\- \(\- nullif\(Int64\(43\), Int64\(\-91\) \+ Int64\(46\) \+ Int64\(61\)\)\)\) \* Int64\(88\) \- Int64\(16\), count\(Int64\(1\)\) AS count\(\*\), Int64\(85\)\)\) \* Int64\(30\)\)\) \+ Int64\(\-29\) \+ Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(39\)\)\) \+ Int64\(72\) \+ Int64\(26\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int64\)\)\), Int64\(\-81\) \* \(\- Int64\(\-99\)\) \+ \(\- Int64\(62\)\) \+ Int64\(\-28\) \* Int64\(1\)\) / nullif\(Int64\(69\), Int64\(71\)\) \+ Int64\(63\) \- Int64\(56\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(24\) / \(\- nullif\(Int64\(34\), \(\- coalesce\(Int64\(1\), \(\- Int64\(82\)\) \* \(\- \(\- nullif\(Int64\(43\), Int64\(\-91\) \+ Int64\(46\) \+ Int64\(61\)\)\)\) \* Int64\(88\) \- Int64\(16\), count\(Int64\(1\)\) AS count\(\*\), Int64\(85\)\)\) \* Int64\(30\)\)\) \+ Int64\(\-29\) \+ Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(39\)\)\) \+ Int64\(72\) \+ Int64\(26\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - - ( + CAST ( NULL AS INTEGER ) ), - 81 * - - 99 + - + 62 + - 28 * 1 ) / + NULLIF ( 69, + 71 ) + + 63 - 56 AS col0, 58 + + + 24 / - NULLIF ( + 34, - COALESCE ( 1, - + 82 * - - NULLIF ( 43, + - 91 + + 46 + 61 ) * 88 - 16, + COUNT ( * ), ( 85 ) ) * + 30 ) + - 29 + 99 * + + COUNT ( * ) + - COUNT ( DISTINCT 39 ) + + 72 + + + 26 * 49 AS col0 query II rowsort label-742 @@ -7924,7 +7924,7 @@ SELECT ALL CASE + 37 WHEN 59 THEN + - COALESCE ( + 12, - 1 * - - 69 / 90 + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -627 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(19\) \* Int64\(33\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(19\) \* Int64\(33\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + + 71 AS col0, + 19 * + 33 * - COUNT ( * ) AS col0 query I rowsort @@ -8813,7 +8813,7 @@ SELECT ALL + 61 * 88 + + + 60 col1 # Datafusion - Expected - 66 # Datafusion - Expected - 1 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), Int64\(83\) / Int64\(97\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), Int64\(83\) / Int64\(97\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 66, 83 / + 97 ) AS col1, CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, 67 col2 # Datafusion - Types were automatically converted from: @@ -9607,7 +9607,7 @@ SELECT DISTINCT + 0 * - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(77\) / CASE Int64\(42\) WHEN CASE Int64\(19\) WHEN Int64\(63\) THEN \(\- \(\- Int64\(\-81\)\)\) \+ Int64\(48\) \* Int64\(\-38\) WHEN CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT Int64\(\-90\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(coalesce\(Int64\(10\), Int64\(1\)\) AS Int32\) \* Int64\(17\) \+ Int64\(55\) \* Int64\(74\) THEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-18\) \+ Int64\(64\) / Int64\(97\) ELSE NULL END \+ Int64\(55\) \* Int64\(64\) THEN Int64\(\-95\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(77\) / CASE Int64\(42\) WHEN CASE Int64\(19\) WHEN Int64\(63\) THEN \(\- \(\- Int64\(\-81\)\)\) \+ Int64\(48\) \* Int64\(\-38\) WHEN CAST\(NULL AS Int64\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT Int64\(\-90\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(coalesce\(Int64\(10\), Int64\(1\)\) AS Int64\) \* Int64\(17\) \+ Int64\(55\) \* Int64\(74\) THEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-18\) \+ Int64\(64\) / Int64\(97\) ELSE NULL END \+ Int64\(55\) \* Int64\(64\) THEN Int64\(\-95\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col1, + 77 / + CASE 42 WHEN + CASE + 19 WHEN + 63 THEN + - ( ( - - 81 ) ) + + 48 * - 38 WHEN CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + 56 + - + COUNT ( * ) * SUM ( DISTINCT + ( + - 90 ) ) * COUNT ( * ) * + CAST ( COALESCE ( 10, 1 ) AS INTEGER ) * + 17 + 55 * + 74 THEN COUNT ( * ) / - 18 + 64 / + 97 ELSE NULL END + 55 * + 64 THEN - 95 END AS col1 query I rowsort label-1812 @@ -9857,7 +9857,7 @@ SELECT ALL 24 * + + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(52\) AS col0" at position 0 and "CAST\(Int64\(76\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(52\) AS col0" at position 0 and "CAST\(Int64\(76\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 94 + + 52 AS col0, CAST ( + + 76 AS INTEGER ) AS col0 query I rowsort label-1858 @@ -11108,7 +11108,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(56\)\) AS col1" at position 0 and "Int64\(24\) \+ \(\- \(\- CAST\(Int64\(\-93\) AS Int32\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(56\)\) AS col1" at position 0 and "Int64\(24\) \+ \(\- \(\- CAST\(Int64\(\-93\) AS Int64\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT + 56 ) AS col1, 24 + - - CAST ( - 93 AS INTEGER ) + + COUNT ( * ) - + 66 AS col1 query I rowsort label-2095 @@ -12165,7 +12165,7 @@ SELECT ALL - COUNT ( ALL - 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -21754997 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-37\)\)\) AS col1" at position 0 and "Int64\(50\) \+ Int64\(\-83\) \+ Int64\(77\) \* Int64\(92\) \* CAST\(Int64\(37\) AS Int32\) \* Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-37\)\)\) AS col1" at position 0 and "Int64\(50\) \+ Int64\(\-83\) \+ Int64\(77\) \* Int64\(92\) \* CAST\(Int64\(37\) AS Int64\) \* Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( MIN ( - 37 ) ) col1, 50 + + ( + ( - 83 ) ) + 77 * 92 * + CAST ( 37 AS INTEGER ) * + - 83 AS col1 query I rowsort label-2296 @@ -12401,7 +12401,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- \(\- CASE \(\- Int64\(51\)\) WHEN \(\- Int64\(51\)\) THEN NULL ELSE Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) \+ CAST\(Int64\(80\) AS Int32\) \* Int64\(\-23\) END\)\) \+ Int64\(90\) \+ Int64\(\-75\) AS col0" at position 0 and "Int64\(\-8\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- \(\- CASE \(\- Int64\(51\)\) WHEN \(\- Int64\(51\)\) THEN NULL ELSE Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) \+ CAST\(Int64\(80\) AS Int64\) \* Int64\(\-23\) END\)\) \+ Int64\(90\) \+ Int64\(\-75\) AS col0" at position 0 and "Int64\(\-8\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 + - - CASE - ( + 51 ) WHEN - ( + 51 ) THEN NULL ELSE + 26 * + COUNT ( * ) + + ( - 37 ) + CAST ( 80 AS INTEGER ) * - 23 END + + 90 + - 75 AS col0, - 8 + - 29 AS col0 query I rowsort @@ -16692,7 +16692,7 @@ SELECT 84 * - COUNT ( + 97 ) * COUNT ( * ) * 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(62\)\)\) \+ \(\- Int64\(31\)\) \* Int64\(51\) / Int64\(26\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(80\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(62\)\)\) \+ \(\- Int64\(31\)\) \* Int64\(51\) / Int64\(26\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(80\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( DISTINCT + ( + 62 ) ) + - + 31 * 51 / + 26 * - CAST ( NULL AS INTEGER ) * 80 AS col1, - ( + 75 ) col1 query I rowsort @@ -17373,7 +17373,7 @@ SELECT + + ( - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 2876 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "\(\- CAST\(Int64\(12\) AS Int32\)\) \+ Int64\(76\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "\(\- CAST\(Int64\(12\) AS Int64\)\) \+ Int64\(76\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 92 AS col2, - CAST ( ( 12 ) AS INTEGER ) + 76 * + 38 AS col2 query I rowsort label-3288 @@ -17790,7 +17790,7 @@ SELECT DISTINCT 2 * + COALESCE ( - COUNT ( * ), - + 44 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) 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\. SELECT 96 AS col0, - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3369 @@ -18968,7 +18968,7 @@ SELECT 18, 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37146 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- Int64\(92\)\) \- Int64\(89\) \* CAST\(\(\- \(\- nullif\(Int64\(26\), CAST\(CAST\(NULL AS Int32\) AS Int32\) \* Int64\(64\) \* Int64\(37\) \* \(\- \(\- Int64\(\-99\)\)\) / Int64\(94\) \+ Int64\(\-85\) \- Int64\(98\) \+ \(\- CASE Int64\(\-96\) WHEN Int64\(8\) \- Int64\(\-44\) THEN \(\- Int64\(29\)\) END\) \* Int64\(84\)\)\)\) AS Int32\) \* Int64\(\-16\) \* Int64\(\-1\) \+ Int64\(10\) AS col2" at position 0 and "Int64\(47\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(66\) \* \(\- coalesce\(Int64\(81\), nullif\(\(\- max\(Int64\(\-29\)\)\), Int64\(58\) \* Int64\(\-10\) \+ Int64\(38\)\) \+ Int64\(17\) \* Int64\(\-61\), Int64\(86\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- Int64\(92\)\) \- Int64\(89\) \* CAST\(\(\- \(\- nullif\(Int64\(26\), CAST\(CAST\(NULL AS Int64\) AS Int64\) \* Int64\(64\) \* Int64\(37\) \* \(\- \(\- Int64\(\-99\)\)\) / Int64\(94\) \+ Int64\(\-85\) \- Int64\(98\) \+ \(\- CASE Int64\(\-96\) WHEN Int64\(8\) \- Int64\(\-44\) THEN \(\- Int64\(29\)\) END\) \* Int64\(84\)\)\)\) AS Int64\) \* Int64\(\-16\) \* Int64\(\-1\) \+ Int64\(10\) AS col2" at position 0 and "Int64\(47\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(66\) \* \(\- coalesce\(Int64\(81\), nullif\(\(\- max\(Int64\(\-29\)\)\), Int64\(58\) \* Int64\(\-10\) \+ Int64\(38\)\) \+ Int64\(17\) \* Int64\(\-61\), Int64\(86\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 40 + - + 92 - 89 * CAST ( - - NULLIF ( 26, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 64 * + 37 * - - ( - 99 ) / 94 + - 85 - 98 + - + CASE - 96 WHEN 8 - + - 44 THEN - + 29 END * + 84 ) AS INTEGER ) * - 16 * - 1 + + 10 AS col2, 47 + - CAST ( NULL AS INTEGER ) + 66 * - COALESCE ( + 81, + NULLIF ( - MAX ( ALL - 29 ), 58 * - 10 + 38 ) + + 17 * - 61, + 86 ) * - ( + COUNT ( * ) ) + 78 AS col2 query I rowsort label-3592 @@ -19132,7 +19132,7 @@ SELECT - 21 * - 29 + - 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-3\)\) AS col1" at position 0 and "nullif\(Int64\(\-44\), Int64\(53\)\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-3\)\) AS col1" at position 0 and "nullif\(Int64\(\-44\), Int64\(53\)\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( - 3 ) AS col1, NULLIF ( - 44, + + 53 ) * CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-3623 @@ -19499,7 +19499,7 @@ SELECT DISTINCT + MAX ( - 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(Int64\(89\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(Int64\(89\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col0, - CAST ( 89 AS INTEGER ) AS col0 query I rowsort label-3692 @@ -20237,7 +20237,7 @@ SELECT - 23 * + + 41 + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 35 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-3834 @@ -20669,7 +20669,7 @@ SELECT ALL + 82 + + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- \(\- Int64\(74\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- \(\- Int64\(74\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 27 - - + 74 AS col2, CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-3916 @@ -24838,7 +24838,7 @@ SELECT ALL + 13 + - - ( COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-29\) \+ Int64\(24\) \- Int64\(99\) \+ CAST\(NULL AS Int32\) \* Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-76\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(71\) \* Int64\(9\) \+ Int64\(83\) \+ \(\- Int64\(96\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-29\) \+ Int64\(24\) \- Int64\(99\) \+ CAST\(NULL AS Int64\) \* Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-76\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(71\) \* Int64\(9\) \+ Int64\(83\) \+ \(\- Int64\(96\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 15 AS col2, - 29 + 24 - + 99 + + CAST ( NULL AS INTEGER ) * 87 * - COUNT ( * ) * - 76 / COUNT ( * ) * 71 * + 9 + 83 + - ( ( 96 ) ) * + 61 AS col2 query II rowsort label-4713 @@ -25214,7 +25214,7 @@ SELECT DISTINCT - 8 col0, - 62 * - ( + + 11 ) + - + 31 - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-4784 @@ -26028,7 +26028,7 @@ SELECT ALL + - 27 * + - COUNT ( * ) - + - ( - 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- CAST\(\(\- Int64\(39\)\) AS Int32\)\) \+ \(\- Int64\(\-32\)\) AS col2" at position 0 and "Int64\(57\) / Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- CAST\(\(\- Int64\(39\)\) AS Int64\)\) \+ \(\- Int64\(\-32\)\) AS col2" at position 0 and "Int64\(57\) / Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 82 ) / - CAST ( - + 39 AS INTEGER ) + - - 32 AS col2, 57 / - 34 AS col2 query I rowsort label-4940 @@ -26839,7 +26839,7 @@ SELECT ALL ( - ( 80 ) ) AS col0, 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(Int64\(79\) AS Int32\)\)\)\) \+ coalesce\(Int64\(59\), Int64\(50\) \+ CASE Int64\(30\) WHEN Int64\(26\) THEN Int64\(71\) \* Int64\(81\) WHEN \(\- Int64\(\-97\)\) \* Int64\(8\) THEN NULL END \+ \(\- Int64\(58\)\) \* \(\- Int64\(\-17\)\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(Int64\(79\) AS Int64\)\)\)\) \+ coalesce\(Int64\(59\), Int64\(50\) \+ CASE Int64\(30\) WHEN Int64\(26\) THEN Int64\(71\) \* Int64\(81\) WHEN \(\- Int64\(\-97\)\) \* Int64\(8\) THEN NULL END \+ \(\- Int64\(58\)\) \* \(\- Int64\(\-17\)\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - CAST ( 79 AS INTEGER ) ) + + + COALESCE ( 59, + 50 + + + CASE + + 30 WHEN 26 THEN + 71 * 81 WHEN - - 97 * + + 8 THEN NULL END + - + 58 * - - 17 ) AS col1, 69 AS col1 # Datafusion - Types were automatically converted from: @@ -27061,7 +27061,7 @@ SELECT ALL - + 6 / - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) \- \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(26\) \- Int64\(96\) \* \(\- Int64\(89\)\) \* \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) \- \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(26\) \- Int64\(96\) \* \(\- Int64\(89\)\) \* \(\- sum\(DISTINCT CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 81 - + - CAST ( NULL AS INTEGER ) AS col1, 26 - + 96 * - + 89 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 query II rowsort label-5136 @@ -29821,7 +29821,7 @@ SELECT SUM ( + - ( - 3 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(70\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(70\) AS Int64\)\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + 70 AS INTEGER ) AS col0, - 58 AS col0 query I rowsort label-5654 @@ -31017,7 +31017,7 @@ SELECT DISTINCT 33 - - NULLIF ( + 85, - CAST ( + + 3 AS FLOAT8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -3003 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(\(\- Int64\(39\)\) AS Int32\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(\(\- Int64\(39\)\) AS Int64\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 87 ) AS col0, + CAST ( - + 39 AS INTEGER ) * 77 AS col0 query II rowsort label-5882 @@ -31066,7 +31066,7 @@ SELECT DISTINCT + 44 + + COUNT ( * ) * 4 / NULLIF ( 84, - COUNT ( * ) / - ( + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 80 col0, ( CAST ( NULL AS INTEGER ) ) * - 68 AS col0 query I rowsort label-5891 @@ -32711,7 +32711,7 @@ SELECT - - ( + ( - ( + 0 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "count\(\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "count\(\(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Float64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 AS col1, COUNT ( + - CAST ( - CAST ( NULL AS INTEGER ) AS FLOAT8 ) ) AS col1 query I rowsort label-6207 @@ -42686,7 +42686,7 @@ SELECT ALL + + 65 * - 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2597 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(67\) \+ CASE \(\- CASE \(\- nullif\(Int64\(68\), Int64\(\-94\) \* \(\- Int64\(\-14\)\) \- Int64\(83\) \* Int64\(\-40\)\)\) WHEN \(\- Int64\(20\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) \* Int64\(82\) \* Int64\(\-44\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(93\)\) THEN Int64\(88\) ELSE NULL END\) WHEN Int64\(37\) THEN \(\- avg\(DISTINCT Int64\(52\)\)\) WHEN Int64\(\-45\) THEN count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) END \* Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(67\) \+ CASE \(\- CASE \(\- nullif\(Int64\(68\), Int64\(\-94\) \* \(\- Int64\(\-14\)\) \- Int64\(83\) \* Int64\(\-40\)\)\) WHEN \(\- Int64\(20\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) \* Int64\(82\) \* Int64\(\-44\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(93\)\) THEN Int64\(88\) ELSE NULL END\) WHEN Int64\(37\) THEN \(\- avg\(DISTINCT Int64\(52\)\)\) WHEN Int64\(\-45\) THEN count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int64\) END \* Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 49 * + ( - + 53 ) AS col1, + 67 + CASE - CASE - NULLIF ( 68, + - 94 * - - 14 - + ( + 83 ) * - 40 ) WHEN - + 20 * COUNT ( * ) + - 57 * + 82 * - 44 + + COALESCE ( - COUNT ( * ), + 93 ) THEN 88 ELSE NULL END WHEN 37 THEN - ( ( ( AVG ( DISTINCT 52 ) ) ) ) WHEN - 45 THEN + COUNT ( * ) - CAST ( NULL AS INTEGER ) END * 52 AS col1 query II rowsort label-8101 @@ -43876,7 +43876,7 @@ SELECT - CAST ( ( 12 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(58\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(58\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - + 58 AS INTEGER ) AS col0, + 62 AS col0 query I rowsort @@ -44179,7 +44179,7 @@ SELECT DISTINCT COUNT ( * ) + - - 80 + ( + 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-15\) AS col2" at position 0 and "Int64\(12\) \+ \(\- Int64\(\-79\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / Int64\(\-15\) AS col2" at position 0 and "Int64\(12\) \+ \(\- Int64\(\-79\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - 15 AS col2, + ( 12 ) + - - 79 AS col2 query I rowsort label-8381 @@ -45891,7 +45891,7 @@ SELECT 39 + - 16 + - 12 * + COUNT ( * ) * + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 AS col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 query I rowsort label-8703 @@ -47957,7 +47957,7 @@ SELECT DISTINCT - CASE 92 WHEN - - CAST ( - - 63 AS INTEGER ) THEN + 79 * - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "coalesce\(Int64\(\-10\), \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \- Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "coalesce\(Int64\(\-10\), \(\- \(\- CAST\(NULL AS Int64\)\)\)\) \- Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, + COALESCE ( + - 10, - - CAST ( NULL AS INTEGER ) ) - + 63 AS col2 query II rowsort @@ -49779,7 +49779,7 @@ SELECT ALL COUNT ( - + 65 ) / 75 * + + 28 * - + MIN ( ALL 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- Int64\(\-80\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "coalesce\(Int64\(3\), Int64\(\-86\)\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- Int64\(\-80\)\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "coalesce\(Int64\(3\), Int64\(\-86\)\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 53 + - - 80 * CAST ( NULL AS INTEGER ) AS col1, + COALESCE ( 3, + - 86 ) * 19 AS col1 query I rowsort @@ -51401,7 +51401,7 @@ SELECT + + 2 - 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-6\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-6\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 14 * + - 6 col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_16.slt b/data/sqlite/random/expr/slt_good_16.slt index 82d206c..8aad729 100644 --- a/data/sqlite/random/expr/slt_good_16.slt +++ b/data/sqlite/random/expr/slt_good_16.slt @@ -328,7 +328,7 @@ NULL # Datafusion - Expected - -30 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CASE Int64\(68\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- CAST\(Int64\(69\) AS Int32\)\) ELSE Int64\(\-77\) \* Int64\(29\) \* Int64\(1\) / \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) END WHEN Int64\(\-56\) THEN Int64\(\-70\) ELSE NULL END / \(\- \(\- \(\- nullif\(\(\- Int64\(\-73\)\), avg\(DISTINCT Int64\(\-94\)\) \+ Int64\(72\)\)\)\)\) AS col2" at position 1 and "Int64\(\-97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CASE Int64\(68\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN \(\- CAST\(Int64\(69\) AS Int64\)\) ELSE Int64\(\-77\) \* Int64\(29\) \* Int64\(1\) / \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) END WHEN Int64\(\-56\) THEN Int64\(\-70\) ELSE NULL END / \(\- \(\- \(\- nullif\(\(\- Int64\(\-73\)\), avg\(DISTINCT Int64\(\-94\)\) \+ Int64\(72\)\)\)\)\) AS col2" at position 1 and "Int64\(\-97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 30 AS col1, + CASE + CASE + 68 WHEN - + CAST ( NULL AS INTEGER ) THEN - + CAST ( + 69 AS INTEGER ) ELSE - 77 * 29 * + + 1 / + - CAST ( - COUNT ( * ) AS INTEGER ) END WHEN + - 56 THEN + - 70 ELSE NULL END / - ( - ( - NULLIF ( - - 73, + AVG ( DISTINCT - 94 ) + + 72 ) ) ) AS col2, + - 97 AS col2 # Datafusion - Types were automatically converted from: @@ -753,7 +753,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "coalesce\(\(\- \(\- Int64\(\-9\)\)\), Int64\(39\) \* \(\- Int64\(88\)\) \+ min\(Int64\(22\)\) \* Int64\(70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "coalesce\(\(\- \(\- Int64\(\-9\)\)\), Int64\(39\) \* \(\- Int64\(88\)\) \+ min\(Int64\(22\)\) \* Int64\(70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + COALESCE ( - - ( - 9 ), 39 * - + 88 + MIN ( ALL + ( + 22 ) ) * + + 70 ) AS col0 query I rowsort label-134 @@ -3259,7 +3259,7 @@ SELECT COUNT ( * ) AS col2, - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(76\)\) \* \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(76\)\) \* \(\- sum\(DISTINCT CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( DISTINCT 76 ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, - CAST ( NULL AS INTEGER ) + - 15 AS col2 query I rowsort label-609 @@ -5703,7 +5703,7 @@ SELECT ALL 59 * - 94 * - 18 AS col2 # Datafusion - Expected - 74 # Datafusion - Expected - -96900 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(74\), \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-84\) \+ Int64\(\-85\)\) AS col2" at position 0 and "CASE Int64\(45\) WHEN Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(27\) ELSE Int64\(82\) END \+ Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(74\), \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int64\) \+ Int64\(\-84\) \+ Int64\(\-85\)\) AS col2" at position 0 and "CASE Int64\(45\) WHEN Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(27\) ELSE Int64\(82\) END \+ Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( + + 74, - - 60 * + CAST ( NULL AS INTEGER ) + - 84 + - 85 ) AS col2, 17 * - 75 * 76 AS col0, CASE + 45 WHEN + 46 * + COUNT ( * ) THEN + 27 ELSE + 82 END + 49 col2 query I rowsort label-1078 @@ -7069,7 +7069,7 @@ SELECT ALL ( - 19 ) - - + 93 + - COUNT ( * ) + - - 44 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 1 AS col0 query II rowsort label-1338 @@ -7304,7 +7304,7 @@ SELECT + 85 + - 40 / - 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1517 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(37\) \* Int64\(41\) AS col2" at position 0 and "coalesce\(Int64\(6\), \(\- Int64\(0\)\) \* nullif\(\(\- Int64\(49\)\), Int64\(49\)\) \* CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(72\)\)\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-46\) \+ Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(37\) \* Int64\(41\) AS col2" at position 0 and "coalesce\(Int64\(6\), \(\- Int64\(0\)\) \* nullif\(\(\- Int64\(49\)\), Int64\(49\)\) \* CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(72\)\)\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-46\) \+ Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 37 * 41 AS col2, COALESCE ( 6, ( - - 0 ) * NULLIF ( - + 49, + 49 ) * CAST ( NULL AS INTEGER ) + - + COUNT ( + 72 ), + COUNT ( * ) / - 46 + 48 ) AS col2 query I rowsort label-1382 @@ -7636,7 +7636,7 @@ SELECT - ( - 60 ) AS col1, 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(81\) AS col2" at position 0 and "CAST\(sum\(\(\- Int64\(98\)\)\) AS Int32\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(81\) AS col2" at position 0 and "CAST\(sum\(\(\- Int64\(98\)\)\) AS Int64\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 13 + + 81 AS col2, CAST ( SUM ( - + 98 ) AS INTEGER ) - + 46 AS col2 query I rowsort @@ -8346,7 +8346,7 @@ SELECT - 64 AS col0, + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -2935 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-84\) \* \(\- CAST\(\(\- Int64\(36\)\) AS Int32\)\) \+ \(\- Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-84\) \* \(\- CAST\(\(\- Int64\(36\)\) AS Int64\)\) \+ \(\- Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 AS col2, - 84 * - CAST ( - + 36 AS INTEGER ) + - - 89 AS col2 query II rowsort @@ -9045,7 +9045,7 @@ SELECT ALL - 47 + 73 + + 10 * ( - + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-2\) \- Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-2\) \- Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 AS col0, - CAST ( NULL AS INTEGER ) * - 2 - - 21 AS col0 query I rowsort @@ -9387,7 +9387,7 @@ SELECT DISTINCT - 39 / - + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT Int64\(96\) <= Int64\(67\) \* CAST\(min\(DISTINCT Int64\(\-77\)\) AS Int32\) THEN \(\- CAST\(NULL AS Float64\)\) END AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT Int64\(96\) <= Int64\(67\) \* CAST\(min\(DISTINCT Int64\(\-77\)\) AS Int64\) THEN \(\- CAST\(NULL AS Float64\)\) END AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE WHEN NOT + 96 <= + 67 * + + CAST ( MIN ( DISTINCT - 77 ) AS INTEGER ) THEN - CAST ( NULL AS FLOAT8 ) END AS col0, 85 AS col0 query I rowsort label-1775 @@ -10670,7 +10670,7 @@ SELECT ALL 32 * - 95 + - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(60\)\) THEN Int64\(24\) \+ Int64\(54\) WHEN \(\- Int64\(43\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE CAST\(NULL AS Int64\) WHEN \(\- Int64\(60\)\) THEN Int64\(24\) \+ Int64\(54\) WHEN \(\- Int64\(43\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + CASE CAST ( NULL AS INTEGER ) WHEN - ( + + 60 ) THEN + ( + 24 ) + 54 WHEN - + 43 THEN NULL ELSE - COUNT ( * ) END AS col2, 58 AS col2 query I rowsort @@ -11958,7 +11958,7 @@ SELECT DISTINCT 74 * - + 40 - 71 * 78 + - 17 - COALESCE ( 13, + + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -1073 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-28\) \- Int64\(\-45\) / Int64\(29\) \+ \(\- Int64\(\-18\)\) AS col0" at position 0 and "coalesce\(Int64\(82\), Int64\(21\) \+ Int64\(\-36\), Int64\(\-84\), \(\- Int64\(\-99\)\)\) \+ \(\- Int64\(\-85\)\) \+ \(\- Int64\(\-45\)\) \* \(\- coalesce\(Int64\(\-63\), sum\(\(\- Int64\(\-73\)\)\), CASE Int64\(\-16\) WHEN Int64\(59\) THEN \(\- Int64\(17\)\) \- Int64\(\-46\) \+ Int64\(23\) / Int64\(70\) WHEN Int64\(13\) THEN NULL WHEN Int64\(\-27\) THEN NULL ELSE NULL END, Int64\(91\) \* Int64\(\-25\)\)\) \+ Int64\(\-1\) \- Int64\(\-97\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(41\)\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-28\) \- Int64\(\-45\) / Int64\(29\) \+ \(\- Int64\(\-18\)\) AS col0" at position 0 and "coalesce\(Int64\(82\), Int64\(21\) \+ Int64\(\-36\), Int64\(\-84\), \(\- Int64\(\-99\)\)\) \+ \(\- Int64\(\-85\)\) \+ \(\- Int64\(\-45\)\) \* \(\- coalesce\(Int64\(\-63\), sum\(\(\- Int64\(\-73\)\)\), CASE Int64\(\-16\) WHEN Int64\(59\) THEN \(\- Int64\(17\)\) \- Int64\(\-46\) \+ Int64\(23\) / Int64\(70\) WHEN Int64\(13\) THEN NULL WHEN Int64\(\-27\) THEN NULL ELSE NULL END, Int64\(91\) \* Int64\(\-25\)\)\) \+ Int64\(\-1\) \- Int64\(\-97\) \+ \(\- CAST\(NULL AS Int64\)\) / \(\- Int64\(41\)\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 39 * - 28 - - 45 / 29 + - - 18 AS col0, COALESCE ( + 82, 21 + - 36, - 84, - - 99 ) + - - 85 + - - 45 * - COALESCE ( - 63, + + SUM ( - - 73 ), + CASE - 16 WHEN + 59 THEN - + 17 - - 46 + 23 / 70 WHEN 13 THEN NULL WHEN - 27 THEN NULL ELSE NULL END, + 91 * + - 25 ) + - 1 - + - 97 + - CAST ( NULL AS INTEGER ) / - + 41 * + + 23 AS col0 query I rowsort label-2259 @@ -12850,7 +12850,7 @@ SELECT COALESCE ( - 86, 55 * ( 49 * 79 ) ) + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(41\) \+ coalesce\(Int64\(91\), CAST\(Int64\(61\) AS Int32\) \* Int64\(4\) \- Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(41\) \+ coalesce\(Int64\(91\), CAST\(Int64\(61\) AS Int64\) \* Int64\(4\) \- Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 AS col2, 41 + COALESCE ( 91, CAST ( 61 AS INTEGER ) * 4 - 68 * - COUNT ( * ) ) - + 51 AS col2 query I rowsort label-2432 @@ -14890,7 +14890,7 @@ SELECT 38 + + - 11 + + 77 + - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 6992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(\-98\) \+ \(\- \(\- \(\- nullif\(count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-81\)\)\)\)\) AS col0" at position 0 and "Int64\(\-92\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(\-98\) \+ \(\- \(\- \(\- nullif\(count\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\), Int64\(\-81\)\)\)\)\) AS col0" at position 0 and "Int64\(\-92\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 1 + - 98 + - - ( - NULLIF ( + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ), - 81 ) ) AS col0, - 92 * + - 76 AS col0 query I rowsort @@ -16090,7 +16090,7 @@ SELECT 25 * 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(42\) / CAST\(Int64\(\-4\) AS Int32\) \+ \(\- min\(DISTINCT Int64\(\-91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(42\) / CAST\(Int64\(\-4\) AS Int64\) \+ \(\- min\(DISTINCT Int64\(\-91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 25 AS col1, 42 / + CAST ( - 4 AS INTEGER ) + ( - + MIN ( DISTINCT - 91 ) ) AS col1 query I rowsort label-3048 @@ -17924,7 +17924,7 @@ SELECT DISTINCT COUNT ( * ) - + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -490 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE \(\- Int64\(\-46\)\) WHEN Int64\(96\) \* Int64\(34\) THEN NULL WHEN Int64\(38\) \* \(\- Int64\(87\)\) THEN CAST\(Int64\(\-49\) AS Int32\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE \(\- Int64\(\-46\)\) WHEN Int64\(96\) \* Int64\(34\) THEN NULL WHEN Int64\(38\) \* \(\- Int64\(87\)\) THEN CAST\(Int64\(\-49\) AS Int64\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 * - + COUNT ( * ) * + 70 AS col2, COUNT ( * ) / - + CASE - - 46 WHEN + + 96 * + 34 THEN NULL WHEN 38 * - + 87 THEN + CAST ( - 49 AS INTEGER ) END AS col2 query II rowsort label-3398 @@ -18125,7 +18125,7 @@ SELECT 99 * - 18 * + COALESCE ( + SUM ( ALL + 80 ), - - 22 * + COUNT ( * ), + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-8\) \* Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-55\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-8\) \* Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-55\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 97 * + - 8 * + + ( + 74 ) * COUNT ( * ) - - 55 + ( CAST ( NULL AS INTEGER ) ) col2, + ( + 21 ) AS col2 query II rowsort label-3435 @@ -18914,7 +18914,7 @@ SELECT 19 AS col0, 75 * + - 49 * + 64 * 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(12\) \+ \(\- Int64\(\-3\)\) \+ \(\- CAST\(\(\- Int64\(\-38\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(12\) \+ \(\- Int64\(\-3\)\) \+ \(\- CAST\(\(\- Int64\(\-38\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 AS col1, 12 + - - 3 + - CAST ( - - 38 AS INTEGER ) AS col1 query I rowsort label-3585 @@ -20277,7 +20277,7 @@ SELECT + 73 AS col0, - 79 # Datafusion - Expected - NULL # Datafusion - Expected - 4272 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(\-35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(35\) \* Int64\(\-1\) \+ Int64\(76\)\) \- \(\- \(\- CASE Int64\(\-6\) WHEN max\(Int64\(89\)\) THEN Int64\(\-52\) WHEN \(\- Int64\(\-89\)\) THEN Int64\(57\) \* Int64\(\-81\) \+ CAST\(NULL AS Int32\) \+ Int64\(40\) END\)\) AS col2" at position 0 and "Int64\(93\) \* \(\- \(\- sum\(Int64\(46\)\)\)\) \- Int64\(\-71\) \- Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(\-35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(35\) \* Int64\(\-1\) \+ Int64\(76\)\) \- \(\- \(\- CASE Int64\(\-6\) WHEN max\(Int64\(89\)\) THEN Int64\(\-52\) WHEN \(\- Int64\(\-89\)\) THEN Int64\(57\) \* Int64\(\-81\) \+ CAST\(NULL AS Int64\) \+ Int64\(40\) END\)\) AS col2" at position 0 and "Int64\(93\) \* \(\- \(\- sum\(Int64\(46\)\)\)\) \- Int64\(\-71\) \- Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 37 / - 35 + + NULLIF ( COUNT ( * ), 35 * - 1 + + 76 ) - - - CASE - 6 WHEN MAX ( 89 ) THEN - 52 WHEN - ( - 89 ) THEN 57 * - 81 + + ( CAST ( NULL AS INTEGER ) ) + 40 END AS col2, + 93 * - - SUM ( ALL 46 ) - + - 71 - 77 AS col2, - 46 + 55 query I rowsort label-3841 @@ -20592,7 +20592,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(\-8\) \* Int64\(63\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(\-8\) \* Int64\(63\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 18 * - 8 * + 63 * - + ( + CAST ( NULL AS INTEGER ) ) AS col2, 68 AS col2 query II rowsort label-3899 @@ -20764,7 +20764,7 @@ SELECT + ( + + 65 ) * - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(45\) \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(45\) \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col0, 82 + 45 - 76 AS col0 query II rowsort label-3932 @@ -22002,7 +22002,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(60\)\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(60\)\) AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - + 60 AS INTEGER ) AS col0, + COUNT ( * ) col0 query I rowsort label-4172 @@ -22286,7 +22286,7 @@ SELECT ALL + - 73 + + 3 * - + 84 AS col2, COALESCE ( - 53, + 48 ) * - COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 1194 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(42\) \+ \(\- Int64\(66\)\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(42\) \+ \(\- Int64\(66\)\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 30 * 42 + - + 66 AS col0, CAST ( - COUNT ( * ) AS INTEGER ) col0 query I rowsort @@ -23502,7 +23502,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "count\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 1 AS col0, + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort label-4454 @@ -24321,7 +24321,7 @@ SELECT ALL ( + ( CASE ( COUNT ( * ) ) WHEN + + COUNT ( * ) THEN - ( + - 18 ) END # Datafusion - Datafusion expected results: # Datafusion - Expected - 593 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-85\)\) \- Int64\(33\) \* Int64\(\-18\) AS col2" at position 0 and "min\(\(\- nullif\(Int64\(\-57\), Int64\(88\) \* \(\- CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-85\)\) \- Int64\(33\) \* Int64\(\-18\) AS col2" at position 0 and "min\(\(\- nullif\(Int64\(\-57\), Int64\(88\) \* \(\- CAST\(NULL AS Int64\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + - COUNT ( * ), - 85 ) - + 33 * - 18 AS col2, MIN ( - NULLIF ( + - 57, + + 88 * - CAST ( NULL AS INTEGER ) ) ) AS col2 query I rowsort label-4608 @@ -25782,7 +25782,7 @@ SELECT ALL 18 + - - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, - 37 AS col1 query II rowsort @@ -26990,7 +26990,7 @@ SELECT - - 86 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int32\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int64\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + ( 82 ) AS INTEGER ) AS col2, + 98 AS col2 query I rowsort @@ -27328,7 +27328,7 @@ SELECT - 69 * 33 AS col2, - MAX ( + - 80 ) + - MIN ( + NULLIF ( - 78, - 11 ) ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(28\) AS col1" at position 0 and "Int64\(\-91\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\) \- Int64\(28\) AS col1" at position 0 and "Int64\(\-91\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - 28 AS col1, - 91 - 14 AS col1 query I rowsort label-5175 @@ -28619,7 +28619,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 4207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-39\)\) AS Int32\) \+ min\(Int64\(7\)\) \+ Int64\(\-12\) AS col1" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(\-11\)\) \- \(\- Int64\(34\)\) \+ \(\- Int64\(\-51\)\) \* Int64\(\-82\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-39\)\) AS Int64\) \+ min\(Int64\(7\)\) \+ Int64\(\-12\) AS col1" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(\-11\)\) \- \(\- Int64\(34\)\) \+ \(\- Int64\(\-51\)\) \* Int64\(\-82\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - 39 AS INTEGER ) + MIN ( + 7 ) + - 12 AS col1, - 20 + - - 11 - - + 34 + - ( - 51 ) * + - 82 * - + COUNT ( * ) AS col1 query I rowsort label-5418 @@ -28999,7 +28999,7 @@ SELECT ALL CAST ( 86 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1189 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \- \(\- CAST\(Int64\(9\) AS Int32\)\) \* Int64\(17\) \* Int64\(8\) AS col1" at position 0 and "min\(Int64\(15\)\) \- CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-65\), Int64\(\-61\) \+ Int64\(26\)\)\) \+ Int64\(\-99\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-67\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \- \(\- CAST\(Int64\(9\) AS Int64\)\) \* Int64\(17\) \* Int64\(8\) AS col1" at position 0 and "min\(Int64\(15\)\) \- CAST\(NULL AS Int64\) \* \(\- coalesce\(Int64\(\-65\), Int64\(\-61\) \+ Int64\(26\)\)\) \+ Int64\(\-99\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-67\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 35 - - CAST ( + 9 AS INTEGER ) * + 17 * + 8 AS col1, MIN ( ALL + 15 ) - CAST ( NULL AS INTEGER ) * - COALESCE ( - 65, - 61 + 26 ) + - 99 + - - COUNT ( * ) - + - 67 + 18 AS col1 query II rowsort label-5489 @@ -32475,7 +32475,7 @@ SELECT ALL 19 / - - 13 - + 0 / - MAX ( - ( + 55 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-10\)\) AS Int32\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(64\) \- CAST\(Int64\(41\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-10\)\) AS Int64\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(64\) \- CAST\(Int64\(41\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - - 10 AS INTEGER ) AS col1, + 1 + + + 64 - + CAST ( + 41 AS INTEGER ) AS col1 query I rowsort label-6153 @@ -34118,7 +34118,7 @@ SELECT - - ( - 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-87\) AS Int32\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-87\) AS Int64\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) * + CAST ( - 87 AS INTEGER ) AS col1, - 19 AS col1 query I rowsort label-6464 @@ -35136,7 +35136,7 @@ SELECT - 17 AS col0, 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ CAST\(Int64\(35\) AS Int32\) AS col0" at position 0 and "coalesce\(max\(DISTINCT Int64\(\-55\)\), Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ CAST\(Int64\(35\) AS Int64\) AS col0" at position 0 and "coalesce\(max\(DISTINCT Int64\(\-55\)\), Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 91 + CAST ( 35 AS INTEGER ) AS col0, COALESCE ( MAX ( DISTINCT - 55 ), + - 5 ) AS col0 query I rowsort label-6657 @@ -36783,7 +36783,7 @@ SELECT DISTINCT - 63 + + 34 / 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(62\) \+ max\(DISTINCT Int64\(45\)\) \- Int64\(\-66\) \+ \(\- \(\- min\(Int64\(87\)\)\)\) \+ Int64\(\-74\) / Int64\(\-26\)\)\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(97\) \* Int64\(\-55\) \* Int64\(48\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(62\) \+ max\(DISTINCT Int64\(45\)\) \- Int64\(\-66\) \+ \(\- \(\- min\(Int64\(87\)\)\)\) \+ Int64\(\-74\) / Int64\(\-26\)\)\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(97\) \* Int64\(\-55\) \* Int64\(48\) / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - NULLIF ( + COUNT ( * ), 62 + + MAX ( DISTINCT + 45 ) - + - 66 + - - MIN ( ALL 87 ) + - 74 / - 26 ) ) + - 83 AS col1, + 97 * - 55 * 48 / CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-6970 @@ -38907,7 +38907,7 @@ SELECT - 64 AS col1, NULLIF ( + 26, - 6 * - - NULLIF ( + 96, COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 29807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(55\)\)\) AS col0" at position 0 and "max\(Int64\(\-28\)\) \* Int64\(\-18\) \* \(\- CAST\(Int64\(\-59\) AS Int32\)\) \+ CAST\(Int64\(\-97\) \+ Int64\(12\) \* max\(Int64\(14\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(55\)\)\) AS col0" at position 0 and "max\(Int64\(\-28\)\) \* Int64\(\-18\) \* \(\- CAST\(Int64\(\-59\) AS Int64\)\) \+ CAST\(Int64\(\-97\) \+ Int64\(12\) \* max\(Int64\(14\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( + 55 ) AS col0, MAX ( - 28 ) * + - 18 * - CAST ( - 59 AS INTEGER ) + CAST ( + ( ( - 97 ) ) + 12 * MAX ( + 14 ) AS INTEGER ) AS col0 query I rowsort label-7378 @@ -39680,7 +39680,7 @@ SELECT + + 25 - + MIN ( 36 ) + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(59\) \+ avg\(\(\- Int64\(14\)\)\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(83\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(59\) \+ avg\(\(\- Int64\(14\)\)\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(83\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 8 + + 59 + AVG ( - + 14 ) / ( + CAST ( NULL AS INTEGER ) ) AS col2, + 83 + + 26 AS col2 query I rowsort @@ -40784,7 +40784,7 @@ SELECT - 38 * + + 11 * - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-3\) WHEN Int64\(\-91\) THEN count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) ELSE NULL END\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-3\) WHEN Int64\(\-91\) THEN count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) ELSE NULL END\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - - CASE - 3 WHEN - 91 THEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col1, COUNT ( * ) AS col1 query I rowsort label-7741 @@ -43926,7 +43926,7 @@ SELECT DISTINCT - CAST ( - NULLIF ( + 74, - + 17 ) AS INTEGER ) - COALESCE ( 79, # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 24 * + - CAST ( NULL AS INTEGER ) AS col1, - 85 AS col1 query I rowsort @@ -44723,7 +44723,7 @@ SELECT 64 + - 87 + + 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 928 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) \* coalesce\(\(\- Int64\(\-58\)\), \(\- Int64\(\-61\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE Int64\(50\) WHEN CAST\(NULL AS Int32\) THEN Int64\(97\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) \* coalesce\(\(\- Int64\(\-58\)\), \(\- Int64\(\-61\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE Int64\(50\) WHEN CAST\(NULL AS Int64\) THEN Int64\(97\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 16 * + COALESCE ( - - 58, - - 61 / + - COUNT ( * ) ) AS col2, COUNT ( * ) + + CASE + 50 WHEN + CAST ( NULL AS INTEGER ) THEN + 97 END AS col2 query II rowsort @@ -47714,7 +47714,7 @@ SELECT - + 98 * - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 367983 # Datafusion - Expected - 286 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(59\) \* Int64\(63\) AS col0" at position 0 and "\(\- CASE WHEN Int64\(50\) IS NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN Int64\(11\) ELSE Int64\(33\) \+ CAST\(\(\- max\(DISTINCT CAST\(NULL AS Float64\)\)\) AS Int32\) END\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(59\) \* Int64\(63\) AS col0" at position 0 and "\(\- CASE WHEN Int64\(50\) IS NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN Int64\(11\) ELSE Int64\(33\) \+ CAST\(\(\- max\(DISTINCT CAST\(NULL AS Float64\)\)\) AS Int64\) END\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 99 * + + 59 * 63 AS col0, - CASE WHEN 50 IS NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN 11 ELSE 33 + + CAST ( - MAX ( DISTINCT + ( CAST ( NULL AS FLOAT8 ) ) ) AS INTEGER ) END * - 26 AS col0 query II rowsort label-9063 @@ -48355,7 +48355,7 @@ SELECT + 51 / 51 - - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(65\)\) AS Int32\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(65\)\) AS Int64\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - + 65 AS INTEGER ) AS col1, ( - 13 ) AS col1 query I rowsort label-9185 @@ -48652,7 +48652,7 @@ SELECT DISTINCT + + 18 + 6 AS col0, 56 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2705 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(41\) \* \(\- Int64\(\-66\)\) \+ Int64\(58\) AS col0" at position 0 and "Int64\(\-22\) \+ \(\- CAST\(\(\- Int64\(\-53\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(41\) \* \(\- Int64\(\-66\)\) \+ Int64\(58\) AS col0" at position 0 and "Int64\(\-22\) \+ \(\- CAST\(\(\- Int64\(\-53\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 59 + + + 41 * - - 66 + 58 AS col0, - 22 + - CAST ( - ( - 53 ) AS INTEGER ) AS col0 query I rowsort label-9241 diff --git a/data/sqlite/random/expr/slt_good_17.slt b/data/sqlite/random/expr/slt_good_17.slt index e8c7b8d..3a371f9 100644 --- a/data/sqlite/random/expr/slt_good_17.slt +++ b/data/sqlite/random/expr/slt_good_17.slt @@ -668,7 +668,7 @@ SELECT ALL - - 8 * SUM ( DISTINCT + 36 ) * - - NULLIF ( 40, + COALESCE ( - 75, - # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "CAST\(Int64\(\-74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "CAST\(Int64\(\-74\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 5 AS col0, CAST ( - 74 AS INTEGER ) AS col0 query I rowsort label-119 @@ -3095,7 +3095,7 @@ SELECT + COUNT ( * ) AS col2, 38 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-88\) \- Int64\(13\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(33\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-88\) \- Int64\(13\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(33\) / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * - 88 - + 13 - + COUNT ( * ) + - COUNT ( * ) + 33 / CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-582 @@ -3712,7 +3712,7 @@ SELECT 89 * + COALESCE ( - 28, - + ( - 19 ) / - 32, + 15 + - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(20\), \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(20\), \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( + 20, - + CAST ( NULL AS INTEGER ) ) AS col2, 15 AS col2 query II rowsort label-699 @@ -4282,7 +4282,7 @@ SELECT ALL - 87 + 37 + 67 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-29\), \(\- Int64\(\-22\)\) \+ CAST\(Int64\(\-71\) AS Int32\)\)\) \- Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-29\), \(\- Int64\(\-22\)\) \+ CAST\(Int64\(\-71\) AS Int64\)\)\) \- Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 78 col0, - NULLIF ( + - 29, - - 22 + + CAST ( + - 71 AS INTEGER ) ) - + - 65 AS col0 query I rowsort label-807 @@ -8364,7 +8364,7 @@ SELECT ( - - 52 ) AS col2, 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-80\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-80\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 80 AS INTEGER ) col1, + COUNT ( * ) * + 99 * COUNT ( * ) AS col1 query I rowsort label-1581 @@ -8427,7 +8427,7 @@ SELECT ALL - 21 * + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -673 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(99\)\)\) \* Int64\(\-15\) \+ \(\- CAST\(Int64\(\-61\) AS Int32\)\) \+ Int64\(82\) \* min\(DISTINCT Int64\(\-28\)\) \- max\(Int64\(\-77\)\) AS col0" at position 0 and "Int64\(3\) \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(99\)\)\) \* Int64\(\-15\) \+ \(\- CAST\(Int64\(\-61\) AS Int64\)\) \+ Int64\(82\) \* min\(DISTINCT Int64\(\-28\)\) \- max\(Int64\(\-77\)\) AS col0" at position 0 and "Int64\(3\) \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + MAX ( 99 ) * + - 15 + - CAST ( - 61 AS INTEGER ) + + 82 * + + MIN ( DISTINCT - 28 ) - MAX ( ALL - 77 ) AS col0, 3 * - 48 AS col0 query I rowsort label-1593 @@ -9406,7 +9406,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int32\) / Int64\(1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int64\) / Int64\(1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * CAST ( NULL AS INTEGER ) / + 1 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -11751,7 +11751,7 @@ SELECT ALL 37 * 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(\-6\)\) \- \(\- Int64\(\-70\)\) / Int64\(\-14\) AS col0" at position 0 and "Int64\(\-95\) \- \(\- CAST\(min\(DISTINCT Int64\(\-8\)\) AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(\-6\)\) \- \(\- Int64\(\-70\)\) / Int64\(\-14\) AS col0" at position 0 and "Int64\(\-95\) \- \(\- CAST\(min\(DISTINCT Int64\(\-8\)\) AS Int64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + MAX ( - 6 ) - - - 70 / - 14 col0, - 95 - - CAST ( MIN ( DISTINCT - 8 ) AS INTEGER ) + - COUNT ( * ) col0 query I rowsort label-2227 @@ -13808,7 +13808,7 @@ SELECT ALL - + 40 + - + 42 / COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(CASE Int64\(69\) WHEN Int64\(64\) \+ \(\- Int64\(\-41\)\) \* Int64\(40\) \- Int64\(9\) \+ Int64\(14\) THEN Int64\(39\) \* \(\- Int64\(\-89\)\) \- Int64\(\-73\) \+ Int64\(20\) / Int64\(37\) \* Int64\(14\) WHEN \(\- min\(Int64\(\-4\)\)\) \* \(\- Int64\(61\) \* Int64\(76\) \+ Int64\(24\)\) THEN Int64\(4\) \* Int64\(4\) \- Int64\(55\) \* Int64\(34\) WHEN CASE Int64\(95\) WHEN Int64\(\-12\) THEN Int64\(\-64\) \+ Int64\(\-40\) / Int64\(54\) END THEN NULL ELSE NULL END AS Int32\)\) \- Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(CASE Int64\(69\) WHEN Int64\(64\) \+ \(\- Int64\(\-41\)\) \* Int64\(40\) \- Int64\(9\) \+ Int64\(14\) THEN Int64\(39\) \* \(\- Int64\(\-89\)\) \- Int64\(\-73\) \+ Int64\(20\) / Int64\(37\) \* Int64\(14\) WHEN \(\- min\(Int64\(\-4\)\)\) \* \(\- Int64\(61\) \* Int64\(76\) \+ Int64\(24\)\) THEN Int64\(4\) \* Int64\(4\) \- Int64\(55\) \* Int64\(34\) WHEN CASE Int64\(95\) WHEN Int64\(\-12\) THEN Int64\(\-64\) \+ Int64\(\-40\) / Int64\(54\) END THEN NULL ELSE NULL END AS Int64\)\) \- Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 84 AS col0, + COUNT ( * ) + - + CAST ( + + CASE + 69 WHEN 64 + - - 41 * + 40 - 9 + + 14 THEN + 39 * + ( - - 89 ) - - 73 + + 20 / + 37 * + 14 WHEN + - MIN ( ALL - 4 ) * - ( 61 * 76 + + 24 ) THEN 4 * + 4 - 55 * 34 WHEN CASE 95 WHEN - 12 THEN - 64 + - 40 / 54 END THEN NULL ELSE NULL END AS INTEGER ) - 27 col0 query I rowsort label-2617 @@ -14348,7 +14348,7 @@ SELECT ALL 62 * - 26 * 72 + + 67 + + 68 + + 5 - - - 64 + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(CAST\(NULL AS Int32\), \(\- Int64\(48\)\)\)\) \* Int64\(\-71\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(CAST\(NULL AS Int64\), \(\- Int64\(48\)\)\)\) \* Int64\(\-71\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - + 48 ) * - 71 AS col1, + 53 AS col1 query I rowsort label-2720 @@ -21307,7 +21307,7 @@ SELECT - - 72 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6375 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(75\)\) \* Int64\(\-85\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(75\)\) \* Int64\(\-85\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \- Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + SUM ( DISTINCT + 75 ) * - 85 col1, + CAST ( NULL AS INTEGER ) - - 3 AS col1 query I rowsort @@ -21451,7 +21451,7 @@ SELECT ALL - 32 * + 78, - 11 * - 60 + CAST ( + - 94 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 1100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(9\) AS Int32\)\) AS col0" at position 0 and "Int64\(55\) \* CAST\(Int64\(20\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(9\) AS Int64\)\) AS col0" at position 0 and "Int64\(55\) \* CAST\(Int64\(20\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 9 AS INTEGER ) AS col0, 55 * + CAST ( + 20 AS INTEGER ) col0 query I rowsort @@ -23197,7 +23197,7 @@ SELECT + 3 * - 3 * - + MIN ( + 84 ) + + CASE + 94 WHEN - - 99 + - COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "min\(\(\- CAST\(Int64\(11\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "min\(\(\- CAST\(Int64\(11\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 26 AS col0, MIN ( + - CAST ( 11 AS INTEGER ) ) AS col0 # Datafusion - Types were automatically converted from: @@ -23845,7 +23845,7 @@ SELECT ALL NULLIF ( + COUNT ( * ), + AVG ( 15 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 1479 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(12\), Int64\(85\)\)\) \+ \(\- CASE Int64\(\-60\) WHEN Int64\(23\) THEN Int64\(\-25\) / \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-6\)\) / Int64\(57\) / \(\- CASE Int64\(66\) WHEN Int64\(\-42\) THEN CAST\(\(\- Int64\(72\)\) AS Int32\) ELSE NULL END\) \+ \(\- sum\(DISTINCT Int64\(\-72\)\)\) / Int64\(20\) ELSE Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) / Int64\(80\) AS col1" at position 0 and "Int64\(\-93\) \+ Int64\(93\) \* Int64\(16\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(12\), Int64\(85\)\)\) \+ \(\- CASE Int64\(\-60\) WHEN Int64\(23\) THEN Int64\(\-25\) / \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-6\)\) / Int64\(57\) / \(\- CASE Int64\(66\) WHEN Int64\(\-42\) THEN CAST\(\(\- Int64\(72\)\) AS Int64\) ELSE NULL END\) \+ \(\- sum\(DISTINCT Int64\(\-72\)\)\) / Int64\(20\) ELSE Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) / Int64\(80\) AS col1" at position 0 and "Int64\(\-93\) \+ Int64\(93\) \* Int64\(16\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + + 12, + 85 ) + + - CASE - 60 WHEN + 23 THEN - 25 / - CAST ( NULL AS INTEGER ) * - - 6 / + 57 / - CASE + + 66 WHEN - 42 THEN + CAST ( + - ( + 72 ) AS INTEGER ) ELSE NULL END + - SUM ( DISTINCT - 72 ) / 20 ELSE - 26 + - COUNT ( * ) END / + + 80 AS col1, - 93 + 93 * + 16 + + 84 AS col1 query I rowsort label-4529 @@ -25865,7 +25865,7 @@ SELECT - 91 + + COUNT ( ALL 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 AS col2, - CAST ( NULL AS INTEGER ) / - 29 col2 query II rowsort label-4911 @@ -26579,7 +26579,7 @@ SELECT DISTINCT 93 * - 76 + + 52 + + + 15 + + + 5 * 80 * - + ( - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1118 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* CAST\(Int64\(\-59\) AS Int32\) \+ Int64\(\-56\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* CAST\(Int64\(\-59\) AS Int64\) \+ Int64\(\-56\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 18 * CAST ( - 59 AS INTEGER ) + - 56 AS col0, 35 AS col0 query I rowsort label-5046 @@ -27524,7 +27524,7 @@ SELECT MIN ( + 94 ) + + MIN ( ALL ( - COALESCE ( 33, - - 41 ) ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(74\)\) / Int64\(49\) AS col2" at position 0 and "Int64\(32\) \+ Int64\(\-28\) \+ Int64\(52\) \- max\(DISTINCT Int64\(87\)\) \+ Int64\(\-4\) \* Int64\(\-15\) \* CASE Int64\(24\) WHEN Int64\(\-71\) \* \(\- Int64\(5\)\) THEN NULL WHEN Int64\(\-26\) \+ Int64\(\-94\) \- Int64\(\-16\) \+ \(\- CASE Int64\(57\) WHEN \(\- Int64\(64\)\) THEN NULL WHEN Int64\(29\) THEN \(\- Int64\(\-44\)\) \* \(\- nullif\(Int64\(2\), Int64\(\-48\) \* nullif\(\(\- avg\(Int64\(\-75\)\)\), Int64\(\-34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(32\)\)\)\) \* Int64\(66\) \* \(\- Int64\(\-87\)\) WHEN nullif\(\(\- coalesce\(Int64\(\-30\), Int64\(\-85\)\)\), CAST\(Int64\(\-48\) AS Int32\)\) THEN Int64\(\-77\) ELSE Int64\(85\) \* \(\- Int64\(\-2\)\) \* \(\- nullif\(Int64\(5\), Int64\(98\) \* min\(DISTINCT \(\- Int64\(\-21\)\)\) \* Int64\(94\) \* nullif\(Int64\(57\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(11\) \* Int64\(89\)\) \+ max\(Int64\(\-77\)\)\)\) \* Int64\(\-94\) END\) \* Int64\(26\) THEN Int64\(\-16\) \+ Int64\(97\) \* \(\- coalesce\(Int64\(17\) \+ Int64\(\-31\), Int64\(97\) \* Int64\(37\)\)\) ELSE NULL END \+ Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(74\)\) / Int64\(49\) AS col2" at position 0 and "Int64\(32\) \+ Int64\(\-28\) \+ Int64\(52\) \- max\(DISTINCT Int64\(87\)\) \+ Int64\(\-4\) \* Int64\(\-15\) \* CASE Int64\(24\) WHEN Int64\(\-71\) \* \(\- Int64\(5\)\) THEN NULL WHEN Int64\(\-26\) \+ Int64\(\-94\) \- Int64\(\-16\) \+ \(\- CASE Int64\(57\) WHEN \(\- Int64\(64\)\) THEN NULL WHEN Int64\(29\) THEN \(\- Int64\(\-44\)\) \* \(\- nullif\(Int64\(2\), Int64\(\-48\) \* nullif\(\(\- avg\(Int64\(\-75\)\)\), Int64\(\-34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(32\)\)\)\) \* Int64\(66\) \* \(\- Int64\(\-87\)\) WHEN nullif\(\(\- coalesce\(Int64\(\-30\), Int64\(\-85\)\)\), CAST\(Int64\(\-48\) AS Int64\)\) THEN Int64\(\-77\) ELSE Int64\(85\) \* \(\- Int64\(\-2\)\) \* \(\- nullif\(Int64\(5\), Int64\(98\) \* min\(DISTINCT \(\- Int64\(\-21\)\)\) \* Int64\(94\) \* nullif\(Int64\(57\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(11\) \* Int64\(89\)\) \+ max\(Int64\(\-77\)\)\)\) \* Int64\(\-94\) END\) \* Int64\(26\) THEN Int64\(\-16\) \+ Int64\(97\) \* \(\- coalesce\(Int64\(17\) \+ Int64\(\-31\), Int64\(97\) \* Int64\(37\)\)\) ELSE NULL END \+ Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( 74 ) / 49 AS col2, 32 + - 28 + + 52 - MAX ( DISTINCT + 87 ) + - 4 * - 15 * + CASE 24 WHEN - 71 * - + 5 THEN NULL WHEN - 26 + + - 94 - + - 16 + + - CASE 57 WHEN - + 64 THEN NULL WHEN 29 THEN - - 44 * - NULLIF ( 2, - 48 * NULLIF ( + - AVG ( + - 75 ), - 34 * + - COUNT ( * ) / + 32 ) ) * 66 * - - 87 WHEN + + NULLIF ( - COALESCE ( - 30, + - 85 ), + CAST ( - 48 AS INTEGER ) ) THEN - 77 ELSE 85 * - - 2 * + ( + - ( NULLIF ( 5, 98 * MIN ( DISTINCT - - 21 ) * + + 94 * + ( NULLIF ( 57, COUNT ( * ) + + 11 * + 89 ) ) + MAX ( - 77 ) ) ) ) * - 94 END * + 26 THEN - 16 + 97 * - COALESCE ( 17 + - 31, 97 * + 37 ) ELSE NULL END + + 45 col2 query I rowsort label-5226 @@ -29735,7 +29735,7 @@ SELECT - 68 * MAX ( DISTINCT + 45 ) * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, - 73 AS col1 query I rowsort label-5650 @@ -34296,7 +34296,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* CAST\(NULL AS Int32\) \+ avg\(Int64\(75\)\) \+ \(\- Int64\(\-86\)\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* CAST\(NULL AS Int64\) \+ avg\(Int64\(75\)\) \+ \(\- Int64\(\-86\)\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 * + CAST ( NULL AS INTEGER ) + AVG ( + + 75 ) + - + ( - 86 ) AS col2, 31 AS col2 query I rowsort @@ -37836,7 +37836,7 @@ SELECT ALL 87 / 83 * + 66 * + CAST ( - + ( + ( - + 53 ) ) AS INTEGER ) + + ( - 7 # Datafusion - Expected - -92 # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col2" at position 0 and "\(\- \(\- \(\- \(\- avg\(DISTINCT CAST\(NULL AS Int32\)\)\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col2" at position 0 and "\(\- \(\- \(\- \(\- avg\(DISTINCT CAST\(NULL AS Int64\)\)\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 92 AS col2, 73, - - ( - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col2 query II rowsort label-7191 @@ -40800,7 +40800,7 @@ SELECT ALL + COUNT ( * ) * + + 36 / - + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- max\(Int64\(42\)\)\), \(\- Int64\(\-58\)\) / CAST\(NULL AS Int32\) \+ CASE Int64\(84\) WHEN Int64\(16\) THEN Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(49\) \* Int64\(63\) END \- Int64\(70\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- max\(Int64\(42\)\)\), \(\- Int64\(\-58\)\) / CAST\(NULL AS Int64\) \+ CASE Int64\(84\) WHEN Int64\(16\) THEN Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(49\) \* Int64\(63\) END \- Int64\(70\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( - MAX ( ALL + 42 ), ( - - 58 ) / CAST ( NULL AS INTEGER ) + CASE + 84 WHEN + + 16 THEN 94 + + COUNT ( * ) ELSE 49 * + 63 END - + 70 ) * 2 AS col1, CAST ( NULL AS INTEGER ) * + + 49 AS col1 query I rowsort @@ -41566,7 +41566,7 @@ SELECT - CASE - 77 WHEN - ( - 35 ) * 98 + + + 35 + + 16 THEN NULL WHEN + - 43 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ Int64\(26\) AS col0" at position 0 and "Int64\(30\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ Int64\(26\) AS col0" at position 0 and "Int64\(30\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 63 + 26 col0, 30 * + - CAST ( NULL AS INTEGER ) col0 query I rowsort label-7899 @@ -41703,7 +41703,7 @@ SELECT NULLIF ( ( - 14 ), + - 40 ) + 65 AS col2 # Datafusion - Expected - 44 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 and "\(\- Int64\(\-26\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 and "\(\- Int64\(\-26\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44, 95 + + CAST ( NULL AS INTEGER ) AS col2, - - 26 AS col2 query I rowsort label-7925 @@ -41935,7 +41935,7 @@ SELECT + + MAX ( 88 ) - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) 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\. SELECT 48 col0, CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -43225,7 +43225,7 @@ SELECT ALL + MIN ( DISTINCT 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(85\)\) / CAST\(NULL AS Int32\) \+ \(\- Int64\(1\)\) \- \(\- CASE Int64\(90\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-93\) / Int64\(\-73\) THEN Int64\(33\) / \(\- Int64\(\-36\)\) END\) \* Int64\(\-81\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(85\)\) / CAST\(NULL AS Int64\) \+ \(\- Int64\(1\)\) \- \(\- CASE Int64\(90\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-93\) / Int64\(\-73\) THEN Int64\(33\) / \(\- Int64\(\-36\)\) END\) \* Int64\(\-81\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + NULLIF ( + COUNT ( * ), - COUNT ( * ) * 85 ) / + CAST ( NULL AS INTEGER ) + - + 1 - - CASE + 90 WHEN 55 THEN NULL WHEN - 93 / + - 73 THEN 33 / - - 36 END * - 81 col2, 9 AS col2 query II rowsort label-8214 @@ -46868,7 +46868,7 @@ SELECT ALL - NULLIF ( - + CASE + - 70 WHEN + 94 + - 26 * - + 30 - + 90 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(18\) \- Int64\(\-55\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(18\) \- Int64\(\-55\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 73 * + ( 18 ) - + - 55 + - CAST ( NULL AS INTEGER ) AS col1, + 22 + 28 AS col1 query I rowsort label-8907 @@ -49299,7 +49299,7 @@ SELECT - 47 * 30 - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1610 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* CAST\(nullif\(Int64\(46\), Int64\(76\)\) AS Int32\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* CAST\(nullif\(Int64\(46\), Int64\(76\)\) AS Int64\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 35 * + CAST ( NULLIF ( 46, + 76 ) AS INTEGER ) AS col2, + 90 AS col2 query I rowsort @@ -49691,7 +49691,7 @@ SELECT + - 91 + - 1 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "count\(Int64\(18\)\) / CAST\(NULL AS Int32\) \- Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "count\(Int64\(18\)\) / CAST\(NULL AS Int64\) \- Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 90 AS col1, + COUNT ( ALL + 18 ) / + CAST ( NULL AS INTEGER ) - + - 46 col1 query I rowsort label-9444 @@ -50194,7 +50194,7 @@ SELECT - 39 / - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, 55 AS col1 query I rowsort label-9539 @@ -51098,7 +51098,7 @@ SELECT ALL 82, - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(82\)\) AS Int32\) \+ Int64\(36\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(82\)\) AS Int64\) \+ Int64\(36\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + 82 AS INTEGER ) + + 36 AS col0, 92 AS col0 query I rowsort label-9710 @@ -51597,7 +51597,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "CASE Int64\(65\) WHEN Int64\(10\) THEN Int64\(91\) \* Int64\(\-35\) \* Int64\(79\) END \- CAST\(Int64\(59\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "CASE Int64\(65\) WHEN Int64\(10\) THEN Int64\(91\) \* Int64\(\-35\) \* Int64\(79\) END \- CAST\(Int64\(59\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * 79 * + CAST ( NULL AS INTEGER ) AS col0, CASE 65 WHEN + + 10 THEN 91 * + - 35 * 79 END - + CAST ( 59 AS INTEGER ) col0 query I rowsort label-9804 @@ -52368,7 +52368,7 @@ SELECT ALL - CAST ( SUM ( DISTINCT CAST ( - - 21 AS INTEGER ) ) AS INTEGER ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3136 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- Int64\(\-56\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- Int64\(\-56\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 * - - 56 col1, CAST ( NULL AS INTEGER ) * + - 40 AS col1 query II rowsort label-9949 diff --git a/data/sqlite/random/expr/slt_good_18.slt b/data/sqlite/random/expr/slt_good_18.slt index 9762d4a..a70e6d0 100644 --- a/data/sqlite/random/expr/slt_good_18.slt +++ b/data/sqlite/random/expr/slt_good_18.slt @@ -2809,7 +2809,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) / Int64\(28\) \- Int64\(\-13\) \* Int64\(\-77\) \- CAST\(NULL AS Int32\) \- Int64\(\-18\) AS col0" at position 0 and "Int64\(79\) / \(\- \(\- max\(Int64\(49\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) / Int64\(28\) \- Int64\(\-13\) \* Int64\(\-77\) \- CAST\(NULL AS Int64\) \- Int64\(\-18\) AS col0" at position 0 and "Int64\(79\) / \(\- \(\- max\(Int64\(49\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 / 28 - - 13 * - 77 - + CAST ( NULL AS INTEGER ) - + ( ( + - 18 ) ) AS col0, + 79 / - - MAX ( 49 ) AS col0 query I rowsort label-536 @@ -5389,7 +5389,7 @@ SELECT ALL 21 * + ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CASE Int64\(33\) WHEN Int64\(43\) THEN NULL WHEN \(\- Int64\(\-21\)\) THEN Int64\(7\) END \* \(\- nullif\(\(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), \(\- \(\- Int64\(66\)\)\)\)\)\), Int64\(44\) \+ coalesce\(Int64\(95\), Int64\(17\) \+ Int64\(\-76\)\) \* Int64\(\-90\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(83\) \* Int64\(68\) \- CASE \(\- count\(\(\- Int64\(86\)\)\)\) WHEN coalesce\(Int64\(75\), Int64\(50\)\) THEN NULL ELSE Int64\(\-68\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CASE Int64\(33\) WHEN Int64\(43\) THEN NULL WHEN \(\- Int64\(\-21\)\) THEN Int64\(7\) END \* \(\- nullif\(\(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int64\)\)\), \(\- \(\- Int64\(66\)\)\)\)\)\), Int64\(44\) \+ coalesce\(Int64\(95\), Int64\(17\) \+ Int64\(\-76\)\) \* Int64\(\-90\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(83\) \* Int64\(68\) \- CASE \(\- count\(\(\- Int64\(86\)\)\)\) WHEN coalesce\(Int64\(75\), Int64\(50\)\) THEN NULL ELSE Int64\(\-68\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 27 AS col2, CASE 33 WHEN + 43 THEN NULL WHEN - ( - 21 ) THEN + 7 END * + - NULLIF ( - ( - ( + + COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - - ( 66 ) ) ) ), 44 + + COALESCE ( + 95, 17 + - 76 ) * - 90 ) * - COUNT ( * ) - 83 * 68 - + CASE - + COUNT ( - ( 86 ) ) WHEN + + COALESCE ( 75, + 50 ) THEN NULL ELSE - 68 END AS col2 query I rowsort @@ -5421,7 +5421,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-32\) \- Int64\(\-15\) \+ Int64\(55\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(57\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-32\) \- Int64\(\-15\) \+ Int64\(55\) \* CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(57\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col1, - 32 - - 15 + + + ( + 55 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) + - + 57 + - 56 AS col1 query I rowsort label-1031 @@ -5705,7 +5705,7 @@ SELECT COALESCE ( ( + NULLIF ( 59, + COUNT ( ALL - - 15 ) * - ( + - 3 ) ) ), - C # Datafusion - Datafusion expected results: # Datafusion - Expected - 3467285 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(22\) \+ Int64\(16\) \* \(\- Int64\(66\)\) \* Int64\(45\) \* \(\- CAST\(Int64\(73\) AS Int32\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "Int64\(89\) / Int64\(56\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-11\) \+ Int64\(\-29\) THEN Int64\(46\) \* Int64\(95\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(22\) \+ Int64\(16\) \* \(\- Int64\(66\)\) \* Int64\(45\) \* \(\- CAST\(Int64\(73\) AS Int64\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "Int64\(89\) / Int64\(56\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-11\) \+ Int64\(\-29\) THEN Int64\(46\) \* Int64\(95\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 80 * 22 + + 16 * + - ( + 66 ) * 45 * + - CAST ( + + 73 AS INTEGER ) + - ( ( - 85 ) ) AS col1, + 89 / 56 * + + CASE + COUNT ( * ) WHEN - 11 + - 29 THEN + + 46 * + 95 ELSE NULL END col1 query I rowsort label-1084 @@ -7497,7 +7497,7 @@ SELECT ALL 59 AS col0, 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, 66 AS col1 query I rowsort @@ -11046,7 +11046,7 @@ SELECT DISTINCT - 22 + + 88 col2, + COUNT ( - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(\-63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE Int64\(20\) WHEN \(\- count\(Int64\(45\)\)\) THEN NULL ELSE CAST\(NULL AS Int32\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(\-63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE Int64\(20\) WHEN \(\- count\(Int64\(45\)\)\) THEN NULL ELSE CAST\(NULL AS Int64\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 41 + - 63 AS col1, COUNT ( * ) / - CASE + + 20 WHEN - COUNT ( 45 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col1 query I rowsort label-2102 @@ -11673,7 +11673,7 @@ SELECT 43 - - 79 + ( 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "CAST\(Int64\(\-38\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "CAST\(Int64\(\-38\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 40 AS col1, ( + CAST ( - 38 AS INTEGER ) ) AS col1 query I rowsort label-2221 @@ -11722,7 +11722,7 @@ SELECT ALL - 45 - - 94 # Datafusion - Expected - 5 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-68\) AS Int32\)\) / \(\- Int64\(\-12\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-68\) AS Int64\)\) / \(\- Int64\(\-12\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 68 AS INTEGER ) / - - 12 AS col2, 88 / 61 * CAST ( NULL AS INTEGER ), - 5 col2 query II rowsort label-2230 @@ -13008,7 +13008,7 @@ SELECT 51 * 63 + + MAX ( DISTINCT - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col0" at position 0 and "\(\- CAST\(CASE Int64\(38\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- Int64\(\-89\)\)\) \- Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(51\) \+ Int64\(47\) THEN Int64\(28\) WHEN Int64\(94\) THEN \(\- Int64\(33\)\) ELSE NULL END AS Int32\)\) \* Int64\(\-96\) / Int64\(65\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col0" at position 0 and "\(\- CAST\(CASE Int64\(38\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- Int64\(\-89\)\)\) \- Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(51\) \+ Int64\(47\) THEN Int64\(28\) WHEN Int64\(94\) THEN \(\- Int64\(33\)\) ELSE NULL END AS Int64\)\) \* Int64\(\-96\) / Int64\(65\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 89 AS col0, - CAST ( CASE 38 WHEN + COUNT ( * ) * - - ( + - 89 ) - 54 + + COUNT ( * ) * - CAST ( NULL AS FLOAT8 ) * 51 + + ( + + 47 ) THEN 28 WHEN + 94 THEN - + 33 ELSE NULL END AS INTEGER ) * - 96 / + 65 + + 61 AS col0 query I rowsort @@ -14755,7 +14755,7 @@ SELECT ALL + + 51 * - 67 - - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 782 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ count\(DISTINCT CAST\(Int64\(\-95\) AS Int32\)\) \+ Int64\(48\) \* Int64\(\-80\) / \(\- count\(\(\- Int64\(87\)\)\)\) \- Int64\(23\) \+ Int64\(\-35\) / Int64\(21\) \+ Int64\(13\) \+ \(\- \(\- Int64\(\-57\)\)\) \+ Int64\(\-63\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(73\)\)\) / Int64\(13\) \+ \(\- Int64\(32\)\) \* Int64\(92\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ count\(DISTINCT CAST\(Int64\(\-95\) AS Int64\)\) \+ Int64\(48\) \* Int64\(\-80\) / \(\- count\(\(\- Int64\(87\)\)\)\) \- Int64\(23\) \+ Int64\(\-35\) / Int64\(21\) \+ Int64\(13\) \+ \(\- \(\- Int64\(\-57\)\)\) \+ Int64\(\-63\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(73\)\)\) / Int64\(13\) \+ \(\- Int64\(32\)\) \* Int64\(92\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 + COUNT ( DISTINCT + + CAST ( + - 95 AS INTEGER ) ) + 48 * - 80 / + - COUNT ( ALL - + 87 ) - + 23 + + - 35 / + 21 + + 13 + + ( - - ( + ( - 57 ) ) ) + - 63 - + + COUNT ( * ) * - SUM ( + 73 ) / + + 13 + - ( + 32 ) * 92 col0, 69 AS col0 query II rowsort label-2800 @@ -15545,7 +15545,7 @@ SELECT ( 28 ) + + + 34 + 53 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6930 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(90\) AS col1" at position 0 and "CAST\(Int64\(\-74\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(90\) AS col1" at position 0 and "CAST\(Int64\(\-74\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 77 * 90 AS col1, + CAST ( ( - 74 ) AS INTEGER ) AS col1 query I rowsort @@ -16086,7 +16086,7 @@ SELECT + - COUNT ( ALL + - 88 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -21919 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(47\), \(\- Int64\(54\)\) \+ Int64\(0\) / min\(Int64\(\-45\)\) \+ \(\- Int64\(61\)\), CAST\(NULL AS Int32\) \* count\(Int64\(\-46\)\) \+ Int64\(\-23\)\)\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(\-50\) \+ Int64\(75\) \+ Int64\(\-95\) \* Int64\(21\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(47\), \(\- Int64\(54\)\) \+ Int64\(0\) / min\(Int64\(\-45\)\) \+ \(\- Int64\(61\)\), CAST\(NULL AS Int64\) \* count\(Int64\(\-46\)\) \+ Int64\(\-23\)\)\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(\-50\) \+ Int64\(75\) \+ Int64\(\-95\) \* Int64\(21\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + + 47, - + 54 + 0 / MIN ( ALL + - 45 ) + - ( 61 ), CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 46 ) + + - 23 ) / + CAST ( NULL AS INTEGER ) AS col1, + 1 + ( - 50 ) + 75 + - 95 * + 21 * 11 AS col1 query I rowsort @@ -18321,7 +18321,7 @@ SELECT ALL - 29 * - 63 + - 19 + - 37 # Datafusion - Expected - 46 # Datafusion - Expected - 7 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) \+ Int64\(14\) \+ \(\- Int64\(77\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) \+ Int64\(14\) \+ \(\- Int64\(77\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( 46 AS INTEGER ) AS col0, + 7 AS col2, COUNT ( * ) * + 20 + 14 + - + 77 + COUNT ( * ) * 20 AS col0 query I rowsort label-3478 @@ -20801,7 +20801,7 @@ SELECT - 63 - 26 + - 44 + COUNT ( * ) + + 35 * + 5 + + - COUNT ( + 27 ) * 81 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(Int64\(97\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(Int64\(97\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 16 AS col1, CAST ( 97 AS INTEGER ) AS col1 query I rowsort label-3950 @@ -21077,7 +21077,7 @@ SELECT ALL ( COALESCE ( + - 50, - + ( - 44 ), ( + + 42 ) / 18 - 90 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(1\) \* Int64\(\-24\) / Int64\(\-55\) \- \(\- CAST\(Int64\(57\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(1\) \* Int64\(\-24\) / Int64\(\-55\) \- \(\- CAST\(Int64\(57\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) col1, + 1 * - 24 / - 55 - - CAST ( 57 AS INTEGER ) AS col1 query I rowsort label-4003 @@ -22122,7 +22122,7 @@ SELECT ( - MIN ( ALL + 80 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(21\) \* CAST\(NULL AS Int32\) \* Int64\(27\) AS col1" at position 0 and "nullif\(\(\- \(\- Int64\(13\)\)\), \(\- Int64\(\-53\)\)\) \* \(\- Int64\(72\)\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(21\) \* CAST\(NULL AS Int64\) \* Int64\(27\) AS col1" at position 0 and "nullif\(\(\- \(\- Int64\(13\)\)\), \(\- Int64\(\-53\)\)\) \* \(\- Int64\(72\)\) \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 42 * + + 21 * CAST ( NULL AS INTEGER ) * 27 AS col1, + NULLIF ( - - ( 13 ), - - 53 ) * - + 72 - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-4199 @@ -22184,7 +22184,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 132608 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(74\) \* Int64\(\-64\) AS col2" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(74\) \* Int64\(\-64\) AS col2" at position 0 and "max\(CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 28 * 74 * + - 64 AS col2, MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-4211 @@ -22873,7 +22873,7 @@ SELECT + 30 AS col1, 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "CASE Int64\(52\) WHEN Int64\(60\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-86\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "CASE Int64\(52\) WHEN Int64\(60\) THEN \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-86\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 77 AS col0, CASE + 52 WHEN 60 THEN + - CAST ( NULL AS INTEGER ) * ( - 86 ) END AS col0 query I rowsort label-4343 @@ -25603,7 +25603,7 @@ SELECT ALL - COALESCE ( + - 53, - - COUNT ( * ), + - 71 * + - 55 / - 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(17\) AS col2" at position 0 and "Int64\(80\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(17\) AS col2" at position 0 and "Int64\(80\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * + 17 AS col2, 80 * + 29 AS col2 query I rowsort @@ -26138,7 +26138,7 @@ SELECT DISTINCT 57 + - - 59 - + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(96\) \+ \(\- CAST\(Int64\(62\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(96\) \+ \(\- CAST\(Int64\(62\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col0, 96 + + - CAST ( + 62 AS INTEGER ) AS col0 query II rowsort @@ -26651,7 +26651,7 @@ SELECT + 64 AS col1, 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 99 AS col2, - CAST ( NULL AS INTEGER ) + - + 34 AS col2 query II rowsort label-5066 @@ -27040,7 +27040,7 @@ SELECT DISTINCT 91 + - - MAX ( 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 AS col1, + CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -28791,7 +28791,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- avg\(Int64\(57\)\)\) \* Int64\(40\) \* \(\- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(30\) THEN NULL WHEN Int64\(\-22\) \* count\(Int64\(7\)\) THEN \(\- Int64\(\-11\)\) \* Int64\(\-89\) \+ Int64\(\-30\) \+ Int64\(82\) WHEN Int64\(71\) THEN NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- avg\(Int64\(57\)\)\) \* Int64\(40\) \* \(\- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(30\) THEN NULL WHEN Int64\(\-22\) \* count\(Int64\(7\)\) THEN \(\- Int64\(\-11\)\) \* Int64\(\-89\) \+ Int64\(\-30\) \+ Int64\(82\) WHEN Int64\(71\) THEN NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col0, CAST ( NULL AS INTEGER ) + - + AVG ( ALL + 57 ) * + 40 * - - CASE + ( - COUNT ( * ) ) WHEN + 30 THEN NULL WHEN - 22 * COUNT ( ALL 7 ) THEN - - 11 * - 89 + - 30 + 82 WHEN 71 THEN NULL END col0 query I rowsort @@ -31452,7 +31452,7 @@ SELECT ALL 62 + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CASE \(\- \(\- CAST\(NULL AS Int32\)\)\) WHEN Int64\(78\) THEN Int64\(\-20\) \+ Int64\(67\) ELSE Int64\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CASE \(\- \(\- CAST\(NULL AS Int64\)\)\) WHEN Int64\(78\) THEN Int64\(\-20\) \+ Int64\(67\) ELSE Int64\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, CASE - - CAST ( NULL AS INTEGER ) WHEN 78 THEN - 20 + + 67 ELSE + 25 * ( - + COUNT ( * ) ) END AS col0 query II rowsort @@ -31553,7 +31553,7 @@ SELECT + 59 + - ( COUNT ( * ) ) * - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -1971 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "CAST\(\(\- coalesce\(CAST\(NULL AS Int32\), \(\- Int64\(\-73\)\), Int64\(65\)\)\) AS Int32\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "CAST\(\(\- coalesce\(CAST\(NULL AS Int64\), \(\- Int64\(\-73\)\), Int64\(65\)\)\) AS Int64\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 44 AS col1, CAST ( - COALESCE ( + + CAST ( NULL AS INTEGER ), - - 73, 65 ) AS INTEGER ) * + 27 col1 query I rowsort label-5992 @@ -33380,7 +33380,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-51\) \* Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-51\) \* Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * - 51 * + 0 AS col1, + COUNT ( * ) + + + 51 AS col1 query II rowsort label-6340 @@ -34767,7 +34767,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 27 AS col0 query I rowsort @@ -39499,7 +39499,7 @@ SELECT COALESCE ( - 57, + 25 + - - COUNT ( * ) ) + + COUNT ( * ) # Datafusion - Expected - 58 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "avg\(Int64\(\-63\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "avg\(Int64\(\-63\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 58 AS col2, AVG ( ALL - 63 ) + - CAST ( NULL AS INTEGER ) AS col2, - 97 col0 # Datafusion - Types were automatically converted from: @@ -40151,7 +40151,7 @@ SELECT + 87 - NULLIF ( 66, 89 - + SUM ( - 77 ) / 71 ), 94 * + 91 + - - 87 + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - -3985 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(CAST\(Int64\(75\) AS Int32\) AS Int32\)\), Int64\(1\)\) \* Int64\(54\) \+ Int64\(65\) AS col2" at position 0 and "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(CAST\(Int64\(75\) AS Int64\) AS Int64\)\), Int64\(1\)\) \* Int64\(54\) \+ Int64\(65\) AS col2" at position 0 and "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + ( - + CAST ( + CAST ( ( 75 ) AS INTEGER ) AS INTEGER ) ), + 1 ) * 54 + + 65 AS col2, - 36 + + COUNT ( * ) AS col2 query I rowsort label-7627 @@ -40964,7 +40964,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -6232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(75\) AS Int32\)\) AS col1" at position 0 and "Int64\(92\) \* \(\- \(\- CAST\(\(\- Int64\(66\)\) AS Int32\)\)\) \- Int64\(98\) \- max\(Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(75\) AS Int64\)\) AS col1" at position 0 and "Int64\(92\) \* \(\- \(\- CAST\(\(\- Int64\(66\)\) AS Int64\)\)\) \- Int64\(98\) \- max\(Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 75 AS INTEGER ) AS col1, 92 * - - CAST ( - + 66 AS INTEGER ) - 98 - + MAX ( 62 ) AS col1 query I rowsort label-7782 @@ -44102,7 +44102,7 @@ SELECT ALL 44 * - + 52 * + 15 * + - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(87\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(87\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 AS col2, + 87 * - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-8383 @@ -44570,7 +44570,7 @@ SELECT 23 / + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(16\) \* nullif\(CASE Int64\(25\) WHEN \(\- Int64\(\-71\)\) \* \(\- Int64\(60\)\) \+ Int64\(55\) \+ coalesce\(Int64\(\-39\), CAST\(NULL AS Int32\)\) \+ Int64\(74\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(55\) \* Int64\(87\) THEN count\(Int64\(1\)\) AS count\(\*\) END, Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(16\) \* nullif\(CASE Int64\(25\) WHEN \(\- Int64\(\-71\)\) \* \(\- Int64\(60\)\) \+ Int64\(55\) \+ coalesce\(Int64\(\-39\), CAST\(NULL AS Int64\)\) \+ Int64\(74\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(55\) \* Int64\(87\) THEN count\(Int64\(1\)\) AS count\(\*\) END, Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col2, + 16 * NULLIF ( CASE 25 WHEN - - 71 * - + 60 + 55 + COALESCE ( - 39, + + CAST ( NULL AS INTEGER ) ) + 74 THEN + COUNT ( * ) WHEN 55 * 87 THEN + COUNT ( * ) END, + 47 ) AS col2 query I rowsort @@ -45290,7 +45290,7 @@ SELECT - 21 * 98 - + 64 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -744 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(21\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-91\) \+ \(\- \(\- CASE avg\(DISTINCT \(\- Int64\(\-60\)\)\) WHEN Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(67\) \* Int64\(60\) \+ \(\- CAST\(NULL AS Int32\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) \- Int64\(21\) WHEN Int64\(65\) THEN NULL END\)\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(21\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-91\) \+ \(\- \(\- CASE avg\(DISTINCT \(\- Int64\(\-60\)\)\) WHEN Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(67\) \* Int64\(60\) \+ \(\- CAST\(NULL AS Int64\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) \- Int64\(21\) WHEN Int64\(65\) THEN NULL END\)\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 38 * 21 + 54 AS col0, - 91 + - - CASE + AVG ( DISTINCT - - 60 ) WHEN 87 + COUNT ( * ) - + 67 * 60 + + - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 37 - + + 21 WHEN + 65 THEN NULL END * + 33 AS col0 query II rowsort @@ -45744,7 +45744,7 @@ SELECT DISTINCT 45 col1, + 15 + + 48 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(81\) \+ Int64\(94\) AS col2" at position 0 and "min\(Int64\(63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(81\) \+ Int64\(94\) AS col2" at position 0 and "min\(Int64\(63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( NULL AS INTEGER ) + + 81 + + 94 AS col2, + MIN ( ALL + 63 ) AS col2 query I rowsort label-8693 @@ -50853,7 +50853,7 @@ SELECT ALL 49 + - 30 + - 57 + - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ \(\- Int64\(\-34\)\) / Int64\(95\) \+ Int64\(23\) \* CAST\(NULL AS Int32\) \* Int64\(34\) \* Int64\(33\) AS col1" at position 0 and "Int64\(88\) \+ \(\- Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ \(\- Int64\(\-34\)\) / Int64\(95\) \+ Int64\(23\) \* CAST\(NULL AS Int64\) \* Int64\(34\) \* Int64\(33\) AS col1" at position 0 and "Int64\(88\) \+ \(\- Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 72 + - - 34 / + 95 + 23 * + CAST ( NULL AS INTEGER ) * 34 * 33 AS col1, + 88 + - + 73 AS col1 query I rowsort @@ -52537,7 +52537,7 @@ SELECT DISTINCT - - 24 * + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(max\(DISTINCT Int64\(0\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(28\) / Int64\(63\) \- \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(max\(DISTINCT Int64\(0\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(28\) / Int64\(63\) \- \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( MAX ( DISTINCT + 0 ) AS INTEGER ) AS col1, 28 / + 63 - - + 65 AS col1 query I rowsort label-9984 diff --git a/data/sqlite/random/expr/slt_good_19.slt b/data/sqlite/random/expr/slt_good_19.slt index 32fed39..052c252 100644 --- a/data/sqlite/random/expr/slt_good_19.slt +++ b/data/sqlite/random/expr/slt_good_19.slt @@ -2105,7 +2105,7 @@ SELECT - COUNT ( * ) AS col0, - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 15 AS col0, CAST ( NULL AS INTEGER ) * + - 72 col0 query I rowsort label-393 @@ -3465,7 +3465,7 @@ SELECT + 59 + - 21 - ( - 3 ) * - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 163 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(92\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* coalesce\(Int64\(\-24\), Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(92\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* coalesce\(Int64\(\-24\), Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 71 + 92 AS col0, - CAST ( NULL AS INTEGER ) * + + COALESCE ( - 24, - 47 ) AS col0 query I rowsort label-651 @@ -5302,7 +5302,7 @@ SELECT ALL 47 - 4 AS col2 # Datafusion - Expected - 77 # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-64\) AS Int32\) AS col1" at position 1 and "Int64\(\-92\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-64\) AS Int64\) AS col1" at position 1 and "Int64\(\-92\) \* CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77, + CAST ( - 64 AS INTEGER ) AS col1, - 92 * + CAST ( NULL AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -7731,7 +7731,7 @@ SELECT ALL - - 83 / + 42 + - MAX ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "nullif\(nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(\-79\) \* Int64\(99\) \+ Int64\(73\) \* nullif\(Int64\(30\), Int64\(31\)\)\), Int64\(\-97\)\) / Int64\(76\) \- Int64\(\-42\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "nullif\(nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(\-79\) \* Int64\(99\) \+ Int64\(73\) \* nullif\(Int64\(30\), Int64\(31\)\)\), Int64\(\-97\)\) / Int64\(76\) \- Int64\(\-42\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0, + NULLIF ( NULLIF ( - CAST ( NULL AS FLOAT8 ), - 79 * + 99 + 73 * + NULLIF ( 30, + 31 ) ), - 97 ) / 76 - - 42 * + 85 AS col0 query I rowsort label-1467 @@ -8438,7 +8438,7 @@ SELECT + 82 - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 88 * + CAST ( NULL AS INTEGER ) AS col1, 21 AS col1 query I rowsort @@ -9839,7 +9839,7 @@ SELECT ALL 73 * + - ( + + 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(40\), Int64\(36\) \- Int64\(41\), Int64\(81\) \* \(\- min\(\(\- Int64\(83\)\)\)\) \* CAST\(NULL AS Int32\) \+ nullif\(Int64\(\-68\), \(\- count\(\(\- coalesce\(\(\- Int64\(\-74\)\), Int64\(62\)\)\)\)\)\)\) \+ Int64\(\-77\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(40\), Int64\(36\) \- Int64\(41\), Int64\(81\) \* \(\- min\(\(\- Int64\(83\)\)\)\) \* CAST\(NULL AS Int64\) \+ nullif\(Int64\(\-68\), \(\- count\(\(\- coalesce\(\(\- Int64\(\-74\)\), Int64\(62\)\)\)\)\)\)\) \+ Int64\(\-77\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + + 40, + 36 - 41, 81 * - MIN ( - + 83 ) * + CAST ( NULL AS INTEGER ) + + + NULLIF ( - 68, - COUNT ( ALL - + COALESCE ( - - 74, 62 ) ) ) ) + - 77 col2, 52 col2 query I rowsort label-1868 @@ -10331,7 +10331,7 @@ SELECT DISTINCT - COALESCE ( - 80, 40 * NULLIF ( - - 40, 13 - + SUM ( + - 40 ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \- \(\- Int64\(\-46\)\) \+ CAST\(\(\- coalesce\(\(\- Int64\(8\)\), Int64\(23\), Int64\(79\)\)\) AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-11\) \+ Int64\(\-54\) \+ Int64\(\-35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CASE \(\- Int64\(80\)\) WHEN Int64\(\-71\) \- Int64\(91\) \+ \(\- Int64\(98\)\) \+ Int64\(76\) \* Int64\(39\) THEN Int64\(\-2\) \- Int64\(65\) \* Int64\(74\) WHEN max\(Int64\(64\)\) THEN NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \- \(\- Int64\(\-46\)\) \+ CAST\(\(\- coalesce\(\(\- Int64\(8\)\), Int64\(23\), Int64\(79\)\)\) AS Int64\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-11\) \+ Int64\(\-54\) \+ Int64\(\-35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CASE \(\- Int64\(80\)\) WHEN Int64\(\-71\) \- Int64\(91\) \+ \(\- Int64\(98\)\) \+ Int64\(76\) \* Int64\(39\) THEN Int64\(\-2\) \- Int64\(65\) \* Int64\(74\) WHEN max\(Int64\(64\)\) THEN NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 34 - - - 46 + ( CAST ( - COALESCE ( - + 8, 23, 79 ) AS INTEGER ) ) - + - COUNT ( * ) * - 11 + + - 54 + - 35 + COUNT ( * ) AS col2, + NULLIF ( - COUNT ( * ), + CASE - + 80 WHEN - 71 - 91 + - + 98 + + 76 * 39 THEN - 2 - + 65 * + 74 WHEN MAX ( ALL 64 ) THEN NULL END ) col2 # Datafusion - Datafusion expected results: @@ -10475,7 +10475,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Float64\) AS col0" at position 0 and "Int64\(20\) / Int64\(21\) \* Int64\(99\) \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Float64\) AS col0" at position 0 and "Int64\(20\) / Int64\(21\) \* Int64\(99\) \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) col0, + 20 / + 21 * + 99 * + 40 AS col0 query I rowsort label-1990 @@ -15326,7 +15326,7 @@ SELECT ALL + 38 - - 4 + - + 44 * SUM ( ( + 0 ) ) - + + 87 + + + 76 AS col1, 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5082 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \* Int64\(\-66\) \* \(\- \(\- count\(Int64\(23\)\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int64\) \* Int64\(\-66\) \* \(\- \(\- count\(Int64\(23\)\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 77 AS INTEGER ) * - 66 * - - COUNT ( 23 ) AS col1, - COUNT ( * ) col1 # Datafusion - Datafusion expected results: @@ -16716,7 +16716,7 @@ SELECT + 69, 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6047 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* Int64\(84\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(83\) WHEN \(\- CAST\(Int64\(30\) AS Int32\)\) \* Int64\(5\) THEN Int64\(71\) \+ Int64\(53\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* Int64\(84\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(83\) WHEN \(\- CAST\(Int64\(30\) AS Int64\)\) \* Int64\(5\) THEN Int64\(71\) \+ Int64\(53\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 72 * + 84 + COUNT ( * ) AS col2, + CASE + 83 WHEN - CAST ( + 30 AS INTEGER ) * + ( 5 ) THEN ( + 71 ) + + 53 END AS col2 query II rowsort @@ -19554,7 +19554,7 @@ SELECT 64 * + 74 * + - NULLIF ( - - 82, + - 32 / - - ( + + 69 ) * + 19 * - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-51\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-51\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + AVG ( CAST ( NULL AS INTEGER ) ) ) * - - 51 AS col1, 99 AS col1 query I rowsort label-3712 @@ -24509,7 +24509,7 @@ SELECT 39 * + ( - + COUNT ( DISTINCT - 19 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(97\) \* CAST\(NULL AS Int32\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(97\) \* CAST\(NULL AS Int64\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 18 AS col1, 97 * + CAST ( NULL AS INTEGER ) * 28 AS col1 query I rowsort label-4656 @@ -27991,7 +27991,7 @@ SELECT ALL + - ( - + 42 ) * + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ) AS col1, + 34 col1 # Datafusion - Types were automatically converted from: @@ -28304,7 +28304,7 @@ SELECT - COALESCE ( 91, - ( + COUNT ( * ) ), NULLIF ( - 93, - + 39 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 30 AS col1 query I rowsort @@ -30051,7 +30051,7 @@ SELECT ALL + 49 * - - 45 * - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 3 AS col2 query I rowsort label-5710 @@ -34763,7 +34763,7 @@ SELECT ALL 41 - 97 / - 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10716 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(2\) \* Int64\(94\) \* Int64\(\-57\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(71\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(2\) \* Int64\(94\) \* Int64\(\-57\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- CAST\(NULL AS Int64\)\) \* Int64\(71\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * + 2 * + 94 * - 57 AS col0, + CASE - 98 WHEN + COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) * 71 ELSE NULL END AS col0 query I rowsort label-6610 @@ -35556,7 +35556,7 @@ NULL # Datafusion - Expected - 2368 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 and "Int64\(97\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 and "Int64\(97\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 43 * + + 54 + + COUNT ( * ) * + 46, - CAST ( NULL AS INTEGER ) AS col0, + 97 AS col0 query I rowsort label-6760 @@ -36999,7 +36999,7 @@ SELECT ALL ( 87 ) - - SUM ( 71 ) * + 11 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-57\) AS Int32\) \- \(\- Int64\(77\)\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-57\) AS Int64\) \- \(\- Int64\(77\)\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 57 AS INTEGER ) - - + 77 AS col1, - 95 col1 query I rowsort @@ -40707,7 +40707,7 @@ SELECT ALL ( - 87 ) - + 22 + 33 - + 97 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(\-42\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-34\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(\-42\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-34\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 84 AS col0, ( + - 42 ) * - CAST ( NULL AS INTEGER ) * - 34 + 79 AS col0 query I rowsort @@ -42599,7 +42599,7 @@ SELECT DISTINCT - 25 / + ( + CAST ( 21 AS INTEGER ) ) + - 56 + + 46 + + NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 1026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(45\)\) AS Int32\) / max\(Int64\(82\)\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(27\) \* Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(45\)\) AS Int64\) / max\(Int64\(82\)\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(27\) \* Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - + 45 AS INTEGER ) / MAX ( 82 ) + 64 AS col0, 27 * + 38 AS col0 query II rowsort label-8113 @@ -43421,7 +43421,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-46\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(\-46\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 * - - CAST ( NULL AS INTEGER ) AS col0, - 46 * 51 AS col0 query I rowsort label-8268 @@ -43603,7 +43603,7 @@ SELECT DISTINCT - 45 * - - 87 * 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(94\) WHEN Int64\(\-23\) \* Int64\(41\) \* \(\- Int64\(\-97\)\) THEN \(\- Int64\(46\)\) WHEN CAST\(Int64\(\-52\) AS Int32\) THEN Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(25\) WHEN Int64\(\-15\) THEN NULL END \+ Int64\(\-30\) / \(\- Int64\(32\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(94\) WHEN Int64\(\-23\) \* Int64\(41\) \* \(\- Int64\(\-97\)\) THEN \(\- Int64\(46\)\) WHEN CAST\(Int64\(\-52\) AS Int64\) THEN Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(25\) WHEN Int64\(\-15\) THEN NULL END \+ Int64\(\-30\) / \(\- Int64\(32\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE 94 WHEN - 23 * 41 * - - 97 THEN - + ( + 46 ) WHEN + + CAST ( - 52 AS INTEGER ) THEN + 66 * - + COUNT ( * ) * + 25 WHEN - 15 THEN NULL END + + - 30 / - + 32 AS col1, 85 col1 query I rowsort label-8302 @@ -43620,7 +43620,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(74\) AS col1" at position 0 and "max\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(74\) AS col1" at position 0 and "max\(\(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 3 / + 74 AS col1, + MAX ( + - CAST ( NULL AS INTEGER ) ) col1 query I rowsort @@ -48977,7 +48977,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-66\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) \+ Int64\(\-90\)\)\) \+ Int64\(2\) \+ Int64\(\-86\) AS col1" at position 0 and "nullif\(\(\- \(\- max\(Int64\(97\)\)\)\), CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(22\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(41\)\) ELSE CAST\(NULL AS Int32\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-66\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) \+ Int64\(\-90\)\)\) \+ Int64\(2\) \+ Int64\(\-86\) AS col1" at position 0 and "nullif\(\(\- \(\- max\(Int64\(97\)\)\)\), CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(22\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(41\)\) ELSE CAST\(NULL AS Int64\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + ( + - 66 ), COUNT ( * ) - ( + 21 ) + - 90 ) + 2 + - 86 AS col1, + NULLIF ( - - MAX ( ALL 97 ), CASE - COUNT ( * ) WHEN - + ( 22 ) THEN + COUNT ( * ) * - + 41 ELSE + ( + CAST ( NULL AS INTEGER ) ) END ) AS col1 query I rowsort @@ -51192,7 +51192,7 @@ SELECT ALL 49 * + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(23\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(93\) \+ Int64\(24\)\) \+ Int64\(94\) \+ \(\- min\(Int64\(7\)\)\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(23\) \+ nullif\(CAST\(NULL AS Int64\), Int64\(93\) \+ Int64\(24\)\) \+ Int64\(94\) \+ \(\- min\(Int64\(7\)\)\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 AS col0, + 23 + + NULLIF ( CAST ( NULL AS INTEGER ), 93 + 24 ) + 94 + - MIN ( ALL + 7 ) + - 49 AS col0 query I rowsort label-9742 @@ -51736,7 +51736,7 @@ SELECT + 48 + 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(44\) \+ Int64\(79\) AS col1" at position 0 and "CAST\(Int64\(58\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(44\) \+ Int64\(79\) AS col1" at position 0 and "CAST\(Int64\(58\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 + + 44 + + 79 AS col1, CAST ( + 58 AS INTEGER ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_2.slt b/data/sqlite/random/expr/slt_good_2.slt index c3062ad..92159f5 100644 --- a/data/sqlite/random/expr/slt_good_2.slt +++ b/data/sqlite/random/expr/slt_good_2.slt @@ -369,7 +369,7 @@ SELECT 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -558 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- CAST\(Int64\(31\) AS Int32\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- CAST\(Int64\(31\) AS Int64\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 18 * + - CAST ( 31 AS INTEGER ) AS col0, 67 AS col0 query I rowsort label-65 @@ -1629,7 +1629,7 @@ SELECT ALL - 44 AS col0 # Datafusion - Expected - 97 # Datafusion - Expected - 24 # Datafusion - Expected - -7341 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- CAST\(Int64\(94\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(53\)\) \+ Int64\(89\) \* Int64\(\-81\) \+ Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- CAST\(Int64\(94\) AS Int64\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(53\)\) \+ Int64\(89\) \* Int64\(\-81\) \+ Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 + - CAST ( + 94 AS INTEGER ) * - COUNT ( * ) AS col0, 24, - ( + 53 ) + + 89 * - 81 + - 79 AS col0 query I rowsort label-308 @@ -3477,7 +3477,7 @@ SELECT ALL + COUNT ( * ) * 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -7791 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col2" at position 0 and "CAST\(Int64\(61\) AS Int32\) \* Int64\(\-91\) \+ Int64\(35\) \* Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col2" at position 0 and "CAST\(Int64\(61\) AS Int64\) \* Int64\(\-91\) \+ Int64\(35\) \* Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 93 AS col2, CAST ( + 61 AS INTEGER ) * + - 91 + 35 * - 64 AS col2 query I rowsort @@ -4123,7 +4123,7 @@ SELECT COUNT ( ALL - 4 ) * - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(\(\- coalesce\(Int64\(70\), Int64\(\-69\), Int64\(97\)\)\)\)\) WHEN Int64\(4\) \- \(\- Int64\(24\)\) THEN NULL WHEN count\(Int64\(70\)\) \+ Int64\(\-58\) THEN \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(47\)\) END AS col1" at position 0 and "Int64\(94\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(\(\- coalesce\(Int64\(70\), Int64\(\-69\), Int64\(97\)\)\)\)\) WHEN Int64\(4\) \- \(\- Int64\(24\)\) THEN NULL WHEN count\(Int64\(70\)\) \+ Int64\(\-58\) THEN \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(47\)\) END AS col1" at position 0 and "Int64\(94\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE - COUNT ( - COALESCE ( 70, - 69, 97 ) ) WHEN 4 - - ( 24 ) THEN NULL WHEN COUNT ( ALL + 70 ) + + - 58 THEN - + CAST ( NULL AS INTEGER ) * - + 47 END AS col1, 94 + - 90 col1 query I rowsort label-790 @@ -4189,7 +4189,7 @@ SELECT ALL - 78 * - 59 * + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-87\)\) \* Int64\(68\) / Int64\(25\) \+ nullif\(Int64\(91\), Int64\(\-2\)\) \* CASE \(\- min\(Int64\(63\)\)\) WHEN Int64\(\-45\) \* Int64\(79\) \- Int64\(\-78\) THEN Int64\(\-30\) WHEN Int64\(89\) \- \(\- Int64\(\-35\)\) THEN CAST\(NULL AS Int32\) ELSE NULL END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-87\)\) \* Int64\(68\) / Int64\(25\) \+ nullif\(Int64\(91\), Int64\(\-2\)\) \* CASE \(\- min\(Int64\(63\)\)\) WHEN Int64\(\-45\) \* Int64\(79\) \- Int64\(\-78\) THEN Int64\(\-30\) WHEN Int64\(89\) \- \(\- Int64\(\-35\)\) THEN CAST\(NULL AS Int64\) ELSE NULL END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - - 87 * + 68 / 25 + NULLIF ( 91, - 2 ) * CASE + - MIN ( + 63 ) WHEN - 45 * + 79 - - 78 THEN - 30 WHEN 89 - - - 35 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END col0, - 3 AS col0 query I rowsort @@ -5764,7 +5764,7 @@ SELECT + - 30 * + ( + 19 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN Int64\(75\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-66\) / Int64\(58\) THEN Int64\(\-86\) \+ Int64\(\-38\) / Int64\(\-71\) WHEN \(\- Int64\(\-53\)\) THEN Int64\(14\) ELSE NULL END AS col0" at position 0 and "Int64\(73\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN Int64\(75\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-66\) / Int64\(58\) THEN Int64\(\-86\) \+ Int64\(\-38\) / Int64\(\-71\) WHEN \(\- Int64\(\-53\)\) THEN Int64\(14\) ELSE NULL END AS col0" at position 0 and "Int64\(73\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + 32 WHEN + 75 * - CAST ( NULL AS INTEGER ) + - 66 / + 58 THEN - 86 + - 38 / - 71 WHEN - - 53 THEN + 14 ELSE NULL END AS col0, 73 / - - COUNT ( * ) AS col0 query I rowsort label-1106 @@ -7154,7 +7154,7 @@ SELECT 73 - - CASE - + 99 WHEN - 74 * - NULLIF ( CASE + - 42 WHEN - + 62 + + + N # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "CAST\(Int64\(23\) AS Int32\) \+ Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "CAST\(Int64\(23\) AS Int64\) \+ Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 9 AS col0, + CAST ( 23 AS INTEGER ) + + 69 + + COUNT ( * ) + - 80 AS col0 query I rowsort label-1376 @@ -8762,7 +8762,7 @@ SELECT 92 - - + ( - - ( - + 19 ) ) * ( 89 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1581 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(51\) \* Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(51\) \* Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, ( 51 ) * + 31 AS col2 query I rowsort label-1686 @@ -15224,7 +15224,7 @@ SELECT ALL ( COALESCE ( + 53, + - 99 + + 60 * - + 16 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(41\) \+ Int64\(43\) \+ Int64\(52\) \+ min\(Int64\(62\)\) \+ count\(Int64\(\-40\)\) \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(41\) \+ Int64\(43\) \+ Int64\(52\) \+ min\(Int64\(62\)\) \+ count\(Int64\(\-40\)\) \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 * - CAST ( NULL AS INTEGER ) AS col1, 41 + 43 + + + ( 52 ) + + MIN ( ALL + 62 ) + + COUNT ( ( - 40 ) ) * 75 AS col1 query I rowsort label-2941 @@ -23205,7 +23205,7 @@ SELECT ALL 33 + + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "CAST\(Int64\(99\) AS Int32\) \* Int64\(0\) \+ Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "CAST\(Int64\(99\) AS Int64\) \* Int64\(0\) \+ Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 AS col1, CAST ( + 99 AS INTEGER ) * 0 + + 47 AS col1 query I rowsort @@ -32872,7 +32872,7 @@ SELECT ALL + + 98 / + 70 + + - 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-35\)\) \* Int64\(12\) \- Int64\(34\) \- \(\- Int64\(27\)\) \+ \(\- Int64\(\-36\)\) \- Int64\(46\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(\-35\)\) \* Int64\(12\) \- Int64\(34\) \- \(\- Int64\(27\)\) \+ \(\- Int64\(\-36\)\) \- Int64\(46\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 * - CAST ( NULL AS INTEGER ) + - - 35 * 12 - 34 - - ( 27 ) + - - 36 - 46 / + ( + + COUNT ( * ) ) col1, - 12 AS col1 query I rowsort label-6339 @@ -32994,7 +32994,7 @@ SELECT ALL 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- Int64\(\-63\)\) \+ Int64\(66\) \* \(\- \(\- sum\(Int64\(\-66\)\)\)\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CASE CAST\(\(\- Int64\(99\)\) AS Int32\) WHEN Int64\(19\) THEN NULL ELSE Int64\(4\) END THEN Int64\(58\) \* Int64\(13\) \- min\(DISTINCT CAST\(Int64\(90\) AS Int32\)\) END\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- Int64\(\-63\)\) \+ Int64\(66\) \* \(\- \(\- sum\(Int64\(\-66\)\)\)\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CASE CAST\(\(\- Int64\(99\)\) AS Int64\) WHEN Int64\(19\) THEN NULL ELSE Int64\(4\) END THEN Int64\(58\) \* Int64\(13\) \- min\(DISTINCT CAST\(Int64\(90\) AS Int64\)\) END\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 + - - 63 + 66 * - - SUM ( ALL - 66 ) * - + CASE COUNT ( * ) WHEN + + CASE CAST ( - + 99 AS INTEGER ) WHEN 19 THEN NULL ELSE + + 4 END THEN 58 * + 13 - ( + + MIN ( DISTINCT CAST ( + 90 AS INTEGER ) ) ) END AS col1, ( 19 ) AS col1 query I rowsort @@ -36440,7 +36440,7 @@ SELECT + 1 * + SUM ( + NULLIF ( - 28, 97 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(32\) \+ Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(32\) \+ Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 92 ) col0, + CAST ( NULL AS INTEGER ) + + 32 + 40 AS col0 query I rowsort @@ -37316,7 +37316,7 @@ SELECT ALL + COUNT ( * ) * - 49 / 98 + - + ( + 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1556 # Datafusion - Expected - 2126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) \+ \(\- \(\- coalesce\(Int64\(\-38\), Int64\(44\), Int64\(79\) \* CAST\(NULL AS Int32\) \* Int64\(38\) \* Int64\(29\)\)\)\) \+ Int64\(99\) \* Int64\(\-15\) AS col2" at position 0 and "Int64\(69\) \* \(\- \(\- nullif\(Int64\(32\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \- Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) \+ \(\- \(\- coalesce\(Int64\(\-38\), Int64\(44\), Int64\(79\) \* CAST\(NULL AS Int64\) \* Int64\(38\) \* Int64\(29\)\)\)\) \+ Int64\(99\) \* Int64\(\-15\) AS col2" at position 0 and "Int64\(69\) \* \(\- \(\- nullif\(Int64\(32\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \- Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + 33 ) + - - COALESCE ( - 38, 44, + 79 * CAST ( NULL AS INTEGER ) * 38 * + 29 ) + + 99 * - 15 col2, 69 * - - NULLIF ( + + 32, + - COUNT ( * ) ) - + 82 AS col2 query II rowsort label-7199 @@ -38460,7 +38460,7 @@ SELECT - - 3 * 97 - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1647 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-27\) \* CAST\(Int64\(61\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-27\) \* CAST\(Int64\(61\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, - 27 * + CAST ( 61 AS INTEGER ) AS col1 query I rowsort label-7419 @@ -39530,7 +39530,7 @@ SELECT 41 * 57 + - + 41 + - - 62 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, 12 AS col1, 80 + COALESCE ( - + MAX ( 2 ), + 50 ) query I rowsort @@ -45280,7 +45280,7 @@ SELECT + COUNT ( * ) - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(27\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "CAST\(NULL AS Int64\) / Int64\(27\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 25 AS col0, CAST ( NULL AS INTEGER ) / + 27 * 60 AS col0 query I rowsort label-8738 @@ -49523,7 +49523,7 @@ SELECT DISTINCT 95 * 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(2\) \- Int64\(42\) AS col2" at position 0 and "\(\- CASE Int64\(15\) WHEN \(\- CASE \(\- Int64\(\-38\)\) WHEN Int64\(42\) THEN NULL WHEN Int64\(65\) THEN Int64\(\-94\) ELSE CAST\(NULL AS Int32\) END\) \+ \(\- CAST\(Int64\(\-51\) AS Int32\)\) THEN NULL ELSE Int64\(94\) \+ Int64\(17\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(2\) \- Int64\(42\) AS col2" at position 0 and "\(\- CASE Int64\(15\) WHEN \(\- CASE \(\- Int64\(\-38\)\) WHEN Int64\(42\) THEN NULL WHEN Int64\(65\) THEN Int64\(\-94\) ELSE CAST\(NULL AS Int64\) END\) \+ \(\- CAST\(Int64\(\-51\) AS Int64\)\) THEN NULL ELSE Int64\(94\) \+ Int64\(17\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * 2 - 42 AS col2, - CASE + 15 WHEN - ( CASE - - 38 WHEN + + 42 THEN NULL WHEN 65 THEN - 94 ELSE + + CAST ( NULL AS INTEGER ) END ) + - CAST ( - 51 AS INTEGER ) THEN NULL ELSE + 94 + + + 17 END AS col2 query I rowsort label-9550 @@ -49857,7 +49857,7 @@ SELECT + 75 * + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ Int64\(68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ Int64\(68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81 + + 68 AS col2, COUNT ( * ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 query I rowsort @@ -49941,7 +49941,7 @@ SELECT - - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- coalesce\(CAST\(coalesce\(Int64\(93\), Int64\(\-55\), Int64\(27\)\) AS Int32\), \(\- Int64\(73\)\), Int64\(\-14\) \+ Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- coalesce\(CAST\(coalesce\(Int64\(93\), Int64\(\-55\), Int64\(27\)\) AS Int64\), \(\- Int64\(73\)\), Int64\(\-14\) \+ Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 37 * - + COUNT ( * ) AS col1, - ( + COALESCE ( ( CAST ( + + COALESCE ( 93, - 55, 27 ) AS INTEGER ) ), - + 73, + - 14 + 5 ) ) AS col1 query II rowsort label-9629 diff --git a/data/sqlite/random/expr/slt_good_20.slt b/data/sqlite/random/expr/slt_good_20.slt index d7e4c67..9306740 100644 --- a/data/sqlite/random/expr/slt_good_20.slt +++ b/data/sqlite/random/expr/slt_good_20.slt @@ -602,7 +602,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ CASE Int64\(73\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \* \(\- Int64\(\-37\)\) THEN NULL WHEN Int64\(62\) THEN NULL ELSE Int64\(\-82\) END \+ Int64\(20\) AS col1" at position 0 and "Int64\(53\) \+ max\(DISTINCT Int64\(\-95\)\) \+ coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(12\) \+ Int64\(46\) \+ \(\- Int64\(\-87\)\)\) \* CAST\(NULL AS Int32\) \* Int64\(\-98\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ CASE Int64\(73\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \* \(\- Int64\(\-37\)\) THEN NULL WHEN Int64\(62\) THEN NULL ELSE Int64\(\-82\) END \+ Int64\(20\) AS col1" at position 0 and "Int64\(53\) \+ max\(DISTINCT Int64\(\-95\)\) \+ coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(12\) \+ Int64\(46\) \+ \(\- Int64\(\-87\)\)\) \* CAST\(NULL AS Int64\) \* Int64\(\-98\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 81 + CASE 73 WHEN - COUNT ( * ) + - 15 + + - COUNT ( * ) * 18 * - - 37 THEN NULL WHEN + 62 THEN NULL ELSE - 82 END + + + 20 AS col1, 53 + + MAX ( DISTINCT - 95 ) + + + COALESCE ( + - ( + CAST ( NULL AS INTEGER ) ), 12 + 46 + - - 87 ) * + CAST ( NULL AS INTEGER ) * - 98 * - 21 AS col1 query I rowsort label-107 @@ -618,7 +618,7 @@ SELECT + 39 * + + NULLIF ( + - 29, + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(\-88\) \+ \(\- avg\(CAST\(NULL AS Float64\)\)\) \* Int64\(\-89\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(\-88\) \+ \(\- avg\(CAST\(NULL AS Float64\)\)\) \* Int64\(\-89\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 49 * - 88 + + - AVG ( + CAST ( NULL AS FLOAT8 ) ) * + - 89 + + CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) + + + COUNT ( * ) AS col0 query I rowsort label-110 @@ -2073,7 +2073,7 @@ SELECT ( - + 4 ) * - 80 * - - COUNT ( * ) * ( - + 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 384 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(8\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(99\) \* Int64\(1\) \+ \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-58\) THEN NULL WHEN Int64\(\-53\) THEN NULL ELSE Int64\(71\) \* Int64\(\-11\) \- Int64\(12\) \* Int64\(\-81\) / Int64\(29\) \+ Int64\(\-27\) \+ Int64\(89\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(86\) \+ count\(\(\- Int64\(35\)\)\) END\) \+ CASE \(\- sum\(Int64\(45\)\)\) WHEN \(\- \(\- CASE Int64\(70\) WHEN Int64\(22\) \+ sum\(DISTINCT Int64\(\-72\)\) \+ Int64\(39\) THEN Int64\(12\) \+ Int64\(45\) ELSE NULL END\)\) THEN nullif\(Int64\(25\), sum\(Int64\(\-85\)\) \* Int64\(\-45\)\) \* Int64\(90\) WHEN Int64\(\-52\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(8\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(99\) \* Int64\(1\) \+ \(\- CASE CAST\(NULL AS Int64\) WHEN Int64\(\-58\) THEN NULL WHEN Int64\(\-53\) THEN NULL ELSE Int64\(71\) \* Int64\(\-11\) \- Int64\(12\) \* Int64\(\-81\) / Int64\(29\) \+ Int64\(\-27\) \+ Int64\(89\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \+ Int64\(86\) \+ count\(\(\- Int64\(35\)\)\) END\) \+ CASE \(\- sum\(Int64\(45\)\)\) WHEN \(\- \(\- CASE Int64\(70\) WHEN Int64\(22\) \+ sum\(DISTINCT Int64\(\-72\)\) \+ Int64\(39\) THEN Int64\(12\) \+ Int64\(45\) ELSE NULL END\)\) THEN nullif\(Int64\(25\), sum\(Int64\(\-85\)\) \* Int64\(\-45\)\) \* Int64\(90\) WHEN Int64\(\-52\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 48 * + 8 AS col1, + 95 + + + 99 * + 1 + - CASE + CAST ( NULL AS INTEGER ) WHEN - 58 THEN NULL WHEN + - 53 THEN NULL ELSE 71 * - 11 - 12 * - 81 / + 29 + - 27 + 89 + - + CAST ( - COUNT ( * ) AS INTEGER ) + + + 86 + COUNT ( - + 35 ) END + + CASE - + ( + SUM ( 45 ) ) WHEN - - CASE + 70 WHEN + 22 + SUM ( DISTINCT + - 72 ) + 39 THEN + ( 12 ) + 45 ELSE NULL END THEN NULLIF ( 25, + SUM ( ALL - 85 ) * - 45 ) * 90 WHEN - 52 THEN NULL ELSE NULL END AS col1 query I rowsort @@ -4268,7 +4268,7 @@ SELECT - 70 * 75 - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1443 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(64\)\)\) \* CAST\(Int64\(21\) AS Int32\) \+ Int64\(\-99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(64\)\)\) \* CAST\(Int64\(21\) AS Int64\) \+ Int64\(\-99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( DISTINCT - ( + 64 ) ) * CAST ( 21 AS INTEGER ) + - 99 AS col2, COUNT ( * ) AS col2 query I rowsort label-801 @@ -7985,7 +7985,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(6\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(6\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0, 6 * 18 AS col0 query I rowsort label-1513 @@ -11018,7 +11018,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 - - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 23 AS col1 query I rowsort label-2095 @@ -14882,7 +14882,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(\-16\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(\-16\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 * + ( COUNT ( * ) ) col2, CAST ( + - 16 AS INTEGER ) AS col2 query II rowsort label-2834 @@ -18056,7 +18056,7 @@ SELECT + + ( - ( + 82 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-3436 @@ -18877,7 +18877,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-30\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-30\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 32 AS col1, CAST ( NULL AS INTEGER ) * - 30 * + 13 col1 query I rowsort label-3590 @@ -19763,7 +19763,7 @@ SELECT DISTINCT + COUNT ( * ) AS col2, + 76 / + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / nullif\(\(\- Int64\(\-79\)\), count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-37\) \+ \(\- Int64\(48\)\) \* Int64\(74\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / nullif\(\(\- Int64\(\-79\)\), count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- sum\(CAST\(NULL AS Int64\)\)\)\) \* Int64\(\-37\) \+ \(\- Int64\(48\)\) \* Int64\(74\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 41 / + + NULLIF ( - - 79, COUNT ( * ) / - - SUM ( CAST ( NULL AS INTEGER ) ) * - 37 + - + 48 * 74 ) AS col2, + ( 10 ) AS col2 query I rowsort label-3753 @@ -23828,7 +23828,7 @@ SELECT ALL 71 + - + 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(6\) AS col2" at position 0 and "\(\- CASE \(\- Int64\(43\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(50\) / \(\- Int64\(\-54\)\) \- \(\- CAST\(NULL AS Int32\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(6\) AS col2" at position 0 and "\(\- CASE \(\- Int64\(43\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(50\) / \(\- Int64\(\-54\)\) \- \(\- CAST\(NULL AS Int64\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 2 + 6 AS col2, - CASE - + 43 WHEN COUNT ( * ) THEN + 50 / - - 54 - + ( + - CAST ( NULL AS INTEGER ) ) END AS col2 query II rowsort label-4531 @@ -24665,7 +24665,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- CAST\(Int64\(\-67\) AS Int32\)\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(17\)\) AS col2" at position 0 and "coalesce\(min\(Int64\(16\)\), Int64\(\-28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- CAST\(Int64\(\-67\) AS Int64\)\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(17\)\) AS col2" at position 0 and "coalesce\(min\(Int64\(16\)\), Int64\(\-28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( - CAST ( - 67 AS INTEGER ), COUNT ( * ) / 17 ) AS col2, COALESCE ( + MIN ( 16 ), + - 28 ) col2 query II rowsort @@ -24846,7 +24846,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13169813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \- min\(Int64\(\-47\)\) \* Int64\(25\) \* Int64\(77\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(59\) \+ Int64\(24\) \- \(\- \(\- max\(DISTINCT \(\- Int64\(\-85\)\)\)\)\) \* Int64\(\-51\) \* Int64\(98\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \- min\(Int64\(\-47\)\) \* Int64\(25\) \* Int64\(77\) / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(59\) \+ Int64\(24\) \- \(\- \(\- max\(DISTINCT \(\- Int64\(\-85\)\)\)\)\) \* Int64\(\-51\) \* Int64\(98\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 - MIN ( ALL + - 47 ) * + 25 * + 77 / - CAST ( NULL AS INTEGER ) AS col0, + 59 + + 24 - - - MAX ( DISTINCT - - 85 ) * - 51 * 98 * 31 AS col0 query II rowsort label-4725 @@ -26029,7 +26029,7 @@ SELECT - 53 + - + 37 * + - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 26 AS col0 query I rowsort label-4952 @@ -28233,7 +28233,7 @@ SELECT 60 + 40 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(25\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(25\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 AS col0, 25 * CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: @@ -32029,7 +32029,7 @@ SELECT - 9 * 42 * - + 56 * - 35 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(\-51\) \- Int64\(29\) \+ Int64\(59\) \+ \(\- Int64\(94\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(\-51\) \- Int64\(29\) \+ Int64\(59\) \+ \(\- Int64\(94\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 + - 51 - 29 + 59 + - + 94 col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-6101 @@ -32321,7 +32321,7 @@ SELECT - 92 * ( - + 37 ) * 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 4536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\) AS col2" at position 0 and "Int64\(84\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int64\) AS col2" at position 0 and "Int64\(84\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + 84 AS INTEGER ) AS col2, + 84 * 54 AS col2 query I rowsort label-6156 @@ -32754,7 +32754,7 @@ SELECT ALL - 72 * - + COUNT ( - 17 ) * 14 + 35 + + 62 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CASE WHEN sum\(\(\- Int64\(\-4\)\)\) <= Int64\(46\) THEN Int64\(\-6\) \+ Int64\(72\) WHEN count\(Int64\(1\)\) AS count\(\*\) > NULL AND Int64\(19\) \+ CAST\(Int64\(92\) AS Int32\) NOT IN \(\[Int64\(67\)\]\) THEN NULL END \+ CASE avg\(CAST\(NULL AS Float64\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-61\) \* Int64\(43\) ELSE NULL END / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CASE WHEN sum\(\(\- Int64\(\-4\)\)\) <= Int64\(46\) THEN Int64\(\-6\) \+ Int64\(72\) WHEN count\(Int64\(1\)\) AS count\(\*\) > NULL AND Int64\(19\) \+ CAST\(Int64\(92\) AS Int64\) NOT IN \(\[Int64\(67\)\]\) THEN NULL END \+ CASE avg\(CAST\(NULL AS Float64\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-61\) \* Int64\(43\) ELSE NULL END / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 67 / + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / CASE WHEN SUM ( ALL - - 4 ) <= ( + 46 ) THEN ( - 6 ) + 72 WHEN COUNT ( * ) > NULL AND ( + 19 ) + + CAST ( 92 AS INTEGER ) NOT IN ( 67 ) THEN NULL END + + CASE + AVG ( CAST ( NULL AS FLOAT8 ) ) WHEN COUNT ( * ) THEN - 61 * + 43 ELSE NULL END / COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: @@ -33147,7 +33147,7 @@ SELECT ALL - COUNT ( * ) - + 97 * + 21 * - 41 # Datafusion - Expected - NULL # Datafusion - Expected - 1513 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- Int64\(\-32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- Int64\(\-32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 91 + - CAST ( NULL AS INTEGER ) col0, - 62 + + 35 * + 45, - - 32 AS col0 query I rowsort label-6312 @@ -33790,7 +33790,7 @@ SELECT 98 * 58 + + 62 * - - 27 + + + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 AS col1, + CAST ( NULL AS INTEGER ) + 49 AS col1 query I rowsort label-6435 @@ -34916,7 +34916,7 @@ SELECT ALL + 49 / - - 23 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(74\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(74\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) / + ( + 74 ) AS col1, 15 AS col1 query I rowsort @@ -36593,7 +36593,7 @@ SELECT + 22 AS col2, 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -106650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col0" at position 0 and "max\(CAST\(Int64\(5\) AS Int32\)\) \* Int64\(27\) \* \(\- nullif\(Int64\(79\), \(\- Int64\(49\)\) \* \(\- min\(Int64\(\-49\)\)\) \+ Int64\(19\) \* Int64\(92\)\)\) \* \(\- nullif\(\(\- Int64\(10\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(40\)\)\) \+ Int64\(74\) \* Int64\(33\) \+ Int64\(52\) \+ Int64\(\-45\) \* Int64\(0\) / Int64\(\-17\) \+ Int64\(43\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col0" at position 0 and "max\(CAST\(Int64\(5\) AS Int64\)\) \* Int64\(27\) \* \(\- nullif\(Int64\(79\), \(\- Int64\(49\)\) \* \(\- min\(Int64\(\-49\)\)\) \+ Int64\(19\) \* Int64\(92\)\)\) \* \(\- nullif\(\(\- Int64\(10\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(40\)\)\) \+ Int64\(74\) \* Int64\(33\) \+ Int64\(52\) \+ Int64\(\-45\) \* Int64\(0\) / Int64\(\-17\) \+ Int64\(43\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 54 col0, + MAX ( + + CAST ( 5 AS INTEGER ) ) * 27 * - NULLIF ( + 79, - + ( + 49 ) * - MIN ( ( - 49 ) ) + 19 * 92 ) * - + NULLIF ( - + 10, + COUNT ( * ) * - MIN ( 40 ) + 74 * 33 + 52 + - 45 * 0 / - 17 + + 43 ) AS col0 query II rowsort @@ -36803,7 +36803,7 @@ SELECT + 50 AS col1, + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -96444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CASE Int64\(29\) WHEN Int64\(\-51\) THEN NULL WHEN \(\- Int64\(\-29\)\) \* \(\- Int64\(\-87\)\) THEN Int64\(\-65\) WHEN \(\- Int64\(7\)\) THEN NULL END\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-83\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) \* Int64\(\-27\) \+ Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CASE Int64\(29\) WHEN Int64\(\-51\) THEN NULL WHEN \(\- Int64\(\-29\)\) \* \(\- Int64\(\-87\)\) THEN Int64\(\-65\) WHEN \(\- Int64\(7\)\) THEN NULL END\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-83\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) \* Int64\(\-27\) \+ Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - AVG ( ALL - + CASE + 29 WHEN - 51 THEN NULL WHEN - - 29 * - - 87 THEN - 65 WHEN - + 7 THEN NULL END ) AS col2, CAST ( - 83 AS INTEGER ) * COUNT ( * ) * + ( - 43 ) * - 27 + - 81 col2 query I rowsort @@ -36885,7 +36885,7 @@ SELECT ALL - 66 * COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2120 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-37\) AS Int32\)\)\) \* Int64\(55\) \+ Int64\(\-85\) AS col0" at position 0 and "Int64\(27\) \+ Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-37\) AS Int64\)\)\) \* Int64\(55\) \+ Int64\(\-85\) AS col0" at position 0 and "Int64\(27\) \+ Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( - 37 AS INTEGER ) * ( + 55 ) + - 85 AS col0, + 27 + + - 4 AS col0 query I rowsort label-7025 @@ -38036,7 +38036,7 @@ SELECT COALESCE ( + + 52, - 3 - - - 42 + - COUNT ( * ), 47 * + 37 + + 95 ) * 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3078 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CASE count\(nullif\(Int64\(\-58\), \(\- Int64\(\-86\)\)\)\) WHEN Int64\(86\) \* Int64\(\-49\) THEN Int64\(\-12\) END AS Int32\)\) \* Int64\(13\) \+ coalesce\(Int64\(59\), Int64\(\-67\), \(\- Int64\(87\)\) \* coalesce\(Int64\(\-83\), max\(DISTINCT Int64\(46\)\) / Int64\(20\) \+ coalesce\(Int64\(\-38\), Int64\(\-25\) \+ Int64\(41\)\)\) \* Int64\(1\)\) \* Int64\(\-11\) AS col2" at position 0 and "Int64\(\-57\) \* CAST\(sum\(Int64\(\-54\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CASE count\(nullif\(Int64\(\-58\), \(\- Int64\(\-86\)\)\)\) WHEN Int64\(86\) \* Int64\(\-49\) THEN Int64\(\-12\) END AS Int64\)\) \* Int64\(13\) \+ coalesce\(Int64\(59\), Int64\(\-67\), \(\- Int64\(87\)\) \* coalesce\(Int64\(\-83\), max\(DISTINCT Int64\(46\)\) / Int64\(20\) \+ coalesce\(Int64\(\-38\), Int64\(\-25\) \+ Int64\(41\)\)\) \* Int64\(1\)\) \* Int64\(\-11\) AS col2" at position 0 and "Int64\(\-57\) \* CAST\(sum\(Int64\(\-54\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( CASE + COUNT ( + + NULLIF ( + - 58, - - 86 ) ) WHEN 86 * - 49 THEN - 12 END AS INTEGER ) * 13 + + COALESCE ( 59, - 67, - + 87 * COALESCE ( + - 83, + MAX ( DISTINCT 46 ) / 20 + COALESCE ( - 38, + - 25 + + 41 ) ) * 1 ) * - 11 AS col2, - 57 * + CAST ( SUM ( - 54 ) AS INTEGER ) AS col2 query I rowsort label-7243 @@ -40170,7 +40170,7 @@ SELECT - 3 * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -311766 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-44\) AS Int32\) AS col2" at position 0 and "coalesce\(Int64\(\-10\), Int64\(\-39\)\) \+ Int64\(76\) \- Int64\(\-36\) \* Int64\(2\) \* \(\- Int64\(71\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-44\) AS Int64\) AS col2" at position 0 and "coalesce\(Int64\(\-10\), Int64\(\-39\)\) \+ Int64\(76\) \- Int64\(\-36\) \* Int64\(2\) \* \(\- Int64\(71\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + + ( - 44 ) AS INTEGER ) AS col2, + COALESCE ( - 10, - 39 ) + + 76 - - 36 * 2 * - + 71 * 61 col2 query I rowsort @@ -41196,7 +41196,7 @@ SELECT DISTINCT 8 * - 10 + - 19 * 39 * - - 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(60\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(60\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 72 AS col0, + 60 * - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -41519,7 +41519,7 @@ SELECT - COALESCE ( - 23, - + CAST ( + 50 AS INTEGER ), + 15, 98 ) + + 77 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(CAST\(\(\- Int64\(84\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(CAST\(\(\- Int64\(84\)\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( CAST ( - + 84 AS INTEGER ) ) AS col1, - 58 AS col1 query I rowsort @@ -42505,7 +42505,7 @@ SELECT - + CAST ( ( - 60 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(92\), Int64\(\-21\) \* Int64\(68\) \+ Int64\(\-55\) \* Int64\(83\) \* Int64\(84\), Int64\(62\) \- Int64\(37\)\)\) \* CAST\(NULL AS Int32\) \* \(\- avg\(Int64\(\-9\)\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(92\), Int64\(\-21\) \* Int64\(68\) \+ Int64\(\-55\) \* Int64\(83\) \* Int64\(84\), Int64\(62\) \- Int64\(37\)\)\) \* CAST\(NULL AS Int64\) \* \(\- avg\(Int64\(\-9\)\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( 92, - 21 * 68 + - 55 * 83 * 84, 62 - 37 ) * CAST ( NULL AS INTEGER ) * - AVG ( ALL - 9 ) AS col1, MAX ( DISTINCT - 89 ) AS col1 query I rowsort @@ -43757,7 +43757,7 @@ SELECT ALL + CAST ( + + 60 AS INTEGER ) col0 # Datafusion - Expected - 0 # Datafusion - Expected - 41 # Datafusion - Expected - 2745 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) / Int64\(\-95\) \* coalesce\(Int64\(64\), Int64\(69\), Int64\(31\) \+ \(\- Int64\(\-15\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- Int64\(91\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) \* Int64\(24\) THEN Int64\(\-2\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-79\) \* Int64\(35\) / Int64\(\-25\) \* Int64\(\-35\) END\) / Int64\(\-60\) AS col2" at position 0 and "Int64\(45\) \* Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) / Int64\(\-95\) \* coalesce\(Int64\(64\), Int64\(69\), Int64\(31\) \+ \(\- Int64\(\-15\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- Int64\(91\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) \* Int64\(24\) THEN Int64\(\-2\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-79\) \* Int64\(35\) / Int64\(\-25\) \* Int64\(\-35\) END\) / Int64\(\-60\) AS col2" at position 0 and "Int64\(45\) \* Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - 48 ) / + - 95 * + COALESCE ( + 64, 69, + 31 + - - 15 + - COUNT ( * ) + + CASE - + 91 WHEN COUNT ( * ) + 36 * + 24 THEN - 2 * - CAST ( NULL AS INTEGER ) * + - 79 * + 35 / - 25 * - 35 END ) / - 60 AS col2, 41 AS col1, 45 * + 61 AS col2 query II rowsort label-8336 @@ -44494,7 +44494,7 @@ SELECT ( - 45 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4369 # Datafusion - Expected - -219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(73\) AS Int32\)\) \* Int64\(\-59\) \+ Int64\(62\) AS col1" at position 0 and "Int64\(\-8\) / Int64\(77\) \- Int64\(\-41\) \+ \(\- Int64\(34\)\) \+ Int64\(86\) \* Int64\(58\) / Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(73\) AS Int64\)\) \* Int64\(\-59\) \+ Int64\(62\) AS col1" at position 0 and "Int64\(\-8\) / Int64\(77\) \- Int64\(\-41\) \+ \(\- Int64\(34\)\) \+ Int64\(86\) \* Int64\(58\) / Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 73 AS INTEGER ) * - 59 + + 62 AS col1, - 8 / 77 - + - 41 + - + 34 + + + 86 * 58 / - 22 AS col1 query I rowsort label-8476 @@ -45238,7 +45238,7 @@ SELECT 68 + - NULLIF ( + 43, - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(35\) AS col2" at position 0 and "CASE \(\- Int64\(\-1\)\) WHEN \(\- Int64\(\-83\)\) THEN NULL WHEN Int64\(14\) THEN Int64\(\-20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE Int64\(61\) WHEN Int64\(\-74\) \* Int64\(\-1\) \* Int64\(24\) \* \(\- CASE Int64\(\-55\) WHEN Int64\(80\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(\-94\) \* Int64\(74\) / Int64\(\-78\) THEN \(\- Int64\(50\)\) \* Int64\(6\) WHEN Int64\(64\) \* Int64\(\-26\) / CASE Int64\(44\) WHEN Int64\(86\) \+ Int64\(74\) THEN Int64\(\-84\) ELSE NULL END THEN Int64\(\-33\) END\) \- Int64\(\-72\) THEN Int64\(\-69\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(\-76\) WHEN Int64\(33\) \* Int64\(9\) \+ Int64\(21\) THEN NULL WHEN Int64\(21\) THEN NULL END\) END \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(35\) AS col2" at position 0 and "CASE \(\- Int64\(\-1\)\) WHEN \(\- Int64\(\-83\)\) THEN NULL WHEN Int64\(14\) THEN Int64\(\-20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE Int64\(61\) WHEN Int64\(\-74\) \* Int64\(\-1\) \* Int64\(24\) \* \(\- CASE Int64\(\-55\) WHEN Int64\(80\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(\-94\) \* Int64\(74\) / Int64\(\-78\) THEN \(\- Int64\(50\)\) \* Int64\(6\) WHEN Int64\(64\) \* Int64\(\-26\) / CASE Int64\(44\) WHEN Int64\(86\) \+ Int64\(74\) THEN Int64\(\-84\) ELSE NULL END THEN Int64\(\-33\) END\) \- Int64\(\-72\) THEN Int64\(\-69\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \+ Int64\(\-76\) WHEN Int64\(33\) \* Int64\(9\) \+ Int64\(21\) THEN NULL WHEN Int64\(21\) THEN NULL END\) END \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 * + 35 AS col2, + CASE - + ( + - 1 ) WHEN - - 83 THEN NULL WHEN 14 THEN - 20 + - COUNT ( * ) + - + CASE + ( + 61 ) WHEN - 74 * - 1 * + 24 * - CASE - 55 WHEN + 80 + + - MIN ( ALL + 12 ) * - 94 * + + 74 / + - 78 THEN - + 50 * + ( + 6 ) WHEN + 64 * - 26 / + CASE + 44 WHEN + + 86 + + 74 THEN - 84 ELSE NULL END THEN + - 33 END - - 72 THEN + - 69 * - + CAST ( - COUNT ( * ) AS INTEGER ) + - 76 WHEN + 33 * + 9 + 21 THEN NULL WHEN + 21 THEN NULL END END * - 52 AS col2 query I rowsort label-8618 @@ -47979,7 +47979,7 @@ SELECT 35 + + 92, - MAX ( DISTINCT + 87 ) * 58 - + 80 + CASE WHEN ( + 25 ) > 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(10\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(\-17\) AS Int32\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(10\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(\-17\) AS Int64\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, 10 / - - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + + CAST ( - 17 AS INTEGER ) * + 43 AS col2 query I rowsort @@ -49491,7 +49491,7 @@ SELECT - COUNT ( * ) * - 0 - - + 84 - + + 50 + - 79 / + 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, 2 AS col1 query I rowsort label-9433 @@ -52096,7 +52096,7 @@ SELECT - 94 - 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(\-97\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-75\) THEN Int64\(\-1\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(\-97\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-75\) THEN Int64\(\-1\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 + - 97 AS col2, CAST ( NULL AS INTEGER ) * - CASE - COUNT ( * ) WHEN + - 75 THEN + - 1 END col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_21.slt b/data/sqlite/random/expr/slt_good_21.slt index e0e5ec1..20e840b 100644 --- a/data/sqlite/random/expr/slt_good_21.slt +++ b/data/sqlite/random/expr/slt_good_21.slt @@ -2638,7 +2638,7 @@ SELECT ALL + 59 - - 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(\-82\) WHEN Int64\(36\) \+ coalesce\(Int64\(\-95\), Int64\(13\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) THEN NULL WHEN Int64\(63\) THEN \(\- Int64\(99\)\) \+ Int64\(57\) \+ Int64\(89\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* CASE Int64\(\-82\) WHEN Int64\(36\) \+ coalesce\(Int64\(\-95\), Int64\(13\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) THEN NULL WHEN Int64\(63\) THEN \(\- Int64\(99\)\) \+ Int64\(57\) \+ Int64\(89\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + CASE - 82 WHEN + 36 + COALESCE ( + - 95, + + 13 ) + - - COUNT ( * ) + + - COUNT ( * ) + + 78 THEN NULL WHEN 63 THEN - + 99 + 57 + + 89 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END AS col2, - 31 AS col2 query II rowsort @@ -2886,7 +2886,7 @@ SELECT DISTINCT - 50 + - 33 / + 95 + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 421262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(\-65\) \* \(\- coalesce\(Int64\(90\), \(\- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(99\) THEN NULL WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- \(\- max\(DISTINCT Int64\(67\)\)\)\) \+ Int64\(\-81\) END\)\), Int64\(99\)\)\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(\-65\) \* \(\- coalesce\(Int64\(90\), \(\- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(99\) THEN NULL WHEN \(\- CAST\(NULL AS Int64\)\) THEN \(\- \(\- max\(DISTINCT Int64\(67\)\)\)\) \+ Int64\(\-81\) END\)\), Int64\(99\)\)\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 4 AS col2, 62 + + - 65 * - COALESCE ( 90, - - CASE - COUNT ( * ) WHEN + 99 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - - MAX ( DISTINCT 67 ) + - 81 END, 99 ) * 72 AS col2 query II rowsort @@ -6625,7 +6625,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) / coalesce\(CAST\(Int64\(51\) AS Int32\), Int64\(\-57\) \+ Int64\(38\)\) \* Int64\(84\) \+ Int64\(18\) \- Int64\(\-87\) \- Int64\(87\) \+ Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) / coalesce\(CAST\(Int64\(51\) AS Int64\), Int64\(\-57\) \+ Int64\(38\)\) \* Int64\(84\) \+ Int64\(18\) \- Int64\(\-87\) \- Int64\(87\) \+ Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 38 AS col2, 62 * COUNT ( * ) + + COUNT ( * ) + + 14 / COALESCE ( CAST ( + 51 AS INTEGER ), - 57 + + 38 ) * + 84 + + 18 - - 87 - + 87 + - 40 AS col2 query I rowsort label-1256 @@ -6776,7 +6776,7 @@ SELECT ALL - SUM ( + 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1139 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(\-67\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(\-67\) 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\. SELECT DISTINCT - 17 * + - 67 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -8785,7 +8785,7 @@ SELECT DISTINCT 77 AS col1, 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 5740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(70\) \* nullif\(Int64\(82\), \(\- CAST\(Int64\(26\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(70\) \* nullif\(Int64\(82\), \(\- CAST\(Int64\(26\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 36 AS col0, 70 * + + NULLIF ( + 82, - CAST ( + 26 AS INTEGER ) ) col0 query I rowsort @@ -9479,7 +9479,7 @@ SELECT DISTINCT + 44 * + ( 58 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(DISTINCT Int64\(95\)\) \- Int64\(8\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(DISTINCT Int64\(95\)\) \- Int64\(8\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 * COUNT ( * ) AS col2, + SUM ( DISTINCT 95 ) - + + 8 + - - CAST ( NULL AS INTEGER ) * 45 AS col2 query I rowsort label-1796 @@ -12100,7 +12100,7 @@ SELECT + COUNT ( - + 43 ) * - + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(86\)\)\) AS col0" at position 0 and "Int64\(0\) \* CAST\(Int64\(52\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(86\)\)\) AS col0" at position 0 and "Int64\(0\) \* CAST\(Int64\(52\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - + 86 ) AS col0, 0 * CAST ( 52 AS INTEGER ) * COUNT ( * ) AS col0 query II rowsort label-2297 @@ -13925,7 +13925,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) 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\. SELECT ALL + 67 AS col0, - CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -14504,7 +14504,7 @@ SELECT DISTINCT + - MAX ( ALL 66 ) * 87 * + 43 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 62 / - + CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2 query I rowsort label-2755 @@ -17449,7 +17449,7 @@ SELECT - - 22 * - 89 - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- Int64\(70\)\), \(\- nullif\(Int64\(72\), \(\- Int64\(\-38\)\)\)\) / Int64\(\-73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col0" at position 0 and "count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- Int64\(70\)\), \(\- nullif\(Int64\(72\), \(\- Int64\(\-38\)\)\)\) / Int64\(\-73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col0" at position 0 and "count\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - NULLIF ( + ( - ( + 70 ) ), - NULLIF ( 72, - - 38 ) / - 73 * - COUNT ( * ) ) AS col0, + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -18631,7 +18631,7 @@ SELECT - + ( 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- min\(DISTINCT Int64\(\-32\)\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-10\)\) \* sum\(Int64\(73\)\) THEN \(\- nullif\(Int64\(88\), Int64\(68\)\)\) WHEN CASE Int64\(\-3\) WHEN Int64\(\-13\) THEN NULL WHEN Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-71\) END THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(97\) \* Int64\(\-38\) \+ Int64\(\-83\) \+ CAST\(NULL AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- min\(DISTINCT Int64\(\-32\)\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-10\)\) \* sum\(Int64\(73\)\) THEN \(\- nullif\(Int64\(88\), Int64\(68\)\)\) WHEN CASE Int64\(\-3\) WHEN Int64\(\-13\) THEN NULL WHEN Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-71\) END THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(97\) \* Int64\(\-38\) \+ Int64\(\-83\) \+ CAST\(NULL AS Int64\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 92 + - MIN ( DISTINCT - 32 ) + - CASE COUNT ( * ) WHEN - - 10 * + SUM ( 73 ) THEN + - ( + NULLIF ( + 88, 68 ) ) WHEN + + CASE - 3 WHEN - 13 THEN NULL WHEN 62 * - COUNT ( * ) THEN - 71 END THEN NULL ELSE NULL END AS col0, 97 * + - 38 + ( - 83 ) + + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col0 query I rowsort @@ -21045,7 +21045,7 @@ SELECT ALL + - 75 * - - 29 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -540 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-21\)\) AS Int32\) / Int64\(66\) \+ Int64\(90\) \* Int64\(\-6\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-21\)\) AS Int64\) / Int64\(66\) \+ Int64\(90\) \* Int64\(\-6\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - 21 AS INTEGER ) / + 66 + 90 * - 6 AS col2, ( - 6 ) AS col2 query I rowsort @@ -21113,7 +21113,7 @@ SELECT ALL 6 - - 90 + + - 37 + + + 74 + + - 19 * 47 + - MIN ( + - CAST ( - 79 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "CAST\(max\(Int64\(26\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "CAST\(max\(Int64\(26\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 18 AS col2, CAST ( + MAX ( 26 ) AS INTEGER ) AS col2 query I rowsort label-4012 @@ -21282,7 +21282,7 @@ NULL # Datafusion - Expected - -106 # Datafusion - Expected - NULL # Datafusion - Expected - 256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(0\)\) \* \(\- Int64\(\-6\)\) AS col0" at position 1 and "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \+ Int64\(36\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / \(\- Int64\(0\)\) \* \(\- Int64\(\-6\)\) AS col0" at position 1 and "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \+ Int64\(36\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 48 ) - - SUM ( DISTINCT - 58 ) AS col2, - CAST ( NULL AS INTEGER ) / - - 0 * - - 6 AS col0, 20 * + COUNT ( * ) * 11 + + 36 AS col0 query I rowsort @@ -21341,7 +21341,7 @@ SELECT CASE - + ( + NULLIF ( + 70, 32 / + 47 ) ) WHEN - 44 THEN NULL WHEN + + CA # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(96\)\)\), Int64\(57\)\) AS col0" at position 0 and "Int64\(84\) \* CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-54\), Int64\(\-74\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(96\)\)\), Int64\(57\)\) AS col0" at position 0 and "Int64\(84\) \* CAST\(NULL AS Int64\) \* \(\- coalesce\(Int64\(\-54\), Int64\(\-74\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + - COUNT ( + 96 ), + 57 ) col0, 84 * + CAST ( NULL AS INTEGER ) * - COALESCE ( - 54, - 74 / - COUNT ( * ) ) + - 18 AS col0 query I rowsort label-4054 @@ -23491,7 +23491,7 @@ SELECT + 50 * - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(20\) \+ Int64\(1\) \+ Int64\(8\) \- CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(12\) AS col2" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(20\) \+ Int64\(1\) \+ Int64\(8\) \- CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(12\) AS col2" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 54 * + 20 + 1 + 8 - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 12 AS col2, + 44 * COUNT ( * ) - + 73 AS col2 query II rowsort @@ -23806,7 +23806,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(49\) \+ Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(49\) \+ Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 87 AS col1, CAST ( NULL AS INTEGER ) * + 49 + + 23 AS col1 query I rowsort @@ -26269,7 +26269,7 @@ SELECT ALL 23 + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-44\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-44\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col0, - 44 + 47 AS col0 query I rowsort @@ -27357,7 +27357,7 @@ SELECT 97 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -340 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- nullif\(Int64\(5\), \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- nullif\(Int64\(5\), \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 * + - ( + NULLIF ( + 5, - CAST ( NULL AS INTEGER ) ) ) AS col1, - 71 * COUNT ( * ) AS col1 query I rowsort @@ -27533,7 +27533,7 @@ SELECT + 29 / COUNT ( * ) + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "\(\- CASE Int64\(\-13\) WHEN Int64\(\-8\) THEN \(\- Int64\(\-35\)\) WHEN CAST\(\(\- \(\- CAST\(CAST\(Int64\(\-26\) AS Int32\) AS Int32\)\)\) AS Float64\) THEN NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "\(\- CASE Int64\(\-13\) WHEN Int64\(\-8\) THEN \(\- Int64\(\-35\)\) WHEN CAST\(\(\- \(\- CAST\(CAST\(Int64\(\-26\) AS Int64\) AS Int64\)\)\) AS Float64\) THEN NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 10 AS col0, - CASE - 13 WHEN - 8 THEN - - 35 WHEN + CAST ( - ( - CAST ( CAST ( - 26 AS INTEGER ) AS INTEGER ) ) AS FLOAT8 ) THEN NULL END AS col0 query II rowsort label-5235 @@ -31965,7 +31965,7 @@ SELECT ALL COALESCE ( - 28, ( + 26 ) ) * 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "count\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 27 AS col0, + COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort label-6082 @@ -34876,7 +34876,7 @@ SELECT DISTINCT - 14 * - COUNT ( * ) + + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1806 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(83\)\) AS Int32\) \+ \(\- min\(DISTINCT Int64\(86\)\)\) \+ Int64\(\-21\) \* \(\- CAST\(\(\- Int64\(78\)\) AS Int32\)\) AS col1" at position 0 and "CASE Int64\(\-9\) WHEN Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(43\) \* Int64\(79\) END \+ \(\- Int64\(71\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(83\)\) AS Int64\) \+ \(\- min\(DISTINCT Int64\(86\)\)\) \+ Int64\(\-21\) \* \(\- CAST\(\(\- Int64\(78\)\) AS Int64\)\) AS col1" at position 0 and "CASE Int64\(\-9\) WHEN Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(43\) \* Int64\(79\) END \+ \(\- Int64\(71\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + CAST ( - + 83 AS INTEGER ) + - ( + MIN ( DISTINCT + 86 ) ) + - 21 * - + CAST ( - + 78 AS INTEGER ) AS col1, CASE - 9 WHEN + - 90 + - COUNT ( * ) - - ( - COUNT ( * ) ) THEN 43 * + 79 END + - + 71 * + COUNT ( * ) AS col1 query II rowsort label-6634 @@ -35253,7 +35253,7 @@ SELECT - COUNT ( * ) * - ( 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) / Int64\(15\) AS col2" at position 0 and "Int64\(10\) / CAST\(Int64\(26\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) / Int64\(15\) AS col2" at position 0 and "Int64\(10\) / CAST\(Int64\(26\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 90 / 15 AS col2, 10 / CAST ( + 26 AS INTEGER ) AS col2 query I rowsort @@ -36274,7 +36274,7 @@ SELECT 71 * + 15 + - - 92 + + 36 * 52 * + + 78 AS col0, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -42271,7 +42271,7 @@ SELECT ALL 54 * - 92 * - COUNT ( * ) # Datafusion - Expected - -1064 # Datafusion - Expected - 92 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) \+ \(\- Int64\(14\)\) \+ CAST\(Int64\(\-47\) AS Int32\) \* Int64\(22\) AS col2" at position 0 and "max\(Int64\(92\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) \+ \(\- Int64\(14\)\) \+ CAST\(Int64\(\-47\) AS Int64\) \* Int64\(22\) AS col2" at position 0 and "max\(Int64\(92\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + + 16 ) + - + 14 + + CAST ( - 47 AS INTEGER ) * 22 AS col2, + MAX ( ALL 92 ) * COUNT ( * ) AS col2, + 55 AS col2 query I rowsort @@ -47043,7 +47043,7 @@ SELECT 31 + + 57 + + 79 * - 56 + - - 65 + COALESCE ( + 89, ( + 22 ) * + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) \+ Int64\(73\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) \+ Int64\(73\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col0, + COUNT ( * ) * + + 14 + + 73 * + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8959 @@ -49488,7 +49488,7 @@ SELECT ALL - ( ( - 36 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -339917 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(5\) AS Int32\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(18\) \+ Int64\(\-53\) \+ \(\- Int64\(\-57\)\) \- Int64\(\-59\) \* Int64\(\-80\) \* Int64\(72\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(5\) AS Int64\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(18\) \+ Int64\(\-53\) \+ \(\- Int64\(\-57\)\) \- Int64\(\-59\) \* Int64\(\-80\) \* Int64\(72\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + COUNT ( * ) ) + + CAST ( 5 AS INTEGER ) + + - 74 AS col2, 18 + - 53 + - - 57 - - 59 * - 80 * + 72 + - + 99 AS col2 query I rowsort @@ -49886,7 +49886,7 @@ SELECT 25 * - 74 + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2253 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* nullif\(Int64\(\-74\), nullif\(\(\- Int64\(\-22\)\), Int64\(\-25\) \* Int64\(\-19\) \* Int64\(52\)\) \+ Int64\(52\) \* CASE \(\- Int64\(\-52\)\) WHEN Int64\(55\) THEN Int64\(46\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) \+ \(\- min\(Int64\(33\)\)\) AS col1" at position 0 and "Int64\(30\) \+ CAST\(Int64\(\-8\) AS Float64\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-20\) \* \(\- nullif\(Int64\(11\), Int64\(92\) \- CAST\(NULL AS Int32\) \+ Int64\(97\) \* Int64\(85\)\)\) \+ Int64\(72\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* nullif\(Int64\(\-74\), nullif\(\(\- Int64\(\-22\)\), Int64\(\-25\) \* Int64\(\-19\) \* Int64\(52\)\) \+ Int64\(52\) \* CASE \(\- Int64\(\-52\)\) WHEN Int64\(55\) THEN Int64\(46\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) \+ \(\- min\(Int64\(33\)\)\) AS col1" at position 0 and "Int64\(30\) \+ CAST\(Int64\(\-8\) AS Float64\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-20\) \* \(\- nullif\(Int64\(11\), Int64\(92\) \- CAST\(NULL AS Int64\) \+ Int64\(97\) \* Int64\(85\)\)\) \+ Int64\(72\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 * NULLIF ( - 74, + NULLIF ( - - 22, - 25 * - 19 * + + 52 ) + 52 * CASE - - 52 WHEN + 55 THEN + 46 ELSE COUNT ( * ) END ) + - ( MIN ( ALL + + 33 ) ) AS col1, + 30 + + CAST ( - 8 AS FLOAT8 ) + - CAST ( NULL AS INTEGER ) * - 20 * - + NULLIF ( + 11, + 92 - + + CAST ( NULL AS INTEGER ) + + 97 * 85 ) + + 72 * 89 col1 query I rowsort label-9500 @@ -51258,7 +51258,7 @@ SELECT + COUNT ( * ) + - + 94 * - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1258 # Datafusion - Expected - 628866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(17\) AS Int32\) \* Int64\(74\) AS col2" at position 0 and "max\(Int64\(98\)\) \* Int64\(93\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(17\) AS Int64\) \* Int64\(74\) AS col2" at position 0 and "max\(Int64\(98\)\) \* Int64\(93\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 17 AS INTEGER ) * 74 AS col2, MAX ( + + 98 ) * 93 * + 69 col2 query I rowsort label-9761 diff --git a/data/sqlite/random/expr/slt_good_22.slt b/data/sqlite/random/expr/slt_good_22.slt index e5f6d77..8e2636d 100644 --- a/data/sqlite/random/expr/slt_good_22.slt +++ b/data/sqlite/random/expr/slt_good_22.slt @@ -922,7 +922,7 @@ SELECT ALL - + 47 * 11 + - 61 + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "nullif\(Int64\(57\), coalesce\(Int64\(33\), CASE CAST\(NULL AS Int32\) WHEN Int64\(\-91\) THEN Int64\(\-72\) \+ Int64\(\-3\) \* \(\- Int64\(86\)\) \- Int64\(89\) END \* \(\- Int64\(\-52\)\) \- Int64\(\-18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(\(\- Int64\(\-51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "nullif\(Int64\(57\), coalesce\(Int64\(33\), CASE CAST\(NULL AS Int64\) WHEN Int64\(\-91\) THEN Int64\(\-72\) \+ Int64\(\-3\) \* \(\- Int64\(86\)\) \- Int64\(89\) END \* \(\- Int64\(\-52\)\) \- Int64\(\-18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(\(\- Int64\(\-51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 85 col0, + NULLIF ( + 57, + COALESCE ( + 33, CASE CAST ( NULL AS INTEGER ) WHEN - 91 THEN - 72 + - 3 * - + 86 - 89 END * - - 52 - - 18 ) + - COUNT ( * ) * + + 56 * + COUNT ( * ) - COUNT ( * ) ) * + COUNT ( ALL - - 51 ) AS col0 query I rowsort @@ -5693,7 +5693,7 @@ SELECT 17, - 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-93\) \+ \(\- Int64\(37\)\) \+ \(\- Int64\(41\)\) \* count\(DISTINCT \(\- CAST\(nullif\(Int64\(35\), Int64\(90\)\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CASE Int64\(\-38\) WHEN Int64\(\-69\) THEN NULL ELSE Int64\(31\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-93\) \+ \(\- Int64\(37\)\) \+ \(\- Int64\(41\)\) \* count\(DISTINCT \(\- CAST\(nullif\(Int64\(35\), Int64\(90\)\) AS Int64\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CASE Int64\(\-38\) WHEN Int64\(\-69\) THEN NULL ELSE Int64\(31\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 + - - COUNT ( * ) - - 93 + - + 37 + - + 41 * + COUNT ( DISTINCT - + CAST ( NULLIF ( + 35, 90 ) AS INTEGER ) ) * + - COUNT ( * ) AS col0, CASE - 38 WHEN - 69 THEN NULL ELSE + 31 END col0 query II rowsort label-1087 @@ -5796,7 +5796,7 @@ SELECT 7 * - 14 - - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) AS col2" at position 0 and "CASE \(\- Int64\(61\)\) WHEN \(\- Int64\(\-73\)\) THEN Int64\(88\) END / count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) AS col2" at position 0 and "CASE \(\- Int64\(61\)\) WHEN \(\- Int64\(\-73\)\) THEN Int64\(88\) END / count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( 94 ) AS col2, + CASE - + 61 WHEN - - 73 THEN + ( 88 ) END / COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-1106 @@ -5918,7 +5918,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(37\) \+ Int64\(3\) \+ \(\- \(\- Int64\(\-58\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(CASE Int64\(26\) WHEN Int64\(81\) THEN NULL ELSE \(\- Int64\(95\)\) END, Int64\(\-68\)\) / Int64\(28\) AS col1" at position 0 and "CAST\(Int64\(98\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(37\) \+ Int64\(3\) \+ \(\- \(\- Int64\(\-58\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(CASE Int64\(26\) WHEN Int64\(81\) THEN NULL ELSE \(\- Int64\(95\)\) END, Int64\(\-68\)\) / Int64\(28\) AS col1" at position 0 and "CAST\(Int64\(98\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 97 + + 37 + + 3 + - + ( - - 58 ) + + COUNT ( * ) * + NULLIF ( + CASE + + 26 WHEN 81 THEN NULL ELSE - ( + + 95 ) END, - 68 ) / + 28 AS col1, CAST ( + 98 AS INTEGER ) AS col1 query I rowsort label-1129 @@ -6048,7 +6048,7 @@ SELECT DISTINCT - 96 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(64\), CAST\(Int64\(61\) AS Int32\) / Int64\(10\) \+ \(\- min\(\(\- Int64\(\-66\)\)\)\)\) \+ Int64\(4\) AS col1" at position 0 and "Int64\(87\) \- Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(64\), CAST\(Int64\(61\) AS Int64\) / Int64\(10\) \+ \(\- min\(\(\- Int64\(\-66\)\)\)\)\) \+ Int64\(4\) AS col1" at position 0 and "Int64\(87\) \- Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 64, + CAST ( 61 AS INTEGER ) / 10 + - + MIN ( - ( + - 66 ) ) ) + 4 col1, + 87 - + - 70 AS col1 query I rowsort label-1154 @@ -7131,7 +7131,7 @@ SELECT + NULLIF ( + - CAST ( 85 AS INTEGER ), + 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(5\) \* CAST\(NULL AS Int32\) \+ Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(5\) \* CAST\(NULL AS Int64\) \+ Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 AS col2, ( + 5 ) * + CAST ( NULL AS INTEGER ) + - 5 AS col2 query II rowsort @@ -7456,7 +7456,7 @@ SELECT DISTINCT 49 * - + 34 - 75 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(81\) AS col2" at position 0 and "nullif\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(57\) / Int64\(20\)\) \+ Int64\(97\) \* Int64\(12\) \- count\(DISTINCT CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \* \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(81\) AS col2" at position 0 and "nullif\(\(\- \(\- CAST\(NULL AS Int64\)\)\), Int64\(57\) / Int64\(20\)\) \+ Int64\(97\) \* Int64\(12\) \- count\(DISTINCT CAST\(CAST\(NULL AS Int64\) AS Int64\)\) \* \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 48 + 81 AS col2, NULLIF ( - - CAST ( NULL AS INTEGER ), + + 57 / + 20 ) + + 97 * + 12 - COUNT ( DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - + 14 AS col2 query II rowsort @@ -8263,7 +8263,7 @@ SELECT 13 * + - 7 AS col0, 58 + + 78 AS col1 # Datafusion - Expected - 84 # Datafusion - Expected - 4690 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* max\(Int64\(70\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(count\(Int64\(71\)\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* max\(Int64\(70\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(count\(Int64\(71\)\) AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 83 - - COUNT ( * ), + 67 * + MAX ( 70 ) AS col1, COUNT ( * ) - + - CAST ( + COUNT ( ALL + 71 ) AS INTEGER ) AS col1 query II rowsort @@ -8991,7 +8991,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) AS col0" at position 0 and "Int64\(66\) \- CAST\(NULL AS Int32\) \+ Int64\(90\) \* \(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) AS col0" at position 0 and "Int64\(66\) \- CAST\(NULL AS Int64\) \+ Int64\(90\) \* \(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 41 AS col0, 66 - CAST ( NULL AS INTEGER ) + 90 * - + ( 1 ) AS col0 query I rowsort label-1711 @@ -9409,7 +9409,7 @@ SELECT ALL - MAX ( - + 10 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(6\)\) AS col0" at position 0 and "count\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(6\)\) AS col0" at position 0 and "count\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) + - + ( ( 6 ) ) col0, COUNT ( 46 ) AS col0 query I rowsort @@ -10865,7 +10865,7 @@ SELECT COUNT ( * ) * + + 78 * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(7\)\) / Int64\(86\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(7\)\) / Int64\(86\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MAX ( + 7 ) / ( + 86 ) + + - CAST ( NULL AS INTEGER ) AS col1, 94 AS col1 query I rowsort label-2074 @@ -11450,7 +11450,7 @@ SELECT - MIN ( - 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7128 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-99\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-99\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 * ( - 99 ) col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -16808,7 +16808,7 @@ SELECT COUNT ( 92 ) + - 89 * COUNT ( * ) - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1136 # Datafusion - Expected - 169 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* nullif\(Int64\(16\), Int64\(14\)\) AS col1" at position 0 and "Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(29\) / count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(74\), Int64\(73\) \* Int64\(\-32\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* nullif\(Int64\(16\), Int64\(14\)\) AS col1" at position 0 and "Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(29\) / count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(74\), Int64\(73\) \* Int64\(\-32\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * + + NULLIF ( 16, 14 ) AS col1, 65 + COUNT ( * ) + + 29 / + + COUNT ( * ) + + COALESCE ( + 74, 73 * - 32 + + + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 query I rowsort label-3203 @@ -17908,7 +17908,7 @@ SELECT + 21 * - + 11, 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- sum\(\(\- Int64\(84\)\)\)\) \+ Int64\(\-45\) AS col0" at position 0 and "Int64\(49\) \+ max\(DISTINCT Int64\(\-20\)\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- sum\(\(\- Int64\(84\)\)\)\) \+ Int64\(\-45\) AS col0" at position 0 and "Int64\(49\) \+ max\(DISTINCT Int64\(\-20\)\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 89 + - CAST ( NULL AS INTEGER ) * + - SUM ( ALL - + 84 ) + - 45 AS col0, 49 + MAX ( DISTINCT - 20 ) * - 25 AS col0 query I rowsort label-3409 @@ -20356,7 +20356,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "\(\- CAST\(\(\- nullif\(\(\- CAST\(Int64\(14\) AS Int32\)\), Int64\(46\) / Int64\(3\) \+ Int64\(\-28\)\)\) AS Int32\)\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "\(\- CAST\(\(\- nullif\(\(\- CAST\(Int64\(14\) AS Int64\)\), Int64\(46\) / Int64\(3\) \+ Int64\(\-28\)\)\) AS Int64\)\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 35 ) AS col0, - CAST ( - NULLIF ( - + CAST ( 14 AS INTEGER ), + 46 / + 3 + + - 28 ) AS INTEGER ) + + 86 AS col0 query I rowsort label-3880 @@ -22493,7 +22493,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -181085 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(0\) \+ \(\- \(\- coalesce\(Int64\(19\), Int64\(95\) \+ Int64\(5\) \+ Int64\(\-98\) / count\(Int64\(1\)\) AS count\(\*\) / \(\- CAST\(NULL AS Int32\)\) / Int64\(\-3\), Int64\(31\)\)\)\) \+ Int64\(88\) \* Int64\(49\) \* \(\- Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(0\) \+ \(\- \(\- coalesce\(Int64\(19\), Int64\(95\) \+ Int64\(5\) \+ Int64\(\-98\) / count\(Int64\(1\)\) AS count\(\*\) / \(\- CAST\(NULL AS Int64\)\) / Int64\(\-3\), Int64\(31\)\)\)\) \+ Int64\(88\) \* Int64\(49\) \* \(\- Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 3 col1, 0 + - - COALESCE ( 19, 95 + + + 5 + - 98 / COUNT ( * ) / - + CAST ( NULL AS INTEGER ) / - 3, + 31 ) + 88 * 49 * - + 42 AS col1 query I rowsort @@ -23157,7 +23157,7 @@ SELECT ALL - 13 + - 54 + + 41 / + 73 + + MAX ( + 76 ) * - 42, SUM ( ALL - + 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-24\) \+ Int64\(11\) \+ Int64\(55\) \* Int64\(\-17\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(21\) / Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-24\) \+ Int64\(11\) \+ Int64\(55\) \* Int64\(\-17\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(21\) / Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col2, - 24 + + + 11 + 55 * - 17 * - CAST ( NULL AS INTEGER ) * 21 / + 92 AS col2 query I rowsort label-4415 @@ -24014,7 +24014,7 @@ SELECT DISTINCT 82 col1, 94 * - 85 + + + 85 / - + COUNT ( ALL COALESCE ( + 48, 9 # Datafusion - Expected - -2688 # Datafusion - Expected - 177 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- Int64\(95\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(82\) \* Int64\(\-29\) \+ Int64\(\-71\), Int64\(\-92\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(82\) AS col2" at position 1 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- Int64\(95\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(82\) \* Int64\(\-29\) \+ Int64\(\-71\), Int64\(\-92\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(82\) AS col2" at position 1 and "CAST\(NULL AS Int64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 * - + 96, COALESCE ( - - ( + 95 ), + COUNT ( * ) * + 82 * + - 29 + - 71, - 92, - COUNT ( * ) ) + 82 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-4575 @@ -25063,7 +25063,7 @@ SELECT ALL - + 94 + SUM ( + 97 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 2705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(0\) \+ Int64\(69\) AS col2" at position 0 and "Int64\(16\) \+ \(\- nullif\(Int64\(37\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-71\) \- Int64\(67\) \+ \(\- Int64\(\-96\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- nullif\(Int64\(95\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\)\) / \(\- nullif\(Int64\(\-39\), CAST\(\(\- Int64\(73\)\) AS Int32\) / Int64\(14\) \+ Int64\(\-65\)\)\) \+ Int64\(36\) \+ \(\- count\(Int64\(\-50\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(0\) \+ Int64\(69\) AS col2" at position 0 and "Int64\(16\) \+ \(\- nullif\(Int64\(37\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-71\) \- Int64\(67\) \+ \(\- Int64\(\-96\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- nullif\(Int64\(95\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\)\) / \(\- nullif\(Int64\(\-39\), CAST\(\(\- Int64\(73\)\) AS Int64\) / Int64\(14\) \+ Int64\(\-65\)\)\) \+ Int64\(36\) \+ \(\- count\(Int64\(\-50\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 * - 0 + + 69 AS col2, 16 + - NULLIF ( ( + 37 ), + COUNT ( * ) ) * - 71 - + 67 + - - 96 * COUNT ( * ) - NULLIF ( + 95, COUNT ( * ) + + 35 ) / + - NULLIF ( - 39, + + CAST ( - + 73 AS INTEGER ) / + 14 + - 65 ) + + 36 + - COUNT ( ALL - 50 ) AS col2 query I rowsort label-4773 @@ -25829,7 +25829,7 @@ SELECT + MIN ( ALL + 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 494 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(26\)\) \* nullif\(Int64\(19\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-37\) \* Int64\(21\) / Int64\(81\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(26\)\) \* nullif\(Int64\(19\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-37\) \* Int64\(21\) / Int64\(81\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL 26 ) * NULLIF ( 19, + COUNT ( * ) * + 9 - ( - COUNT ( * ) ) + - 37 * + 21 / 81 ) AS col1, - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 query I rowsort @@ -29360,7 +29360,7 @@ SELECT + 54 * 89 * 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(30\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(30\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, 30 / COUNT ( * ) AS col0 query I rowsort label-5595 @@ -29871,13 +29871,13 @@ SELECT + 38 + 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-5\) \* \(\- max\(Int64\(9\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-5\) \* \(\- max\(Int64\(9\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - 5 * - MAX ( ALL + 9 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(85\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(85\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 37 / - CAST ( NULL AS INTEGER ) AS col0, 85 / + COUNT ( * ) AS col0 query I rowsort @@ -32177,7 +32177,7 @@ SELECT - COUNT ( * ) AS col2, + NULLIF ( 2, 22 * + - 78 - COUNT ( * ) ) + + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -525 # Datafusion - Expected - -587 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(8\) \* CAST\(\(\- min\(Int64\(77\)\)\) AS Int32\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(8\) \* CAST\(\(\- min\(Int64\(77\)\)\) AS Int64\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 * - ( + 75 ) AS col0, 8 * + CAST ( - MIN ( ALL + 77 ) AS INTEGER ) + 29 AS col0 query I rowsort label-6130 @@ -33850,7 +33850,7 @@ SELECT 41 * + + 70 # Datafusion - Expected - 39 # Datafusion - Expected - 93 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "nullif\(CAST\(Int64\(10\) AS Int32\), \(\- coalesce\(Int64\(33\), \(\- Int64\(91\)\)\)\) \* Int64\(57\)\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "nullif\(CAST\(Int64\(10\) AS Int64\), \(\- coalesce\(Int64\(33\), \(\- Int64\(91\)\)\)\) \* Int64\(57\)\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 AS col0, NULLIF ( + CAST ( 10 AS INTEGER ), - COALESCE ( + 33, - + 91 ) * + 57 ) + + 83 AS col0, + 20 + - 82 * - COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) AS col1 query I rowsort label-6449 @@ -37753,7 +37753,7 @@ SELECT - 18 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3493 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(74\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(92\) \* CASE min\(Int64\(26\)\) WHEN Int64\(69\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN nullif\(Int64\(\-14\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-56\)\) THEN CAST\(Int64\(68\) AS Int32\) \+ Int64\(39\) / Int64\(88\) ELSE NULL END / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(74\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(92\) \* CASE min\(Int64\(26\)\) WHEN Int64\(69\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN nullif\(Int64\(\-14\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-56\)\) THEN CAST\(Int64\(68\) AS Int64\) \+ Int64\(39\) / Int64\(88\) ELSE NULL END / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 48 * 74 + + - 59 AS col1, + 92 * CASE + MIN ( + 26 ) WHEN + 69 * - + COUNT ( * ) THEN NULL WHEN NULLIF ( + - 14, + COUNT ( * ) / - 56 ) THEN + CAST ( + + 68 AS INTEGER ) + 39 / 88 ELSE NULL END / 52 AS col1 query I rowsort label-7192 @@ -38037,7 +38037,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4731 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(30\) WHEN count\(Int64\(19\)\) THEN NULL ELSE CAST\(NULL AS Int32\) \* \(\- Int64\(\-48\)\) END AS col2" at position 0 and "sum\(Int64\(\-83\)\) \* Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(30\) WHEN count\(Int64\(19\)\) THEN NULL ELSE CAST\(NULL AS Int64\) \* \(\- Int64\(\-48\)\) END AS col2" at position 0 and "sum\(Int64\(\-83\)\) \* Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + 30 WHEN + COUNT ( ALL + 19 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * - - 48 END AS col2, SUM ( - 83 ) * - 57 AS col2 query I rowsort label-7246 @@ -38054,7 +38054,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1479 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* CAST\(Int64\(17\) AS Int32\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* CAST\(Int64\(17\) AS Int64\) 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\. SELECT 87 * + CAST ( + 17 AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-7249 @@ -39360,7 +39360,7 @@ SELECT 46 + + 0 + 3 * + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* \(\- CAST\(CAST\(NULL AS Float64\) AS Int32\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* \(\- CAST\(CAST\(NULL AS Float64\) AS Int64\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 95 * - CAST ( + ( + CAST ( NULL AS FLOAT8 ) ) AS INTEGER ) AS col2, + 99 col2 query I rowsort label-7496 @@ -39707,7 +39707,7 @@ SELECT ALL - NULLIF ( + 96, COUNT ( * ) ) + + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 25 AS col1, - CAST ( NULL AS INTEGER ) col1 query I rowsort label-7563 @@ -41998,7 +41998,7 @@ SELECT - + 34 + - 56 + - + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1496 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(\-89\) \+ Int64\(\-15\) \* Int64\(93\) AS col0" at position 0 and "nullif\(CAST\(Int64\(40\) AS Int32\), Int64\(\-29\) \* \(\- Int64\(4\)\) \- Int64\(29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(\-89\) \+ Int64\(\-15\) \* Int64\(93\) AS col0" at position 0 and "nullif\(CAST\(Int64\(40\) AS Int64\), Int64\(\-29\) \* \(\- Int64\(4\)\) \- Int64\(29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 12 + + - 89 + - 15 * + 93 AS col0, NULLIF ( CAST ( 40 AS INTEGER ), - 29 * - + ( + 4 ) - 29 ) AS col0 query I rowsort label-7997 @@ -42753,7 +42753,7 @@ SELECT - 81 * - ( - 46 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-15\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(10\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-15\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(10\) / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 15 ) AS col0, - COUNT ( * ) - 10 / CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8140 @@ -45148,7 +45148,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(76\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(76\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 12 + - + ( - CAST ( NULL AS INTEGER ) ) AS col0, 76 * + + 52 AS col0 query I rowsort @@ -45654,7 +45654,7 @@ SELECT 15, 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(72\)\) \+ CAST\(NULL AS Int32\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(72\)\) \+ CAST\(NULL AS Int64\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, + MIN ( DISTINCT 72 ) + + CAST ( NULL AS INTEGER ) * 30 AS col1 query I rowsort label-8697 @@ -49318,7 +49318,7 @@ SELECT ALL + COUNT ( * ) / - 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-23\)\)\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(14\) \- Int64\(40\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-23\)\)\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(14\) \- Int64\(40\) \+ \(\- CAST\(NULL AS Int64\)\) / Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( - ( - 23 ) ) AS col0, 92 + 14 - 40 + - CAST ( NULL AS INTEGER ) / 48 AS col0 query I rowsort label-9390 @@ -49721,7 +49721,7 @@ SELECT ALL - - 99 + 81 + - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(40\) AS col0" at position 0 and "Int64\(10\) / Int64\(8\) \+ Int64\(43\) \+ Int64\(74\) / \(\- \(\- count\(DISTINCT Int64\(27\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(40\) AS col0" at position 0 and "Int64\(10\) / Int64\(8\) \+ Int64\(43\) \+ Int64\(74\) / \(\- \(\- count\(DISTINCT Int64\(27\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 58 * + ( - CAST ( NULL AS INTEGER ) ) * 40 AS col0, + 10 / + + 8 + 43 + 74 / - - COUNT ( DISTINCT 27 ) AS col0 query I rowsort label-9466 @@ -51543,7 +51543,7 @@ SELECT + 8 * - - 39 * + 3 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(\-89\) \+ Int64\(50\) AS col2" at position 0 and "CAST\(Int64\(\-97\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(\-89\) \+ Int64\(50\) AS col2" at position 0 and "CAST\(Int64\(\-97\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 36 / + + ( - 89 ) + + 50 AS col2, CAST ( + - 97 AS INTEGER ) AS col2 query II rowsort label-9813 @@ -51927,7 +51927,7 @@ SELECT + ( - 72 ) + + 97, 53 * + CAST ( - + 43 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 315 # Datafusion - Expected - -2242 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) / Int64\(8\) \* Int64\(\-45\) AS col2" at position 0 and "\(\- CAST\(sum\(\(\- Int64\(\-59\)\)\) AS Int32\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) / Int64\(8\) \* Int64\(\-45\) AS col2" at position 0 and "\(\- CAST\(sum\(\(\- Int64\(\-59\)\)\) AS Int64\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 59 / 8 * - 45 AS col2, - CAST ( + SUM ( ALL - - 59 ) AS INTEGER ) * + 38 AS col2 query I rowsort label-9887 diff --git a/data/sqlite/random/expr/slt_good_23.slt b/data/sqlite/random/expr/slt_good_23.slt index 2254f8f..17a5384 100644 --- a/data/sqlite/random/expr/slt_good_23.slt +++ b/data/sqlite/random/expr/slt_good_23.slt @@ -4124,7 +4124,7 @@ SELECT - 20 AS col0, 84 - 51 + + 24 / - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 42 col2 query I rowsort label-781 @@ -4953,7 +4953,7 @@ SELECT ( + 65 ) + + 30 AS col1, + 86 * 27 + + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 92 AS col2, + CAST ( NULL AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: @@ -9989,7 +9989,7 @@ SELECT COUNT ( * ) * 39 * + 23 + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(Int64\(\-27\) AS Int32\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(Int64\(\-27\) AS Int64\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - CAST ( - 27 AS INTEGER ) col2, + 86 col2 query I rowsort label-1902 @@ -11891,7 +11891,7 @@ SELECT ALL COUNT ( * ) + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 85 AS col1 query I rowsort label-2263 @@ -13001,7 +13001,7 @@ SELECT - + 10 + 53 AS col2, 53 / + ( 35 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \- count\(Int64\(1\)\) AS count\(\*\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \- count\(Int64\(1\)\) AS count\(\*\) 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\. SELECT + - 4 - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-2472 @@ -14669,7 +14669,7 @@ SELECT + 81 * + 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) / \(\- CAST\(Int64\(\-73\) AS Int32\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) / \(\- CAST\(Int64\(\-73\) AS Int64\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 22 / + - CAST ( - 73 AS INTEGER ) AS col0, 95 AS col0 query I rowsort @@ -16004,7 +16004,7 @@ SELECT - COALESCE ( + - 73, - 0 + + - 45, 33 ) AS col0, 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) \* \(\- coalesce\(nullif\(max\(Int64\(85\)\), Int64\(\-51\) \* Int64\(62\) \* Int64\(18\) \- CASE Int64\(74\) WHEN Int64\(32\) THEN Int64\(13\) \* Int64\(3\) \- Int64\(\-34\) \+ Int64\(91\) / \(\- Int64\(62\)\) \- Int64\(\-62\) END \- Int64\(72\)\), Int64\(\-9\) \* Int64\(2\), Int64\(78\)\)\) \* Int64\(\-58\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) \* \(\- coalesce\(nullif\(max\(Int64\(85\)\), Int64\(\-51\) \* Int64\(62\) \* Int64\(18\) \- CASE Int64\(74\) WHEN Int64\(32\) THEN Int64\(13\) \* Int64\(3\) \- Int64\(\-34\) \+ Int64\(91\) / \(\- Int64\(62\)\) \- Int64\(\-62\) END \- Int64\(72\)\), Int64\(\-9\) \* Int64\(2\), Int64\(78\)\)\) \* Int64\(\-58\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 1 ) * - COALESCE ( + NULLIF ( MAX ( 85 ), + - 51 * 62 * + 18 - CASE 74 WHEN + 32 THEN + 13 * + 3 - - 34 + + 91 / - + 62 - - 62 END - + 72 ), - 9 * + 2, + 78 ) * - 58 * CAST ( NULL AS INTEGER ) AS col2, 49 AS col2 query II rowsort label-3043 @@ -16593,7 +16593,7 @@ SELECT ALL - 69 + - 15 - 19 * + 15 * + + 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 3840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-70\)\)\) \+ \(\- Int64\(\-77\)\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(40\) \* Int64\(24\) \* CAST\(Int64\(4\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-70\)\)\) \+ \(\- Int64\(\-77\)\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(40\) \* Int64\(24\) \* CAST\(Int64\(4\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 70 ) + - - 77 + - 19 AS col0, 40 * 24 * + CAST ( 4 AS INTEGER ) AS col0 query II rowsort label-3157 @@ -19175,7 +19175,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 16 AS col1 query I rowsort label-3651 @@ -20195,7 +20195,7 @@ SELECT DISTINCT + COUNT ( * ) * - 79 * + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-88\) \* coalesce\(Int64\(1\), Int64\(\-42\) / Int64\(73\) \+ Int64\(68\) \* Int64\(\-79\) \* \(\- Int64\(46\)\) \+ Int64\(\-34\)\) \+ CAST\(NULL AS Int32\) \* Int64\(95\) \+ \(\- nullif\(Int64\(10\), \(\- nullif\(Int64\(17\), Int64\(79\) \* Int64\(47\) \+ Int64\(67\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-88\) \* coalesce\(Int64\(1\), Int64\(\-42\) / Int64\(73\) \+ Int64\(68\) \* Int64\(\-79\) \* \(\- Int64\(46\)\) \+ Int64\(\-34\)\) \+ CAST\(NULL AS Int64\) \* Int64\(95\) \+ \(\- nullif\(Int64\(10\), \(\- nullif\(Int64\(17\), Int64\(79\) \* Int64\(47\) \+ Int64\(67\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 88 ) + - - COUNT ( * ) AS col2, - 88 * COALESCE ( + 1, + - 42 / + 73 + + 68 * - 79 * - ( + + 46 ) + - 34 ) + + CAST ( NULL AS INTEGER ) * 95 + - NULLIF ( + 10, - NULLIF ( + 17, + 79 * 47 + 67 ) ) AS col2 query I rowsort label-3843 @@ -20404,7 +20404,7 @@ SELECT ALL 93 / 8 * + 69 * - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 3510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(\-51\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-45\)\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(\-51\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-45\)\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 - - 51 AS col2, CAST ( + ( - - 45 ) AS INTEGER ) * + COUNT ( * ) * 78 AS col2 query I rowsort @@ -21807,7 +21807,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5016 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-6\)\) \* \(\- Int64\(11\)\) \* Int64\(\-76\) AS col2" at position 0 and "coalesce\(Int64\(83\), \(\- sum\(CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-6\)\) \* \(\- Int64\(11\)\) \* Int64\(\-76\) AS col2" at position 0 and "coalesce\(Int64\(83\), \(\- sum\(CAST\(NULL AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL - 6 ) * - ( + 11 ) * - 76 AS col2, + COALESCE ( + + 83, - SUM ( + + CAST ( NULL AS INTEGER ) ) ) AS col2 query I rowsort @@ -22715,7 +22715,7 @@ SELECT + MIN ( ALL + - 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(3\)\) \* Int64\(82\) AS col0" at position 0 and "Int64\(80\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- Int64\(3\)\) \* Int64\(82\) AS col0" at position 0 and "Int64\(80\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) + - ( + + ( + 3 ) ) * + 82 AS col0, 80 * + + 70 AS col0 query I rowsort label-4318 @@ -23123,7 +23123,7 @@ SELECT ALL 73 + - 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(87\) \+ \(\- Int64\(\-14\)\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(57\) \* max\(Int64\(33\)\) / \(\- Int64\(\-38\)\) \+ Int64\(80\) \* Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(87\) \+ \(\- Int64\(\-14\)\) \+ \(\- CAST\(NULL AS Int64\)\) / Int64\(57\) \* max\(Int64\(33\)\) / \(\- Int64\(\-38\)\) \+ Int64\(80\) \* Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 AS col0, 87 + - - 14 + - CAST ( NULL AS INTEGER ) / + 57 * + MAX ( ALL + 33 ) / - - 38 + 80 * + ( - 89 ) AS col0 query I rowsort @@ -24366,7 +24366,7 @@ SELECT ALL - 43 * 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-38\) AS Int32\)\) \- Int64\(31\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-38\) AS Int64\)\) \- Int64\(31\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( + - 38 AS INTEGER ) - 31 AS col0, 75 AS col0 query I rowsort @@ -26223,7 +26223,7 @@ SELECT 40 * - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-11\) \+ CAST\(NULL AS Int32\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-11\) \+ CAST\(NULL AS Int64\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 29 AS col1, - 11 + + CAST ( NULL AS INTEGER ) * 86 col1 query I rowsort label-4987 @@ -28228,7 +28228,7 @@ SELECT ALL - 80 - + NULLIF ( NULLIF ( + 95, - 98 ), - 16 + - - 83 * + 22 + ( + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 376 # Datafusion - Expected - -115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(\-72\) \+ Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int64\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(\-72\) \+ Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 4 AS INTEGER ) * - 94 AS col2, - 72 + - 43 AS col2 # Datafusion - Datafusion expected results: @@ -29469,7 +29469,7 @@ SELECT DISTINCT - 59 + - - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(78\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(78\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 col0, + 78 * + + ( + COUNT ( * ) ) + - ( - CAST ( 99 AS INTEGER ) ) AS col0 query II rowsort label-5604 @@ -31112,7 +31112,7 @@ SELECT NULLIF ( 25, + CAST ( NULL AS INTEGER ) + 98 + 42 ) * - ( + ( + 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 65 * - CAST ( NULL AS INTEGER ) AS col0, 6 AS col0 query I rowsort @@ -31324,7 +31324,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(22\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / Int64\(22\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) / 22 col2, 54 AS col2 query I rowsort label-5954 @@ -32092,7 +32092,7 @@ SELECT - NULLIF ( + COUNT ( - 33 ), - 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(96\), \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(93\) \+ \(\- Int64\(1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(96\), \(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(93\) \+ \(\- Int64\(1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + 96, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) ) + + + COUNT ( * ) AS col2, 93 + - + 1 AS col2 query I rowsort @@ -33023,7 +33023,7 @@ SELECT 79 * + + 76 # Datafusion - Expected - -4783 # Datafusion - Expected - 2 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- nullif\(\(\- \(\- Int64\(\-94\)\)\), \(\- Int64\(44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-98\)\)\) \* \(\- Int64\(50\)\) \* Int64\(\-8\) \* Int64\(0\) / Int64\(\-48\) \* Int64\(25\) / \(\- Int64\(81\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-31\) \+ Int64\(\-90\) \+ CAST\(Int64\(\-74\) AS Int32\) \* Int64\(63\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- nullif\(\(\- \(\- Int64\(\-94\)\)\), \(\- Int64\(44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-98\)\)\) \* \(\- Int64\(50\)\) \* Int64\(\-8\) \* Int64\(0\) / Int64\(\-48\) \* Int64\(25\) / \(\- Int64\(81\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-31\) \+ Int64\(\-90\) \+ CAST\(Int64\(\-74\) AS Int64\) \* Int64\(63\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 22 * - NULLIF ( - + ( - - 94 ), - + 44 + COUNT ( * ) + - 98 ) * - + 50 * - 8 * + 0 / - 48 * 25 / - + 81 * - COUNT ( * ) + - 31 + - 90 + + CAST ( - 74 AS INTEGER ) * 63 AS col0, + COUNT ( * ) + + + COUNT ( * ) AS col0, - 95 AS col0 query I rowsort label-6278 @@ -34041,7 +34041,7 @@ SELECT + 24 + - 11, - 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2905 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(83\) AS col2" at position 0 and "Int64\(\-22\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(83\) AS col2" at position 0 and "Int64\(\-22\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 35 * 83 AS col2, - 22 * - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -37226,7 +37226,7 @@ SELECT + 51 + ( - + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \- CAST\(Int64\(66\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) \* Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(47\) \+ Int64\(53\) \* CASE nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(58\) \+ Int64\(86\) \* Int64\(68\) \+ \(\- \(\- CAST\(Int64\(88\) AS Int32\)\)\) \* Int64\(53\) \+ \(\- Int64\(6\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(0\) THEN Int64\(68\) ELSE Int64\(96\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \- CAST\(Int64\(66\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int64\) \* Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(47\) \+ Int64\(53\) \* CASE nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(58\) \+ Int64\(86\) \* Int64\(68\) \+ \(\- \(\- CAST\(Int64\(88\) AS Int64\)\)\) \* Int64\(53\) \+ \(\- Int64\(6\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(0\) THEN Int64\(68\) ELSE Int64\(96\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 57 - + CAST ( + + 66 AS INTEGER ) + + - COUNT ( * ) - + ( + CAST ( NULL AS INTEGER ) ) * + - 52 + + COUNT ( * ) AS col0, 47 + + 53 * + CASE NULLIF ( COUNT ( * ), + 38 * + - COUNT ( * ) ) WHEN + 58 + 86 * + 68 + - - CAST ( + 88 AS INTEGER ) * 53 + - + 6 THEN COUNT ( * ) WHEN 0 THEN + 68 ELSE 96 END AS col0 query I rowsort @@ -37273,7 +37273,7 @@ SELECT - 62 / + + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19097 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(coalesce\(\(\- Int64\(20\)\), Int64\(\-65\), Int64\(96\) / Int64\(\-7\) \+ Int64\(\-98\), \(\- Int64\(\-61\)\) \* Int64\(6\)\), Int64\(\-25\)\)\) / \(\- CAST\(Int64\(58\) AS Int32\)\) \+ \(\- Int64\(5\)\) \* Int64\(91\) \* Int64\(42\) \+ Int64\(13\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(coalesce\(\(\- Int64\(20\)\), Int64\(\-65\), Int64\(96\) / Int64\(\-7\) \+ Int64\(\-98\), \(\- Int64\(\-61\)\) \* Int64\(6\)\), Int64\(\-25\)\)\) / \(\- CAST\(Int64\(58\) AS Int64\)\) \+ \(\- Int64\(5\)\) \* Int64\(91\) \* Int64\(42\) \+ Int64\(13\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( + COALESCE ( - + 20, - 65, ( 96 ) / - 7 + - 98, - - 61 * 6 ), - 25 ) / - CAST ( 58 AS INTEGER ) + - + 5 * + 91 * + 42 + + 13 AS col0, 81 AS col0 query I rowsort label-7092 @@ -37320,7 +37320,7 @@ SELECT ( - - ( + CASE + CAST ( NULLIF ( - + 27, 29 + ( - 79 ) ) AS INTEGER ) WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - -7337 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(99\)\) AS Int32\) \* \(\- Int64\(\-43\)\) \+ Int64\(\-55\) \* Int64\(56\) AS col0" at position 0 and "Int64\(16\) \* nullif\(count\(Int64\(82\)\), Int64\(90\) \* Int64\(62\) \+ \(\- CAST\(Int64\(76\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(99\)\) AS Int64\) \* \(\- Int64\(\-43\)\) \+ Int64\(\-55\) \* Int64\(56\) AS col0" at position 0 and "Int64\(16\) \* nullif\(count\(Int64\(82\)\), Int64\(90\) \* Int64\(62\) \+ \(\- CAST\(Int64\(76\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - + 99 AS INTEGER ) * - - 43 + - 55 * + 56 AS col0, + 16 * + NULLIF ( + + COUNT ( ALL 82 ), + 90 * 62 + - CAST ( 76 AS INTEGER ) ) AS col0 query II rowsort @@ -38268,7 +38268,7 @@ SELECT ALL + COUNT ( * ) / + 40 + - - 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int32\) \* CASE Int64\(20\) WHEN Int64\(\-63\) \+ Int64\(5\) THEN Int64\(61\) WHEN CAST\(Int64\(67\) AS Int32\) THEN NULL ELSE Int64\(\-83\) END / Int64\(\-9\) \* Int64\(42\) \+ \(\- nullif\(Int64\(87\), Int64\(\-64\)\)\) \+ Int64\(98\) \* Int64\(\-83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int64\) \* CASE Int64\(20\) WHEN Int64\(\-63\) \+ Int64\(5\) THEN Int64\(61\) WHEN CAST\(Int64\(67\) AS Int64\) THEN NULL ELSE Int64\(\-83\) END / Int64\(\-9\) \* Int64\(42\) \+ \(\- nullif\(Int64\(87\), Int64\(\-64\)\)\) \+ Int64\(98\) \* Int64\(\-83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - - 60 * CAST ( NULL AS INTEGER ) * CASE + + 20 WHEN - 63 + + 5 THEN 61 WHEN ( CAST ( + 67 AS INTEGER ) ) THEN NULL ELSE + ( - 83 ) END / - 9 * + + 42 + - + NULLIF ( + + 87, + - 64 ) + 98 * - 83 AS col1, COUNT ( * ) / 39 AS col1 query I rowsort @@ -39189,7 +39189,7 @@ SELECT ALL + ( + + 98 ) - + - 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-11\) AS Int32\) \* Int64\(13\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-11\) AS Int64\) \* Int64\(13\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( CAST ( + - 11 AS INTEGER ) ) * + 13 AS col1, + 36 AS col1 query I rowsort label-7457 @@ -40037,7 +40037,7 @@ SELECT ( + - 85 ) + - - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1, 13 AS col1 query I rowsort @@ -42706,7 +42706,7 @@ SELECT - 91 + + + COALESCE ( - - 41, + + 17, + + 72 ) + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-8133 @@ -44926,7 +44926,7 @@ SELECT ALL - SUM ( DISTINCT + 84 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "CAST\(Int64\(10\) AS Int32\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "CAST\(Int64\(10\) AS Int64\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 10 AS col0, CAST ( 10 AS INTEGER ) * - 76 AS col0 query I rowsort @@ -46840,7 +46840,7 @@ SELECT ALL 24 / + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(18\), Int64\(\-23\) \* Int64\(92\)\) AS col0" at position 0 and "Int64\(\-42\) \+ max\(Int64\(\-7\)\) \* \(\- \(\- coalesce\(Int64\(\-5\), CASE Int64\(18\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(3\) \+ Int64\(59\) \- Int64\(46\) THEN Int64\(\-61\) \+ Int64\(58\) \+ Int64\(62\) \- Int64\(22\) \* nullif\(\(\- CAST\(\(\- CASE Int64\(\-11\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-99\) END\) AS Int32\)\), Int64\(\-37\) \* Int64\(84\)\) / Int64\(13\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(\-83\), Int64\(\-45\) \- Int64\(52\)\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(18\), Int64\(\-23\) \* Int64\(92\)\) AS col0" at position 0 and "Int64\(\-42\) \+ max\(Int64\(\-7\)\) \* \(\- \(\- coalesce\(Int64\(\-5\), CASE Int64\(18\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(3\) \+ Int64\(59\) \- Int64\(46\) THEN Int64\(\-61\) \+ Int64\(58\) \+ Int64\(62\) \- Int64\(22\) \* nullif\(\(\- CAST\(\(\- CASE Int64\(\-11\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-99\) END\) AS Int64\)\), Int64\(\-37\) \* Int64\(84\)\) / Int64\(13\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(\-83\), Int64\(\-45\) \- Int64\(52\)\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( + + 18, - 23 * + 92 ) AS col0, - 42 + MAX ( ALL - 7 ) * - - COALESCE ( ( + - 5 ), + CASE + 18 WHEN - COUNT ( * ) * + 3 + + 59 - + 46 THEN - 61 + 58 + 62 - + 22 * + + NULLIF ( ( - CAST ( - CASE - 11 WHEN - COUNT ( * ) THEN - 99 END AS INTEGER ) ), + - 37 * 84 ) / 13 WHEN COUNT ( * ) THEN + COALESCE ( - 83, - 45 - 52 ) END ) AS col0 query I rowsort label-8916 @@ -46924,7 +46924,7 @@ SELECT ALL - COUNT ( * ) AS col1, + 11 * - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ \(\- CAST\(NULL AS Int32\)\) \+ CAST\(Int64\(76\) AS Int32\) \* CASE Int64\(17\) WHEN Int64\(\-23\) THEN CAST\(NULL AS Int32\) \- Int64\(\-37\) \* Int64\(60\) END AS col1" at position 0 and "Int64\(\-42\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ \(\- CAST\(NULL AS Int64\)\) \+ CAST\(Int64\(76\) AS Int64\) \* CASE Int64\(17\) WHEN Int64\(\-23\) THEN CAST\(NULL AS Int64\) \- Int64\(\-37\) \* Int64\(60\) END AS col1" at position 0 and "Int64\(\-42\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 + - CAST ( NULL AS INTEGER ) + + CAST ( + 76 AS INTEGER ) * CASE 17 WHEN - 23 THEN CAST ( NULL AS INTEGER ) - + - 37 * 60 END AS col1, - 42 + 93 AS col1 query I rowsort label-8932 @@ -47107,7 +47107,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CASE Int64\(41\) WHEN Int64\(15\) \* Int64\(\-25\) \+ Int64\(50\) \- Int64\(68\) \* Int64\(\-48\) \* Int64\(\-14\) THEN Int64\(43\) ELSE NULL END\) AS Int32\)\) \* Int64\(\-80\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CASE Int64\(41\) WHEN Int64\(15\) \* Int64\(\-25\) \+ Int64\(50\) \- Int64\(68\) \* Int64\(\-48\) \* Int64\(\-14\) THEN Int64\(43\) ELSE NULL END\) AS Int64\)\) \* Int64\(\-80\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - CASE 41 WHEN 15 * - 25 + 50 - + 68 * - 48 * + - 14 THEN + 43 ELSE NULL END AS INTEGER ) * + - 80 AS col0, 70 AS col0 query I rowsort @@ -47288,7 +47288,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -70225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-82\)\)\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(39\)\) AS Int32\) \* Int64\(36\) \* Int64\(50\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-82\)\)\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(39\)\) AS Int64\) \* Int64\(36\) \* Int64\(50\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( - - 82 ) AS col1, + CAST ( - + 39 AS INTEGER ) * + 36 * 50 + - 25 AS col1 # Datafusion - Types were automatically converted from: @@ -48320,7 +48320,7 @@ SELECT DISTINCT + MIN ( + + 40 ) + + 40 # Datafusion - Expected - -5250767 # Datafusion - Expected - NULL # Datafusion - Expected - 2768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- nullif\(Int64\(70\), Int64\(19\)\)\) \+ Int64\(\-21\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-79\) \* \(\- coalesce\(Int64\(\-19\), coalesce\(Int64\(85\), \(\- Int64\(\-61\)\) \- Int64\(65\), Int64\(\-65\)\), Int64\(80\) \* Int64\(\-41\) \- Int64\(78\) \+ \(\- \(\- Int64\(65\)\)\) \* Int64\(55\) \+ Int64\(91\) \* max\(Int64\(\-94\)\) \* Int64\(76\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(66\) \- Int64\(88\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- nullif\(Int64\(70\), Int64\(19\)\)\) \+ Int64\(\-21\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-79\) \* \(\- coalesce\(Int64\(\-19\), coalesce\(Int64\(85\), \(\- Int64\(\-61\)\) \- Int64\(65\), Int64\(\-65\)\), Int64\(80\) \* Int64\(\-41\) \- Int64\(78\) \+ \(\- \(\- Int64\(65\)\)\) \* Int64\(55\) \+ Int64\(91\) \* max\(Int64\(\-94\)\) \* Int64\(76\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(66\) \- Int64\(88\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 90 + - NULLIF ( + 70, + 19 ) + - 21 + - - 53 * ( - 79 ) * - + COALESCE ( - 19, + COALESCE ( 85, - - 61 - + 65, - 65 ), + 80 * + + ( + ( - 41 ) ) - 78 + - - ( 65 ) * + 55 + + 91 * MAX ( ALL ( - 94 ) ) * + + ( + 76 ), - COUNT ( * ) * + 43 / + + COUNT ( * ) ) * + + 66 - + 88 AS col2, CAST ( NULL AS INTEGER ) + + 24 AS col2, + + 39 * 3 * + 23 + + 77 # Datafusion - Types were automatically converted from: @@ -49761,7 +49761,7 @@ SELECT - - 25 * + NULLIF ( - + 23, - 24 ) * + ( - + 76 ) - + 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) \* Int64\(28\) \* max\(DISTINCT \(\- Int64\(40\)\)\) \- Int64\(\-19\) AS col0" at position 0 and "Int64\(73\) \- Int64\(29\) / max\(Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\) \* Int64\(28\) \* max\(DISTINCT \(\- Int64\(40\)\)\) \- Int64\(\-19\) AS col0" at position 0 and "Int64\(73\) \- Int64\(29\) / max\(Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 28 * MAX ( DISTINCT - + 40 ) - - 19 AS col0, 73 - + 29 / + MAX ( + - 92 ) AS col0 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_24.slt b/data/sqlite/random/expr/slt_good_24.slt index 5590c1b..56db837 100644 --- a/data/sqlite/random/expr/slt_good_24.slt +++ b/data/sqlite/random/expr/slt_good_24.slt @@ -1030,7 +1030,7 @@ SELECT DISTINCT 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -240 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-80\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-80\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 * - 80 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-189 @@ -1969,7 +1969,7 @@ SELECT ALL + 37 + - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 51 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-372 @@ -2001,7 +2001,7 @@ SELECT 77 * + ( + + MAX ( ALL 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 query I rowsort @@ -3015,7 +3015,7 @@ SELECT ALL + 33 + + + 80 + - COUNT ( * ) * 66 - + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-85\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-85\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( - - 85 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-573 @@ -4250,7 +4250,7 @@ SELECT MAX ( ALL + 23 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "\(\- CAST\(\(\- avg\(CAST\(\(\- Int64\(\-92\)\) AS Int32\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "\(\- CAST\(\(\- avg\(CAST\(\(\- Int64\(\-92\)\) AS Int64\)\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 17 AS col1, - CAST ( - + AVG ( CAST ( - - 92 AS INTEGER ) ) AS INTEGER ) col1 query III rowsort @@ -4311,7 +4311,7 @@ SELECT + 43 + - - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -7007 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(91\) \* CAST\(\(\- nullif\(Int64\(77\), Int64\(2\) \+ \(\- Int64\(\-52\)\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(91\) \* CAST\(\(\- nullif\(Int64\(77\), Int64\(2\) \+ \(\- Int64\(\-52\)\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81 AS col2, 91 * + CAST ( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: @@ -5754,7 +5754,7 @@ SELECT ALL - 34 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "CAST\(Int64\(31\) AS Int32\) / \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "CAST\(Int64\(31\) AS Int64\) / \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 99 ) AS col1, CAST ( 31 AS INTEGER ) / - + 9 AS col1 query II rowsort label-1098 @@ -6006,7 +6006,7 @@ SELECT + 30 + + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -1691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col0" at position 0 and "nullif\(Int64\(\-89\), \(\- CAST\(Int64\(48\) AS Int32\)\)\) \* \(\- Int64\(\-19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col0" at position 0 and "nullif\(Int64\(\-89\), \(\- CAST\(Int64\(48\) AS Int64\)\)\) \* \(\- Int64\(\-19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST ( + 48 AS INTEGER ) ) * - - 19 AS col0 query I rowsort label-1146 @@ -7585,7 +7585,7 @@ SELECT + + 33 col0, - ( - - 30 ) * + + 3 + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6276 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(\-59\) AS Int32\) \+ \(\- Int64\(93\)\) \* \(\- Int64\(\-18\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(\-59\) AS Int64\) \+ \(\- Int64\(93\)\) \* \(\- Int64\(\-18\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 * + CAST ( - 59 AS INTEGER ) + + ( - + 93 ) * - - 18 * + + COUNT ( * ) AS col1, - 43 AS col1 query III rowsort @@ -7673,7 +7673,7 @@ SELECT + 45 * + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -199584 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-44\) \* Int64\(63\) AS col1" at position 0 and "Int64\(12\) \+ \(\- nullif\(CAST\(NULL AS Int32\), Int64\(\-44\) \* CAST\(NULL AS Int32\) \+ Int64\(\-5\) \* Int64\(\-58\) \+ Int64\(\-94\)\)\) \- Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-44\) \* Int64\(63\) AS col1" at position 0 and "Int64\(12\) \+ \(\- nullif\(CAST\(NULL AS Int64\), Int64\(\-44\) \* CAST\(NULL AS Int64\) \+ Int64\(\-5\) \* Int64\(\-58\) \+ Int64\(\-94\)\)\) \- Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 44 * + CAST ( NULL AS INTEGER ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -7925,7 +7925,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1406 # Datafusion - Expected - -87472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2 query I rowsort @@ -9395,7 +9395,7 @@ SELECT DISTINCT - COUNT ( * ) / - 70 * 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 326784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(74\) \* CAST\(Int64\(69\) AS Int32\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(74\) \* CAST\(Int64\(69\) AS Int64\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 AS col2, + 74 * CAST ( + 69 AS INTEGER ) * 64 AS col2 query I rowsort label-1788 @@ -10220,7 +10220,7 @@ SELECT 16 * + - 63 - + NULLIF ( 61, - 89 ) + + 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 99 + - - CAST ( NULL AS INTEGER ) AS col0, - 60 AS col0 query I rowsort @@ -14717,7 +14717,7 @@ SELECT ALL - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-11\)\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(23\)\), Int64\(20\)\) AS Int32\) \* \(\- count\(\(\- Int64\(24\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-11\)\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(23\)\), Int64\(20\)\) AS Int64\) \* \(\- count\(\(\- Int64\(24\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - 11 ) AS col2, CAST ( + NULLIF ( + ( - + 23 ), 20 ) AS INTEGER ) * - COUNT ( - + 24 ) AS col2 query I rowsort @@ -17125,7 +17125,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4860 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* CAST\(\(\- nullif\(Int64\(\-54\), Int64\(32\) \* Int64\(42\) \+ Int64\(\-19\) \+ CASE Int64\(\-16\) WHEN \(\- Int64\(74\)\) \* Int64\(\-20\) THEN NULL WHEN Int64\(73\) THEN NULL ELSE Int64\(\-16\) \* Int64\(90\) END\)\) AS Int32\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* CAST\(\(\- nullif\(Int64\(\-54\), Int64\(32\) \* Int64\(42\) \+ Int64\(\-19\) \+ CASE Int64\(\-16\) WHEN \(\- Int64\(74\)\) \* Int64\(\-20\) THEN NULL WHEN Int64\(73\) THEN NULL ELSE Int64\(\-16\) \* Int64\(90\) END\)\) AS Int64\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 * CAST ( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS INTEGER ) AS col1, 66 AS col1 query I rowsort label-3273 @@ -17382,7 +17382,7 @@ SELECT 79 + - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1022 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int32\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int64\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 73 * + - 14 col0, + COUNT ( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX ( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN ( - + CAST ( NULL AS INTEGER ) ) ), + + COUNT ( * ) ) ) AS col0 query I rowsort @@ -19290,7 +19290,7 @@ SELECT ALL - SUM ( + 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0 query I rowsort label-3685 @@ -23516,7 +23516,7 @@ SELECT ALL 61 + CAST ( + 83 AS INTEGER ) * - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-37\) \+ Int64\(96\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-37\) \+ Int64\(96\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 2 col2, - 37 + 96 + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -25207,7 +25207,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int32\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int64\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 17 AS col1, - 31 + CASE COUNT ( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN ( + + 47 ) + + - CAST ( 3 AS INTEGER ) * - 36 THEN 81 * - 76 + 15 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) END AS col1 query I rowsort label-4826 @@ -25308,7 +25308,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 5 / CAST ( NULL AS INTEGER ) AS col1, 53 AS col1 query I rowsort @@ -27535,7 +27535,7 @@ SELECT - ( 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 AS col1 query I rowsort label-5270 @@ -32244,7 +32244,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 + MAX ( - 92 ) + - - COUNT ( * ) * - 52 / - 33 AS col2, CAST ( - 3 AS INTEGER ) AS col2 query I rowsort @@ -37654,7 +37654,7 @@ SELECT ALL + 55 * 2 + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\), Int64\(3\) \* avg\(DISTINCT Int64\(66\)\)\) \- max\(CAST\(NULL AS Int32\)\) \+ Int64\(\-67\) \+ Int64\(\-56\) \+ \(\- min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- Int64\(42\)\) \* Int64\(46\) \- Int64\(\-73\) \* Int64\(21\) AS col2" at position 0 and "Int64\(21\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\), Int64\(3\) \* avg\(DISTINCT Int64\(66\)\)\) \- max\(CAST\(NULL AS Int64\)\) \+ Int64\(\-67\) \+ Int64\(\-56\) \+ \(\- min\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\) \* \(\- Int64\(42\)\) \* Int64\(46\) \- Int64\(\-73\) \* Int64\(21\) AS col2" at position 0 and "Int64\(21\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + 3 * AVG ( DISTINCT + 66 ) ) - + MAX ( ( + ( + CAST ( NULL AS INTEGER ) ) ) ) + - 67 + - 56 + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 42 * ( + 46 ) - - 73 * 21 AS col2, + 21 * + 39 AS col2 query I rowsort @@ -38725,13 +38725,13 @@ SELECT ALL + ( 18 ) - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(58\) \+ \(\- Int64\(\-18\)\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) \* Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(\-21\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(67\) \* Int64\(\-18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) ELSE NULL END, \(\- Int64\(\-77\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(58\) \+ \(\- Int64\(\-18\)\) \+ \(\- CAST\(Int64\(80\) AS Int64\)\) \* Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(\-21\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(67\) \* Int64\(\-18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) ELSE NULL END, \(\- Int64\(\-77\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( ( ( + 82 ) ), 58 + - + ( - 18 ) + - CAST ( + 80 AS INTEGER ) * + + 94 - + COUNT ( * ) ) * + COUNT ( * ) AS col1, NULLIF ( + CASE + - 21 WHEN + - CAST ( NULL AS INTEGER ) THEN 67 * - 18 + - COUNT ( * ) + - 18 ELSE NULL END, - - 77 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1967625 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int64\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 15 * - + CASE + ( CAST ( NULL AS INTEGER ) ) WHEN + - 32 THEN + - 73 * - 84 WHEN 61 * + + 22 + - 21 * - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) THEN NULL ELSE + MIN ( DISTINCT + 40 ) * + - 71 + - COALESCE ( + 75, - 54 * + - COUNT ( * ) * + ( + - 30 ) ) END * 45 AS col2, - 95 AS col2 query I rowsort @@ -44742,7 +44742,7 @@ SELECT DISTINCT - 39 * - 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int64\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 # Datafusion - Types were automatically converted from: @@ -45455,7 +45455,7 @@ SELECT ALL - COUNT ( * ) * - + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int64\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 87 * - 69 * - + 74 / ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) col1, 91 * + CAST ( + 32 AS INTEGER ) + + - COUNT ( * ) * + - COUNT ( * ) * + - COALESCE ( - ( COUNT ( * ) ), 52 + + + 93, + 38 + NULLIF ( CAST ( NULL AS INTEGER ), - 49 ) ) - SUM ( ALL + ( 9 ) ) AS col1 query I rowsort label-8705 @@ -45466,7 +45466,7 @@ SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 55, + + 57 ) + + COUNT ( * ) + - + NULLIF ( 47, + - CAST ( - + 19 AS FLOAT8 ) ) * - 27 AS col1 query I rowsort @@ -47542,7 +47542,7 @@ SELECT ALL + COUNT ( * ) * - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(28\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(71\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(28\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(71\) \+ CAST\(NULL AS Int64\) \* \(\- Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 + 28 col0, 13 + 71 + CAST ( NULL AS INTEGER ) * - - 86 col0 # Datafusion - Types were automatically converted from: @@ -47931,7 +47931,7 @@ NULL # Datafusion - Expected - -507091184 # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-16\)\)\) \- Int64\(56\) \* Int64\(\-30\) \* Int64\(\-49\) \* Int64\(80\) \* Int64\(77\) AS col2" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(\(\- CASE \(\- Int64\(27\)\) WHEN \(\- Int64\(7\)\) THEN NULL WHEN Int64\(85\) \+ Int64\(\-33\) \+ \(\- avg\(Int64\(\-59\)\)\) \* Int64\(\-6\) THEN Int64\(\-31\) END\) AS Int32\)\)\) / \(\- Int64\(\-3\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-16\)\)\) \- Int64\(56\) \* Int64\(\-30\) \* Int64\(\-49\) \* Int64\(80\) \* Int64\(77\) AS col2" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(\(\- CASE \(\- Int64\(27\)\) WHEN \(\- Int64\(7\)\) THEN NULL WHEN Int64\(85\) \+ Int64\(\-33\) \+ \(\- avg\(Int64\(\-59\)\)\) \* Int64\(\-6\) THEN Int64\(\-31\) END\) AS Int64\)\)\) / \(\- Int64\(\-3\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MAX ( DISTINCT + - 16 ) - 56 * - 30 * - 49 * 80 * + 77 AS col2, ( + ( - - 97 ) ), 1 + - - CAST ( + - CASE + - ( + 27 ) WHEN - ( 7 ) THEN NULL WHEN + 85 + + - 33 + - + AVG ( - 59 ) * - 6 THEN - 31 END AS INTEGER ) / - ( - 3 ) col2 query I rowsort label-9175 @@ -50284,7 +50284,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 query I rowsort label-9630 @@ -50829,7 +50829,7 @@ SELECT ALL + 85 + - + 98 + + - 52 / 10 - + 25 * + 95 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int64\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 36 + COUNT ( * ) + - CAST ( 10 AS INTEGER ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0 query I rowsort @@ -51082,7 +51082,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, + 24 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_25.slt b/data/sqlite/random/expr/slt_good_25.slt index 13fc4b0..8ea37ef 100644 --- a/data/sqlite/random/expr/slt_good_25.slt +++ b/data/sqlite/random/expr/slt_good_25.slt @@ -96,7 +96,7 @@ SELECT DISTINCT + 90 * - - 39 * ( + 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 query I rowsort @@ -419,7 +419,7 @@ SELECT ALL 50 * - + 93 + + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-83\) \* \(\- \(\- CAST\(Int64\(9\) AS Int32\)\)\) \+ Int64\(\-26\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-83\) \* \(\- \(\- CAST\(Int64\(9\) AS Int64\)\)\) \+ Int64\(\-26\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 89 AS col2, + ( + - 83 ) * - - CAST ( + 9 AS INTEGER ) + - 26 + - ( + 99 ) AS col2 query I rowsort @@ -541,7 +541,7 @@ SELECT 22 * - 32 * MIN ( 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 AS col1, CAST ( NULL AS INTEGER ) + - + ( + 68 ) AS col1 query I rowsort @@ -787,7 +787,7 @@ SELECT - + 72 * ( - - 65 ) AS col0 # Datafusion - Expected - -3886 # Datafusion - Expected - 35 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(35\), Int64\(\-56\), CAST\(Int64\(30\) AS Int32\), \(\- Int64\(75\)\) \* Int64\(67\)\) AS col2" at position 1 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(35\), Int64\(\-56\), CAST\(Int64\(30\) AS Int64\), \(\- Int64\(75\)\) \* Int64\(67\)\) AS col2" at position 1 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 67 * 58, + COALESCE ( + 35, - 56, ( + CAST ( 30 AS INTEGER ) ), - + 75 * + 67 ) AS col2, 52 AS col2 query I rowsort @@ -891,7 +891,7 @@ SELECT ALL - 16 * 12 + 46 * + 54 AS col0, - 69 * - 15 * + 48 * + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-15\) \+ \(\- Int64\(75\)\) \* \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) \- Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-15\) \+ \(\- Int64\(75\)\) \* \(\- \(\- sum\(CAST\(NULL AS Int64\)\)\)\) \- Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 15 + - + 75 * - ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) - ( - 6 ) AS col1 query I rowsort label-164 @@ -1016,7 +1016,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / \(\- Int64\(\-48\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(28\)\) / Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / \(\- Int64\(\-48\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(28\)\) / Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 85 / - - 48 AS col2, CAST ( NULL AS INTEGER ) + - + 28 / - 50 AS col2 query I rowsort @@ -1924,7 +1924,7 @@ SELECT COUNT ( * ) + + + 19 + - 9 AS col2, 12 + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(96\) / Int64\(\-80\) AS col0" at position 0 and "Int64\(10\) \+ CAST\(\(\- Int64\(\-1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(96\) / Int64\(\-80\) AS col0" at position 0 and "Int64\(10\) \+ CAST\(\(\- Int64\(\-1\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 - 96 / - 80 AS col0, + 10 + + CAST ( - - 1 AS INTEGER ) AS col0 query I rowsort @@ -2858,7 +2858,7 @@ SELECT ( - 64 ) + + 41 AS col2 # Datafusion - Expected - 66 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- count\(Int64\(66\)\)\) \* Int64\(\-57\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \* \(\- CAST\(Int64\(74\) AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- count\(Int64\(66\)\)\) \* Int64\(\-57\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-33\) \* \(\- CAST\(Int64\(74\) AS Int64\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 AS col0, COALESCE ( ( + + COUNT ( * ) ), + 84 + + 55 ), + - COUNT ( 66 ) * - 57 * - CAST ( NULL AS INTEGER ) + - 33 * - CAST ( + 74 AS INTEGER ) AS col0 query I rowsort label-537 @@ -3877,7 +3877,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT \(\- Int64\(86\)\)\) \* Int64\(39\) \* CAST\(Int64\(\-7\) AS Float64\) \- Int64\(21\) \* Int64\(58\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(75\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(2\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT \(\- Int64\(86\)\)\) \* Int64\(39\) \* CAST\(Int64\(\-7\) AS Float64\) \- Int64\(21\) \* Int64\(58\) / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(75\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(2\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + AVG ( DISTINCT - + 86 ) * + + 39 * + + CAST ( + - 7 AS FLOAT8 ) - + + 21 * 58 / - CAST ( NULL AS INTEGER ) + + 75 AS col2, - CAST ( - + 2 AS INTEGER ) AS col2 query I rowsort @@ -5371,7 +5371,7 @@ SELECT DISTINCT ( + - NULLIF ( - 65, CAST ( NULL AS INTEGER ) ) ) * 44 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 19 AS col1, 32 col0 query II rowsort @@ -6177,7 +6177,7 @@ SELECT DISTINCT COUNT ( * ) * - - 57 * + COUNT ( - 61 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 col2, ( + - 3 ) * + + COUNT ( * ) / + 34 + + - CAST ( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS INTEGER ) col2 # Datafusion - Datafusion expected results: @@ -8245,7 +8245,7 @@ SELECT ALL + + 90 / + + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, 64 col1 # Datafusion - Datafusion expected results: @@ -11393,7 +11393,7 @@ SELECT ALL 15 * 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- CAST\(Int64\(40\) AS Int32\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- CAST\(Int64\(40\) AS Int64\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 + + - CAST ( + 40 AS INTEGER ) AS col2, 61 col2 query I rowsort @@ -13607,7 +13607,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int32\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int64\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 * + COUNT ( * ) AS col1, ( + CAST ( + + 16 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-2600 @@ -14605,7 +14605,7 @@ SELECT - 26 * - 95 AS col2, + 44 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int64\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 0 AS INTEGER ) * + - CASE - + 28 WHEN 70 * - - ( - 47 ) THEN + 50 END - + 82 AS col0, COUNT ( * ) * + NULLIF ( 18, + + 38 * + 8 / + 76 ) * - + 80 + - 58 + + - NULLIF ( - NULLIF ( + 40, + 76 * 86 * + + 86 ), - - 72 * 9 + - + 64 ) - + CASE - 97 WHEN - + CAST ( NULL AS INTEGER ) THEN + 21 ELSE - 14 * + + COUNT ( * ) + - + 75 / - COUNT ( * ) END AS col0 query I rowsort @@ -15000,7 +15000,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-79\) \- Int64\(63\) / Int64\(\-89\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-79\) \- Int64\(63\) / Int64\(\-89\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, - 79 - + 63 / - 89 + + 67 AS col1 query I rowsort @@ -15609,7 +15609,7 @@ SELECT DISTINCT ( - + 17 ) / 6 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -3777 # Datafusion - Expected - -4050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-4\) AS col2" at position 0 and "Int64\(7\) \+ \(\- Int64\(\-88\)\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-4\) AS col2" at position 0 and "Int64\(7\) \+ \(\- Int64\(\-88\)\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - 4 AS col2, 7 + - - 88 * - 43 AS col2, - 54 * + 75 AS col0 query I rowsort label-2980 @@ -15837,7 +15837,7 @@ SELECT + SUM ( ALL 78 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\)\) / \(\- \(\- Int64\(99\)\)\) \* max\(Int64\(91\)\) AS col0" at position 0 and "Int64\(42\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT CAST\(NULL AS Int64\)\)\)\) / \(\- \(\- Int64\(99\)\)\) \* max\(Int64\(91\)\) AS col0" at position 0 and "Int64\(42\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / - ( - + 99 ) * MAX ( ALL + 91 ) AS col0, 42 * - 98 AS col0 query I rowsort @@ -18762,7 +18762,7 @@ SELECT - + ( ( + COUNT ( * ) ) ) * 36 * 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(66\) \+ nullif\(Int64\(18\), CASE Int64\(37\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) THEN Int64\(31\) \* CAST\(Int64\(32\) AS Int32\) ELSE Int64\(\-42\) \+ CASE Int64\(41\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) THEN NULL WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(65\) \+ coalesce\(Int64\(93\), Int64\(5\)\) WHEN Int64\(29\) THEN Int64\(\-85\) END / Int64\(60\) END \* Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(66\) \+ nullif\(Int64\(18\), CASE Int64\(37\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) THEN Int64\(31\) \* CAST\(Int64\(32\) AS Int64\) ELSE Int64\(\-42\) \+ CASE Int64\(41\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) THEN NULL WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(65\) \+ coalesce\(Int64\(93\), Int64\(5\)\) WHEN Int64\(29\) THEN Int64\(\-85\) END / Int64\(60\) END \* Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 86 col0, 66 + NULLIF ( + + 18, + CASE 37 WHEN + COUNT ( * ) + 20 + - CAST ( + + COUNT ( * ) AS INTEGER ) THEN 31 * + CAST ( 32 AS INTEGER ) ELSE - 42 + CASE + 41 WHEN 32 + + COUNT ( * ) * - 96 THEN NULL WHEN 88 + - ( - COUNT ( * ) ) THEN 65 + ( + COALESCE ( + 93, 5 ) ) WHEN + 29 THEN - 85 END / 60 END * - 68 ) AS col0 query I rowsort @@ -20433,7 +20433,7 @@ SELECT ALL - 46 + + - 59 AS col1 # Datafusion - Expected - 128 # Datafusion - Expected - -2210 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(66\) AS col0" at position 0 and "CASE coalesce\(CAST\(NULL AS Int32\), Int64\(\-38\) \* Int64\(35\) / CAST\(Int64\(\-14\) AS Int32\) \+ Int64\(87\)\) WHEN \(\- \(\- Int64\(26\)\)\) / Int64\(61\) \* Int64\(30\) THEN NULL WHEN Int64\(55\) THEN Int64\(82\) END \+ Int64\(\-90\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(66\) AS col0" at position 0 and "CASE coalesce\(CAST\(NULL AS Int64\), Int64\(\-38\) \* Int64\(35\) / CAST\(Int64\(\-14\) AS Int64\) \+ Int64\(87\)\) WHEN \(\- \(\- Int64\(26\)\)\) / Int64\(61\) \* Int64\(30\) THEN NULL WHEN Int64\(55\) THEN Int64\(82\) END \+ Int64\(\-90\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 62 + + 66 AS col0, - COUNT ( * ) * 34 * 65, + CASE COALESCE ( CAST ( NULL AS INTEGER ), - 38 * 35 / CAST ( + - 14 AS INTEGER ) + ( + 87 ) ) WHEN - - ( 26 ) / + + 61 * + ( + 30 ) THEN NULL WHEN + 55 THEN + 82 END + - 90 AS col0 query I rowsort @@ -20975,7 +20975,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 66 AS col0, - ( + CAST ( NULL AS INTEGER ) ) * + ( CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -22365,7 +22365,7 @@ SELECT ALL 60 * - 81 - - + 7 + + + 1 / - COUNT ( * ) - + 96 * + 28 - + 58 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 806 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* nullif\(Int64\(25\), Int64\(\-12\)\) \+ Int64\(6\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* nullif\(Int64\(25\), Int64\(\-12\)\) \+ Int64\(6\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 32 * NULLIF ( 25, - 12 ) + + 6 AS col0, ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) col0 query I rowsort @@ -26110,7 +26110,7 @@ SELECT - 54 + 25 * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, + 13 AS col1 query I rowsort @@ -27904,7 +27904,7 @@ SELECT - + 73 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 67 + - + COUNT ( * ) + + 74 * + 80 AS col1 query I rowsort @@ -29733,7 +29733,7 @@ SELECT DISTINCT + SUM ( DISTINCT + 72 ), - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + - 4 AS INTEGER ) col2, + COUNT ( * ) AS col2 query I rowsort label-5688 @@ -29938,7 +29938,7 @@ SELECT - 78 * - + ( - - COUNT ( + ( + - 55 ) ) ) + 31 AS col2, + 81 + - + 41 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-22\) \+ CAST\(Int64\(50\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-22\) \+ CAST\(Int64\(50\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 10 AS col2, - 22 + CAST ( 50 AS INTEGER ) AS col2 query II rowsort @@ -31443,7 +31443,7 @@ SELECT DISTINCT - 63 AS col0, - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 col0, + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), + + 32, 21 * ( - + ( + 82 ) ) - + + 55 - + 29 - + CAST ( 81 AS FLOAT8 ) ) AS col0 query II rowsort @@ -31898,7 +31898,7 @@ SELECT ALL - + 2 + + - ( - 80 ) + + 55 * + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int32\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int64\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 6 - + ( + 10 ) AS col1, ( + COUNT ( * ) ) * 11 - CAST ( 61 AS INTEGER ) + + - 37 * 70 AS col1 query I rowsort @@ -33380,7 +33380,7 @@ SELECT ( 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * NULLIF ( - 88, - 46 * 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 60 + 92 ) AS col2, - COALESCE ( + 19, + - 50 ) - + - 28 / + 83 AS col2 query I rowsort label-6382 @@ -34664,7 +34664,7 @@ SELECT + 36 AS col2, + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4928 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(82\) \* Int64\(\-61\) \- \(\- \(\- CAST\(Int64\(\-90\) AS Int32\)\)\) \+ Int64\(\-95\) \+ \(\- Int64\(53\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(82\) \* Int64\(\-61\) \- \(\- \(\- CAST\(Int64\(\-90\) AS Int64\)\)\) \+ Int64\(\-95\) \+ \(\- Int64\(53\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 33 + 82 * - 61 - - - CAST ( - 90 AS INTEGER ) + - 95 + - + 53 + + 99 AS col2, - 25 AS col2 query I rowsort label-6629 @@ -37534,7 +37534,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + - MIN ( 44 ) ) / AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 11 AS col2, + 0 * - COUNT ( * ) AS col2 query I rowsort @@ -40377,7 +40377,7 @@ SELECT ALL - + 35 + + 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83538 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(63\) \* Int64\(51\) \+ Int64\(\-20\) / \(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(8\) \* Int64\(48\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(63\) \* Int64\(51\) \+ Int64\(\-20\) / \(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(8\) \* Int64\(48\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 26 * 63 * + + 51 + - 20 / + - ( - 35 ) AS col0, 8 * + 48 + + CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Types were automatically converted from: @@ -41631,7 +41631,7 @@ SELECT ALL + 0 * - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-76\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-76\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 col2, - 76 + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -42112,7 +42112,7 @@ SELECT ALL + COUNT ( * ) - COUNT ( * ) + + 85 - - 2 + + - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-70\) WHEN Int64\(7\) THEN NULL WHEN \(\- Int64\(98\)\) \* Int64\(\-61\) THEN \(\- nullif\(Int64\(41\), \(\- Int64\(29\)\)\)\) \* \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(\-13\)\)\) END AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-70\) WHEN Int64\(7\) THEN NULL WHEN \(\- Int64\(98\)\) \* Int64\(\-61\) THEN \(\- nullif\(Int64\(41\), \(\- Int64\(29\)\)\)\) \* \(\- coalesce\(CAST\(NULL AS Int64\), Int64\(\-13\)\)\) END AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + - 70 WHEN 7 THEN NULL WHEN - + 98 * - 61 THEN - + NULLIF ( + ( 41 ), - + 29 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), - 13 ) END AS col1, 41 AS col1 query I rowsort @@ -46672,7 +46672,7 @@ SELECT DISTINCT + COALESCE ( - 78, + - COUNT ( ALL + CASE - - CAST ( NULL AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(94\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(94\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + 39 + + 94 * 19 AS col0 query I rowsort label-8922 @@ -49006,7 +49006,7 @@ SELECT DISTINCT - - ( - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 42 * - COUNT ( * ) AS col0 query I rowsort @@ -50897,7 +50897,7 @@ SELECT + - COUNT ( ALL 32 ) * + 77 * 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(Int64\(\-34\) AS Int32\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(Int64\(\-34\) AS Int64\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 AS col2, + ( + + CAST ( + - 34 AS INTEGER ) ) + 0 AS col2 query I rowsort @@ -51968,7 +51968,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-98\), Int64\(5\) \+ coalesce\(count\(DISTINCT Int64\(\-61\)\), Int64\(\-95\) \+ CAST\(NULL AS Int32\) / Int64\(\-26\) \+ Int64\(\-88\)\) \+ Int64\(\-57\) \+ Int64\(56\)\) \+ \(\- count\(Int64\(\-69\)\)\) \+ CAST\(Int64\(20\) AS Int32\) / Int64\(98\) \* Int64\(21\) \- Int64\(\-56\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-98\), Int64\(5\) \+ coalesce\(count\(DISTINCT Int64\(\-61\)\), Int64\(\-95\) \+ CAST\(NULL AS Int64\) / Int64\(\-26\) \+ Int64\(\-88\)\) \+ Int64\(\-57\) \+ Int64\(56\)\) \+ \(\- count\(Int64\(\-69\)\)\) \+ CAST\(Int64\(20\) AS Int64\) / Int64\(98\) \* Int64\(21\) \- Int64\(\-56\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - 98, + 5 + + COALESCE ( COUNT ( DISTINCT - 61 ), + - 95 + CAST ( NULL AS INTEGER ) / ( - 26 ) + - 88 ) + - 57 + 56 ) + + - COUNT ( + - 69 ) + + CAST ( + + 20 AS INTEGER ) / 98 * + 21 - - 56 AS col0, - 13 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_26.slt b/data/sqlite/random/expr/slt_good_26.slt index 58d48e9..7a42f6d 100644 --- a/data/sqlite/random/expr/slt_good_26.slt +++ b/data/sqlite/random/expr/slt_good_26.slt @@ -4710,7 +4710,7 @@ SELECT ALL + 16 * 11 + 44 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int64\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 90 AS INTEGER ) AS col2, + 87 AS col2 query I rowsort label-896 @@ -4985,7 +4985,7 @@ SELECT 50 / 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2 query I rowsort @@ -5893,7 +5893,7 @@ SELECT + 72, 10 + - + 93 * - NULLIF ( + ( - 41 ), - 47 ) + + - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -383 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int32\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int32\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int64\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int64\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 * + 7 + 58 AS col0, CASE COALESCE ( AVG ( DISTINCT - - ( 88 ) ), + 69 ) WHEN - 58 THEN + + 60 END + + - 66 - - CAST ( NULL AS INTEGER ) + COALESCE ( + - 9, + CASE + COALESCE ( + 10, 21, COUNT ( * ) ) WHEN + COALESCE ( - 68, + 87 + 76 * CASE 6 / - 80 WHEN + 59 + - NULLIF ( 73 - 15 / 22, 78 + - SUM ( ALL + 74 + CAST ( NULL AS INTEGER ) ) ) * - 85 THEN 57 * + 93 + COALESCE ( ( - 38 ), 3 ) * - 43 WHEN + 78 + - ( 44 + + 49 * - COUNT ( * ) ) THEN NULL END, + 33 * - 56 + + COUNT ( * ) * 76, + ( - 93 ) * - 36 ) + - ( 87 + + 11 ) * 96 THEN - 37 ELSE COUNT ( * ) / 78 END * 57 ) AS col0 query I rowsort label-1121 @@ -8718,7 +8718,7 @@ SELECT - COUNT ( + 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(\-29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(30\) \* Int64\(\-17\) \* Int64\(8\) \- Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(\-29\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(30\) \* Int64\(\-17\) \* Int64\(8\) \- Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 AS col1, ( - 29 ) + + - CAST ( NULL AS INTEGER ) + + 30 * - 17 * 8 - 80 AS col1 query I rowsort @@ -8770,7 +8770,7 @@ SELECT + - 7 * + 68 AS col1 # Datafusion - Expected - -34 # Datafusion - Expected - 19 # Datafusion - Expected - 6992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(34\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-38\) \* \(\- Int64\(46\)\) \* \(\- Int64\(\-4\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(34\) AS Int64\)\) AS col0" at position 0 and "Int64\(\-38\) \* \(\- Int64\(46\)\) \* \(\- Int64\(\-4\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + ( + 34 ) AS INTEGER ) AS col0, 19 + + COUNT ( * ) / + - 84, - 38 * - ( + 46 ) * - - 4 AS col0 query I rowsort @@ -10619,7 +10619,7 @@ SELECT ALL 70 - 54 / + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int64\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( + 21, 84 * 10 / + - MIN ( + - CAST ( 13 AS INTEGER ) ) ) AS col0, + COUNT ( * ) * - + COUNT ( * ) * 24 AS col0 query I rowsort label-2025 @@ -13287,7 +13287,7 @@ SELECT DISTINCT COUNT ( 56 ) + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(33\) AS col2" at position 0 and "Int64\(44\) / \(\- Int64\(\-51\)\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-79\) \+ Int64\(39\) \- Int64\(\-52\) \* Int64\(78\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(33\) AS col2" at position 0 and "Int64\(44\) / \(\- Int64\(\-51\)\) / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-79\) \+ Int64\(39\) \- Int64\(\-52\) \* Int64\(78\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 query I rowsort label-2540 @@ -13600,7 +13600,7 @@ SELECT DISTINCT + 50 * 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(4\)\) AS col0" at position 0 and "Int64\(\-44\) \+ \(\- CAST\(Int64\(98\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(4\)\) AS col0" at position 0 and "Int64\(\-44\) \+ \(\- CAST\(Int64\(98\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( + 4 ) AS col0, - 44 + - CAST ( 98 AS INTEGER ) AS col0 query I rowsort label-2600 @@ -13652,7 +13652,7 @@ SELECT DISTINCT 56 + - COUNT ( * ) + - + SUM ( DISTINCT + 26 ) / 30, + 20 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 7872 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(82\) AS col1" at position 0 and "Int64\(81\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(82\) AS col1" at position 0 and "Int64\(81\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 96 * 82 AS col1, 81 + + CAST ( NULL AS INTEGER ) col1 query I rowsort label-2610 @@ -15817,7 +15817,7 @@ SELECT + 10 + + ( + 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 676 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) / CAST\(NULL AS Int32\) \* Int64\(15\) \* Int64\(51\) \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(52\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) / CAST\(NULL AS Int64\) \* Int64\(15\) \* Int64\(51\) \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(52\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 73 / + CAST ( NULL AS INTEGER ) * 15 * 51 - + - CAST ( NULL AS FLOAT8 ) AS col0, 52 * 13 AS col0 query I rowsort label-3019 @@ -17299,7 +17299,7 @@ SELECT - COUNT ( * ), 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(93\) AS Int32\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(93\) AS Int64\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 AS col1, COUNT ( * ) + + + CAST ( 93 AS INTEGER ) * + 7 - 7 col1 query I rowsort label-3301 @@ -17856,7 +17856,7 @@ SELECT - + ( + COALESCE ( + ( - 5 ), ( - CAST ( - 0 AS INTEGER ) ) * 20 + - 35 - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(92\) WHEN Int64\(\-68\) \+ Int64\(33\) \* Int64\(70\) \+ \(\- CAST\(Int64\(\-40\) AS Int32\)\) THEN Int64\(\-76\) END\) \- Int64\(62\) / \(\- Int64\(57\)\) AS col1" at position 0 and "Int64\(97\) \- sum\(DISTINCT Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(92\) WHEN Int64\(\-68\) \+ Int64\(33\) \* Int64\(70\) \+ \(\- CAST\(Int64\(\-40\) AS Int64\)\) THEN Int64\(\-76\) END\) \- Int64\(62\) / \(\- Int64\(57\)\) AS col1" at position 0 and "Int64\(97\) \- sum\(DISTINCT Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE 92 WHEN - 68 + + 33 * + 70 + - CAST ( - 40 AS INTEGER ) THEN + - 76 END - 62 / - + 57 AS col1, + 97 - SUM ( DISTINCT - 58 ) AS col1 query I rowsort @@ -18856,7 +18856,7 @@ SELECT + 11 - - 2 / + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-3600 @@ -19658,7 +19658,7 @@ SELECT + 57 * - 51 AS col0, 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( CAST ( NULL AS INTEGER ) ) col2, 11 AS col2 query I rowsort label-3752 @@ -20525,7 +20525,7 @@ SELECT - 98 * - - COUNT ( * ) + 84 + 27 * 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 AS col1, - CAST ( NULL AS INTEGER ) * 82 AS col1 query I rowsort @@ -20541,7 +20541,7 @@ SELECT - 40 * - ( - - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(34\), Int64\(72\) \* \(\- Int64\(98\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(34\), Int64\(72\) \* \(\- Int64\(98\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( + 34, 72 * - + 98 ) AS col2, CAST ( NULL AS INTEGER ) * + - 74 AS col2 query I rowsort label-3918 @@ -23496,7 +23496,7 @@ SELECT + 34 + - 38 + + 21 * - 68 + + 48 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int32\)\), Int64\(\-17\) / Int64\(\-95\) / Int64\(\-72\) \- Int64\(92\) \+ coalesce\(Int64\(85\), Int64\(26\) \* Int64\(\-46\), Int64\(56\) \* Int64\(76\)\) \* Int64\(16\) \* Int64\(88\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int64\)\), Int64\(\-17\) / Int64\(\-95\) / Int64\(\-72\) \- Int64\(92\) \+ coalesce\(Int64\(85\), Int64\(26\) \* Int64\(\-46\), Int64\(56\) \* Int64\(76\)\) \* Int64\(16\) \* Int64\(88\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 AS col1, COALESCE ( - 39, - CAST ( NULL AS INTEGER ), - 17 / - 95 / - 72 - 92 + + COALESCE ( + 85, 26 * - 46, 56 * 76 ) * 16 * 88 + + 58 ) AS col1 query I rowsort label-4489 @@ -27536,7 +27536,7 @@ SELECT ALL 76 * - COUNT ( * ) * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) + - ( - - COUNT ( * ) ) * 74 AS col2, 23 + 67 + + - COUNT ( * ) * + 29 AS col2 query I rowsort label-5258 @@ -30288,7 +30288,7 @@ SELECT ALL - - 30 * COUNT ( * ) * + 5 * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(74\) \* Int64\(33\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(74\) \* Int64\(33\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 AS col0, 74 * 33 + + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-5782 @@ -37014,7 +37014,7 @@ SELECT DISTINCT 57 * + - SUM ( ALL 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - - ( CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( 33, - - 83 / ( - 38 ) + + COUNT ( * ) ) + + 80 AS col1, MAX ( ALL - 75 ) AS col1 # Datafusion - Types were automatically converted from: @@ -38343,7 +38343,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / CAST\(NULL AS Int32\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / CAST\(NULL AS Int64\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 / + CAST ( NULL AS INTEGER ) * 99 AS col2, - 42 * 48 AS col2 query I rowsort @@ -39201,7 +39201,7 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 34 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(64\) AS Int32\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(64\) AS Int64\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 64 AS INTEGER ) AS col2, + ( + 34 ) AS col1, 95 AS col2 query I rowsort label-7489 @@ -39313,7 +39313,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, + COUNT ( * ) * 2 col2 query I rowsort label-7511 @@ -42048,7 +42048,7 @@ SELECT + 66, 90 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -23 # Datafusion - Expected - 2866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(23\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(23\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 / + CAST ( NULL AS INTEGER ) AS col1, SUM ( DISTINCT - + 23 ) col1, 68 * + ( + 43 ) + + - 58 query I rowsort @@ -43151,7 +43151,7 @@ SELECT 51 - - 96, 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 24 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 54 col2 query I rowsort label-8246 @@ -44237,7 +44237,7 @@ SELECT ALL - 85 / 29 AS col1, COUNT ( 9 ) * 90 + + NULLIF ( + SUM ( ALL 42 ), 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) \- Int64\(\-86\) \* Int64\(12\) \+ Int64\(\-96\) \* coalesce\(Int64\(88\), Int64\(23\)\) \* coalesce\(Int64\(\-61\), \(\- Int64\(32\)\) \+ Int64\(57\), CAST\(\(\- coalesce\(Int64\(\-77\), Int64\(32\)\)\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int64\) \- Int64\(\-86\) \* Int64\(12\) \+ Int64\(\-96\) \* coalesce\(Int64\(88\), Int64\(23\)\) \* coalesce\(Int64\(\-61\), \(\- Int64\(32\)\) \+ Int64\(57\), CAST\(\(\- coalesce\(Int64\(\-77\), Int64\(32\)\)\) AS Int64\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - - 86 * + + 12 + - 96 * + COALESCE ( 88, ( 23 ) ) * COALESCE ( - 61, - + 32 + + 57, + + CAST ( + - COALESCE ( - 77, 32 ) AS INTEGER ) + - - COUNT ( * ) ) + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-8454 @@ -44794,7 +44794,7 @@ SELECT - 37 + - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(47\)\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(47\)\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 19 * + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( ALL + 47 ) / + + 61 AS col1 query I rowsort label-8561 @@ -44912,7 +44912,7 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int32\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int64\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WHEN + 83 THEN NULL ELSE NULL END * 53 AS col2 query I rowsort label-8583 diff --git a/data/sqlite/random/expr/slt_good_27.slt b/data/sqlite/random/expr/slt_good_27.slt index a86bf61..b1407fe 100644 --- a/data/sqlite/random/expr/slt_good_27.slt +++ b/data/sqlite/random/expr/slt_good_27.slt @@ -1346,7 +1346,7 @@ SELECT - COUNT ( * ) - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(95\) WHEN Int64\(71\) \* Int64\(53\) \* coalesce\(\(\- Int64\(\-42\)\), Int64\(\-24\) / Int64\(85\), Int64\(5\)\) THEN \(\- coalesce\(Int64\(30\), Int64\(\-45\) \+ Int64\(\-82\), Int64\(19\)\)\) / \(\- Int64\(\-27\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-2\)\) WHEN \(\- Int64\(10\)\) \+ Int64\(41\) THEN Int64\(3\) \* Int64\(\-31\) \* Int64\(\-49\) ELSE NULL END\) AS Int32\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(95\) WHEN Int64\(71\) \* Int64\(53\) \* coalesce\(\(\- Int64\(\-42\)\), Int64\(\-24\) / Int64\(85\), Int64\(5\)\) THEN \(\- coalesce\(Int64\(30\), Int64\(\-45\) \+ Int64\(\-82\), Int64\(19\)\)\) / \(\- Int64\(\-27\)\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-2\)\) WHEN \(\- Int64\(10\)\) \+ Int64\(41\) THEN Int64\(3\) \* Int64\(\-31\) \* Int64\(\-49\) ELSE NULL END\) AS Int64\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - + CASE + 95 WHEN 71 * + 53 * + + COALESCE ( - - 42, - 24 / 85, + 5 ) THEN + - COALESCE ( + 30, + - 45 + - 82, + 19 ) / - - 27 + - CAST ( NULL AS INTEGER ) * - - 2 WHEN - + 10 + 41 THEN + 3 * + - 31 * - 49 ELSE NULL END AS INTEGER ) AS col1, + 15 AS col1 query I rowsort label-252 @@ -2529,7 +2529,7 @@ SELECT ALL 13 * + 61 + COUNT ( - + 92 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "CAST\(Int64\(37\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "CAST\(Int64\(37\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 61 AS col0, CAST ( + 37 AS INTEGER ) AS col0 query I rowsort label-480 @@ -4605,7 +4605,7 @@ SELECT + 5 + SUM ( 17 ) - 85 - + - MIN ( - - 20 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2012 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- \(\- \(\- CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(\-11\) THEN NULL WHEN Int64\(\-34\) THEN Int64\(81\) ELSE Int64\(\-15\) \+ Int64\(20\) \* \(\- CAST\(Int64\(96\) AS Int32\)\) END\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- \(\- \(\- CASE \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(\-11\) THEN NULL WHEN Int64\(\-34\) THEN Int64\(81\) ELSE Int64\(\-15\) \+ Int64\(20\) \* \(\- CAST\(Int64\(96\) AS Int64\)\) END\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 77 - - - CASE - CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL WHEN - 34 THEN 81 ELSE - 15 + 20 * - ( + CAST ( + ( 96 ) AS INTEGER ) ) END AS col0, 35 AS col0 query I rowsort @@ -8372,7 +8372,7 @@ SELECT DISTINCT 85 * - 2 - + MAX ( DISTINCT 9 ) * 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE max\(DISTINCT Int64\(\-62\)\) WHEN \(\- nullif\(max\(Int64\(\-60\)\), Int64\(40\)\)\) \* \(\- Int64\(1\)\) THEN Int64\(80\) WHEN min\(DISTINCT CAST\(NULL AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE max\(DISTINCT Int64\(\-62\)\) WHEN \(\- nullif\(max\(Int64\(\-60\)\), Int64\(40\)\)\) \* \(\- Int64\(1\)\) THEN Int64\(80\) WHEN min\(DISTINCT CAST\(NULL AS Int64\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + COUNT ( * ) ) AS col2, CASE MAX ( DISTINCT - 62 ) WHEN + ( - NULLIF ( + MAX ( - 60 ), 40 ) ) * - + 1 THEN + 80 WHEN MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - COUNT ( * ) ELSE NULL END * 98 AS col2 query I rowsort label-1598 @@ -9170,7 +9170,7 @@ SELECT - 63 + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- Int64\(\-6\)\) \* \(\- min\(\(\- CAST\(\(\- nullif\(Int64\(28\), Int64\(12\) / Int64\(92\) \+ \(\- Int64\(69\)\)\)\) AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- Int64\(\-6\)\) \* \(\- min\(\(\- CAST\(\(\- nullif\(Int64\(28\), Int64\(12\) / Int64\(92\) \+ \(\- Int64\(69\)\)\)\) AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 col2, - ( - 6 ) * - + MIN ( ALL - CAST ( - NULLIF ( + 28, + 12 / 92 + - ( 69 ) ) AS INTEGER ) ) AS col2 query II rowsort label-1751 @@ -10996,7 +10996,7 @@ SELECT + 21 + 58, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "CAST\(Int64\(\-73\) AS Int32\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "CAST\(Int64\(\-73\) AS Int64\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 90 AS col1, + CAST ( - 73 AS INTEGER ) + - 18 AS col1 query I rowsort label-2101 @@ -11813,7 +11813,7 @@ SELECT ALL + 72 * + - 34 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 998 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int32\)\), Int64\(91\)\) \* \(\- Int64\(26\)\) \+ Int64\(\-16\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int64\)\), Int64\(91\)\) \* \(\- Int64\(26\)\) \+ Int64\(\-16\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - 39, + - CAST ( NULL AS INTEGER ), + 91 ) * - + 26 + - 16 AS col1, + 76 col1 query I rowsort @@ -17764,7 +17764,7 @@ SELECT + - 96 + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int32\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int64\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 50 col1, 11 * + CAST ( NULL AS INTEGER ) + + + 13 AS col1 query I rowsort label-3399 @@ -20184,7 +20184,7 @@ SELECT 72 * + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -3348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-36\) \* CAST\(Int64\(93\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-36\) \* CAST\(Int64\(93\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 col1, - 36 * + CAST ( 93 AS INTEGER ) AS col1 query I rowsort @@ -21848,7 +21848,7 @@ SELECT ALL - ( - 5 ) / + + 32 + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 72 AS col0 query I rowsort @@ -24482,7 +24482,7 @@ SELECT DISTINCT + 71 * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* CAST\(NULL AS Int32\) \- Int64\(13\) \- Int64\(\-51\) AS col2" at position 0 and "\(\- sum\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* CAST\(NULL AS Int64\) \- Int64\(13\) \- Int64\(\-51\) AS col2" at position 0 and "\(\- sum\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 13 * ( + CAST ( NULL AS INTEGER ) ) - + 13 - - 51 AS col2, - SUM ( ALL - 38 ) AS col2 query I rowsort @@ -30417,7 +30417,7 @@ SELECT ALL + 83 - + 1 / + + 72 - - - 36 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8706 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) 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\. SELECT - COUNT ( * ) / + 30 + + 48 + - - 30 + - + 90 * NULLIF ( + 86, 81 ) + + + 9 + + 27 * - NULLIF ( 39, + CAST ( + + 89 AS FLOAT8 ) ) AS col0, + CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -37955,7 +37955,7 @@ SELECT + 39 + + + 21 + + 9 * - 90 - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 AS col2, + 46 / + CAST ( - ( + 43 ) AS INTEGER ) + - COUNT ( * ) AS col2 query I rowsort @@ -38695,7 +38695,7 @@ SELECT ALL + COALESCE ( - + 9, CASE + 54 WHEN + 75 * 13 THEN - + 17 / + ( + 21 ) # Datafusion - Expected - 12 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(count\(\(\- Int64\(\-96\)\)\) AS Float64\) \+ CASE \(\- CAST\(Int64\(34\) AS Int32\)\) WHEN Int64\(\-11\) \+ Int64\(17\) \* Int64\(39\) \- Int64\(99\) THEN Int64\(\-34\) \- Int64\(10\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(count\(\(\- Int64\(\-96\)\)\) AS Float64\) \+ CASE \(\- CAST\(Int64\(34\) AS Int64\)\) WHEN Int64\(\-11\) \+ Int64\(17\) \* Int64\(39\) \- Int64\(99\) THEN Int64\(\-34\) \- Int64\(10\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 AS col2, + ( CAST ( COUNT ( - - 96 ) AS FLOAT8 ) ) + CASE - CAST ( 34 AS INTEGER ) WHEN - 11 + 17 * + 39 - 99 THEN - 34 - + 10 ELSE NULL END col2, + - ( - + 26 ) AS col0 query I rowsort label-7406 @@ -48248,7 +48248,7 @@ SELECT DISTINCT - 6 * + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int64\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 84 AS INTEGER ) AS col2, - 12 + + 98 AS col2 query I rowsort label-9230 @@ -49488,7 +49488,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- Int64\(\-4\)\) AS Int32\)\) AS Int32\)\) \* Int64\(23\) AS col0" at position 0 and "\(\- count\(Int64\(\-30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- Int64\(\-4\)\) AS Int64\)\) AS Int64\)\) \* Int64\(23\) AS col0" at position 0 and "\(\- count\(Int64\(\-30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - + CAST ( - - 4 AS INTEGER ) AS INTEGER ) * + 23 AS col0, - COUNT ( - 30 ) col0 query I rowsort label-9465 diff --git a/data/sqlite/random/expr/slt_good_28.slt b/data/sqlite/random/expr/slt_good_28.slt index 4d81eca..93347d1 100644 --- a/data/sqlite/random/expr/slt_good_28.slt +++ b/data/sqlite/random/expr/slt_good_28.slt @@ -427,7 +427,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "min\(Int64\(8\)\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "min\(Int64\(8\)\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, MIN ( + + 8 ) + - 29 AS col0 query I rowsort label-75 @@ -1382,7 +1382,7 @@ SELECT DISTINCT ( + COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 702 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "coalesce\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* \(\- Int64\(\-22\)\) \+ Int64\(\-84\) \+ Int64\(30\) / Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(36\) \* Int64\(37\) \- Int64\(43\) \* Int64\(97\)\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "coalesce\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* \(\- Int64\(\-22\)\) \+ Int64\(\-84\) \+ Int64\(30\) / Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(36\) \* Int64\(37\) \- Int64\(43\) \* Int64\(97\)\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COALESCE ( ( 13 ), COUNT ( * ) * - 8 * - - 22 + - 84 + + 30 / 72 + COUNT ( * ) * + + 36 * 37 - 43 * 97 ) * 54 AS col1 query I rowsort label-257 @@ -3412,7 +3412,7 @@ SELECT - 42 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(98\) AS Int32\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(98\) AS Int64\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + + 98 AS INTEGER ) AS col0, 90 AS col0 query I rowsort @@ -3983,7 +3983,7 @@ SELECT ALL - 39 * - 0 + - 14 * + + 1 * + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-35\) \+ \(\- \(\- Int64\(49\)\)\) \- \(\- CASE \(\- Int64\(64\)\) WHEN Int64\(\-75\) \+ Int64\(4\) \* \(\- coalesce\(Int64\(60\), Int64\(96\)\)\) THEN CAST\(CASE \(\- Int64\(32\)\) WHEN Int64\(55\) \* Int64\(2\) \* Int64\(40\) THEN Int64\(22\) ELSE NULL END AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(44\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- \(\- Int64\(\-7\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-35\) \+ \(\- \(\- Int64\(49\)\)\) \- \(\- CASE \(\- Int64\(64\)\) WHEN Int64\(\-75\) \+ Int64\(4\) \* \(\- coalesce\(Int64\(60\), Int64\(96\)\)\) THEN CAST\(CASE \(\- Int64\(32\)\) WHEN Int64\(55\) \* Int64\(2\) \* Int64\(40\) THEN Int64\(22\) ELSE NULL END AS Int64\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(44\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- \(\- Int64\(\-7\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - 35 + - ( - + 49 ) - - CASE - + 64 WHEN - 75 + ( + 4 ) * - COALESCE ( + 60, + + 96 ) THEN CAST ( + CASE - + 32 WHEN 55 * + 2 * 40 THEN 22 ELSE NULL END AS INTEGER ) / + - COUNT ( * ) WHEN + 44 THEN NULL ELSE NULL END AS col0, - COUNT ( * ) * - - ( - - 7 ) AS col0 query I rowsort @@ -4280,7 +4280,7 @@ SELECT ALL 80 + + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ CAST\(Int64\(86\) AS Int32\) AS col1" at position 0 and "Int64\(\-42\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ CAST\(Int64\(86\) AS Int64\) AS col1" at position 0 and "Int64\(\-42\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 50 + CAST ( + 86 AS INTEGER ) AS col1, - 42 * + 87 AS col1 query I rowsort @@ -5906,7 +5906,7 @@ SELECT + 7 * + + 81 + - 50 + - 37 + - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -180 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-60\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* min\(Int64\(\-17\)\) \+ Int64\(\-84\) \+ Int64\(10\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-60\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* min\(Int64\(\-17\)\) \+ Int64\(\-84\) \+ Int64\(10\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 3 * - 60 col1, + CAST ( NULL AS INTEGER ) * + MIN ( - 17 ) + - 84 + 10 * + 55 col1 query I rowsort label-1121 @@ -7610,7 +7610,7 @@ SELECT + 77 * 64 AS col2, - 89 * - 71 * + + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-1448 @@ -7647,7 +7647,7 @@ SELECT + 98 * - 66 + + 88 + 37 - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(76\) AS col0" at position 0 and "Int64\(\-94\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(76\) AS col0" at position 0 and "Int64\(\-94\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * 76 AS col0, - 94 + + 51 AS col0 query I rowsort @@ -7941,7 +7941,7 @@ SELECT DISTINCT - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -2184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-42\) \* \(\- CAST\(\(\- max\(DISTINCT Int64\(52\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-42\) \* \(\- CAST\(\(\- max\(DISTINCT Int64\(52\)\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 47 + + COUNT ( * ) AS col2, - 42 * - CAST ( + - MAX ( DISTINCT + 52 ) AS INTEGER ) col2 query I rowsort label-1511 @@ -8118,7 +8118,7 @@ SELECT 21 - + COUNT ( + + 55 ) col1, - 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "coalesce\(Int64\(\-83\), Int64\(\-42\), Int64\(\-39\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-75\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "coalesce\(Int64\(\-83\), Int64\(\-42\), Int64\(\-39\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-75\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 AS col1, + COALESCE ( - 83, - 42, - 39 ) * + COUNT ( * ) / - 75 + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1544 @@ -9161,7 +9161,7 @@ SELECT + COUNT ( 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) / CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-77\)\) \- \(\- Int64\(99\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) / CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-77\)\) \- \(\- Int64\(99\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 80 / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - - 77 - - + 99 AS col0, 95 AS col0 query I rowsort @@ -9825,7 +9825,7 @@ SELECT + 13, ( + 39 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, + 13 AS col2 query I rowsort @@ -10211,7 +10211,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(80\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(91\) \- Int64\(89\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(80\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(91\) \- Int64\(89\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 18 * + 80 + CAST ( NULL AS INTEGER ) AS col2, + 91 - + 89 + 7 AS col2 query I rowsort label-1942 @@ -10999,7 +10999,7 @@ SELECT ALL ( + + COUNT ( * ) ) + - 63 + + - 75 * MAX ( DISTINCT 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -1372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "CAST\(Int64\(98\) AS Int32\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "CAST\(Int64\(98\) AS Int64\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 55 AS col0, CAST ( + 98 AS INTEGER ) * + - 14 AS col0 query I rowsort label-2093 @@ -11890,7 +11890,7 @@ SELECT 82 * + ( + 26 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(18\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(67\) \+ \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(18\) / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(67\) \+ \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 18 * + 18 / - + CAST ( NULL AS INTEGER ) AS col0, 67 + - - 81 AS col0 query II rowsort label-2265 @@ -15779,7 +15779,7 @@ SELECT + + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1940 # Datafusion - Expected - -3915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-38\) \+ Int64\(\-60\) \+ \(\- CAST\(Int64\(\-58\) AS Int32\)\) AS col0" at position 0 and "Int64\(45\) \* \(\- Int64\(87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-38\) \+ Int64\(\-60\) \+ \(\- CAST\(Int64\(\-58\) AS Int64\)\) AS col0" at position 0 and "Int64\(45\) \* \(\- Int64\(87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 51 * - 38 + + - 60 + - CAST ( - 58 AS INTEGER ) AS col0, 45 * - + 87 col0 query I rowsort label-3012 @@ -16192,7 +16192,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(84\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(84\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + CAST ( + 84 AS INTEGER ) AS col2 query I rowsort label-3090 @@ -16225,7 +16225,7 @@ SELECT + 52 * - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1350 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* min\(Int64\(\-18\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* min\(Int64\(\-18\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 75 * + MIN ( ALL - 18 ) AS col1, - CAST ( NULL AS INTEGER ) + + 5 AS col1 query I rowsort @@ -16322,7 +16322,7 @@ SELECT + ( - ( - 26 ) ) AS col1, + ( SUM ( - 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4334 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(55\)\) \- Int64\(\-19\) \* Int64\(94\) \+ Int64\(\-8\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(81\)\) \+ \(\- \(\- CAST\(Int64\(55\) AS Int32\)\)\) AS col1" at position 0 and "CASE Int64\(\-76\) WHEN Int64\(\-19\) THEN Int64\(\-12\) WHEN sum\(Int64\(7\)\) THEN NULL END \* Int64\(28\) \- Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(55\)\) \- Int64\(\-19\) \* Int64\(94\) \+ Int64\(\-8\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(81\)\) \+ \(\- \(\- CAST\(Int64\(55\) AS Int64\)\)\) AS col1" at position 0 and "CASE Int64\(\-76\) WHEN Int64\(\-19\) THEN Int64\(\-12\) WHEN sum\(Int64\(7\)\) THEN NULL END \* Int64\(28\) \- Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 * - + 55 - - 19 * + + 94 + - 8 + 32 * COUNT ( * ) * - + 81 + - ( + - CAST ( + 55 AS INTEGER ) ) col1, CASE - 76 WHEN - 19 THEN - 12 WHEN + SUM ( + 7 ) THEN NULL END * 28 - - 5 AS col1 query I rowsort @@ -16360,7 +16360,7 @@ SELECT DISTINCT + 29 AS col1 # Datafusion - Expected - 72 # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(75\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(75\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 72 AS col1, + 75 + - + ( - CAST ( NULL AS INTEGER ) ) AS col1, - 52 query II rowsort @@ -16606,7 +16606,7 @@ SELECT ALL - CAST ( NULLIF ( - COUNT ( * ), 73 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(66\) \+ Int64\(48\) \+ Int64\(16\) \+ Int64\(97\) \* Int64\(25\) \* \(\- Int64\(98\)\) \+ \(\- count\(\(\- Int64\(\-90\)\)\)\) \* Int64\(\-99\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(42\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(66\) \+ Int64\(48\) \+ Int64\(16\) \+ Int64\(97\) \* Int64\(25\) \* \(\- Int64\(98\)\) \+ \(\- count\(\(\- Int64\(\-90\)\)\)\) \* Int64\(\-99\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(42\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 18 AS col0, - COALESCE ( COUNT ( * ), 66 + + 48 + + 16 + 97 * 25 * - + 98 + - COUNT ( - - 90 ) * - 99 + - CAST ( NULL AS INTEGER ) * + + 42 ) col0 query I rowsort @@ -19279,7 +19279,7 @@ SELECT DISTINCT - + 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* avg\(Int64\(\-86\)\) \+ Int64\(5\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* avg\(Int64\(\-86\)\) \+ Int64\(5\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + AVG ( - 86 ) + ( 5 ) AS col2, 42 AS col2 query I rowsort @@ -21488,7 +21488,7 @@ SELECT 90 * + 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3230 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(95\) AS col2" at position 0 and "Int64\(16\) \- CAST\(NULL AS Int32\) \- Int64\(62\) / count\(Int64\(45\)\) \+ Int64\(69\) \* Int64\(0\) \* \(\- \(\- \(\- nullif\(Int64\(0\), Int64\(52\) \+ Int64\(85\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(95\) AS col2" at position 0 and "Int64\(16\) \- CAST\(NULL AS Int64\) \- Int64\(62\) / count\(Int64\(45\)\) \+ Int64\(69\) \* Int64\(0\) \* \(\- \(\- \(\- nullif\(Int64\(0\), Int64\(52\) \+ Int64\(85\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 * 95 AS col2, + 16 - + CAST ( NULL AS INTEGER ) - 62 / + + COUNT ( ALL 45 ) + 69 * - 0 * - - ( - NULLIF ( 0, 52 + 85 ) ) AS col2 query I rowsort @@ -22385,7 +22385,7 @@ SELECT 25 + - 82 * - 85 + - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(16\) \* CAST\(\(\- Int64\(\-7\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(16\) \* CAST\(\(\- Int64\(\-7\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 3 AS col1, 16 * CAST ( - - 7 AS INTEGER ) AS col1 query I rowsort @@ -28233,7 +28233,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-31\)\) \* Int64\(\-54\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(53\) \- \(\- sum\(Int64\(13\)\)\)\)\) \* Int64\(64\) \+ CAST\(NULL AS Int32\) \+ Int64\(52\) \+ Int64\(45\) \+ Int64\(\-94\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-31\)\) \* Int64\(\-54\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(53\) \- \(\- sum\(Int64\(13\)\)\)\)\) \* Int64\(64\) \+ CAST\(NULL AS Int64\) \+ Int64\(52\) \+ Int64\(45\) \+ Int64\(\-94\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( + - 31 ) * - 54 * - COALESCE ( + + COUNT ( * ), + 53 - + - SUM ( 13 ) ) * + + 64 + CAST ( NULL AS INTEGER ) + + 52 + + + 45 + - 94 col0, 52 AS col0 query II rowsort @@ -28960,7 +28960,7 @@ SELECT + 25 + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col0, COUNT ( 39 ) AS col0 query I rowsort label-5530 @@ -30801,7 +30801,7 @@ SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1726 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* \(\- Int64\(\-97\)\) \+ \(\- Int64\(\-67\)\) \- Int64\(\-10\) AS col1" at position 0 and "CAST\(CAST\(coalesce\(Int64\(\-79\), Int64\(\-63\), Int64\(37\)\) AS Int32\) AS Int32\) \* \(\- CASE Int64\(68\) WHEN Int64\(48\) \+ Int64\(67\) THEN \(\- Int64\(\-92\)\) \+ Int64\(0\) END\) \+ Int64\(\-92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* \(\- Int64\(\-97\)\) \+ \(\- Int64\(\-67\)\) \- Int64\(\-10\) AS col1" at position 0 and "CAST\(CAST\(coalesce\(Int64\(\-79\), Int64\(\-63\), Int64\(37\)\) AS Int64\) AS Int64\) \* \(\- CASE Int64\(68\) WHEN Int64\(48\) \+ Int64\(67\) THEN \(\- Int64\(\-92\)\) \+ Int64\(0\) END\) \+ Int64\(\-92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 * - - 97 + - - 67 - - 10 AS col1, CAST ( CAST ( + COALESCE ( - 79, - 63, 37 ) AS INTEGER ) AS INTEGER ) * - CASE 68 WHEN + 48 + + 67 THEN - - 92 + + + 0 END + - 92 + COUNT ( * ) + 73 / 23 AS col1 query I rowsort @@ -31370,7 +31370,7 @@ SELECT - COALESCE ( + 69, 16 * + 22 - + 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- nullif\(Int64\(80\), Int64\(32\) \* Int64\(\-13\) \- CAST\(CAST\(Int64\(93\) AS Float64\) AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- nullif\(Int64\(80\), Int64\(32\) \* Int64\(\-13\) \- CAST\(CAST\(Int64\(93\) AS Float64\) AS Int64\)\)\) AS col0" at position 0 and "count\(Int64\(7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 7 + - NULLIF ( + 80, + 32 * - 13 - + CAST ( + CAST ( + 93 AS FLOAT8 ) AS INTEGER ) ) AS col0, COUNT ( + 7 ) AS col0 query I rowsort label-5988 @@ -36009,7 +36009,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "\(\- CAST\(Int64\(45\) AS Int32\)\) \* \(\- Int64\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "\(\- CAST\(Int64\(45\) AS Int64\)\) \* \(\- Int64\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 38 AS col1, - CAST ( 45 AS INTEGER ) * - + 13 AS col1 query I rowsort label-6881 @@ -38783,7 +38783,7 @@ SELECT DISTINCT - CAST ( + COUNT ( + 2 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(10\) / Int64\(38\) \+ CAST\(NULL AS Int32\) \* Int64\(\-70\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(10\) / Int64\(38\) \+ CAST\(NULL AS Int64\) \* Int64\(\-70\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 61 * + 10 / 38 + CAST ( NULL AS INTEGER ) * - 70 col2, 74 + - 69 AS col2 query I rowsort @@ -39847,7 +39847,7 @@ SELECT - + 10 + + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col2, 51 + - CAST ( + 9 AS INTEGER ) AS col2 query I rowsort label-7615 @@ -40297,7 +40297,7 @@ SELECT - 58 + + 80 * - 83 # Datafusion - Expected - 5852 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(\-19\) \* Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(\-19\) \* Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 * - 19 * + + 11 AS col2, + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -42649,7 +42649,7 @@ SELECT 3 - + + 99 * 26 # Datafusion - Expected - 14 # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-70\)\) AS Int32\)\) \+ Int64\(88\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-70\)\) AS Int64\)\) \+ Int64\(88\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 14 col2, COUNT ( * ) AS col0, - CAST ( - - 70 AS INTEGER ) + + 88 AS col2 query I rowsort label-8155 @@ -46819,7 +46819,7 @@ SELECT + 3 + 97 * COUNT ( - 27 ) * + + COUNT ( * ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-64\) \* min\(Int64\(61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-64\) \* min\(Int64\(61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, - 64 * + MIN ( 61 ) col2 query I rowsort label-8947 @@ -48129,7 +48129,7 @@ SELECT 14, 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- CASE Int64\(\-59\) WHEN CASE Int64\(32\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-68\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) THEN NULL ELSE Int64\(75\) END \+ \(\- \(\- avg\(Int64\(75\)\)\)\) \+ sum\(\(\- Int64\(51\)\)\) \* Int64\(43\) \+ Int64\(33\) / Int64\(\-87\) \- \(\- Int64\(\-34\)\) \+ Int64\(\-83\) THEN Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(0\) END AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- CASE Int64\(\-59\) WHEN CASE Int64\(32\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-68\) \* \(\- CAST\(Int64\(84\) AS Int64\)\) THEN NULL ELSE Int64\(75\) END \+ \(\- \(\- avg\(Int64\(75\)\)\)\) \+ sum\(\(\- Int64\(51\)\)\) \* Int64\(43\) \+ Int64\(33\) / Int64\(\-87\) \- \(\- Int64\(\-34\)\) \+ Int64\(\-83\) THEN Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(0\) END AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 22 - CASE + - 59 WHEN CASE 32 WHEN + ( + 55 ) THEN NULL WHEN - 68 * - CAST ( + + 84 AS INTEGER ) THEN NULL ELSE + 75 END + - + ( - + AVG ( + 75 ) ) + + + SUM ( - + 51 ) * + 43 + + + 33 / - 87 - - - 34 + - 83 THEN + + 45 + - + COUNT ( * ) ELSE 0 END AS col0, 59 AS col0 query I rowsort label-9199 @@ -48913,7 +48913,7 @@ SELECT ALL - 49 * - 8 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -87840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(Int64\(53\) AS Int32\)\) AS col2" at position 0 and "Int64\(61\) \* \(\- \(\- sum\(Int64\(32\)\)\)\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(Int64\(53\) AS Int64\)\) AS col2" at position 0 and "Int64\(61\) \* \(\- \(\- sum\(Int64\(32\)\)\)\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * - CAST ( 53 AS INTEGER ) AS col2, 61 * - - SUM ( ALL + 32 ) * - 45 col2 query I rowsort label-9350 @@ -51580,7 +51580,7 @@ SELECT + 23 + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-53\) \+ CAST\(Int64\(\-63\) AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-53\) \+ CAST\(Int64\(\-63\) AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 51 AS col0, - CAST ( NULL AS INTEGER ) * - 53 + + CAST ( - 63 AS FLOAT8 ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_29.slt b/data/sqlite/random/expr/slt_good_29.slt index 5f62563..e1d79ce 100644 --- a/data/sqlite/random/expr/slt_good_29.slt +++ b/data/sqlite/random/expr/slt_good_29.slt @@ -244,7 +244,7 @@ SELECT ALL + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(37\) \+ Int64\(97\) \+ CASE Int64\(78\) WHEN \(\- Int64\(\-49\)\) THEN NULL ELSE Int64\(27\) \+ \(\- Int64\(60\)\) END AS col1" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(37\) \+ Int64\(97\) \+ CASE Int64\(78\) WHEN \(\- Int64\(\-49\)\) THEN NULL ELSE Int64\(27\) \+ \(\- Int64\(60\)\) END AS col1" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 * + 37 + 97 + + CASE + 78 WHEN - - 49 THEN NULL ELSE 27 + - ( 60 ) END AS col1, - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -339,7 +339,7 @@ SELECT 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(65\) / Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(65\) / Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 59 + - + CAST ( NULL AS INTEGER ) AS col1, + ( 65 ) / + + 17 AS col1 query I rowsort label-58 @@ -2917,7 +2917,7 @@ SELECT ALL - 69 + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int32\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int64\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 - - COUNT ( * ) * CAST ( + MIN ( 13 ) AS INTEGER ) AS col1, 49 / 49 AS col1 query I rowsort @@ -5390,7 +5390,7 @@ SELECT ALL - + 74 * 57 + - 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(\(\- CAST\(Int64\(78\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(\(\- CAST\(Int64\(78\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 93 + + MIN ( - CAST ( 78 AS INTEGER ) ) AS col1, - 39 AS col1 query I rowsort @@ -6859,7 +6859,7 @@ SELECT + 44 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(19\)\)\)\) \+ CASE \(\- Int64\(46\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(\-65\)\) END AS col1" at position 0 and "Int64\(\-79\) \* \(\- nullif\(Int64\(\-35\), \(\- Int64\(\-2\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(19\)\)\)\) \+ CASE \(\- Int64\(46\)\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN \(\- Int64\(\-65\)\) END AS col1" at position 0 and "Int64\(\-79\) \* \(\- nullif\(Int64\(\-35\), \(\- Int64\(\-2\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MAX ( - + 19 ) + CASE - + ( + ( 46 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 65 END AS col1, - 79 * + - NULLIF ( - 35, - - 2 ) AS col1 query I rowsort @@ -7898,7 +7898,7 @@ SELECT - - 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + MAX ( CAST ( NULL AS INTEGER ) ) AS col1, + 72 AS col1 query I rowsort @@ -11030,7 +11030,7 @@ SELECT ALL - - 36 / + 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-17\) AS col1" at position 0 and "Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-17\) AS col1" at position 0 and "Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + + - 17 AS col1, - 35 * + + COUNT ( * ) AS col1 query I rowsort @@ -11697,7 +11697,7 @@ SELECT DISTINCT 48 + - - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-8\) \- Int64\(\-62\) \- \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-8\) \- Int64\(\-62\) \- \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 8 - - 62 - - - 35 AS col2 query I rowsort @@ -20487,7 +20487,7 @@ SELECT ALL + 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 97 / + ( CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0 query I rowsort @@ -21675,7 +21675,7 @@ SELECT ALL 96 + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- count\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 92 * - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, - 26 AS col0 query I rowsort label-4190 @@ -23844,7 +23844,7 @@ SELECT DISTINCT - 3 * + + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + NULLIF ( + 46, - COUNT ( * ) ) - + ( - 37 ) + + - COUNT ( * ) + - + COALESCE ( 44, + 57 + + COUNT ( ALL + 81 ) + - - 27 + COALESCE ( 40, COUNT ( * ) * - 98 ) / + 99 ) - + 15 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) / 93 AS col2, 33 AS col2 query I rowsort @@ -23901,7 +23901,7 @@ SELECT + COUNT ( * ) - + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 41 AS col0, + CAST ( NULL AS INTEGER ) + + 44 AS col0 query I rowsort @@ -27943,7 +27943,7 @@ SELECT - + 61, + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "CAST\(Int64\(43\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "CAST\(Int64\(43\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 48 AS col0, + CAST ( 43 AS INTEGER ) AS col0 query I rowsort @@ -30329,7 +30329,7 @@ SELECT - 12 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 858 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int32\)\) \* Int64\(\-14\) \+ Int64\(40\) \+ Int64\(90\) AS col1" at position 0 and "\(\- count\(Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int64\)\) \* Int64\(\-14\) \+ Int64\(40\) \+ Int64\(90\) AS col1" at position 0 and "\(\- count\(Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( 52 AS INTEGER ) * + - 14 + 40 + 90 AS col1, - COUNT ( ALL 62 ) AS col1 query I rowsort label-5862 @@ -37708,7 +37708,7 @@ SELECT ALL + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(60\) \* Int64\(42\) \+ Int64\(47\) \+ Int64\(84\) \* \(\- Int64\(\-60\)\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(60\) \* Int64\(42\) \+ Int64\(47\) \+ Int64\(84\) \* \(\- Int64\(\-60\)\) / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 30 + + ( + 59 ) col2, 60 * + 42 + + 47 + 84 * - - 60 / - CAST ( NULL AS INTEGER ) col2 query I rowsort label-7291 @@ -38528,7 +38528,7 @@ SELECT - + 70 + - NULLIF ( - ( + 10 ), ( + AVG ( + - 51 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -114 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-92\), \(\- \(\- CAST\(Int64\(\-17\) AS Int32\)\)\)\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(4\) \+ max\(Int64\(19\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-92\), \(\- \(\- CAST\(Int64\(\-17\) AS Int64\)\)\)\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(4\) \+ max\(Int64\(19\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( + - 92, - - CAST ( - 17 AS INTEGER ) ) + + - 22 AS col1, 4 + MAX ( 19 ) + 54 AS col1 query I rowsort @@ -41446,7 +41446,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- min\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - - 12 ) * + 48 AS col0, - COALESCE ( + 30, 74 ) * - COUNT ( * ) - 88 + + 79 / - COUNT ( * ) - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -43778,7 +43778,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 144160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-53\) \* Int64\(40\) \* Int64\(\-2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-53\) \* Int64\(40\) \* Int64\(\-2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 34 * + - 53 * 40 * - 2 AS col0, - CAST ( NULL AS INTEGER ) * + - 1 col0 query I rowsort @@ -44776,7 +44776,7 @@ SELECT + 34 AS col2, - COALESCE ( + 54, + + 48 ) + - - ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 76 AS col1, + CASE - - 87 WHEN - 52 * - 1 + - - COUNT ( * ) + + - 35 THEN - COUNT ( DISTINCT - 96 ) END * CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -44861,7 +44861,7 @@ SELECT - - 85 * + 72 * MAX ( + 21 ) * CAST ( - 31 AS INTEGER ) - + 63 col1, 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 988 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(DISTINCT Int64\(52\)\)\) AS Int32\)\) \* Int64\(19\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(DISTINCT Int64\(52\)\)\) AS Int64\)\) \* Int64\(19\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - SUM ( DISTINCT 52 ) AS INTEGER ) * + 19 AS col0, 1 AS col0 query I rowsort label-8675 @@ -46247,7 +46247,7 @@ SELECT - 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int32\) \* Int64\(6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int64\) \* Int64\(6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 36 * + CAST ( NULL AS INTEGER ) * + 6 col1, COUNT ( * ) + - - 72 + - 93 AS col1 query I rowsort label-8943 diff --git a/data/sqlite/random/expr/slt_good_3.slt b/data/sqlite/random/expr/slt_good_3.slt index e1c80e8..79f2685 100644 --- a/data/sqlite/random/expr/slt_good_3.slt +++ b/data/sqlite/random/expr/slt_good_3.slt @@ -10369,7 +10369,7 @@ SELECT + - 20 + + 60 col1, + 84 * - - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(24\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(24\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - + MIN ( ALL 24 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -10681,7 +10681,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(3\) AS Int32\)\) AS col1" at position 0 and "Int64\(0\) \+ Int64\(65\) \+ CAST\(Int64\(\-30\) AS Int32\) \+ Int64\(\-30\) \+ sum\(Int64\(3\)\) \+ Int64\(\-29\) \+ \(\- sum\(Int64\(\-55\)\)\) / Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(3\) AS Int64\)\) AS col1" at position 0 and "Int64\(0\) \+ Int64\(65\) \+ CAST\(Int64\(\-30\) AS Int64\) \+ Int64\(\-30\) \+ sum\(Int64\(3\)\) \+ Int64\(\-29\) \+ \(\- sum\(Int64\(\-55\)\)\) / Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( + + 3 AS INTEGER ) AS col1, 0 + 65 + + + CAST ( + - 30 AS INTEGER ) + - 30 + + + SUM ( ALL + 3 ) + - 29 + - SUM ( ALL - 55 ) / - 66 col1 query II rowsort label-2027 @@ -11841,7 +11841,7 @@ SELECT + ( + 39 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-67\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-67\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - 67, COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2248 @@ -13335,7 +13335,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2730 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-91\) AS Int32\)\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-91\) AS Int64\)\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 91 AS INTEGER ) * - 30 AS col1, 99 AS col1 query I rowsort label-2531 @@ -17935,7 +17935,7 @@ SELECT + 4 + + 22, 57 + - COUNT ( * ) - - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(max\(\(\- Int64\(15\)\)\) AS Int32\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-73\), \(\- Int64\(\-48\)\) \* Int64\(37\) \* Int64\(31\) \+ Int64\(\-32\) \- Int64\(62\) \* \(\- count\(Int64\(78\)\)\) \+ Int64\(40\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(max\(\(\- Int64\(15\)\)\) AS Int64\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-73\), \(\- Int64\(\-48\)\) \* Int64\(37\) \* Int64\(31\) \+ Int64\(\-32\) \- Int64\(62\) \* \(\- count\(Int64\(78\)\)\) \+ Int64\(40\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + MAX ( ALL - + 15 ) AS INTEGER ) AS col0, - NULLIF ( - 73, - - 48 * + 37 * + 31 + - 32 - + + 62 * - COUNT ( 78 ) + + 40 ) AS col0 # Datafusion - Datafusion expected results: @@ -19316,7 +19316,7 @@ SELECT - - 0 * - 69 * + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1178 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- Int64\(\-19\)\) AS col2" at position 0 and "Int64\(\-52\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-14\) \+ Int64\(58\) \+ Int64\(95\) \* Int64\(\-90\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- Int64\(\-19\)\) AS col2" at position 0 and "Int64\(\-52\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-14\) \+ Int64\(58\) \+ Int64\(95\) \* Int64\(\-90\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 62 * - - 19 AS col2, - 52 * - CAST ( NULL AS INTEGER ) + + - 14 + 58 + 95 * - 90 * + 79 col2 query II rowsort label-3667 @@ -19491,7 +19491,7 @@ SELECT ALL + 26 * + SUM ( DISTINCT + + 41 ) * + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(Int64\(\-96\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(Int64\(\-96\) AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * COUNT ( * ) - - CAST ( - 96 AS INTEGER ) AS col0, COUNT ( * ) col0 query I rowsort @@ -20160,7 +20160,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -118 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int64\)\)\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) ) * 11 col1, - 65 - 53, + 12 AS col1 query I rowsort @@ -27170,7 +27170,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- nullif\(Int64\(5\), Int64\(29\)\)\)\)\) AS col1" at position 0 and "Int64\(70\) \- count\(nullif\(CAST\(\(\- Int64\(\-1\)\) AS Int32\), Int64\(43\)\)\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- nullif\(Int64\(5\), Int64\(29\)\)\)\)\) AS col1" at position 0 and "Int64\(70\) \- count\(nullif\(CAST\(\(\- Int64\(\-1\)\) AS Int64\), Int64\(43\)\)\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - + ( - - NULLIF ( 5, + + 29 ) ) ) AS col1, 70 - + COUNT ( + + NULLIF ( + + CAST ( - - 1 AS INTEGER ), + 43 ) ) + - 32 AS col1 query I rowsort @@ -28042,7 +28042,7 @@ SELECT DISTINCT 85 * + - ( - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- Int64\(28\)\) \* Int64\(50\) AS col0" at position 0 and "Int64\(\-28\) / Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- \(\- Int64\(28\)\) \* Int64\(50\) AS col0" at position 0 and "Int64\(\-28\) / Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) - - + 28 * 50 AS col0, - 28 / 45 AS col0 query I rowsort @@ -28301,7 +28301,7 @@ SELECT + + 29 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(25\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-42\) \+ Int64\(38\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(77\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(25\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-42\) \+ Int64\(38\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(77\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) * - + 25 - - COUNT ( * ) + - 42 + + 38 - + COUNT ( * ) / + + 77 * + - 19 AS col0 query I rowsort label-5381 @@ -30647,7 +30647,7 @@ SELECT DISTINCT + 48 * 2 * 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ \(\- CASE Int64\(31\) WHEN Int64\(39\) THEN Int64\(12\) \- Int64\(\-33\) \* \(\- Int64\(\-17\)\) ELSE Int64\(\-95\) END\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \+ \(\- CASE Int64\(31\) WHEN Int64\(39\) THEN Int64\(12\) \- Int64\(\-33\) \* \(\- Int64\(\-17\)\) ELSE Int64\(\-95\) END\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + - CASE + 31 WHEN + + 39 THEN + 12 - - 33 * - - 17 ELSE - 95 END AS col0, MAX ( DISTINCT ( - 60 ) ) AS col0 query II rowsort @@ -34364,7 +34364,7 @@ SELECT - 1 * - SUM ( + - 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(\-21\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / \(\- Int64\(\-21\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) / - - 21 col0, - COUNT ( * ) col0 query I rowsort @@ -38159,7 +38159,7 @@ SELECT DISTINCT + 92 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 889 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(59\) \+ \(\- Int64\(10\)\) \* Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(59\) \+ \(\- Int64\(10\)\) \* Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + + 29 AS col2, 59 + - + 10 * - 83 col2 # Datafusion - Types were automatically converted from: @@ -38836,7 +38836,7 @@ SELECT ALL COALESCE ( 25, 0 ) * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 65 AS col0, CAST ( NULL AS INTEGER ) * 95 AS col0 query I rowsort label-7390 @@ -40092,7 +40092,7 @@ SELECT DISTINCT + ( ( + 29 ) ) * - - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "CAST\(Int64\(20\) AS Int32\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "CAST\(Int64\(20\) AS Int64\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 AS col0, CAST ( 20 AS INTEGER ) + - 58 col0 query I rowsort @@ -41724,7 +41724,7 @@ SELECT 26 AS col0, + 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 76 AS col1 query I rowsort label-7941 @@ -43260,7 +43260,7 @@ SELECT + COUNT ( * ) AS col1, CAST ( 98 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1124 # Datafusion - Expected - -156476 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \- Int64\(15\) \* Int64\(\-76\) AS col0" at position 0 and "\(\- nullif\(Int64\(51\), Int64\(65\)\)\) \* CAST\(\(\- Int64\(\-52\)\) AS Int32\) \* Int64\(57\) \+ nullif\(Int64\(68\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\), Int64\(12\) \+ Int64\(50\)\) \* Int64\(\-77\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \- Int64\(15\) \* Int64\(\-76\) AS col0" at position 0 and "\(\- nullif\(Int64\(51\), Int64\(65\)\)\) \* CAST\(\(\- Int64\(\-52\)\) AS Int64\) \* Int64\(57\) \+ nullif\(Int64\(68\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\), Int64\(12\) \+ Int64\(50\)\) \* Int64\(\-77\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 16 - + 15 * - 76 AS col0, - NULLIF ( 51, 65 ) * + CAST ( - - 52 AS INTEGER ) * + 57 + NULLIF ( 68 + COUNT ( * ) / COUNT ( * ), 12 + 50 ) * - 77 + + COUNT ( * ) AS col0 query I rowsort @@ -45588,7 +45588,7 @@ SELECT CAST ( - 81 AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* CAST\(NULL AS Int32\) \* Int64\(12\) AS col2" at position 0 and "Int64\(93\) \+ sum\(Int64\(\-63\)\) \* CASE \(\- \(\- sum\(Int64\(79\)\)\)\) WHEN Int64\(6\) THEN Int64\(93\) ELSE max\(\(\- CASE Int64\(29\) WHEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(10\) \+ Int64\(89\) THEN NULL ELSE Int64\(17\) END\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* CAST\(NULL AS Int64\) \* Int64\(12\) AS col2" at position 0 and "Int64\(93\) \+ sum\(Int64\(\-63\)\) \* CASE \(\- \(\- sum\(Int64\(79\)\)\)\) WHEN Int64\(6\) THEN Int64\(93\) ELSE max\(\(\- CASE Int64\(29\) WHEN \(\- CAST\(NULL AS Int64\)\) \* Int64\(10\) \+ Int64\(89\) THEN NULL ELSE Int64\(17\) END\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 30 * CAST ( NULL AS INTEGER ) * 12 AS col2, 93 + + SUM ( ALL - 63 ) * + + CASE - - SUM ( + 79 ) WHEN + 6 THEN 93 ELSE MAX ( ALL - CASE 29 WHEN - CAST ( NULL AS INTEGER ) * + + 10 + 89 THEN NULL ELSE + 17 END ) END AS col2 # Datafusion - Datafusion expected results: @@ -45767,7 +45767,7 @@ SELECT + - COALESCE ( COUNT ( * ), - - 36, - 8, COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(65\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-99\) \+ Int64\(61\) END\)\) AS col2" at position 0 and "Int64\(65\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(65\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-99\) \+ Int64\(61\) END\)\) AS col2" at position 0 and "Int64\(65\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - CASE ( + 65 ) WHEN + + COUNT ( * ) THEN - 99 + 61 END AS col2, + 65 + - CAST ( NULL AS INTEGER ) col2 query I rowsort @@ -48881,7 +48881,7 @@ SELECT - 90 / - 58 + - ( 48 ), 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1468 # Datafusion - Expected - -148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) / Int64\(\-28\) \+ Int64\(1\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(71\) \- Int64\(27\) \* Int64\(57\) AS col0" at position 0 and "Int64\(2\) \* CAST\(Int64\(\-74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) / Int64\(\-28\) \+ Int64\(1\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(71\) \- Int64\(27\) \* Int64\(57\) AS col0" at position 0 and "Int64\(2\) \* CAST\(Int64\(\-74\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 30 / - 28 + + + 1 * - - COUNT ( * ) + 71 - + 27 * + 57 col0, 2 * + CAST ( + - 74 AS INTEGER ) AS col0 query II rowsort label-9306 @@ -49066,7 +49066,7 @@ SELECT ALL 20 * - COUNT ( * ) - + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3192 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(\-38\) \* Int64\(85\) AS col2" at position 0 and "Int64\(46\) \+ nullif\(Int64\(\-84\), Int64\(77\) \* Int64\(\-18\) \+ \(\- CAST\(NULL AS Int32\)\) \* nullif\(Int64\(86\), Int64\(75\) \* Int64\(96\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\)\)\) / Int64\(53\) \- Int64\(\-97\) \* Int64\(41\) \+ Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(\-38\) \* Int64\(85\) AS col2" at position 0 and "Int64\(46\) \+ nullif\(Int64\(\-84\), Int64\(77\) \* Int64\(\-18\) \+ \(\- CAST\(NULL AS Int64\)\) \* nullif\(Int64\(86\), Int64\(75\) \* Int64\(96\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\)\)\) / Int64\(53\) \- Int64\(\-97\) \* Int64\(41\) \+ Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 38 + - 38 * 85 AS col2, 46 + NULLIF ( - 84, + + 77 * - 18 + - + CAST ( NULL AS INTEGER ) * NULLIF ( + 86, + 75 * + 96 / - CAST ( + COUNT ( * ) AS FLOAT8 ) ) / 53 - + - 97 * 41 + 47 ) col2 query II rowsort label-9340 @@ -52316,7 +52316,7 @@ SELECT 48 + - 62 + - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "coalesce\(Int64\(13\), Int64\(83\), Int64\(63\) \* \(\- CAST\(Int64\(\-14\) AS Int32\)\) \* Int64\(55\) \* Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "coalesce\(Int64\(13\), Int64\(83\), Int64\(63\) \* \(\- CAST\(Int64\(\-14\) AS Int64\)\) \* Int64\(55\) \* Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 AS col0, COALESCE ( 13, + 83, 63 * - CAST ( - 14 AS INTEGER ) * + 55 * 96 ) AS col0 query I rowsort label-9966 @@ -52425,7 +52425,7 @@ SELECT + 66 AS col2, + ( - - COUNT ( * ) ) * - - 91 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(Int64\(\-26\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(Int64\(\-26\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 2 col2, + COUNT ( * ) / - - CAST ( - 26 AS INTEGER ) AS col2 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_30.slt b/data/sqlite/random/expr/slt_good_30.slt index cb961f4..92f2c9b 100644 --- a/data/sqlite/random/expr/slt_good_30.slt +++ b/data/sqlite/random/expr/slt_good_30.slt @@ -1813,7 +1813,7 @@ SELECT ALL + 25 col1, - ( + 47 ) + - COUNT ( * ) + - 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-78\) \* \(\- Int64\(\-44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CASE Int64\(\-46\) WHEN Int64\(\-50\) THEN NULL WHEN CAST\(Int64\(20\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \+ Int64\(2\) THEN Int64\(\-26\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-78\) \* \(\- Int64\(\-44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CASE Int64\(\-46\) WHEN Int64\(\-50\) THEN NULL WHEN CAST\(Int64\(20\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \+ Int64\(2\) THEN Int64\(\-26\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 72 * - 78 * - - 44 + COUNT ( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST ( ( + 20 ) AS INTEGER ) * - + COUNT ( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2 query I rowsort label-344 @@ -2345,7 +2345,7 @@ SELECT - ( COUNT ( * ) ) / 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(92\) \+ \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(73\)\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(92\) \+ \(\- coalesce\(CAST\(NULL AS Int64\), Int64\(73\)\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 73 ) / 9 col1 query I rowsort @@ -2683,7 +2683,7 @@ SELECT ALL + - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0 query I rowsort @@ -2896,7 +2896,7 @@ SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( C # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(\(\- sum\(Int64\(36\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(\(\- sum\(Int64\(36\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 22 AS col2, CAST ( ( - SUM ( + ( 36 ) ) ) AS INTEGER ) AS col2 query I rowsort label-550 @@ -5302,7 +5302,7 @@ SELECT DISTINCT 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -240 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-80\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-80\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 * - 80 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1013 @@ -6320,7 +6320,7 @@ SELECT ALL + 37 + - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 51 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1212 @@ -6352,7 +6352,7 @@ SELECT 77 * + ( + + MAX ( ALL 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 query I rowsort @@ -7421,7 +7421,7 @@ SELECT ALL + 33 + + + 80 + - COUNT ( * ) * 66 - + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-85\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-85\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( - - 85 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-1424 @@ -8691,7 +8691,7 @@ SELECT MAX ( ALL + 23 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "\(\- CAST\(\(\- avg\(CAST\(\(\- Int64\(\-92\)\) AS Int32\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "\(\- CAST\(\(\- avg\(CAST\(\(\- Int64\(\-92\)\) AS Int64\)\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 17 AS col1, - CAST ( - + AVG ( CAST ( - - 92 AS INTEGER ) ) AS INTEGER ) col1 query I rowsort @@ -8757,7 +8757,7 @@ SELECT + 43 + - - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -7007 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(91\) \* CAST\(\(\- nullif\(Int64\(77\), Int64\(2\) \+ \(\- Int64\(\-52\)\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(91\) \* CAST\(\(\- nullif\(Int64\(77\), Int64\(2\) \+ \(\- Int64\(\-52\)\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81 AS col2, 91 * + CAST ( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: @@ -10286,7 +10286,7 @@ SELECT ALL - 34 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "CAST\(Int64\(31\) AS Int32\) / \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "CAST\(Int64\(31\) AS Int64\) / \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 99 ) AS col1, CAST ( 31 AS INTEGER ) / - + 9 AS col1 query II rowsort label-1974 @@ -10553,7 +10553,7 @@ SELECT + 30 + + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -1691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col0" at position 0 and "nullif\(Int64\(\-89\), \(\- CAST\(Int64\(48\) AS Int32\)\)\) \* \(\- Int64\(\-19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col0" at position 0 and "nullif\(Int64\(\-89\), \(\- CAST\(Int64\(48\) AS Int64\)\)\) \* \(\- Int64\(\-19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST ( + 48 AS INTEGER ) ) * - - 19 AS col0 query I rowsort label-2025 @@ -12171,7 +12171,7 @@ SELECT + + 33 col0, - ( - - 30 ) * + + 3 + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6276 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(\-59\) AS Int32\) \+ \(\- Int64\(93\)\) \* \(\- Int64\(\-18\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(\-59\) AS Int64\) \+ \(\- Int64\(93\)\) \* \(\- Int64\(\-18\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 * + CAST ( - 59 AS INTEGER ) + + ( - + 93 ) * - - 18 * + + COUNT ( * ) AS col1, - 43 AS col1 query III rowsort @@ -12259,7 +12259,7 @@ SELECT + 45 * + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -199584 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-44\) \* Int64\(63\) AS col1" at position 0 and "Int64\(12\) \+ \(\- nullif\(CAST\(NULL AS Int32\), Int64\(\-44\) \* CAST\(NULL AS Int32\) \+ Int64\(\-5\) \* Int64\(\-58\) \+ Int64\(\-94\)\)\) \- Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-44\) \* Int64\(63\) AS col1" at position 0 and "Int64\(12\) \+ \(\- nullif\(CAST\(NULL AS Int64\), Int64\(\-44\) \* CAST\(NULL AS Int64\) \+ Int64\(\-5\) \* Int64\(\-58\) \+ Int64\(\-94\)\)\) \- Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 44 * + CAST ( NULL AS INTEGER ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: @@ -12515,7 +12515,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1406 # Datafusion - Expected - -87472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2 query I rowsort @@ -14039,7 +14039,7 @@ SELECT DISTINCT - COUNT ( * ) / - 70 * 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 326784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(74\) \* CAST\(Int64\(69\) AS Int32\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(74\) \* CAST\(Int64\(69\) AS Int64\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 AS col2, + 74 * CAST ( + 69 AS INTEGER ) * 64 AS col2 query I rowsort label-2687 @@ -14903,7 +14903,7 @@ SELECT 16 * + - 63 - + NULLIF ( 61, - 89 ) + + 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 99 + - - CAST ( NULL AS INTEGER ) AS col0, - 60 AS col0 query I rowsort @@ -19508,7 +19508,7 @@ SELECT ALL - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-11\)\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(23\)\), Int64\(20\)\) AS Int32\) \* \(\- count\(\(\- Int64\(24\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-11\)\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(23\)\), Int64\(20\)\) AS Int64\) \* \(\- count\(\(\- Int64\(24\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - 11 ) AS col2, CAST ( + NULLIF ( + ( - + 23 ), 20 ) AS INTEGER ) * - COUNT ( - + 24 ) AS col2 query I rowsort @@ -22036,7 +22036,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4860 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* CAST\(\(\- nullif\(Int64\(\-54\), Int64\(32\) \* Int64\(42\) \+ Int64\(\-19\) \+ CASE Int64\(\-16\) WHEN \(\- Int64\(74\)\) \* Int64\(\-20\) THEN NULL WHEN Int64\(73\) THEN NULL ELSE Int64\(\-16\) \* Int64\(90\) END\)\) AS Int32\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* CAST\(\(\- nullif\(Int64\(\-54\), Int64\(32\) \* Int64\(42\) \+ Int64\(\-19\) \+ CASE Int64\(\-16\) WHEN \(\- Int64\(74\)\) \* Int64\(\-20\) THEN NULL WHEN Int64\(73\) THEN NULL ELSE Int64\(\-16\) \* Int64\(90\) END\)\) AS Int64\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 * CAST ( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS INTEGER ) AS col1, 66 AS col1 query I rowsort label-4227 @@ -22312,7 +22312,7 @@ SELECT 79 + - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1022 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int32\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int64\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 73 * + - 14 col0, + COUNT ( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX ( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN ( - + CAST ( NULL AS INTEGER ) ) ), + + COUNT ( * ) ) ) AS col0 query I rowsort @@ -24304,7 +24304,7 @@ SELECT ALL - SUM ( + 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0 query I rowsort label-4660 @@ -28736,7 +28736,7 @@ SELECT ALL 61 + CAST ( + 83 AS INTEGER ) * - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-37\) \+ Int64\(96\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-37\) \+ Int64\(96\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 2 col2, - 37 + 96 + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -30517,7 +30517,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int32\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int64\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 17 AS col1, - 31 + CASE COUNT ( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN ( + + 47 ) + + - CAST ( 3 AS INTEGER ) * - 36 THEN 81 * - 76 + 15 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) END AS col1 query I rowsort label-5860 @@ -32961,7 +32961,7 @@ SELECT - ( 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 AS col1 query I rowsort label-6328 @@ -37850,7 +37850,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 + MAX ( - 92 ) + - - COUNT ( * ) * - 52 / - 33 AS col2, CAST ( - 3 AS INTEGER ) AS col2 query I rowsort @@ -43440,7 +43440,7 @@ SELECT ALL + 55 * 2 + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\), Int64\(3\) \* avg\(DISTINCT Int64\(66\)\)\) \- max\(CAST\(NULL AS Int32\)\) \+ Int64\(\-67\) \+ Int64\(\-56\) \+ \(\- min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- Int64\(42\)\) \* Int64\(46\) \- Int64\(\-73\) \* Int64\(21\) AS col2" at position 0 and "Int64\(21\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\), Int64\(3\) \* avg\(DISTINCT Int64\(66\)\)\) \- max\(CAST\(NULL AS Int64\)\) \+ Int64\(\-67\) \+ Int64\(\-56\) \+ \(\- min\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\) \* \(\- Int64\(42\)\) \* Int64\(46\) \- Int64\(\-73\) \* Int64\(21\) AS col2" at position 0 and "Int64\(21\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + 3 * AVG ( DISTINCT + 66 ) ) - + MAX ( ( + ( + CAST ( NULL AS INTEGER ) ) ) ) + - 67 + - 56 + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 42 * ( + 46 ) - - 73 * 21 AS col2, + 21 * + 39 AS col2 query I rowsort @@ -44561,13 +44561,13 @@ SELECT ALL + ( 18 ) - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(58\) \+ \(\- Int64\(\-18\)\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) \* Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(\-21\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(67\) \* Int64\(\-18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) ELSE NULL END, \(\- Int64\(\-77\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(58\) \+ \(\- Int64\(\-18\)\) \+ \(\- CAST\(Int64\(80\) AS Int64\)\) \* Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(\-21\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(67\) \* Int64\(\-18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) ELSE NULL END, \(\- Int64\(\-77\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( ( ( + 82 ) ), 58 + - + ( - 18 ) + - CAST ( + 80 AS INTEGER ) * + + 94 - + COUNT ( * ) ) * + COUNT ( * ) AS col1, NULLIF ( + CASE + - 21 WHEN + - CAST ( NULL AS INTEGER ) THEN 67 * - 18 + - COUNT ( * ) + - 18 ELSE NULL END, - - 77 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1967625 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int64\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 15 * - + CASE + ( CAST ( NULL AS INTEGER ) ) WHEN + - 32 THEN + - 73 * - 84 WHEN 61 * + + 22 + - 21 * - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) THEN NULL ELSE + MIN ( DISTINCT + 40 ) * + - 71 + - COALESCE ( + 75, - 54 * + - COUNT ( * ) * + ( + - 30 ) ) END * 45 AS col2, - 95 AS col2 query I rowsort @@ -50771,7 +50771,7 @@ SELECT DISTINCT - 39 * - 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int64\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 # Datafusion - Types were automatically converted from: @@ -51250,7 +51250,7 @@ SELECT ALL + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- CAST\(Int64\(\-22\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- CAST\(Int64\(\-22\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT - CAST ( - 22 AS INTEGER ) ) col1, - 5 AS col1 query I rowsort @@ -51510,7 +51510,7 @@ SELECT ALL - COUNT ( * ) * - + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int64\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 87 * - 69 * - + 74 / ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) col1, 91 * + CAST ( + 32 AS INTEGER ) + + - COUNT ( * ) * + - COUNT ( * ) * + - COALESCE ( - ( COUNT ( * ) ), 52 + + + 93, + 38 + NULLIF ( CAST ( NULL AS INTEGER ), - 49 ) ) - SUM ( ALL + ( 9 ) ) AS col1 query I rowsort label-9889 @@ -51521,7 +51521,7 @@ SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 55, + + 57 ) + + COUNT ( * ) + - + NULLIF ( 47, + - CAST ( - + 19 AS FLOAT8 ) ) * - 27 AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_31.slt b/data/sqlite/random/expr/slt_good_31.slt index 229bb9c..d828c93 100644 --- a/data/sqlite/random/expr/slt_good_31.slt +++ b/data/sqlite/random/expr/slt_good_31.slt @@ -1617,7 +1617,7 @@ SELECT ALL + COUNT ( * ) * - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(28\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(71\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(28\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(71\) \+ CAST\(NULL AS Int64\) \* \(\- Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 + 28 col0, 13 + 71 + CAST ( NULL AS INTEGER ) * - - 86 col0 # Datafusion - Types were automatically converted from: @@ -2011,7 +2011,7 @@ NULL # Datafusion - Expected - -507091184 # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-16\)\)\) \- Int64\(56\) \* Int64\(\-30\) \* Int64\(\-49\) \* Int64\(80\) \* Int64\(77\) AS col2" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(\(\- CASE \(\- Int64\(27\)\) WHEN \(\- Int64\(7\)\) THEN NULL WHEN Int64\(85\) \+ Int64\(\-33\) \+ \(\- avg\(Int64\(\-59\)\)\) \* Int64\(\-6\) THEN Int64\(\-31\) END\) AS Int32\)\)\) / \(\- Int64\(\-3\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-16\)\)\) \- Int64\(56\) \* Int64\(\-30\) \* Int64\(\-49\) \* Int64\(80\) \* Int64\(77\) AS col2" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(\(\- CASE \(\- Int64\(27\)\) WHEN \(\- Int64\(7\)\) THEN NULL WHEN Int64\(85\) \+ Int64\(\-33\) \+ \(\- avg\(Int64\(\-59\)\)\) \* Int64\(\-6\) THEN Int64\(\-31\) END\) AS Int64\)\)\) / \(\- Int64\(\-3\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MAX ( DISTINCT + - 16 ) - 56 * - 30 * - 49 * 80 * + 77 AS col2, ( + ( - - 97 ) ), 1 + - - CAST ( + - CASE + - ( + 27 ) WHEN - ( 7 ) THEN NULL WHEN + 85 + + - 33 + - + AVG ( - 59 ) * - 6 THEN - 31 END AS INTEGER ) / - ( - 3 ) col2 query I rowsort label-375 @@ -4452,7 +4452,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 query I rowsort label-848 @@ -5007,7 +5007,7 @@ SELECT ALL + 85 + - + 98 + + - 52 / 10 - + 25 * + 95 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int64\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 36 + COUNT ( * ) + - CAST ( 10 AS INTEGER ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0 query I rowsort @@ -5275,7 +5275,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, + 24 AS col0 query I rowsort @@ -6504,7 +6504,7 @@ SELECT ALL 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 query I rowsort @@ -6837,7 +6837,7 @@ SELECT ALL 50 * - + 93 + + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-83\) \* \(\- \(\- CAST\(Int64\(9\) AS Int32\)\)\) \+ Int64\(\-26\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-83\) \* \(\- \(\- CAST\(Int64\(9\) AS Int64\)\)\) \+ Int64\(\-26\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 89 AS col2, + ( + - 83 ) * - - CAST ( + 9 AS INTEGER ) + - 26 + - ( + 99 ) AS col2 query I rowsort @@ -6963,7 +6963,7 @@ SELECT 22 * - 32 * MIN ( 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 65 AS col1, CAST ( NULL AS INTEGER ) + - + ( + 68 ) AS col1 query I rowsort @@ -7214,7 +7214,7 @@ SELECT - + 72 * ( - - 65 ) AS col0 # Datafusion - Expected - -3886 # Datafusion - Expected - 35 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(35\), Int64\(\-56\), CAST\(Int64\(30\) AS Int32\), \(\- Int64\(75\)\) \* Int64\(67\)\) AS col2" at position 1 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(35\), Int64\(\-56\), CAST\(Int64\(30\) AS Int64\), \(\- Int64\(75\)\) \* Int64\(67\)\) AS col2" at position 1 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 67 * 58, + COALESCE ( + 35, - 56, ( + CAST ( 30 AS INTEGER ) ), - + 75 * + 67 ) AS col2, 52 AS col2 query I rowsort @@ -7333,7 +7333,7 @@ SELECT COUNT ( + 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-15\) \+ \(\- Int64\(75\)\) \* \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) \- Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-15\) \+ \(\- Int64\(75\)\) \* \(\- \(\- sum\(CAST\(NULL AS Int64\)\)\)\) \- Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - 15 + - + 75 * - ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) - ( - 6 ) AS col1 query I rowsort label-1400 @@ -7458,7 +7458,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / \(\- Int64\(\-48\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(28\)\) / Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / \(\- Int64\(\-48\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(28\)\) / Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 85 / - - 48 AS col2, CAST ( NULL AS INTEGER ) + - + 28 / - 50 AS col2 query I rowsort @@ -8395,7 +8395,7 @@ SELECT COUNT ( * ) + + + 19 + - 9 AS col2, 12 + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(96\) / Int64\(\-80\) AS col0" at position 0 and "Int64\(10\) \+ CAST\(\(\- Int64\(\-1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(96\) / Int64\(\-80\) AS col0" at position 0 and "Int64\(10\) \+ CAST\(\(\- Int64\(\-1\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 - 96 / - 80 AS col0, + 10 + + CAST ( - - 1 AS INTEGER ) AS col0 query I rowsort @@ -9353,7 +9353,7 @@ SELECT ( - 64 ) + + 41 AS col2 # Datafusion - Expected - 66 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- count\(Int64\(66\)\)\) \* Int64\(\-57\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \* \(\- CAST\(Int64\(74\) AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- count\(Int64\(66\)\)\) \* Int64\(\-57\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-33\) \* \(\- CAST\(Int64\(74\) AS Int64\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 AS col0, COALESCE ( ( + + COUNT ( * ) ), + 84 + + 55 ), + - COUNT ( 66 ) * - 57 * - CAST ( NULL AS INTEGER ) + - 33 * - CAST ( + 74 AS INTEGER ) AS col0 query I rowsort label-1783 @@ -10392,7 +10392,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT \(\- Int64\(86\)\)\) \* Int64\(39\) \* CAST\(Int64\(\-7\) AS Float64\) \- Int64\(21\) \* Int64\(58\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(75\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(2\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT \(\- Int64\(86\)\)\) \* Int64\(39\) \* CAST\(Int64\(\-7\) AS Float64\) \- Int64\(21\) \* Int64\(58\) / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(75\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(2\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + AVG ( DISTINCT - + 86 ) * + + 39 * + + CAST ( + - 7 AS FLOAT8 ) - + + 21 * 58 / - CAST ( NULL AS INTEGER ) + + 75 AS col2, - CAST ( - + 2 AS INTEGER ) AS col2 query I rowsort @@ -11930,7 +11930,7 @@ SELECT DISTINCT ( + - NULLIF ( - 65, CAST ( NULL AS INTEGER ) ) ) * 44 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 19 AS col1, 32 col0 query II rowsort @@ -12776,7 +12776,7 @@ SELECT DISTINCT COUNT ( * ) * - - 57 * + COUNT ( - 61 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 95 col2, ( + - 3 ) * + + COUNT ( * ) / + 34 + + - CAST ( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS INTEGER ) col2 # Datafusion - Datafusion expected results: @@ -14923,7 +14923,7 @@ SELECT ALL + + 90 / + + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, 64 col1 # Datafusion - Datafusion expected results: @@ -18156,7 +18156,7 @@ SELECT ALL 15 * 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- CAST\(Int64\(40\) AS Int32\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- CAST\(Int64\(40\) AS Int64\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 + + - CAST ( + 40 AS INTEGER ) AS col2, 61 col2 query I rowsort @@ -20418,7 +20418,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int32\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int64\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 * + COUNT ( * ) AS col1, ( + CAST ( + + 16 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-3909 @@ -21436,7 +21436,7 @@ SELECT - 26 * - 95 AS col2, + 44 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int64\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 0 AS INTEGER ) * + - CASE - + 28 WHEN 70 * - - ( - 47 ) THEN + 50 END - + 82 AS col0, COUNT ( * ) * + NULLIF ( 18, + + 38 * + 8 / + 76 ) * - + 80 + - 58 + + - NULLIF ( - NULLIF ( + 40, + 76 * 86 * + + 86 ), - - 72 * 9 + - + 64 ) - + CASE - 97 WHEN - + CAST ( NULL AS INTEGER ) THEN + 21 ELSE - 14 * + + COUNT ( * ) + - + 75 / - COUNT ( * ) END AS col0 query I rowsort @@ -21851,7 +21851,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-79\) \- Int64\(63\) / Int64\(\-89\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-79\) \- Int64\(63\) / Int64\(\-89\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, - 79 - + 63 / - 89 + + 67 AS col1 query I rowsort @@ -22459,7 +22459,7 @@ SELECT DISTINCT ( - + 17 ) / 6 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -3777 # Datafusion - Expected - -4050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-4\) AS col2" at position 0 and "Int64\(7\) \+ \(\- Int64\(\-88\)\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-4\) AS col2" at position 0 and "Int64\(7\) \+ \(\- Int64\(\-88\)\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - 4 AS col2, 7 + - - 88 * - 43 AS col2, - 54 * + 75 AS col0 query I rowsort label-4297 @@ -22687,7 +22687,7 @@ SELECT + SUM ( ALL 78 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\)\) / \(\- \(\- Int64\(99\)\)\) \* max\(Int64\(91\)\) AS col0" at position 0 and "Int64\(42\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT CAST\(NULL AS Int64\)\)\)\) / \(\- \(\- Int64\(99\)\)\) \* max\(Int64\(91\)\) AS col0" at position 0 and "Int64\(42\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / - ( - + 99 ) * MAX ( ALL + 91 ) AS col0, 42 * - 98 AS col0 query I rowsort @@ -25659,7 +25659,7 @@ SELECT - + ( ( + COUNT ( * ) ) ) * 36 * 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(66\) \+ nullif\(Int64\(18\), CASE Int64\(37\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) THEN Int64\(31\) \* CAST\(Int64\(32\) AS Int32\) ELSE Int64\(\-42\) \+ CASE Int64\(41\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) THEN NULL WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(65\) \+ coalesce\(Int64\(93\), Int64\(5\)\) WHEN Int64\(29\) THEN Int64\(\-85\) END / Int64\(60\) END \* Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(66\) \+ nullif\(Int64\(18\), CASE Int64\(37\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) THEN Int64\(31\) \* CAST\(Int64\(32\) AS Int64\) ELSE Int64\(\-42\) \+ CASE Int64\(41\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) THEN NULL WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(65\) \+ coalesce\(Int64\(93\), Int64\(5\)\) WHEN Int64\(29\) THEN Int64\(\-85\) END / Int64\(60\) END \* Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 86 col0, 66 + NULLIF ( + + 18, + CASE 37 WHEN + COUNT ( * ) + 20 + - CAST ( + + COUNT ( * ) AS INTEGER ) THEN 31 * + CAST ( 32 AS INTEGER ) ELSE - 42 + CASE + 41 WHEN 32 + + COUNT ( * ) * - 96 THEN NULL WHEN 88 + - ( - COUNT ( * ) ) THEN 65 + ( + COALESCE ( + 93, 5 ) ) WHEN + 29 THEN - 85 END / 60 END * - 68 ) AS col0 query I rowsort @@ -27365,7 +27365,7 @@ SELECT ALL - 46 + + - 59 AS col1 # Datafusion - Expected - 128 # Datafusion - Expected - -2210 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(66\) AS col0" at position 0 and "CASE coalesce\(CAST\(NULL AS Int32\), Int64\(\-38\) \* Int64\(35\) / CAST\(Int64\(\-14\) AS Int32\) \+ Int64\(87\)\) WHEN \(\- \(\- Int64\(26\)\)\) / Int64\(61\) \* Int64\(30\) THEN NULL WHEN Int64\(55\) THEN Int64\(82\) END \+ Int64\(\-90\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(66\) AS col0" at position 0 and "CASE coalesce\(CAST\(NULL AS Int64\), Int64\(\-38\) \* Int64\(35\) / CAST\(Int64\(\-14\) AS Int64\) \+ Int64\(87\)\) WHEN \(\- \(\- Int64\(26\)\)\) / Int64\(61\) \* Int64\(30\) THEN NULL WHEN Int64\(55\) THEN Int64\(82\) END \+ Int64\(\-90\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 62 + + 66 AS col0, - COUNT ( * ) * 34 * 65, + CASE COALESCE ( CAST ( NULL AS INTEGER ), - 38 * 35 / CAST ( + - 14 AS INTEGER ) + ( + 87 ) ) WHEN - - ( 26 ) / + + 61 * + ( + 30 ) THEN NULL WHEN + 55 THEN + 82 END + - 90 AS col0 query I rowsort @@ -27917,7 +27917,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 66 AS col0, - ( + CAST ( NULL AS INTEGER ) ) * + ( CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -29371,7 +29371,7 @@ SELECT ALL 60 * - 81 - - + 7 + + + 1 / - COUNT ( * ) - + 96 * + 28 - + 58 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 806 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* nullif\(Int64\(25\), Int64\(\-12\)\) \+ Int64\(6\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* nullif\(Int64\(25\), Int64\(\-12\)\) \+ Int64\(6\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 32 * NULLIF ( 25, - 12 ) + + 6 AS col0, ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) col0 query I rowsort @@ -33200,7 +33200,7 @@ SELECT - 54 + 25 * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, + 13 AS col1 query I rowsort @@ -35008,7 +35008,7 @@ SELECT - + 73 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 67 + - + COUNT ( * ) + + 74 * + 80 AS col1 query I rowsort @@ -36841,7 +36841,7 @@ SELECT DISTINCT + SUM ( DISTINCT + 72 ), - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + - 4 AS INTEGER ) col2, + COUNT ( * ) AS col2 query I rowsort label-7058 @@ -37046,7 +37046,7 @@ SELECT - 78 * - + ( - - COUNT ( + ( + - 55 ) ) ) + 31 AS col2, + 81 + - + 41 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-22\) \+ CAST\(Int64\(50\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-22\) \+ CAST\(Int64\(50\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 10 AS col2, - 22 + CAST ( 50 AS INTEGER ) AS col2 query II rowsort @@ -38586,7 +38586,7 @@ SELECT DISTINCT - 63 AS col0, - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 col0, + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), + + 32, 21 * ( - + ( + 82 ) ) - + + 55 - + 29 - + CAST ( 81 AS FLOAT8 ) ) AS col0 query II rowsort @@ -39062,7 +39062,7 @@ SELECT ALL - + 2 + + - ( - 80 ) + + 55 * + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int32\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int64\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 6 - + ( + 10 ) AS col1, ( + COUNT ( * ) ) * 11 - CAST ( 61 AS INTEGER ) + + - 37 * 70 AS col1 query I rowsort @@ -40563,7 +40563,7 @@ SELECT ( 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * NULLIF ( - 88, - 46 * 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 60 + 92 ) AS col2, - COALESCE ( + 19, + - 50 ) - + - 28 / + 83 AS col2 query I rowsort label-7767 @@ -41875,7 +41875,7 @@ SELECT + 36 AS col2, + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4928 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(82\) \* Int64\(\-61\) \- \(\- \(\- CAST\(Int64\(\-90\) AS Int32\)\)\) \+ Int64\(\-95\) \+ \(\- Int64\(53\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(82\) \* Int64\(\-61\) \- \(\- \(\- CAST\(Int64\(\-90\) AS Int64\)\)\) \+ Int64\(\-95\) \+ \(\- Int64\(53\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 33 + 82 * - 61 - - - CAST ( - 90 AS INTEGER ) + - 95 + - + 53 + + 99 AS col2, - 25 AS col2 query I rowsort label-8020 @@ -44829,7 +44829,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + - MIN ( 44 ) ) / AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 11 AS col2, + 0 * - COUNT ( * ) AS col2 query I rowsort @@ -47741,7 +47741,7 @@ SELECT ALL - + 35 + + 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83538 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(63\) \* Int64\(51\) \+ Int64\(\-20\) / \(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(8\) \* Int64\(48\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(63\) \* Int64\(51\) \+ Int64\(\-20\) / \(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(8\) \* Int64\(48\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 26 * 63 * + + 51 + - 20 / + - ( - 35 ) AS col0, 8 * + 48 + + CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Types were automatically converted from: @@ -49000,7 +49000,7 @@ SELECT ALL + 0 * - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-76\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-76\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 col2, - 76 + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -49486,7 +49486,7 @@ SELECT ALL + COUNT ( * ) - COUNT ( * ) + + 85 - - 2 + + - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-70\) WHEN Int64\(7\) THEN NULL WHEN \(\- Int64\(98\)\) \* Int64\(\-61\) THEN \(\- nullif\(Int64\(41\), \(\- Int64\(29\)\)\)\) \* \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(\-13\)\)\) END AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-70\) WHEN Int64\(7\) THEN NULL WHEN \(\- Int64\(98\)\) \* Int64\(\-61\) THEN \(\- nullif\(Int64\(41\), \(\- Int64\(29\)\)\)\) \* \(\- coalesce\(CAST\(NULL AS Int64\), Int64\(\-13\)\)\) END AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE + - 70 WHEN 7 THEN NULL WHEN - + 98 * - 61 THEN - + NULLIF ( + ( 41 ), - + 29 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), - 13 ) END AS col1, 41 AS col1 query I rowsort @@ -50815,7 +50815,7 @@ SELECT ALL SUM ( ALL + 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, + 13 AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_32.slt b/data/sqlite/random/expr/slt_good_32.slt index 700700f..d317698 100644 --- a/data/sqlite/random/expr/slt_good_32.slt +++ b/data/sqlite/random/expr/slt_good_32.slt @@ -5859,7 +5859,7 @@ SELECT - + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -10431,7 +10431,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, + 50 AS col2 query I rowsort @@ -22175,7 +22175,7 @@ SELECT DISTINCT - + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -26553,7 +26553,7 @@ SELECT ALL 19 + + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort @@ -27826,7 +27826,7 @@ SELECT ALL - + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(84\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(84\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, + CAST ( + 84 AS INTEGER ) AS col2 query I rowsort @@ -31302,7 +31302,7 @@ SELECT ALL 94 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - COUNT ( * ) AS col2, 51 + - CAST ( + 9 AS INTEGER ) AS col2 query I rowsort label-6091 @@ -33682,7 +33682,7 @@ SELECT - 53 * - 94 * - - 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7854 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(42\) \* Int64\(\-11\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(42\) \* Int64\(\-11\) 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\. SELECT 17 * 42 * - 11 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-6555 @@ -33834,7 +33834,7 @@ SELECT - - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 70 AS INTEGER ) AS col1, ( + CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort label-6585 @@ -36142,7 +36142,7 @@ SELECT ALL 95 AS col0, 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(Int64\(\-57\) AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(Int64\(\-57\) AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( ALL - CAST ( + - 57 AS INTEGER ) ) AS col2, - 61 AS col2 query I rowsort label-7034 @@ -39710,7 +39710,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, - 16 AS col2 query I rowsort @@ -41753,7 +41753,7 @@ SELECT 71 * 4 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, 77 AS col2, - 84 * - COUNT ( * ) AS col2 query I rowsort @@ -42391,7 +42391,7 @@ SELECT DISTINCT - COUNT ( * ) * - 22 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(79\)\) AS Int32\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(79\)\) AS Int64\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + 79 AS INTEGER ) AS col0, 93 AS col0 query I rowsort label-8247 @@ -43442,7 +43442,7 @@ SELECT ALL COUNT ( * ) + - 71 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MIN ( ALL - + 22 ) AS col0, - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-8451 @@ -43513,7 +43513,7 @@ SELECT DISTINCT 61 AS col2, - 68 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) 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\. SELECT ALL 81 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8464 @@ -49477,7 +49477,7 @@ SELECT + 30 - + ( 96 ) + - - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int64\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 70 AS INTEGER ) AS col2, + 0 AS col2 query I rowsort label-9625 diff --git a/data/sqlite/random/expr/slt_good_33.slt b/data/sqlite/random/expr/slt_good_33.slt index cb1e27f..289672c 100644 --- a/data/sqlite/random/expr/slt_good_33.slt +++ b/data/sqlite/random/expr/slt_good_33.slt @@ -1869,7 +1869,7 @@ SELECT DISTINCT + COALESCE ( - 78, + - COUNT ( ALL + CASE - - CAST ( NULL AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(94\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(94\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + 39 + + 94 * 19 AS col0 query I rowsort label-354 @@ -4237,7 +4237,7 @@ SELECT DISTINCT - - ( - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 42 * - COUNT ( * ) AS col0 query I rowsort @@ -6162,7 +6162,7 @@ SELECT + - COUNT ( ALL 32 ) * + 77 * 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(Int64\(\-34\) AS Int32\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(Int64\(\-34\) AS Int64\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 AS col2, + ( + + CAST ( + - 34 AS INTEGER ) ) + 0 AS col2 query I rowsort @@ -7253,7 +7253,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-98\), Int64\(5\) \+ coalesce\(count\(DISTINCT Int64\(\-61\)\), Int64\(\-95\) \+ CAST\(NULL AS Int32\) / Int64\(\-26\) \+ Int64\(\-88\)\) \+ Int64\(\-57\) \+ Int64\(56\)\) \+ \(\- count\(Int64\(\-69\)\)\) \+ CAST\(Int64\(20\) AS Int32\) / Int64\(98\) \* Int64\(21\) \- Int64\(\-56\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-98\), Int64\(5\) \+ coalesce\(count\(DISTINCT Int64\(\-61\)\), Int64\(\-95\) \+ CAST\(NULL AS Int64\) / Int64\(\-26\) \+ Int64\(\-88\)\) \+ Int64\(\-57\) \+ Int64\(56\)\) \+ \(\- count\(Int64\(\-69\)\)\) \+ CAST\(Int64\(20\) AS Int64\) / Int64\(98\) \* Int64\(21\) \- Int64\(\-56\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - 98, + 5 + + COALESCE ( COUNT ( DISTINCT - 61 ), + - 95 + CAST ( NULL AS INTEGER ) / ( - 26 ) + - 88 ) + - 57 + 56 ) + + - COUNT ( + - 69 ) + + CAST ( + + 20 AS INTEGER ) / 98 * + 21 - - 56 AS col0, - 13 AS col0 query I rowsort @@ -12398,7 +12398,7 @@ SELECT ALL + 16 * 11 + 44 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int64\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 90 AS INTEGER ) AS col2, + 87 AS col2 query I rowsort label-2367 @@ -12673,7 +12673,7 @@ SELECT 50 / 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2 query I rowsort @@ -13607,7 +13607,7 @@ SELECT + 72, 10 + - + 93 * - NULLIF ( + ( - 41 ), - 47 ) + + - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -383 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int32\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int32\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int64\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int64\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 * + 7 + 58 AS col0, CASE COALESCE ( AVG ( DISTINCT - - ( 88 ) ), + 69 ) WHEN - 58 THEN + + 60 END + + - 66 - - CAST ( NULL AS INTEGER ) + COALESCE ( + - 9, + CASE + COALESCE ( + 10, 21, COUNT ( * ) ) WHEN + COALESCE ( - 68, + 87 + 76 * CASE 6 / - 80 WHEN + 59 + - NULLIF ( 73 - 15 / 22, 78 + - SUM ( ALL + 74 + CAST ( NULL AS INTEGER ) ) ) * - 85 THEN 57 * + 93 + COALESCE ( ( - 38 ), 3 ) * - 43 WHEN + 78 + - ( 44 + + 49 * - COUNT ( * ) ) THEN NULL END, + 33 * - 56 + + COUNT ( * ) * 76, + ( - 93 ) * - 36 ) + - ( 87 + + 11 ) * 96 THEN - 37 ELSE COUNT ( * ) / 78 END * 57 ) AS col0 query I rowsort label-2597 @@ -16477,7 +16477,7 @@ SELECT - COUNT ( + 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(\-29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(30\) \* Int64\(\-17\) \* Int64\(8\) \- Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(\-29\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(30\) \* Int64\(\-17\) \* Int64\(8\) \- Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 AS col1, ( - 29 ) + + - CAST ( NULL AS INTEGER ) + + 30 * - 17 * 8 - 80 AS col1 query I rowsort @@ -16529,7 +16529,7 @@ SELECT + - 7 * + 68 AS col1 # Datafusion - Expected - -34 # Datafusion - Expected - 19 # Datafusion - Expected - 6992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(34\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-38\) \* \(\- Int64\(46\)\) \* \(\- Int64\(\-4\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(34\) AS Int64\)\) AS col0" at position 0 and "Int64\(\-38\) \* \(\- Int64\(46\)\) \* \(\- Int64\(\-4\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + ( + 34 ) AS INTEGER ) AS col0, 19 + + COUNT ( * ) / + - 84, - 38 * - ( + 46 ) * - - 4 AS col0 query I rowsort @@ -18378,7 +18378,7 @@ SELECT ALL 70 - 54 / + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int64\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( + 21, 84 * 10 / + - MIN ( + - CAST ( 13 AS INTEGER ) ) ) AS col0, + COUNT ( * ) * - + COUNT ( * ) * 24 AS col0 query I rowsort label-3510 @@ -21081,7 +21081,7 @@ SELECT DISTINCT COUNT ( 56 ) + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(33\) AS col2" at position 0 and "Int64\(44\) / \(\- Int64\(\-51\)\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-79\) \+ Int64\(39\) \- Int64\(\-52\) \* Int64\(78\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(33\) AS col2" at position 0 and "Int64\(44\) / \(\- Int64\(\-51\)\) / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-79\) \+ Int64\(39\) \- Int64\(\-52\) \* Int64\(78\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 query I rowsort label-4032 @@ -21405,7 +21405,7 @@ SELECT DISTINCT + 50 * 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(4\)\) AS col0" at position 0 and "Int64\(\-44\) \+ \(\- CAST\(Int64\(98\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(4\)\) AS col0" at position 0 and "Int64\(\-44\) \+ \(\- CAST\(Int64\(98\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( + 4 ) AS col0, - 44 + - CAST ( 98 AS INTEGER ) AS col0 query I rowsort label-4094 @@ -21457,7 +21457,7 @@ SELECT DISTINCT 56 + - COUNT ( * ) + - + SUM ( DISTINCT + 26 ) / 30, + 20 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 7872 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(82\) AS col1" at position 0 and "Int64\(81\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(82\) AS col1" at position 0 and "Int64\(81\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 96 * 82 AS col1, 81 + + CAST ( NULL AS INTEGER ) col1 query I rowsort label-4104 @@ -23644,7 +23644,7 @@ SELECT + 10 + + ( + 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 676 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) / CAST\(NULL AS Int32\) \* Int64\(15\) \* Int64\(51\) \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(52\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) / CAST\(NULL AS Int64\) \* Int64\(15\) \* Int64\(51\) \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(52\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 73 / + CAST ( NULL AS INTEGER ) * 15 * 51 - + - CAST ( NULL AS FLOAT8 ) AS col0, 52 * 13 AS col0 query I rowsort label-4518 @@ -25141,7 +25141,7 @@ SELECT - COUNT ( * ), 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(93\) AS Int32\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(93\) AS Int64\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 AS col1, COUNT ( * ) + + + CAST ( 93 AS INTEGER ) * + 7 - 7 col1 query I rowsort label-4803 @@ -25716,7 +25716,7 @@ SELECT - + ( + COALESCE ( + ( - 5 ), ( - CAST ( - 0 AS INTEGER ) ) * 20 + - 35 - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(92\) WHEN Int64\(\-68\) \+ Int64\(33\) \* Int64\(70\) \+ \(\- CAST\(Int64\(\-40\) AS Int32\)\) THEN Int64\(\-76\) END\) \- Int64\(62\) / \(\- Int64\(57\)\) AS col1" at position 0 and "Int64\(97\) \- sum\(DISTINCT Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(92\) WHEN Int64\(\-68\) \+ Int64\(33\) \* Int64\(70\) \+ \(\- CAST\(Int64\(\-40\) AS Int64\)\) THEN Int64\(\-76\) END\) \- Int64\(62\) / \(\- Int64\(57\)\) AS col1" at position 0 and "Int64\(97\) \- sum\(DISTINCT Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE 92 WHEN - 68 + + 33 * + 70 + - CAST ( - 40 AS INTEGER ) THEN + - 76 END - 62 / - + 57 AS col1, + 97 - SUM ( DISTINCT - 58 ) AS col1 query I rowsort @@ -26721,7 +26721,7 @@ SELECT + 11 - - 2 / + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-5106 @@ -27534,7 +27534,7 @@ SELECT + 57 * - 51 AS col0, 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( CAST ( NULL AS INTEGER ) ) col2, 11 AS col2 query I rowsort label-5261 @@ -28421,7 +28421,7 @@ SELECT - 98 * - - COUNT ( * ) + 84 + 27 * 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 AS col1, - CAST ( NULL AS INTEGER ) * 82 AS col1 query I rowsort @@ -28437,7 +28437,7 @@ SELECT - 40 * - ( - - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(34\), Int64\(72\) \* \(\- Int64\(98\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(34\), Int64\(72\) \* \(\- Int64\(98\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( + 34, 72 * - + 98 ) AS col2, CAST ( NULL AS INTEGER ) * + - 74 AS col2 query I rowsort label-5431 @@ -31437,7 +31437,7 @@ SELECT + 34 + - 38 + + 21 * - 68 + + 48 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int32\)\), Int64\(\-17\) / Int64\(\-95\) / Int64\(\-72\) \- Int64\(92\) \+ coalesce\(Int64\(85\), Int64\(26\) \* Int64\(\-46\), Int64\(56\) \* Int64\(76\)\) \* Int64\(16\) \* Int64\(88\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int64\)\), Int64\(\-17\) / Int64\(\-95\) / Int64\(\-72\) \- Int64\(92\) \+ coalesce\(Int64\(85\), Int64\(26\) \* Int64\(\-46\), Int64\(56\) \* Int64\(76\)\) \* Int64\(16\) \* Int64\(88\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 AS col1, COALESCE ( - 39, - CAST ( NULL AS INTEGER ), - 17 / - 95 / - 72 - 92 + + COALESCE ( + 85, 26 * - 46, 56 * 76 ) * 16 * 88 + + 58 ) AS col1 query I rowsort label-6011 @@ -35511,7 +35511,7 @@ SELECT ALL 76 * - COUNT ( * ) * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) + - ( - - COUNT ( * ) ) * 74 AS col2, 23 + 67 + + - COUNT ( * ) * + 29 AS col2 query I rowsort label-6787 @@ -38288,7 +38288,7 @@ SELECT ALL - - 30 * COUNT ( * ) * + 5 * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(74\) \* Int64\(33\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(74\) \* Int64\(33\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 AS col0, 74 * 33 + + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-7316 @@ -45126,7 +45126,7 @@ SELECT DISTINCT 57 * + - SUM ( ALL 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - - ( CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( 33, - - 83 / ( - 38 ) + + COUNT ( * ) ) + + 80 AS col1, MAX ( ALL - 75 ) AS col1 # Datafusion - Types were automatically converted from: @@ -46454,7 +46454,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / CAST\(NULL AS Int32\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / CAST\(NULL AS Int64\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 / + CAST ( NULL AS INTEGER ) * 99 AS col2, - 42 * 48 AS col2 query I rowsort @@ -47332,7 +47332,7 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 34 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(64\) AS Int32\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(64\) AS Int64\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 64 AS INTEGER ) AS col2, + ( + 34 ) AS col1, 95 AS col2 query I rowsort label-9049 @@ -47449,7 +47449,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, + COUNT ( * ) * 2 col2 query I rowsort label-9072 @@ -50203,7 +50203,7 @@ SELECT + 66, 90 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -23 # Datafusion - Expected - 2866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(23\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(23\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 65 / + CAST ( NULL AS INTEGER ) AS col1, SUM ( DISTINCT - + 23 ) col1, 68 * + ( + 43 ) + + - 58 query I rowsort @@ -51708,7 +51708,7 @@ SELECT DISTINCT - + 16 * - CAST ( - 74 AS INTEGER ) AS col1 # Datafusion - Expected - 26 # Datafusion - Expected - -13651 # Datafusion - Expected - -1376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(17\) \* Int64\(\-11\) AS col1" at position 1 and "\(\- CAST\(\(\- Int64\(\-92\)\) AS Int32\)\) \* Int64\(0\) \- Int64\(32\) \* Int64\(43\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(17\) \* Int64\(\-11\) AS col1" at position 1 and "\(\- CAST\(\(\- Int64\(\-92\)\) AS Int64\)\) \* Int64\(0\) \- Int64\(32\) \* Int64\(43\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 26, 73 * 17 * - 11 AS col1, - CAST ( - - 92 AS INTEGER ) * + 0 - 32 * 43 col1 query I rowsort label-9894 diff --git a/data/sqlite/random/expr/slt_good_34.slt b/data/sqlite/random/expr/slt_good_34.slt index 67db2c7..1b66d8c 100644 --- a/data/sqlite/random/expr/slt_good_34.slt +++ b/data/sqlite/random/expr/slt_good_34.slt @@ -1495,7 +1495,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(Int64\(35\), Int64\(41\) \+ Int64\(11\) \- Int64\(46\)\), Int64\(39\) \* max\(DISTINCT Int64\(39\)\) \* CAST\(Int64\(31\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(7\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(Int64\(35\), Int64\(41\) \+ Int64\(11\) \- Int64\(46\)\), Int64\(39\) \* max\(DISTINCT Int64\(39\)\) \* CAST\(Int64\(31\) AS Int64\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(7\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( COALESCE ( 35, 41 + 11 - + 46 ), ( 39 ) * + + MAX ( DISTINCT 39 ) * + CAST ( + + 31 AS INTEGER ) ) AS col1, - ( COUNT ( * ) ) * + + COUNT ( * ) / + 7 * - 56 AS col1 query I rowsort @@ -2746,7 +2746,7 @@ SELECT - 53 * - 94 * - - 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7854 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(42\) \* Int64\(\-11\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(42\) \* Int64\(\-11\) 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\. SELECT 17 * 42 * - 11 AS col0, CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-512 @@ -3747,7 +3747,7 @@ SELECT ALL 14 * + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 70 AS INTEGER ) AS col1, ( + CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort label-701 @@ -4381,7 +4381,7 @@ SELECT - 46 - + 59 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -726 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(33\) AS col2" at position 0 and "CAST\(Int64\(\-37\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(33\) AS col2" at position 0 and "CAST\(Int64\(\-37\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 22 * 33 AS col2, + CAST ( - 37 AS INTEGER ) AS col2 query I rowsort label-822 @@ -5090,7 +5090,7 @@ SELECT 42 * - 6 + + 73 - 65 col1 # Datafusion - Expected - 44 # Datafusion - Expected - -89 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(89\)\)\) AS col2" at position 1 and "\(\- CAST\(min\(Int64\(14\)\) AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(89\)\)\) AS col2" at position 1 and "\(\- CAST\(min\(Int64\(14\)\) AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 44 AS col0, - SUM ( DISTINCT ( 89 ) ) AS col2, + - CAST ( MIN ( 14 ) AS INTEGER ) AS col2 # Datafusion - Types were automatically converted from: @@ -5605,7 +5605,7 @@ SELECT - COUNT ( * ) - + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 808 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \* Int64\(\-9\) \- Int64\(96\) \+ Int64\(67\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(59\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \* Int64\(\-9\) \- Int64\(96\) \+ Int64\(67\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(59\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 93 * + - 9 - 96 + + 67 AS col1, CAST ( NULL AS INTEGER ) * 59 + + 41 AS col1 query I rowsort @@ -9101,7 +9101,7 @@ SELECT - COUNT ( * ) * + 44 + - - 52 * - + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* CAST\(NULL AS Int32\) \+ Int64\(\-9\) AS col1" at position 0 and "CASE WHEN NOT Int64\(18\) IS NOT NULL THEN NULL ELSE \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* CAST\(NULL AS Int64\) \+ Int64\(\-9\) AS col1" at position 0 and "CASE WHEN NOT Int64\(18\) IS NOT NULL THEN NULL ELSE \(\- \(\- CAST\(NULL AS Int64\)\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 * + CAST ( NULL AS INTEGER ) + - 9 AS col1, + CASE WHEN NOT 18 IS NOT NULL THEN NULL ELSE - - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) END AS col1 query I rowsort label-1725 @@ -10417,7 +10417,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / \(\- Int64\(96\)\) \+ Int64\(\-10\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "Int64\(24\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / \(\- Int64\(96\)\) \+ Int64\(\-10\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "Int64\(24\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 29 / - + 96 + - 10 * - - 3 AS col0, + 24 + + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1974 @@ -10803,7 +10803,7 @@ SELECT ALL + + COALESCE ( CAST ( NULL AS INTEGER ), + - 93, + - MIN ( ALL - - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1422 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(60\) \+ Int64\(\-6\) \* Int64\(31\) \* Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) \* \(\- \(\- max\(\(\- Int64\(18\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(60\) \+ Int64\(\-6\) \* Int64\(31\) \* Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) \* \(\- \(\- max\(\(\- Int64\(18\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) / 60 + - 6 * 31 * - 55 * + + COUNT ( * ) AS col1, 79 * - - MAX ( - + 18 ) AS col1 query I rowsort label-2046 @@ -11532,7 +11532,7 @@ SELECT 60 - - 26 + + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(31\) \+ \(\- \(\- CAST\(CAST\(Int64\(54\) AS Int32\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(31\) \+ \(\- \(\- CAST\(CAST\(Int64\(54\) AS Int64\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 31 + - - CAST ( CAST ( + + 54 AS INTEGER ) AS INTEGER ) col2 # Datafusion - Datafusion expected results: @@ -14232,7 +14232,7 @@ SELECT 98 AS col0, - 58 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-2\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-2\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 AS col2, + 60 * - 2 * CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -16438,7 +16438,7 @@ SELECT 42 + - - 50 - 75 + - 16 * + 40 * 47 * - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- CAST\(\(\- Int64\(\-13\)\) AS Float64\) \* CASE Int64\(72\) WHEN \(\- avg\(Int64\(\-88\)\)\) THEN Int64\(80\) ELSE NULL END AS col2" at position 0 and "CASE \(\- Int64\(82\)\) WHEN Int64\(55\) \* \(\- Int64\(23\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(9\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(\-66\)\) AS Int32\) END THEN Int64\(49\) \* Int64\(\-37\) \* coalesce\(Int64\(84\), Int64\(49\) \* max\(Int64\(\-61\)\), Int64\(\-48\)\) ELSE NULL END \* Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-81\) \+ Int64\(\-66\) \+ Int64\(\-4\) / Int64\(2\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- CAST\(\(\- Int64\(\-13\)\) AS Float64\) \* CASE Int64\(72\) WHEN \(\- avg\(Int64\(\-88\)\)\) THEN Int64\(80\) ELSE NULL END AS col2" at position 0 and "CASE \(\- Int64\(82\)\) WHEN Int64\(55\) \* \(\- Int64\(23\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(9\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(\-66\)\) AS Int64\) END THEN Int64\(49\) \* Int64\(\-37\) \* coalesce\(Int64\(84\), Int64\(49\) \* max\(Int64\(\-61\)\), Int64\(\-48\)\) ELSE NULL END \* Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-81\) \+ Int64\(\-66\) \+ Int64\(\-4\) / Int64\(2\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 - CAST ( - - 13 AS FLOAT8 ) * CASE + 72 WHEN - AVG ( + - 88 ) THEN 80 ELSE NULL END AS col2, CASE - ( 82 ) WHEN + 55 * - + 23 + + COUNT ( * ) THEN + - COUNT ( * ) WHEN CASE + COUNT ( * ) WHEN + + 9 THEN COUNT ( * ) + + CAST ( - - 66 AS INTEGER ) END THEN 49 * - 37 * COALESCE ( 84, + 49 * + MAX ( ALL + - 61 ), - 48 ) ELSE NULL END * + 8 * - COUNT ( * ) + + COUNT ( * ) + - 81 + - 66 + - 4 / + 2 * + 55 col2 query I rowsort label-3113 @@ -19215,7 +19215,7 @@ SELECT - 89 - - - 4 + + + 4 * - - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(Int64\(\-57\) AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(Int64\(\-57\) AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( ALL - CAST ( + - 57 AS INTEGER ) ) AS col2, - 61 AS col2 query I rowsort @@ -20262,7 +20262,7 @@ SELECT COUNT ( DISTINCT + 76 ) * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-67\) AS col1" at position 0 and "CAST\(\(\- Int64\(36\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-67\) AS col1" at position 0 and "CAST\(\(\- Int64\(36\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 69 + + 7 + + + COUNT ( * ) * - 67 col1, CAST ( - + 36 AS INTEGER ) AS col1 query I rowsort label-3845 @@ -22026,7 +22026,7 @@ SELECT + 49 + + 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(53\) AS Int32\)\) AS col2" at position 0 and "max\(Int64\(16\)\) \- Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(53\) AS Int64\)\) AS col2" at position 0 and "max\(Int64\(16\)\) \- Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 53 AS INTEGER ) AS col2, MAX ( 16 ) - 79 AS col2 query I rowsort @@ -22558,7 +22558,7 @@ SELECT - 26 + - 48 - + COUNT ( + 73 ) * - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(45\)\), Int64\(\-13\)\) \+ Int64\(\-63\) AS col1" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(45\)\), Int64\(\-13\)\) \+ Int64\(\-63\) AS col1" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( ( - + 45 ), - 13 ) + - 63 AS col1, 1 + - - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-4283 @@ -24266,7 +24266,7 @@ SELECT CASE - - 31 WHEN - MAX ( ALL + - 79 ) THEN NULL ELSE - 15 END # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(\(\- Int64\(70\)\) AS Int32\)\), Int64\(2\), Int64\(59\) \* Int64\(\-60\)\) \+ Int64\(16\) \+ \(\- coalesce\(Int64\(90\), \(\- Int64\(76\)\) \* Int64\(18\) / Int64\(21\), \(\- \(\- Int64\(5\)\)\)\)\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(\(\- Int64\(70\)\) AS Int64\)\), Int64\(2\), Int64\(59\) \* Int64\(\-60\)\) \+ Int64\(16\) \+ \(\- coalesce\(Int64\(90\), \(\- Int64\(76\)\) \* Int64\(18\) / Int64\(21\), \(\- \(\- Int64\(5\)\)\)\)\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - CAST ( - + 70 AS INTEGER ), 2, ( + + 59 ) * - 60 ) + + 16 + - ( COALESCE ( + 90, - + 76 * + + 18 / 21, - + ( - + 5 ) ) ) col0, 98 col0 query II rowsort label-4607 @@ -25660,7 +25660,7 @@ SELECT DISTINCT - 83 + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(27\)\), Int64\(\-39\) \* Int64\(67\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(55\) \* Int64\(\-99\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- sum\(CAST\(Int64\(31\) AS Int32\)\)\) \+ Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(31\) \* Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(27\)\), Int64\(\-39\) \* Int64\(67\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(55\) \* Int64\(\-99\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- sum\(CAST\(Int64\(31\) AS Int64\)\)\) \+ Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(31\) \* Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - + 27, + ( - 39 ) * + 67 + 77 + ( + COUNT ( * ) ), 55 * - 99 + - COUNT ( * ) ) + - SUM ( ALL + ( CAST ( + 31 AS INTEGER ) ) ) + + 68 * + COUNT ( * ) + + 53 AS col1, + 31 * ( 8 ) AS col1 query I rowsort @@ -25781,7 +25781,7 @@ SELECT + COUNT ( * ) / + - ( 69 ) # Datafusion - Expected - 14 # Datafusion - Expected - 1 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-74\) AS Int32\)\) \+ Int64\(\-60\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-74\) AS Int64\)\) \+ Int64\(\-60\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + ( - 74 ) AS INTEGER ) + - 60 AS col2, COUNT ( * ) AS col2, - 63 AS col2 query I rowsort @@ -32162,7 +32162,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), sum\(DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN \(\- \(\- coalesce\(Int64\(\-84\), Int64\(83\), Int64\(64\)\)\)\) ELSE Int64\(17\) END\)\)\) AS col1" at position 0 and "\(\- CASE Int64\(1\) WHEN Int64\(\-79\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-26\) \* Int64\(92\) WHEN Int64\(91\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(10\)\)\) WHEN CAST\(NULL AS Int32\) THEN NULL END\) \* CASE \(\- nullif\(Int64\(\-23\), Int64\(46\)\)\) WHEN Int64\(80\) THEN Int64\(\-24\) \* Int64\(25\) WHEN coalesce\(\(\- \(\- coalesce\(Int64\(48\), \(\- nullif\(Int64\(67\), \(\- count\(\(\- CAST\(Int64\(92\) AS Int32\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(13\)\)\)\)\), Int64\(48\), Int64\(62\) \* CASE WHEN NOT Int64\(97\) IS NULL THEN Int64\(\-67\) END\) THEN NULL ELSE Int64\(16\) \+ Int64\(98\) END \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), sum\(DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN \(\- \(\- coalesce\(Int64\(\-84\), Int64\(83\), Int64\(64\)\)\)\) ELSE Int64\(17\) END\)\)\) AS col1" at position 0 and "\(\- CASE Int64\(1\) WHEN Int64\(\-79\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-26\) \* Int64\(92\) WHEN Int64\(91\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(10\)\)\) WHEN CAST\(NULL AS Int64\) THEN NULL END\) \* CASE \(\- nullif\(Int64\(\-23\), Int64\(46\)\)\) WHEN Int64\(80\) THEN Int64\(\-24\) \* Int64\(25\) WHEN coalesce\(\(\- \(\- coalesce\(Int64\(48\), \(\- nullif\(Int64\(67\), \(\- count\(\(\- CAST\(Int64\(92\) AS Int64\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(13\)\)\)\)\), Int64\(48\), Int64\(62\) \* CASE WHEN NOT Int64\(97\) IS NULL THEN Int64\(\-67\) END\) THEN NULL ELSE Int64\(16\) \+ Int64\(98\) END \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - NULLIF ( - COUNT ( * ), + SUM ( DISTINCT + CASE WHEN NOT ( NULL ) IS NOT NULL THEN - ( - + COALESCE ( - 84, 83, + 64 ) ) ELSE 17 END ) ) ) AS col1, - CASE + 1 WHEN - 79 + + COUNT ( * ) THEN + - 26 * 92 WHEN 91 THEN COUNT ( * ) * - SUM ( + 10 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END * CASE - NULLIF ( + - 23, 46 ) WHEN 80 THEN - 24 * 25 WHEN + COALESCE ( - - COALESCE ( 48, - NULLIF ( 67, - COUNT ( ALL - CAST ( 92 AS INTEGER ) ) + COUNT ( * ) * COUNT ( * ) ) + - ( 13 ) ), 48, 62 * CASE WHEN NOT 97 IS NULL THEN - 67 END ) THEN NULL ELSE 16 + 98 END + + 38 col1 query I rowsort @@ -33142,7 +33142,7 @@ SELECT - + 64 + - 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "\(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "\(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 89 col0, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 query II rowsort label-6297 @@ -33932,7 +33932,7 @@ SELECT + + ( COALESCE ( MAX ( ALL CAST ( NULL AS INTEGER ) ), + 25 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(56\)\), Int64\(11\) \* nullif\(Int64\(12\), Int64\(30\)\)\) AS col2" at position 0 and "Int64\(41\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(56\)\), Int64\(11\) \* nullif\(Int64\(12\), Int64\(30\)\)\) AS col2" at position 0 and "Int64\(41\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - + 56, + 11 * + NULLIF ( + + 12, + 30 ) ) AS col2, 41 + + CAST ( NULL AS INTEGER ) col2 query I rowsort label-6447 @@ -37405,7 +37405,7 @@ SELECT + NULLIF ( + COUNT ( * ), 86 ) * - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 49049 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-77\), Int64\(85\), Int64\(92\)\)\) \* Int64\(7\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-77\), Int64\(85\), Int64\(92\)\)\) \* Int64\(7\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - COALESCE ( + - 77, 85, 92 ) * + 7 * 91 AS col2 query I rowsort label-7112 @@ -37433,7 +37433,7 @@ SELECT + 96 / - 94 * COUNT ( * ) + 7 * + + 83 + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(\(\- CAST\(NULL AS Int32\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(76\) \+ \(\- max\(Int64\(\-22\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(\(\- CAST\(NULL AS Int64\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 0 and "Int64\(76\) \+ \(\- max\(Int64\(\-22\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS INTEGER ) col1, 76 + - MAX ( - 22 ) AS col1 query I rowsort label-7117 @@ -38245,7 +38245,7 @@ SELECT 6 * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) \* count\(DISTINCT CAST\(NULL AS Int32\)\) \+ \(\- \(\- CASE Int64\(67\) WHEN Int64\(\-67\) \- Int64\(97\) \* Int64\(\-47\) \* Int64\(\-31\) THEN \(\- Int64\(31\)\) END\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) \* count\(DISTINCT CAST\(NULL AS Int64\)\) \+ \(\- \(\- CASE Int64\(67\) WHEN Int64\(\-67\) \- Int64\(97\) \* Int64\(\-47\) \* Int64\(\-31\) THEN \(\- Int64\(31\)\) END\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( - - 16 ) * + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + - - CASE + 67 WHEN - 67 - + 97 * - 47 * - 31 THEN - + 31 END col1, 45 AS col1 query I rowsort @@ -38728,7 +38728,7 @@ SELECT + 5 - 36 * - + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-1\) \* Int64\(60\) / coalesce\(Int64\(\-53\), nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(23\)\) \+ Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-1\) \* Int64\(60\) / coalesce\(Int64\(\-53\), nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(23\)\) \+ Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 23 AS col0, - 1 * + 60 / + + COALESCE ( - 53, + NULLIF ( - + CAST ( NULL AS INTEGER ), + 23 ) + + 98 ) AS col0 query I rowsort label-7366 @@ -39384,7 +39384,7 @@ SELECT ALL ( 59 ) - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-81\) AS Int32\) AS col1" at position 0 and "Int64\(5\) \* Int64\(18\) \- \(\- Int64\(83\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-81\) AS Int64\) AS col1" at position 0 and "Int64\(5\) \* Int64\(18\) \- \(\- Int64\(83\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 81 AS INTEGER ) AS col1, + 5 * 18 - ( - + 83 ) * COUNT ( * ) AS col1 query II rowsort label-7492 @@ -41186,7 +41186,7 @@ SELECT ( + 1 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- \(\- \(\- Int64\(\-29\)\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(49\)\) \* Int64\(\-61\) AS col2" at position 0 and "\(\- Int64\(3\)\) / Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- \(\- \(\- Int64\(\-29\)\)\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(49\)\) \* Int64\(\-61\) AS col2" at position 0 and "\(\- Int64\(3\)\) / Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - - ( - - 29 ) ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - + 49 * - 61 AS col2, - ( + 3 ) / + ( 29 ) AS col2 query I rowsort label-7836 @@ -41853,7 +41853,7 @@ SELECT DISTINCT + + CASE 30 WHEN + ( - 69 ) - + + 65 THEN - 13 * + 61 + + - 84 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 133 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ \(\- CAST\(\(\- min\(Int64\(75\)\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ \(\- CAST\(\(\- min\(Int64\(75\)\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 58 + + - CAST ( + - ( MIN ( + 75 ) ) AS INTEGER ) col1, + 78 AS col1 query I rowsort label-7963 @@ -43233,7 +43233,7 @@ SELECT ALL COUNT ( * ) + CASE - 46 WHEN ( ( - CAST ( NULL AS FLOAT8 ) ) ) THEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(72\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(72\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 AS col1, 72 * - - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-8223 @@ -43803,7 +43803,7 @@ SELECT DISTINCT - + COUNT ( * ) * - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3471 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(10\) \+ Int64\(63\) \+ Int64\(12\) \- Int64\(2\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-39\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(10\) \+ Int64\(63\) \+ Int64\(12\) \- Int64\(2\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-39\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) * + 10 + 63 + + 12 - + + 2 * + COUNT ( * ) AS col2, - 39 * - 89 AS col2 query II rowsort @@ -43821,7 +43821,7 @@ SELECT + + 83, COUNT ( DISTINCT + + 20 ) * - - 93 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / Int64\(\-56\) AS col0" at position 0 and "nullif\(Int64\(32\), \(\- \(\- count\(DISTINCT Int64\(76\)\)\)\) \+ Int64\(2\) \+ CAST\(min\(Int64\(25\)\) AS Int32\)\) \- \(\- Int64\(\-40\)\) \+ \(\- Int64\(65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / Int64\(\-56\) AS col0" at position 0 and "nullif\(Int64\(32\), \(\- \(\- count\(DISTINCT Int64\(76\)\)\)\) \+ Int64\(2\) \+ CAST\(min\(Int64\(25\)\) AS Int64\)\) \- \(\- Int64\(\-40\)\) \+ \(\- Int64\(65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 44 / - 56 AS col0, NULLIF ( + 32, - - COUNT ( DISTINCT 76 ) + 2 + + CAST ( + + MIN ( ALL 25 ) AS INTEGER ) ) - + - ( - 40 ) + - + 65 AS col0 query I rowsort label-8336 @@ -45833,7 +45833,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, - 16 AS col2 query I rowsort @@ -47348,7 +47348,7 @@ SELECT DISTINCT - 17 + 42 * + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 2860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(\-94\) \* CASE Int64\(7\) WHEN Int64\(97\) / \(\- coalesce\(Int64\(18\), Int64\(\-38\) \* Int64\(80\) \+ \(\- \(\- CASE Int64\(84\) WHEN avg\(Int64\(49\)\) THEN Int64\(39\) WHEN Int64\(54\) \* Int64\(\-93\) \- Int64\(9\) \* Int64\(24\) THEN coalesce\(Int64\(99\), Int64\(64\)\) / Int64\(53\) END\)\) \+ Int64\(62\) \* CASE Int64\(\-54\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-18\) \+ Int64\(\-51\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(58\) THEN Int64\(5\) ELSE NULL END, Int64\(36\) / Int64\(\-19\)\)\) \- Int64\(18\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) \* Int64\(51\) ELSE Int64\(\-30\) END \+ Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(\-94\) \* CASE Int64\(7\) WHEN Int64\(97\) / \(\- coalesce\(Int64\(18\), Int64\(\-38\) \* Int64\(80\) \+ \(\- \(\- CASE Int64\(84\) WHEN avg\(Int64\(49\)\) THEN Int64\(39\) WHEN Int64\(54\) \* Int64\(\-93\) \- Int64\(9\) \* Int64\(24\) THEN coalesce\(Int64\(99\), Int64\(64\)\) / Int64\(53\) END\)\) \+ Int64\(62\) \* CASE Int64\(\-54\) WHEN CAST\(NULL AS Int64\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-18\) \+ Int64\(\-51\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(58\) THEN Int64\(5\) ELSE NULL END, Int64\(36\) / Int64\(\-19\)\)\) \- Int64\(18\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) \* Int64\(51\) ELSE Int64\(\-30\) END \+ Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 0 + - 47 AS col1, - 94 * + + CASE 7 WHEN 97 / - COALESCE ( + 18, - 38 * 80 + - - CASE 84 WHEN AVG ( 49 ) THEN 39 WHEN 54 * - 93 - + 9 * + 24 THEN COALESCE ( 99, + 64 ) / + 53 END + 62 * + CASE - 54 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN - 18 + - 51 WHEN COUNT ( * ) / + 58 THEN 5 ELSE NULL END, + 36 / - 19 ) - 18 THEN COUNT ( * ) + 58 * 51 ELSE - 30 END + 40 col1 query I rowsort @@ -49539,7 +49539,7 @@ SELECT + 40 - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "count\(DISTINCT CAST\(NULL AS Int32\)\) \* Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "count\(DISTINCT CAST\(NULL AS Int64\)\) \* Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 AS col1, COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 28 + + COUNT ( * ) + 43 AS col1 # Datafusion - Types were automatically converted from: @@ -49835,7 +49835,7 @@ SELECT ALL 72 + + 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "CASE Int64\(55\) WHEN Int64\(\-52\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(26\) THEN Int64\(32\) \- Int64\(38\) \+ Int64\(\-9\) \* Int64\(\-19\) \+ Int64\(98\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(80\)\) \* Int64\(\-6\) \+ Int64\(22\) \* CAST\(Int64\(\-36\) AS Int32\) \* Int64\(\-37\) ELSE NULL END \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "CASE Int64\(55\) WHEN Int64\(\-52\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(26\) THEN Int64\(32\) \- Int64\(38\) \+ Int64\(\-9\) \* Int64\(\-19\) \+ Int64\(98\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(80\)\) \* Int64\(\-6\) \+ Int64\(22\) \* CAST\(Int64\(\-36\) AS Int64\) \* Int64\(\-37\) ELSE NULL END \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 AS col2, CASE + + 55 WHEN + - 52 / COUNT ( * ) * + + 26 THEN 32 - + 38 + - 9 * - 19 + + 98 + NULLIF ( COUNT ( * ), 80 ) * - 6 + 22 * + + CAST ( - 36 AS INTEGER ) * - 37 ELSE NULL END * - 76 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_35.slt b/data/sqlite/random/expr/slt_good_35.slt index 2b5122e..14e95e2 100644 --- a/data/sqlite/random/expr/slt_good_35.slt +++ b/data/sqlite/random/expr/slt_good_35.slt @@ -1165,7 +1165,7 @@ SELECT + COUNT ( * ) + + 61 - - + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 782 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* nullif\(Int64\(23\), \(\- Int64\(49\)\) \* CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* nullif\(Int64\(23\), \(\- Int64\(49\)\) \* CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 34 * NULLIF ( 23, - + 49 * + CAST ( NULL AS INTEGER ) ) AS col0, + ( - + 76 ) AS col0 query I rowsort label-217 @@ -3040,7 +3040,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) + - 44 AS col2 query I rowsort label-581 @@ -7081,7 +7081,7 @@ SELECT ALL - + 48 AS col1, 58 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, 77 AS col2, - 84 * - COUNT ( * ) AS col2 query I rowsort @@ -8173,7 +8173,7 @@ SELECT + 2, 13 / + - 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(\-76\) \* Int64\(75\) \* Int64\(1\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-75\) / min\(DISTINCT \(\- Int64\(\-17\)\)\) AS col0" at position 0 and "sum\(Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(\-76\) \* Int64\(75\) \* Int64\(1\) \+ CAST\(NULL AS Int64\) \+ Int64\(\-75\) / min\(DISTINCT \(\- Int64\(\-17\)\)\) AS col0" at position 0 and "sum\(Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 + - 76 * 75 * + 1 + + + CAST ( NULL AS INTEGER ) + - 75 / + MIN ( DISTINCT - - 17 ) AS col0, SUM ( ALL + 93 ) col0 query I rowsort label-1559 @@ -10164,7 +10164,7 @@ SELECT ALL - 38 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(77\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-35\)\) \+ Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- Int64\(77\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-35\)\) \+ Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( + 77 ) col0, + COALESCE ( + COUNT ( * ), - - 35 + + 14 ) AS col0 query I rowsort label-1935 @@ -11500,7 +11500,7 @@ SELECT DISTINCT + 10 * - - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(79\)\) AS Int32\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(79\)\) AS Int64\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + 79 AS INTEGER ) AS col0, 93 AS col0 query I rowsort label-2197 @@ -13000,7 +13000,7 @@ SELECT DISTINCT - 95 * - + 92 * 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6302 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(58\) \* Int64\(23\) \* Int64\(87\) \* \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-6\) / Int64\(96\) \+ \(\- \(\- coalesce\(Int64\(79\), \(\- Int64\(86\)\)\)\)\)\)\) AS col1" at position 0 and "Int64\(31\) \* Int64\(\-41\) \* Int64\(\-5\) \- nullif\(Int64\(53\), Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(58\) \* Int64\(23\) \* Int64\(87\) \* \(\- nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-6\) / Int64\(96\) \+ \(\- \(\- coalesce\(Int64\(79\), \(\- Int64\(86\)\)\)\)\)\)\) AS col1" at position 0 and "Int64\(31\) \* Int64\(\-41\) \* Int64\(\-5\) \- nullif\(Int64\(53\), Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 * + 58 * + 23 * 87 * + - NULLIF ( - + CAST ( NULL AS INTEGER ), - 6 / + 96 + + ( - - COALESCE ( 79, - + 86 ) ) ) AS col1, 31 * - 41 * - 5 - NULLIF ( + 53, 92 ) AS col1 query I rowsort label-2484 @@ -16297,7 +16297,7 @@ SELECT - + 15 / - 15 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(94\), CAST\(Int64\(60\) AS Int32\) \* Int64\(\-78\) \+ Int64\(\-90\)\) \+ Int64\(\-34\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(94\), CAST\(Int64\(60\) AS Int64\) \* Int64\(\-78\) \+ Int64\(\-90\)\) \+ Int64\(\-34\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), NULLIF ( 94, + CAST ( + 60 AS INTEGER ) * - 78 + ( + - 90 ) ) + + - 34 AS col1, + + COUNT ( * ) AS col1 query II rowsort label-3111 @@ -17960,7 +17960,7 @@ SELECT - COUNT ( * ) AS col2, 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-62\) / Int64\(\-78\) / Int64\(29\) \* \(\- CAST\(NULL AS Int32\)\) THEN NULL WHEN Int64\(53\) THEN Int64\(22\) \+ Int64\(63\) \+ \(\- \(\- Int64\(82\)\)\) \* Int64\(22\) \+ Int64\(25\) \+ Int64\(11\) END / Int64\(24\) AS col2" at position 0 and "max\(Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-62\) / Int64\(\-78\) / Int64\(29\) \* \(\- CAST\(NULL AS Int64\)\) THEN NULL WHEN Int64\(53\) THEN Int64\(22\) \+ Int64\(63\) \+ \(\- \(\- Int64\(82\)\)\) \* Int64\(22\) \+ Int64\(25\) \+ Int64\(11\) END / Int64\(24\) AS col2" at position 0 and "max\(Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 + + CASE - COUNT ( * ) WHEN - 62 / - 78 / + 29 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 53 THEN + 22 + 63 + - - ( 82 ) * 22 + 25 + + 11 END / 24 AS col2, MAX ( ALL - 3 ) AS col2 query II rowsort @@ -18630,7 +18630,7 @@ SELECT DISTINCT + 26 * 56 * + CASE - 62 WHEN - 75 THEN - ( 93 ) + + ( - 38 ) ELS # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MIN ( ALL - + 22 ) AS col0, - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-3554 @@ -18980,7 +18980,7 @@ SELECT ALL - 67 + - + MIN ( DISTINCT + + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) 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\. SELECT ALL 81 AS col0, CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -19534,7 +19534,7 @@ SELECT COALESCE ( + 57, 81, + 30 * + - 4 * + 21 + + - 22 ) col1, 38 + + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) \* Int64\(\-16\) \+ CASE Int64\(47\) WHEN Int64\(\-5\) \* sum\(CAST\(NULL AS Float64\)\) \- Int64\(\-3\) THEN Int64\(17\) \+ CAST\(NULL AS Int32\) WHEN Int64\(45\) \* Int64\(\-63\) / Int64\(\-77\) \- count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) \* Int64\(\-16\) \+ CASE Int64\(47\) WHEN Int64\(\-5\) \* sum\(CAST\(NULL AS Float64\)\) \- Int64\(\-3\) THEN Int64\(17\) \+ CAST\(NULL AS Int64\) WHEN Int64\(45\) \* Int64\(\-63\) / Int64\(\-77\) \- count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 63 * COUNT ( * ) col2, 11 * + - 16 + CASE + + ( + 47 ) WHEN - 5 * SUM ( ALL CAST ( NULL AS FLOAT8 ) ) - - 3 THEN 17 + CAST ( NULL AS INTEGER ) WHEN + + 45 * + - 63 / + - 77 - + + COUNT ( * ) THEN NULL ELSE NULL END AS col2 query II rowsort label-3726 @@ -23545,7 +23545,7 @@ SELECT DISTINCT - 30 * - ( - SUM ( 44 ) ) + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "\(\- coalesce\(CASE Int64\(26\) WHEN Int64\(\-38\) THEN \(\- CAST\(Int64\(\-65\) AS Int32\)\) \* \(\- Int64\(\-52\)\) \+ \(\- Int64\(\-78\)\) WHEN Int64\(\-82\) \* Int64\(\-19\) THEN NULL WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(38\) END, Int64\(79\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "\(\- coalesce\(CASE Int64\(26\) WHEN Int64\(\-38\) THEN \(\- CAST\(Int64\(\-65\) AS Int64\)\) \* \(\- Int64\(\-52\)\) \+ \(\- Int64\(\-78\)\) WHEN Int64\(\-82\) \* Int64\(\-19\) THEN NULL WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(38\) END, Int64\(79\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 AS col0, - COALESCE ( CASE 26 WHEN - 38 THEN - + CAST ( + - 65 AS INTEGER ) * - - 52 + - - 78 WHEN - 82 * + - 19 THEN NULL WHEN - - COUNT ( * ) THEN 38 END, 79 ) AS col0 query I rowsort label-4502 @@ -25523,7 +25523,7 @@ SELECT 31 * + ( + - 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3588 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- nullif\(Int64\(39\), max\(Int64\(85\)\)\)\)\), Int64\(\-49\) \* \(\- count\(DISTINCT Int64\(0\)\)\) \* \(\- Int64\(11\)\) \+ coalesce\(\(\- CAST\(Int64\(40\) AS Int32\)\), Int64\(5\)\) \+ Int64\(\-71\) \+ Int64\(\-98\)\) \* Int64\(92\) AS col2" at position 0 and "CASE Int64\(79\) WHEN Int64\(37\) \- Int64\(\-56\) \- Int64\(\-70\) THEN \(\- Int64\(67\)\) WHEN Int64\(56\) \* min\(Int64\(99\)\) \* \(\- Int64\(86\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(\-62\)\) THEN NULL ELSE NULL END \* Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- nullif\(Int64\(39\), max\(Int64\(85\)\)\)\)\), Int64\(\-49\) \* \(\- count\(DISTINCT Int64\(0\)\)\) \* \(\- Int64\(11\)\) \+ coalesce\(\(\- CAST\(Int64\(40\) AS Int64\)\), Int64\(5\)\) \+ Int64\(\-71\) \+ Int64\(\-98\)\) \* Int64\(92\) AS col2" at position 0 and "CASE Int64\(79\) WHEN Int64\(37\) \- Int64\(\-56\) \- Int64\(\-70\) THEN \(\- Int64\(67\)\) WHEN Int64\(56\) \* min\(Int64\(99\)\) \* \(\- Int64\(86\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(\-62\)\) THEN NULL ELSE NULL END \* Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - - NULLIF ( 39, MAX ( ALL 85 ) ), - 49 * - + COUNT ( DISTINCT - 0 ) * - + 11 + + COALESCE ( - CAST ( + 40 AS INTEGER ), 5 ) + + - 71 + - 98 ) * + + ( + 92 ) AS col2, CASE + 79 WHEN 37 - - 56 - - 70 THEN - + 67 WHEN + + 56 * MIN ( 99 ) * - + 86 * - + COUNT ( * ) + + + COUNT ( DISTINCT - 62 ) THEN NULL ELSE NULL END * ( - 62 ) + COUNT ( * ) AS col2 query I rowsort label-4877 @@ -29759,7 +29759,7 @@ SELECT ALL + 37 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(13\) / Int64\(61\) \* \(\- CASE Int64\(95\) WHEN Int64\(25\) \+ \(\- avg\(CAST\(NULL AS Int32\)\)\) THEN CAST\(NULL AS Int32\) WHEN Int64\(96\) THEN NULL END\) / coalesce\(Int64\(\-89\), Int64\(31\) \* CAST\(\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(53\) \* Int64\(99\)\)\) AS Int32\) \+ Int64\(22\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(13\) / Int64\(61\) \* \(\- CASE Int64\(95\) WHEN Int64\(25\) \+ \(\- avg\(CAST\(NULL AS Int64\)\)\) THEN CAST\(NULL AS Int64\) WHEN Int64\(96\) THEN NULL END\) / coalesce\(Int64\(\-89\), Int64\(31\) \* CAST\(\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(53\) \* Int64\(99\)\)\) AS Int64\) \+ Int64\(22\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 8 AS col1, + CAST ( NULL AS INTEGER ) / + 13 / + 61 * - CASE 95 WHEN 25 + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) THEN CAST ( NULL AS INTEGER ) WHEN ( ( ( + 96 ) ) ) THEN NULL END / COALESCE ( ( - 89 ), 31 * + CAST ( - NULLIF ( COUNT ( * ), 53 * + 99 ) AS INTEGER ) + 22 ) - + COUNT ( * ) AS col1 query I rowsort label-5695 @@ -30642,7 +30642,7 @@ SELECT ALL + MAX ( + - 1 ), - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-23\) \+ Int64\(33\) \+ Int64\(\-91\) / Int64\(61\) \+ Int64\(\-30\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-23\) \+ Int64\(33\) \+ Int64\(\-91\) / Int64\(61\) \+ Int64\(\-30\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 * - 23 + 33 + - 91 / 61 + - 30 * - CAST ( NULL AS INTEGER ) AS col1, + 21 AS col1 query I rowsort label-5863 @@ -31035,7 +31035,7 @@ SELECT + - 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), CAST\(Int64\(81\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-94\) \* \(\- Int64\(\-17\)\) \+ Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), CAST\(Int64\(81\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-94\) \* \(\- Int64\(\-17\)\) \+ Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 57 col0, COALESCE ( ( - 16 ), CAST ( 81 AS INTEGER ) * - + COUNT ( * ) * COUNT ( * ), + - 94 * - + ( - 17 ) + + 17 ) col0 query I rowsort label-5939 @@ -31257,7 +31257,7 @@ SELECT + 25 * 45 # Datafusion - Expected - NULL # Datafusion - Expected - -11799 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-44\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-44\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 * + - 44 + - - CAST ( NULL AS INTEGER ) AS col0, + 23 * - 19 * 27, 76 AS col0 query I rowsort @@ -31814,7 +31814,7 @@ SELECT + 36 + + 53 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - -1509569 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(25\) \* \(\- min\(Int64\(1\)\)\) \* Int64\(48\) \* Int64\(37\) \* Int64\(34\) \+ CAST\(\(\- Int64\(\-31\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(25\) \* \(\- min\(Int64\(1\)\)\) \* Int64\(48\) \* Int64\(37\) \* Int64\(34\) \+ CAST\(\(\- Int64\(\-31\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col1, + 25 * - MIN ( + 1 ) * + 48 * + 37 * + 34 + CAST ( - - 31 AS INTEGER ) AS col1, + + 31 col0 # Datafusion - Datafusion expected results: @@ -37217,7 +37217,7 @@ SELECT ALL MAX ( ALL + + 56 ) * + - 4 + - ( + COUNT ( * ) ) + - 64 AS col0, 77 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "CAST\(Int64\(20\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "CAST\(Int64\(20\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 59 ) col2, + CAST ( + 20 AS INTEGER ) AS col2 query I rowsort label-7119 @@ -39238,7 +39238,7 @@ SELECT - COUNT ( * ) + + + ( + 33 ) + - 81 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -2520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "Int64\(28\) \* CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "Int64\(28\) \* CAST\(Int64\(\-90\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 22 AS col2, + 28 * + CAST ( - 90 AS INTEGER ) AS col2 query I rowsort label-7508 @@ -39510,7 +39510,7 @@ SELECT DISTINCT 39 * + CAST ( + ( + - AVG ( ( + + 49 ) ) ) AS INTEGER ) * + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(73\) AS col2" at position 0 and "\(\- coalesce\(\(\- max\(DISTINCT \(\- CAST\(Int64\(72\) AS Int32\)\)\)\), sum\(Int64\(72\)\) \- Int64\(24\)\)\) \+ CASE Int64\(1\) WHEN Int64\(84\) THEN Int64\(21\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(97\), Int64\(49\)\) END \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(73\) AS col2" at position 0 and "\(\- coalesce\(\(\- max\(DISTINCT \(\- CAST\(Int64\(72\) AS Int64\)\)\)\), sum\(Int64\(72\)\) \- Int64\(24\)\)\) \+ CASE Int64\(1\) WHEN Int64\(84\) THEN Int64\(21\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(97\), Int64\(49\)\) END \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 + + - COUNT ( * ) + 73 AS col2, - COALESCE ( - + MAX ( DISTINCT - CAST ( 72 AS INTEGER ) ), SUM ( 72 ) - + 24 ) + + CASE 1 WHEN ( + 84 ) THEN + 21 + COUNT ( * ) * NULLIF ( 97, 49 ) END * 86 AS col2 query I rowsort @@ -42889,7 +42889,7 @@ SELECT DISTINCT - 42 + COUNT ( * ) * 94 + - - 50 + COUNT ( * ) + + 37 * + 52 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 83655 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-65\) \* CAST\(Int64\(\-99\) AS Int32\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-65\) \* CAST\(Int64\(\-99\) AS Int64\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 AS col1, - 65 * + CAST ( - 99 AS INTEGER ) * + 13 AS col1 query I rowsort @@ -45956,7 +45956,7 @@ SELECT DISTINCT - 24 + + MAX ( ALL - - 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(42\) / Int64\(\-33\) \+ \(\- count\(nullif\(Int64\(16\), \(\- CAST\(Int64\(\-5\) AS Int32\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(42\) / Int64\(\-33\) \+ \(\- count\(nullif\(Int64\(16\), \(\- CAST\(Int64\(\-5\) AS Int64\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 97 + - 53 AS col1, + 42 / - 33 + - COUNT ( NULLIF ( + 16, + - CAST ( - 5 AS INTEGER ) ) ) AS col1 query I rowsort @@ -46769,7 +46769,7 @@ SELECT - 81 / 27 # Datafusion - Expected - 87 # Datafusion - Expected - 86 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- sum\(Int64\(87\)\)\)\) AS Int32\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- sum\(Int64\(87\)\)\)\) AS Int64\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - - SUM ( + 87 ) AS INTEGER ) AS col0, 86, + 9 AS col0 query I rowsort label-8940 @@ -48728,7 +48728,7 @@ SELECT ALL + ( - + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(64\) \* Int64\(3\) \* Int64\(\-41\) \+ max\(Int64\(\-28\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(64\) \* Int64\(3\) \* Int64\(\-41\) \+ max\(Int64\(\-28\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col1, 64 * 3 * + - 41 + MAX ( + - 28 ) AS col1 query I rowsort @@ -49298,7 +49298,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "CAST\(Int64\(\-5\) AS Int32\) \+ Int64\(25\) / Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "CAST\(Int64\(\-5\) AS Int64\) \+ Int64\(25\) / Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + - 75 ) AS col2, CAST ( - 5 AS INTEGER ) + + 25 / - 18 col2 query I rowsort label-9427 diff --git a/data/sqlite/random/expr/slt_good_36.slt b/data/sqlite/random/expr/slt_good_36.slt index 429d3a6..114b54f 100644 --- a/data/sqlite/random/expr/slt_good_36.slt +++ b/data/sqlite/random/expr/slt_good_36.slt @@ -742,7 +742,7 @@ SELECT DISTINCT - COUNT ( * ) - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-84\)\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-84\)\) AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - - 84 AS INTEGER ) AS col2, - COUNT ( * ) * + + 38 AS col2 query I rowsort @@ -2206,7 +2206,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99935 # Datafusion - Expected - 2412 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-60\) AS Int32\) \* \(\- sum\(\(\- Int64\(\-17\)\)\)\) \* Int64\(98\) \+ Int64\(\-25\) AS col1" at position 0 and "Int64\(60\) \+ Int64\(55\) \* Int64\(41\) \+ Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-60\) AS Int64\) \* \(\- sum\(\(\- Int64\(\-17\)\)\)\) \* Int64\(98\) \+ Int64\(\-25\) AS col1" at position 0 and "Int64\(60\) \+ Int64\(55\) \* Int64\(41\) \+ Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - 60 AS INTEGER ) * + - SUM ( - - 17 ) * + + 98 + + - 25 col1, + 60 + + 55 * + 41 + 97 AS col1 query II rowsort label-411 @@ -6947,7 +6947,7 @@ SELECT + COUNT ( ALL - 42 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, + 61 AS col2 query II rowsort @@ -7875,7 +7875,7 @@ SELECT - COALESCE ( 18, - CAST ( - 57 AS INTEGER ) ) * 28 * ( - 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int64\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 70 AS INTEGER ) AS col2, + 0 AS col2 query II rowsort label-1500 @@ -12507,7 +12507,7 @@ SELECT ALL CAST ( 72 AS INTEGER ) + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, 89 AS col0 query II rowsort @@ -17701,7 +17701,7 @@ SELECT DISTINCT COALESCE ( + 56, + + ( + 67 ), NULLIF ( - 82, + 76 + 18 + - 95 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 158 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(61\) AS col0" at position 0 and "Int64\(17\) \* Int64\(\-8\) \- Int64\(65\) \- Int64\(\-19\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(61\) AS col0" at position 0 and "Int64\(17\) \* Int64\(\-8\) \- Int64\(65\) \- Int64\(\-19\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 97 + 61 AS col0, + 17 * - 8 - + 65 - - 19 * - CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -18956,7 +18956,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(\-44\) AS col0" at position 0 and "\(\- \(\- CAST\(Int64\(\-39\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(\-44\) AS col0" at position 0 and "\(\- \(\- CAST\(Int64\(\-39\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 / - 44 AS col0, - ( + - CAST ( - 39 AS INTEGER ) ) AS col0 query I rowsort @@ -24526,7 +24526,7 @@ SELECT DISTINCT - 10 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(14\) \* Int64\(20\) \- \(\- CASE Int64\(\-7\) WHEN Int64\(34\) THEN Int64\(\-8\) END\) \+ Int64\(49\) \* CAST\(NULL AS Int32\) \* Int64\(57\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(14\) \* Int64\(20\) \- \(\- CASE Int64\(\-7\) WHEN Int64\(34\) THEN Int64\(\-8\) END\) \+ Int64\(49\) \* CAST\(NULL AS Int64\) \* Int64\(57\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 66 col1, + COUNT ( * ) / 14 * + 20 - - CASE - 7 WHEN 34 THEN - 8 END + + 49 * + CAST ( NULL AS INTEGER ) * + 57 + + 89 col1 query II rowsort label-4686 @@ -29206,7 +29206,7 @@ SELECT - 77 + + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -135707 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(51\) \* Int64\(\-70\) \- CAST\(Int64\(47\) AS Int32\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(51\) \* Int64\(\-70\) \- CAST\(Int64\(47\) AS Int64\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 38 * 51 * - 70 - CAST ( 47 AS INTEGER ) AS col0, + 5 AS col0 query II rowsort @@ -30745,7 +30745,7 @@ SELECT ALL + CASE + - 50 WHEN 11 THEN NULL ELSE - - COUNT ( * ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1182 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \- CASE Int64\(\-67\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(73\) \+ Int64\(\-9\) \+ Int64\(83\) \+ Int64\(\-36\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) THEN NULL WHEN max\(Int64\(9\)\) THEN \(\- Int64\(\-40\)\) ELSE \(\- Int64\(\-62\)\) \* Int64\(\-19\) \- Int64\(23\) END AS col1" at position 0 and "Int64\(86\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \- CASE Int64\(\-67\) WHEN \(\- CAST\(NULL AS Int64\)\) \+ Int64\(73\) \+ Int64\(\-9\) \+ Int64\(83\) \+ Int64\(\-36\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) THEN NULL WHEN max\(Int64\(9\)\) THEN \(\- Int64\(\-40\)\) ELSE \(\- Int64\(\-62\)\) \* Int64\(\-19\) \- Int64\(23\) END AS col1" at position 0 and "Int64\(86\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 19 - + CASE - 67 WHEN - CAST ( NULL AS INTEGER ) + + 73 + - 9 + + 83 + - 36 THEN NULL WHEN - COUNT ( * ) * 88 THEN NULL WHEN + MAX ( 9 ) THEN - - 40 ELSE - - 62 * + - 19 - 23 END AS col1, 86 + - 43 AS col1 query II rowsort @@ -32492,7 +32492,7 @@ SELECT - - ( + CASE + ( - ( 42 ) ) WHEN 98 THEN NULL ELSE - + 84 END ) + - 24 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CASE \(\- avg\(\(\- Int64\(\-22\)\)\)\) WHEN Int64\(8\) \+ \(\- Int64\(13\)\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(\-42\) THEN Int64\(\-93\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-99\) WHEN Int64\(84\) / Int64\(50\) THEN NULL ELSE min\(Int64\(50\)\) \* count\(Int64\(1\)\) AS count\(\*\) END / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CASE \(\- avg\(\(\- Int64\(\-22\)\)\)\) WHEN Int64\(8\) \+ \(\- Int64\(13\)\) \+ \(\- CAST\(NULL AS Int64\)\) / Int64\(\-42\) THEN Int64\(\-93\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-99\) WHEN Int64\(84\) / Int64\(50\) THEN NULL ELSE min\(Int64\(50\)\) \* count\(Int64\(1\)\) AS count\(\*\) END / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 AS col1, + CASE - AVG ( ALL - - 22 ) WHEN 8 + - + 13 + + ( - + CAST ( NULL AS INTEGER ) ) / - 42 THEN - 93 + COUNT ( * ) * - 99 WHEN 84 / 50 THEN NULL ELSE MIN ( + 50 ) * COUNT ( * ) END / 5 col1 query I rowsort label-6209 @@ -34075,7 +34075,7 @@ SELECT ALL - COALESCE ( - - 62, + + 65, - 47 ) * - + 69 + + 74, + 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 21 AS col1 query II rowsort @@ -34205,7 +34205,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(91\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- coalesce\(Int64\(\-83\), Int64\(64\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(91\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- coalesce\(Int64\(\-83\), Int64\(64\)\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( + 91 ) AS col2, - CAST ( + - COALESCE ( - 83, + 64 ) AS INTEGER ) AS col2 query I rowsort label-6535 @@ -34893,7 +34893,7 @@ SELECT COALESCE ( + 12, - 65 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6624 # Datafusion - Expected - -907 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- sum\(DISTINCT Int64\(68\)\)\) \+ Int64\(\-96\) AS col1" at position 0 and "Int64\(71\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-12\) \+ Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- sum\(DISTINCT Int64\(68\)\)\) \+ Int64\(\-96\) AS col1" at position 0 and "Int64\(71\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(\-12\) \+ Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 96 * - SUM ( DISTINCT + 68 ) + - 96 AS col1, + 71 * CAST ( COUNT ( * ) AS INTEGER ) * + - 12 + - 55 AS col1 query I rowsort @@ -35798,7 +35798,7 @@ SELECT DISTINCT 51 * + 45 # Datafusion - Expected - -1709 # Datafusion - Expected - 39 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* CAST\(max\(Int64\(\-20\)\) AS Int32\) \+ Int64\(79\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* CAST\(max\(Int64\(\-20\)\) AS Int64\) \+ Int64\(79\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 94 * + CAST ( + + MAX ( ALL - 20 ) AS INTEGER ) + + + 79 + 92 AS col0, 39, 58 AS col0 query I rowsort label-6834 @@ -36400,7 +36400,7 @@ SELECT 84 + - COUNT ( * ) - - 74 * - 64 * - - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12755 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-92\) \+ \(\- Int64\(59\)\) \* CAST\(Int64\(93\) AS Int32\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-92\) \+ \(\- Int64\(59\)\) \* CAST\(Int64\(93\) AS Int64\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 * - 92 + - + 59 * CAST ( 93 AS INTEGER ) AS col0, 12 col0 query I rowsort label-6949 @@ -37289,7 +37289,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) \* \(\- Int64\(3\)\) \* Int64\(76\) \* \(\- Int64\(\-31\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) \* \(\- Int64\(3\)\) \* Int64\(76\) \* \(\- Int64\(\-31\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 95 * COUNT ( * ) * + 61 * - + 3 * + 76 * - - 31 + + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col0, 91 AS col0 query I rowsort @@ -38119,7 +38119,7 @@ SELECT ( + 13 ) * - NULLIF ( - + 20, - + 51 / ( + 73 ) / 93 - - 87 + CAST ( NULL # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(33\) \* \(\- Int64\(90\)\) \+ \(\- nullif\(\(\- Int64\(\-33\)\), \(\- \(\- \(\- Int64\(\-86\)\)\)\)\)\) \* \(\- Int64\(\-55\)\) \* Int64\(58\) AS col0" at position 0 and "\(\- Int64\(\-75\)\) \+ coalesce\(Int64\(\-99\), Int64\(39\) \+ Int64\(\-70\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(33\) \* \(\- Int64\(90\)\) \+ \(\- nullif\(\(\- Int64\(\-33\)\), \(\- \(\- \(\- Int64\(\-86\)\)\)\)\)\) \* \(\- Int64\(\-55\)\) \* Int64\(58\) AS col0" at position 0 and "\(\- Int64\(\-75\)\) \+ coalesce\(Int64\(\-99\), Int64\(39\) \+ Int64\(\-70\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + 33 * - + 90 + - NULLIF ( - - 33, - - ( - ( - 86 ) ) ) * - - 55 * 58 AS col0, - 81, - - 75 + COALESCE ( - 99, 39 + - 70 ) AS col0 query I rowsort @@ -39116,7 +39116,7 @@ SELECT + COALESCE ( + - 58, - 49 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) + + 90 col0, 96 AS col0 query I rowsort @@ -39326,7 +39326,7 @@ SELECT ALL + 27 AS col0, COUNT ( * ) + 97 + 42 / + 46 * + + 74 * + - 18 - 25 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-12\) AS Int32\)\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-12\) AS Int64\)\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 70 AS col1, - CAST ( - 12 AS INTEGER ) + ( 2 ) AS col1 query II rowsort @@ -39499,7 +39499,7 @@ SELECT ALL + + 56 + + - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-59\) AS col0" at position 0 and "Int64\(91\) \- Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-59\) AS col0" at position 0 and "Int64\(91\) \- Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) + - 59 AS col0, + 91 - + + 63 AS col0 query I rowsort @@ -39754,7 +39754,7 @@ SELECT ALL + 68 * - + ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(3\) \* Int64\(87\) \* CAST\(NULL AS Int32\) \* Int64\(85\) \* Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(3\) \* Int64\(87\) \* CAST\(NULL AS Int64\) \* Int64\(85\) \* Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) - COUNT ( * ) AS col1, 3 * + 87 * CAST ( NULL AS INTEGER ) * 85 * - 81 AS col1 query II rowsort label-7589 @@ -42903,7 +42903,7 @@ SELECT ( 58 ) - 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-22\) \- Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "count\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) \* Int64\(\-22\) \- Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 49 col2, COUNT ( ALL - - ( + CAST ( NULL AS INTEGER ) ) ) * - 22 - + - 89 AS col2 query II rowsort label-8189 @@ -44657,7 +44657,7 @@ SELECT - 78 - 95 AS col2 # Datafusion - Expected - 87 # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(15\), Int64\(53\)\) AS col0" at position 1 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(15\), Int64\(53\)\) AS col0" at position 1 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 87, NULLIF ( + 15, + + 53 ) AS col0, - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -45395,7 +45395,7 @@ SELECT DISTINCT + + 73, COUNT ( * ) * 6 / - 35 AS col0 # Datafusion - Expected - 30 # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ nullif\(\(\- CAST\(Int64\(\-4\) AS Int32\)\), Int64\(34\) \+ CAST\(NULL AS Float64\)\) \* Int64\(\-64\) \* \(\- \(\- Int64\(61\)\)\) \* CAST\(NULL AS Int32\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 and "Int64\(65\) \+ \(\- sum\(Int64\(74\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ nullif\(\(\- CAST\(Int64\(\-4\) AS Int64\)\), Int64\(34\) \+ CAST\(NULL AS Float64\)\) \* Int64\(\-64\) \* \(\- \(\- Int64\(61\)\)\) \* CAST\(NULL AS Int64\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 and "Int64\(65\) \+ \(\- sum\(Int64\(74\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 30 AS col1, + 15 + + NULLIF ( - CAST ( - 4 AS INTEGER ), + 34 + + + CAST ( NULL AS FLOAT8 ) ) * - 64 * - ( ( - + 61 ) ) * + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2, ( + 65 ) + - SUM ( 74 ) AS col2 query I rowsort @@ -48484,7 +48484,7 @@ SELECT - - 89 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1392 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 * + + 24 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9253 @@ -49979,7 +49979,7 @@ SELECT + 37 + + 67 * COUNT ( * ) + - SUM ( ALL 22 ) * 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) col1 query I rowsort label-9546 @@ -50118,7 +50118,7 @@ SELECT CAST ( - 54 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -5244 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(55\) AS Int32\) AS col0" at position 0 and "Int64\(69\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(55\) AS Int64\) AS col0" at position 0 and "Int64\(69\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 55 AS INTEGER ) AS col0, 69 * + - 76 AS col0 query I rowsort label-9572 diff --git a/data/sqlite/random/expr/slt_good_37.slt b/data/sqlite/random/expr/slt_good_37.slt index 081ec22..c0b4359 100644 --- a/data/sqlite/random/expr/slt_good_37.slt +++ b/data/sqlite/random/expr/slt_good_37.slt @@ -1219,7 +1219,7 @@ SELECT + COUNT ( * ) - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(Int64\(\-32\) AS Int32\), Int64\(33\)\) / Int64\(47\) / \(\- Int64\(\-79\)\) \* Int64\(55\) AS col0" at position 0 and "Int64\(\-8\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(Int64\(\-32\) AS Int64\), Int64\(33\)\) / Int64\(47\) / \(\- Int64\(\-79\)\) \* Int64\(55\) AS col0" at position 0 and "Int64\(\-8\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( CAST ( - 32 AS INTEGER ), 33 ) / 47 / - - 79 * + 55 AS col0, - 8 + - 46 AS col0 query I rowsort label-225 @@ -3361,7 +3361,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 291194 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(81\) \* Int64\(63\) \+ Int64\(\-64\) \+ \(\- Int64\(79\)\) \- Int64\(80\) \+ Int64\(27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(65\)\) \- Int64\(\-25\) \* \(\- Int64\(39\)\) \* Int64\(\-44\) / Int64\(4\) AS col2" at position 0 and "sum\(DISTINCT \(\- CAST\(\(\- nullif\(Int64\(4\), Int64\(\-78\)\)\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(81\) \* Int64\(63\) \+ Int64\(\-64\) \+ \(\- Int64\(79\)\) \- Int64\(80\) \+ Int64\(27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(65\)\) \- Int64\(\-25\) \* \(\- Int64\(39\)\) \* Int64\(\-44\) / Int64\(4\) AS col2" at position 0 and "sum\(DISTINCT \(\- CAST\(\(\- nullif\(Int64\(4\), Int64\(\-78\)\)\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 55 * 81 * 63 + ( - 64 ) + - + 79 - + 80 + + + 27 + - ( ( + COUNT ( * ) ) ) + + + COUNT ( DISTINCT 65 ) - - 25 * - + 39 * + - 44 / 4 AS col2, SUM ( DISTINCT - CAST ( - + NULLIF ( 4, - 78 ) AS INTEGER ) ) AS col2 query I rowsort label-634 @@ -4901,7 +4901,7 @@ SELECT COUNT ( * ) / - 24 * 14 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - MIN ( ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) ) AS col1, 65 AS col1 query I rowsort @@ -7387,7 +7387,7 @@ SELECT ( + - 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * 46 AS col0 query I rowsort @@ -8394,7 +8394,7 @@ SELECT ( 24 ) + 80 + + MAX ( DISTINCT NULLIF ( 65, ( - - 83 ) / + 59 * - 56 - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(\-78\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(56\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(\-78\) \* CAST\(NULL AS Int64\) \* \(\- Int64\(56\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 AS col0, - 78 * + CAST ( NULL AS INTEGER ) * - + 56 AS col0 query I rowsort @@ -8548,7 +8548,7 @@ SELECT + 58 / COALESCE ( + 3, - COUNT ( * ) ) * 95 + + COUNT ( * ) - MAX ( DISTI # Datafusion - Datafusion expected results: # Datafusion - Expected - -4928 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(77\), \(\- max\(Int64\(52\)\)\) / Int64\(77\)\) \* \(\- coalesce\(Int64\(64\), Int64\(\-31\) \* \(\- CAST\(Int64\(\-28\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(77\), \(\- max\(Int64\(52\)\)\) / Int64\(77\)\) \* \(\- coalesce\(Int64\(64\), Int64\(\-31\) \* \(\- CAST\(Int64\(\-28\) AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( + + 77, - MAX ( 52 ) / + 77 ) * - COALESCE ( + 64, - 31 * - CAST ( + - 28 AS INTEGER ) + + ( + + COUNT ( * ) ) ) AS col1, - 20 AS col1 query I rowsort label-1633 @@ -10071,7 +10071,7 @@ SELECT + CAST ( + 55 AS INTEGER ) # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-32\) \* CAST\(NULL AS Float64\) \* CAST\(NULL AS Int32\) \* Int64\(\-60\) AS col1" at position 1 and "\(\- Int64\(60\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-32\) \* CAST\(NULL AS Float64\) \* CAST\(NULL AS Int64\) \* Int64\(\-60\) AS col1" at position 1 and "\(\- Int64\(60\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 68, + 51 * - 32 * CAST ( NULL AS FLOAT8 ) * + CAST ( NULL AS INTEGER ) * - 60 AS col1, - + 60 AS col1 query I rowsort @@ -11472,7 +11472,7 @@ SELECT ALL - 91 + 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN \(\- CASE Int64\(39\) WHEN Int64\(75\) THEN NULL WHEN Int64\(\-92\) \+ Int64\(98\) \* \(\- Int64\(41\)\) THEN \(\- Int64\(\-28\)\) \- Int64\(17\) END\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(12\) \+ \(\- Int64\(53\)\) / Int64\(\-68\) END \* \(\- Int64\(\-97\)\) \* Int64\(32\) AS col2" at position 0 and "CAST\(Int64\(25\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN \(\- CASE Int64\(39\) WHEN Int64\(75\) THEN NULL WHEN Int64\(\-92\) \+ Int64\(98\) \* \(\- Int64\(41\)\) THEN \(\- Int64\(\-28\)\) \- Int64\(17\) END\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(12\) \+ \(\- Int64\(53\)\) / Int64\(\-68\) END \* \(\- Int64\(\-97\)\) \* Int64\(32\) AS col2" at position 0 and "CAST\(Int64\(25\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE + 70 WHEN + - CASE + + 39 WHEN + 75 THEN NULL WHEN - 92 + + 98 * - + 41 THEN ( - ( - 28 ) ) - + + 17 END * - - COUNT ( * ) THEN 12 + - ( + 53 ) / - 68 END * - - 97 * + 32 AS col2, CAST ( 25 AS INTEGER ) AS col2 query I rowsort @@ -18168,7 +18168,7 @@ SELECT - 43 / - 47 + + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -101388 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(17\) \* Int64\(3\) \* Int64\(71\) \* \(\- Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(17\) \* Int64\(3\) \* Int64\(71\) \* \(\- Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 17 * + 3 * + + 71 * - + 28 AS col0 query I rowsort label-3464 @@ -20003,7 +20003,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(72\) \* Int64\(27\) \+ \(\- Int64\(\-60\)\) \+ CASE Int64\(\-15\) WHEN Int64\(38\) THEN NULL WHEN Int64\(\-89\) THEN Int64\(\-48\) \* Int64\(62\) \- \(\- Int64\(59\)\) END \+ \(\- nullif\(CAST\(NULL AS Int32\), \(\- Int64\(\-86\)\) \* Int64\(14\)\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(72\) \* Int64\(27\) \+ \(\- Int64\(\-60\)\) \+ CASE Int64\(\-15\) WHEN Int64\(38\) THEN NULL WHEN Int64\(\-89\) THEN Int64\(\-48\) \* Int64\(62\) \- \(\- Int64\(59\)\) END \+ \(\- nullif\(CAST\(NULL AS Int64\), \(\- Int64\(\-86\)\) \* Int64\(14\)\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( + 91 ) * + 72 * + + 27 + - - 60 + + CASE - 15 WHEN + 38 THEN NULL WHEN + - 89 THEN - 48 * 62 - ( - + 59 ) END + + - NULLIF ( CAST ( NULL AS INTEGER ), - - 86 * + 14 ) AS col1, + 16 AS col1 query II rowsort @@ -24306,7 +24306,7 @@ SELECT + ( - 61 ), ( - - 1 ) + - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-10\) \+ Int64\(\-83\) AS col1" at position 0 and "count\(\(\- Int64\(\-45\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-10\) \+ Int64\(\-83\) AS col1" at position 0 and "count\(\(\- Int64\(\-45\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 10 + ( - 83 ) col1, + COUNT ( - - 45 ) AS col1 query I rowsort @@ -27677,7 +27677,7 @@ SELECT + 31 + COALESCE ( COUNT ( * ), 94, 73 + + 50 * + 2 / - 34 * + MIN ( 6 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) 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\. SELECT - 33 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-5278 @@ -30067,7 +30067,7 @@ SELECT - 47 * + + COUNT ( * ) * 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(\-44\) AS Int32\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) \+ \(\- Int64\(\-91\)\) \+ \(\- Int64\(20\)\) \+ Int64\(34\) \* Int64\(13\) THEN NULL ELSE coalesce\(Int64\(\-40\), Int64\(2\)\) END\) \+ Int64\(34\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(\-44\) AS Int64\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) \+ \(\- Int64\(\-91\)\) \+ \(\- Int64\(20\)\) \+ Int64\(34\) \* Int64\(13\) THEN NULL ELSE coalesce\(Int64\(\-40\), Int64\(2\)\) END\) \+ Int64\(34\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - COUNT ( * ) WHEN - CAST ( - 44 AS INTEGER ) * + CAST ( + + COUNT ( * ) AS FLOAT8 ) + - - 91 + - + 20 + + 34 * 13 THEN NULL ELSE COALESCE ( + - 40, ( + + 2 ) ) END + 34 AS col1, - 60 col1 query I rowsort @@ -30347,7 +30347,7 @@ SELECT + + 76 - - MIN ( 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3534 # Datafusion - Expected - -230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* CAST\(Int64\(93\) AS Int32\) AS col2" at position 0 and "Int64\(\-90\) \* Int64\(2\) \- Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* CAST\(Int64\(93\) AS Int64\) AS col2" at position 0 and "Int64\(\-90\) \* Int64\(2\) \- Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 38 * + CAST ( + + 93 AS INTEGER ) AS col2, - 90 * + 2 - + + 50 AS col2 query I rowsort label-5784 @@ -35506,7 +35506,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "CAST\(Int64\(22\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "CAST\(Int64\(22\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 82 AS col2, + CAST ( 22 AS INTEGER ) AS col2 query I rowsort label-6767 @@ -36062,7 +36062,7 @@ SELECT DISTINCT 10 * - COUNT ( - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(96\)\) AS col2" at position 0 and "nullif\(CASE nullif\(Int64\(\-83\), Int64\(\-50\) \* Int64\(50\) / Int64\(15\) \* \(\- Int64\(47\)\) \- Int64\(44\)\) WHEN Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(Int64\(\-71\)\) THEN Int64\(17\) WHEN Int64\(40\) \* Int64\(3\) THEN NULL END, Int64\(38\) \* Int64\(53\) \+ \(\- CAST\(Int64\(42\) \+ Int64\(\-33\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(96\)\) AS col2" at position 0 and "nullif\(CASE nullif\(Int64\(\-83\), Int64\(\-50\) \* Int64\(50\) / Int64\(15\) \* \(\- Int64\(47\)\) \- Int64\(44\)\) WHEN Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(Int64\(\-71\)\) THEN Int64\(17\) WHEN Int64\(40\) \* Int64\(3\) THEN NULL END, Int64\(38\) \* Int64\(53\) \+ \(\- CAST\(Int64\(42\) \+ Int64\(\-33\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 96 ) AS col2, NULLIF ( CASE + NULLIF ( - 83, - 50 * 50 / + 15 * - + 47 - 44 ) WHEN - 81 + + + COUNT ( * ) + SUM ( ALL - 71 ) THEN + 17 WHEN + 40 * + 3 THEN NULL END, 38 * 53 + - CAST ( 42 + - 33 AS INTEGER ) ) col2 query I rowsort @@ -37087,7 +37087,7 @@ SELECT + 49 * - 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3080 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(40\) AS Int32\)\) \* Int64\(\-77\) AS col0" at position 0 and "coalesce\(Int64\(54\), Int64\(\-76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(40\) AS Int64\)\) \* Int64\(\-77\) AS col0" at position 0 and "coalesce\(Int64\(54\), Int64\(\-76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( 40 AS INTEGER ) * ( - 77 ) AS col0, COALESCE ( + 54, - 76 ) AS col0 query I rowsort @@ -37622,7 +37622,7 @@ SELECT ALL - + NULLIF ( 45, - + 58 / - - 37 + - COUNT ( * ) + 41 * 1 / - + COALE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Float64\)\)\)\) \* \(\- CASE Int64\(59\) WHEN Int64\(\-87\) / \(\- \(\- Int64\(\-57\)\)\) \- Int64\(\-16\) \+ Int64\(90\) \* Int64\(\-52\) \* Int64\(60\) / Int64\(\-29\) \* \(\- CAST\(Int64\(\-30\) AS Int32\)\) THEN Int64\(\-93\) / Int64\(\-28\) \* Int64\(\-68\) WHEN Int64\(71\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "CAST\(count\(Int64\(0\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Float64\)\)\)\) \* \(\- CASE Int64\(59\) WHEN Int64\(\-87\) / \(\- \(\- Int64\(\-57\)\)\) \- Int64\(\-16\) \+ Int64\(90\) \* Int64\(\-52\) \* Int64\(60\) / Int64\(\-29\) \* \(\- CAST\(Int64\(\-30\) AS Int64\)\) THEN Int64\(\-93\) / Int64\(\-28\) \* Int64\(\-68\) WHEN Int64\(71\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "CAST\(count\(Int64\(0\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MAX ( - CAST ( NULL AS FLOAT8 ) ) * - CASE + 59 WHEN - 87 / - - ( - 57 ) - - 16 + + 90 * - 52 * + 60 / + - 29 * + - CAST ( - 30 AS INTEGER ) THEN - 93 / - 28 * - 68 WHEN + 71 THEN NULL ELSE NULL END AS col0, CAST ( + + COUNT ( 0 ) AS INTEGER ) col0 query II rowsort label-7169 @@ -38989,7 +38989,7 @@ SELECT DISTINCT + ( 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ \(\- \(\- Int64\(\-93\)\)\) AS col2" at position 0 and "Int64\(48\) \+ Int64\(50\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ \(\- \(\- Int64\(\-93\)\)\) AS col2" at position 0 and "Int64\(48\) \+ Int64\(50\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 99 + - - ( - 93 ) AS col2, 48 + 50 + + - ( - ( CAST ( NULL AS INTEGER ) ) ) AS col2 query I rowsort @@ -42212,7 +42212,7 @@ SELECT ALL - COUNT ( - 62 ) * - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- sum\(Int64\(\-47\)\)\) \- Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- sum\(Int64\(\-47\)\)\) \- Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col1, ( + - SUM ( - 47 ) ) - 23 AS col1 query I rowsort @@ -47146,7 +47146,7 @@ SELECT DISTINCT 66 * + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1321 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) / Int64\(18\) \+ \(\- CAST\(Int64\(\-63\) AS Int32\)\) \+ Int64\(\-22\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \* Int64\(64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) / Int64\(18\) \+ \(\- CAST\(Int64\(\-63\) AS Int64\)\) \+ Int64\(\-22\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \* Int64\(64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 7 / 18 + + - CAST ( - 63 AS INTEGER ) + - 22 / + COUNT ( * ) + + 20 * + 64 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -48656,7 +48656,7 @@ SELECT ALL COUNT ( * ) * - + 87 + - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(2\) \- coalesce\(CAST\(Int64\(92\) AS Int32\), \(\- Int64\(11\)\), Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(2\) \- coalesce\(CAST\(Int64\(92\) AS Int64\), \(\- Int64\(11\)\), Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 66 ) AS col2, 2 - + + COALESCE ( + CAST ( + ( ( + + 92 ) ) AS INTEGER ), - + 11, - 21 ) AS col2 query I rowsort label-9268 @@ -49250,7 +49250,7 @@ SELECT DISTINCT + 15 * CAST ( + - 67 AS INTEGER ) - + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) AS col2" at position 0 and "Int64\(98\) \+ CAST\(NULL AS Int32\) \* CASE Int64\(15\) WHEN Int64\(\-84\) THEN NULL WHEN Int64\(11\) \- Int64\(36\) THEN \(\- Int64\(\-49\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) AS col2" at position 0 and "Int64\(98\) \+ CAST\(NULL AS Int64\) \* CASE Int64\(15\) WHEN Int64\(\-84\) THEN NULL WHEN Int64\(11\) \- Int64\(36\) THEN \(\- Int64\(\-49\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 * - COUNT ( * ) * COUNT ( * ) + - 30 AS col2, + 98 + + CAST ( NULL AS INTEGER ) * + CASE + 15 WHEN + - 84 THEN NULL WHEN + 11 - 36 THEN - - 49 END AS col2 query I rowsort label-9380 @@ -50873,7 +50873,7 @@ SELECT 9 - - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, 80 AS col0 query I rowsort label-9689 diff --git a/data/sqlite/random/expr/slt_good_38.slt b/data/sqlite/random/expr/slt_good_38.slt index 92664da..1e1d16d 100644 --- a/data/sqlite/random/expr/slt_good_38.slt +++ b/data/sqlite/random/expr/slt_good_38.slt @@ -164,7 +164,7 @@ SELECT DISTINCT 29 * + + 89 * + 51 * + + COALESCE ( - ( - + 85 ), 13 / 87 ) / + # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(97\) \* max\(Int64\(34\)\) \* CASE CASE Int64\(\-80\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-32\) / Int64\(47\) END WHEN Int64\(28\) THEN NULL ELSE Int64\(17\) END \+ CAST\(NULL AS Int32\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(97\) \* max\(Int64\(34\)\) \* CASE CASE Int64\(\-80\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-32\) / Int64\(47\) END WHEN Int64\(28\) THEN NULL ELSE Int64\(17\) END \+ CAST\(NULL AS Int64\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 7 AS col0, + 97 * MAX ( + 34 ) * + CASE + + CASE - 80 WHEN 32 + + COUNT ( * ) THEN + ( - 32 ) / + 47 END WHEN 28 THEN NULL ELSE + ( + 17 ) END + + CAST ( NULL AS INTEGER ) * + 99 AS col0 query I rowsort label-24 @@ -253,7 +253,7 @@ SELECT + 61 * - COUNT ( * ) * 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-57\) \- Int64\(\-90\) / Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(\-57\) \- Int64\(\-90\) / Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 85 AS col1, ( CAST ( NULL AS INTEGER ) ) / - 57 - - 90 / + - 86 AS col1 query I rowsort label-41 @@ -2989,7 +2989,7 @@ SELECT DISTINCT - 49 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-37\) \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-10\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-37\) \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-10\) / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 37 + - 42 AS col0, - 10 / + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-563 @@ -3684,7 +3684,7 @@ SELECT + 47 + - + COUNT ( * ) / - 11 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(40\) \* Int64\(29\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(40\) \* Int64\(29\) \* CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - 84 ) * + + 40 * + 29 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, + 94 AS col2 query I rowsort @@ -3963,7 +3963,7 @@ SELECT ALL + 7 - - - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -7145,7 +7145,7 @@ SELECT DISTINCT - 99 + + 68 - 8 + + 86 # Datafusion - Expected - 11 # Datafusion - Expected - -59 # Datafusion - Expected - -1264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-59\), Int64\(5\) \* Int64\(9\) \+ Int64\(24\) \+ \(\- CASE Int64\(4\) WHEN Int64\(36\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(43\) THEN min\(Int64\(85\)\) \+ Int64\(35\) WHEN \(\- Int64\(9\)\) \* nullif\(Int64\(39\), CAST\(NULL AS Float64\) \- Int64\(32\)\) \+ Int64\(71\) THEN NULL ELSE NULL END\) / Int64\(46\)\) AS col0" at position 1 and "nullif\(\(\- count\(Int64\(\-43\)\)\), Int64\(\-94\) \+ Int64\(\-67\)\) \* \(\- CAST\(Int64\(54\) AS Int32\)\) \* Int64\(\-22\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(DISTINCT Int64\(76\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-59\), Int64\(5\) \* Int64\(9\) \+ Int64\(24\) \+ \(\- CASE Int64\(4\) WHEN Int64\(36\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(43\) THEN min\(Int64\(85\)\) \+ Int64\(35\) WHEN \(\- Int64\(9\)\) \* nullif\(Int64\(39\), CAST\(NULL AS Float64\) \- Int64\(32\)\) \+ Int64\(71\) THEN NULL ELSE NULL END\) / Int64\(46\)\) AS col0" at position 1 and "nullif\(\(\- count\(Int64\(\-43\)\)\), Int64\(\-94\) \+ Int64\(\-67\)\) \* \(\- CAST\(Int64\(54\) AS Int64\)\) \* Int64\(\-22\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(DISTINCT Int64\(76\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 11 col1, NULLIF ( + - 59, 5 * 9 + 24 + - CASE 4 WHEN 36 * + COUNT ( * ) THEN NULL WHEN + 43 THEN + + MIN ( 85 ) + 35 WHEN - + 9 * NULLIF ( 39, + + CAST ( NULL AS FLOAT8 ) - + 32 ) + + 71 THEN NULL ELSE NULL END / + 46 ) AS col0, + NULLIF ( + - COUNT ( ALL - 43 ), - 94 + - 67 ) * - CAST ( + ( 54 ) AS INTEGER ) * - 22 / + + COUNT ( * ) + - MAX ( DISTINCT 76 ) AS col0 query I rowsort label-1358 @@ -7381,7 +7381,7 @@ SELECT ALL - + 43 - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- \(\- coalesce\(Int64\(\-9\), \(\- sum\(Int64\(49\)\)\) \* Int64\(70\) \* Int64\(65\) \+ Int64\(\-62\) \+ Int64\(0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \- \(\- coalesce\(Int64\(\-9\), \(\- sum\(Int64\(49\)\)\) \* Int64\(70\) \* Int64\(65\) \+ Int64\(\-62\) \+ Int64\(0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 AS col2, CAST ( NULL AS INTEGER ) - - COALESCE ( - 9, - SUM ( + + 49 ) * + + 70 * + 65 + - 62 + + - 0 ) AS col2 query I rowsort label-1403 @@ -10686,7 +10686,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(Int64\(76\) AS Int32\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(Int64\(76\) AS Int64\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( + CAST ( 76 AS INTEGER ) ) AS col2, + 94 AS col2 query I rowsort @@ -11158,7 +11158,7 @@ SELECT ( + - 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(\(\- Int64\(63\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(\(\- Int64\(63\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 34 AS col0, - COUNT ( * ) + - CAST ( + - ( + 63 ) AS INTEGER ) col0 query I rowsort label-2127 @@ -14267,7 +14267,7 @@ SELECT ALL + 63 + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "coalesce\(Int64\(\-4\), Int64\(0\), Int64\(\-73\), Int64\(76\) \* \(\- nullif\(min\(Int64\(1\)\), Int64\(\-11\) \* Int64\(22\) \- coalesce\(Int64\(19\), \(\- CAST\(NULL AS Int32\)\)\)\)\)\) \* CASE Int64\(\-65\) WHEN Int64\(75\) \+ Int64\(14\) \* min\(DISTINCT Int64\(15\)\) \+ Int64\(62\) / Int64\(\-98\) THEN NULL WHEN Int64\(21\) / \(\- CASE \(\- Int64\(\-73\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN \(\- Int64\(85\)\) END\) \* Int64\(\-19\) \* Int64\(53\) THEN NULL WHEN Int64\(0\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(31\) END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "coalesce\(Int64\(\-4\), Int64\(0\), Int64\(\-73\), Int64\(76\) \* \(\- nullif\(min\(Int64\(1\)\), Int64\(\-11\) \* Int64\(22\) \- coalesce\(Int64\(19\), \(\- CAST\(NULL AS Int64\)\)\)\)\)\) \* CASE Int64\(\-65\) WHEN Int64\(75\) \+ Int64\(14\) \* min\(DISTINCT Int64\(15\)\) \+ Int64\(62\) / Int64\(\-98\) THEN NULL WHEN Int64\(21\) / \(\- CASE \(\- Int64\(\-73\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN \(\- Int64\(85\)\) END\) \* Int64\(\-19\) \* Int64\(53\) THEN NULL WHEN Int64\(0\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(31\) END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 57 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + - 4, 0, - 73, 76 * - NULLIF ( MIN ( ALL + 1 ), - 11 * 22 - COALESCE ( + 19, + - CAST ( NULL AS INTEGER ) ) ) ) * + CASE - 65 WHEN + 75 + 14 * MIN ( DISTINCT 15 ) + + ( + 62 ) / + ( + - 98 ) THEN NULL WHEN 21 / - CASE - - 73 WHEN - - COUNT ( * ) THEN - ( 85 ) END * + + ( - 19 ) * 53 THEN NULL WHEN 0 * ( + COUNT ( * ) ) THEN 31 END * COUNT ( * ) AS col2 query I rowsort label-2715 @@ -17163,7 +17163,7 @@ SELECT ALL 80 * 42, 7 * - - 91 + + 20 / 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-6\) \* Int64\(26\), \(\- nullif\(Int64\(83\), Int64\(66\)\)\) \+ Int64\(\-73\)\) \- Int64\(\-99\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-6\) \* Int64\(26\), \(\- nullif\(Int64\(83\), Int64\(66\)\)\) \+ Int64\(\-73\)\) \- Int64\(\-99\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + COUNT ( * ), 33 * ( + COUNT ( * ) ) * - 6 * + 26, - NULLIF ( + + 83, + 66 ) + - 73 ) - - 99 AS col1, + CAST ( NULL AS INTEGER ) + - 85 col1 query I rowsort label-3258 @@ -19555,7 +19555,7 @@ SELECT ALL 19 * 45 * + COUNT ( * ) * 6 AS col1, + 62 + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(\-29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(70\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-34\) \- Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(\-29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(70\) \* CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-34\) \- Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 + - 29 + + - COUNT ( * ) - + 70 * + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1, - 34 - + + 83 AS col1 query II rowsort @@ -21250,7 +21250,7 @@ SELECT DISTINCT + 91 AS col1, 46 / 70 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \+ Int64\(\-30\) \+ Int64\(\-44\) \- Int64\(39\) \- Int64\(16\) / CAST\(Int64\(\-51\) AS Int32\) \* Int64\(51\) \* Int64\(\-92\) / Int64\(79\) AS col1" at position 0 and "Int64\(89\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-75\) \+ Int64\(55\), Int64\(\-63\) / Int64\(\-94\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \+ Int64\(\-30\) \+ Int64\(\-44\) \- Int64\(39\) \- Int64\(16\) / CAST\(Int64\(\-51\) AS Int64\) \* Int64\(51\) \* Int64\(\-92\) / Int64\(79\) AS col1" at position 0 and "Int64\(89\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-75\) \+ Int64\(55\), Int64\(\-63\) / Int64\(\-94\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 41 + - 30 + - 44 - 39 - 16 / CAST ( - 51 AS INTEGER ) * + ( + + 51 ) * - 92 / + 79 AS col1, + 89 * + COALESCE ( - ( - + COUNT ( * ) ), + COUNT ( * ) + - 75 + + 55, - 63 / ( - 94 ) + COUNT ( * ) * - 38 ) AS col1 query II rowsort @@ -21776,7 +21776,7 @@ SELECT + MIN ( DISTINCT + 53 ) + + + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int32\)\) AS col1" at position 0 and "count\(\(\- CASE Int64\(96\) WHEN \(\- nullif\(Int64\(78\), Int64\(\-35\) \+ Int64\(\-72\)\)\) \- Int64\(83\) \+ Int64\(32\) \* Int64\(\-56\) THEN Int64\(\-32\) ELSE Int64\(52\) END\)\) \+ Int64\(77\) / Int64\(\-46\) \+ Int64\(51\) \+ Int64\(14\) / Int64\(\-99\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int64\)\) AS col1" at position 0 and "count\(\(\- CASE Int64\(96\) WHEN \(\- nullif\(Int64\(78\), Int64\(\-35\) \+ Int64\(\-72\)\)\) \- Int64\(83\) \+ Int64\(32\) \* Int64\(\-56\) THEN Int64\(\-32\) ELSE Int64\(52\) END\)\) \+ Int64\(77\) / Int64\(\-46\) \+ Int64\(51\) \+ Int64\(14\) / Int64\(\-99\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( + + 84 AS INTEGER ) col1, COUNT ( ALL - CASE ( + + ( + 96 ) ) WHEN - + NULLIF ( + 78, ( - 35 ) + - 72 ) - + ( + 83 ) + 32 * - 56 THEN - 32 ELSE + 52 END ) + ( 77 ) / + - 46 + + 51 + + 14 / + - 99 + + 91 col1 query I rowsort @@ -23002,7 +23002,7 @@ SELECT + 71 * - COUNT ( ALL - 59 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -33582 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(30\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) \+ CAST\(Int64\(\-9\) AS Int32\) \* Int64\(\-84\) \* \(\- Int64\(55\)\) \+ \(\- \(\- \(\- Int64\(\-97\)\)\)\) \* \(\- \(\- Int64\(82\)\)\) \- \(\- sum\(DISTINCT Int64\(7\)\)\) / Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(30\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) \+ CAST\(Int64\(\-9\) AS Int64\) \* Int64\(\-84\) \* \(\- Int64\(55\)\) \+ \(\- \(\- \(\- Int64\(\-97\)\)\)\) \* \(\- \(\- Int64\(82\)\)\) \- \(\- sum\(DISTINCT Int64\(7\)\)\) / Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 43 AS col1, 30 / COUNT ( * ) + + 14 + CAST ( - 9 AS INTEGER ) * - 84 * + ( - + 55 ) + - - ( - - 97 ) * + - ( - + 82 ) - - + SUM ( DISTINCT 7 ) / 87 AS col1 query I rowsort label-4375 @@ -24390,7 +24390,7 @@ SELECT DISTINCT 91 * + 15 * 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(33\)\) AS col1" at position 0 and "CASE Int64\(\-16\) WHEN Int64\(65\) THEN Int64\(75\) WHEN Int64\(92\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ Int64\(46\) THEN Int64\(\-49\) ELSE NULL END \* Int64\(\-20\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(33\)\) AS col1" at position 0 and "CASE Int64\(\-16\) WHEN Int64\(65\) THEN Int64\(75\) WHEN Int64\(92\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) \+ Int64\(46\) THEN Int64\(\-49\) ELSE NULL END \* Int64\(\-20\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( DISTINCT + 33 ) AS col1, CASE + - 16 WHEN 65 THEN 75 WHEN + 92 / - CAST ( + COUNT ( * ) AS INTEGER ) + 46 THEN + - 49 ELSE NULL END * - 20 + + + 77 + COUNT ( * ) AS col1 query I rowsort label-4638 @@ -24728,7 +24728,7 @@ SELECT 40 col1, + 32 + + ( 29 ) + + - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - ( - CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) AS col2, - 22 AS col2 query II rowsort @@ -25422,7 +25422,7 @@ SELECT 45 * - ( + + 46 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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\. SELECT ALL 24 col0, + CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: @@ -28928,7 +28928,7 @@ SELECT DISTINCT - 0 col0, 15 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(64\) \+ Int64\(\-60\) \* Int64\(\-95\) \* Int64\(\-76\) \* Int64\(91\) \* CASE \(\- Int64\(71\)\) WHEN Int64\(\-14\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(79\) THEN Int64\(\-15\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \- Int64\(64\) \+ Int64\(\-60\) \* Int64\(\-95\) \* Int64\(\-76\) \* Int64\(91\) \* CASE \(\- Int64\(71\)\) WHEN Int64\(\-14\) \* \(\- CAST\(NULL AS Int64\)\) \- Int64\(79\) THEN Int64\(\-15\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 AS col1, CAST ( NULL AS INTEGER ) - 64 + - 60 * - 95 * - 76 * 91 * CASE - + 71 WHEN - 14 * - CAST ( NULL AS INTEGER ) - + 79 THEN + - 15 END AS col1 query I rowsort @@ -29028,7 +29028,7 @@ SELECT DISTINCT MIN ( ALL + 80 ) AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - -94 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(4\) \* CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 and "Int64\(\-30\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(4\) \* CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\) AS col2" at position 1 and "Int64\(\-30\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ), ( + - 98 ) + + 4 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2, - 30 AS col2 query I rowsort label-5521 @@ -29653,7 +29653,7 @@ SELECT DISTINCT + 29 / 5 * - 35 * 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 95 * - CAST ( NULL AS INTEGER ) AS col1, 81 col1 query I rowsort @@ -30244,7 +30244,7 @@ SELECT ALL + NULLIF ( + 70, NULLIF ( COUNT ( * ), ( + 38 ) ) ) * - + 60 * + - MI # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "min\(\(\- Int64\(33\)\)\) \+ Int64\(26\) \+ Int64\(\-93\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "min\(\(\- Int64\(33\)\)\) \+ Int64\(26\) \+ Int64\(\-93\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, MIN ( - + 33 ) + + 26 + - 93 * - CAST ( NULL AS INTEGER ) + + + 50 AS col0 query I rowsort @@ -31271,7 +31271,7 @@ SELECT + - COALESCE ( - 59, - 77 ) + - 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "Int64\(84\) \* CASE Int64\(35\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(93\)\) \* Int64\(9\) \* Int64\(57\) / Int64\(\-9\) \+ CAST\(NULL AS Int32\) \+ Int64\(89\) ELSE NULL END \* Int64\(\-18\) \- Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "Int64\(84\) \* CASE Int64\(35\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN \(\- Int64\(93\)\) \* Int64\(9\) \* Int64\(57\) / Int64\(\-9\) \+ CAST\(NULL AS Int64\) \+ Int64\(89\) ELSE NULL END \* Int64\(\-18\) \- Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 9 AS col0, 84 * CASE + 35 WHEN + - ( + + CAST ( NULL AS INTEGER ) ) THEN - + 93 * + 9 * 57 / - 9 + + CAST ( NULL AS INTEGER ) + + 89 ELSE NULL END * - 18 - + 32 AS col0 query I rowsort @@ -38726,7 +38726,7 @@ SELECT ALL 85 + - + 25 + - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3017 # Datafusion - Expected - 1145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-46\) \+ Int64\(6\) \+ CAST\(\(\- \(\- Int64\(44\)\)\) AS Int32\) \+ Int64\(15\) \+ Int64\(33\) \* \(\- count\(Int64\(56\)\)\) \* Int64\(91\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(75\) \* Int64\(15\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-46\) \+ Int64\(6\) \+ CAST\(\(\- \(\- Int64\(44\)\)\) AS Int64\) \+ Int64\(15\) \+ Int64\(33\) \* \(\- count\(Int64\(56\)\)\) \* Int64\(91\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(75\) \* Int64\(15\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 26 ) * COUNT ( * ) + - 46 + 6 + + CAST ( - ( - + 44 ) AS INTEGER ) + 15 + + 33 * + - COUNT ( + ( + 56 ) ) * + 91 + - 7 AS col2, 75 * + 15 + + 20 AS col2 query I rowsort label-7375 @@ -39919,7 +39919,7 @@ SELECT - + COUNT ( * ) + - 1 - 78 * 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- avg\(Int64\(85\)\)\) AS Int32\)\) / Int64\(\-63\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- avg\(Int64\(85\)\)\) AS Int64\)\) / Int64\(\-63\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - AVG ( ALL + + 85 ) AS INTEGER ) / - 63 + 74 AS col1, 80 AS col1 query I rowsort @@ -43952,7 +43952,7 @@ SELECT DISTINCT - ( - - 59 ) * + 19 * + - 20 * - + NULLIF ( - 63, + + 90 ), - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6678 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(48\) WHEN \(\- Int64\(40\)\) \+ \(\- Int64\(\-5\)\) THEN Int64\(68\) WHEN CASE Int64\(96\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(38\) THEN Int64\(6\) \* Int64\(91\) ELSE NULL END THEN Int64\(98\) END AS Int32\) \+ Int64\(94\) AS col0" at position 0 and "\(\- Int64\(\-35\)\) \+ min\(Int64\(\-73\)\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(48\) WHEN \(\- Int64\(40\)\) \+ \(\- Int64\(\-5\)\) THEN Int64\(68\) WHEN CASE Int64\(96\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(38\) THEN Int64\(6\) \* Int64\(91\) ELSE NULL END THEN Int64\(98\) END AS Int64\) \+ Int64\(94\) AS col0" at position 0 and "\(\- Int64\(\-35\)\) \+ min\(Int64\(\-73\)\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + + CASE 48 WHEN - ( + 40 ) + - - 5 THEN + + 68 WHEN + CASE + 96 WHEN - COUNT ( * ) + 38 THEN 6 * 91 ELSE NULL END THEN + 98 END AS INTEGER ) + 94 AS col0, - ( - 35 ) + + MIN ( - 73 ) * - 91 col0 query I rowsort label-8368 @@ -44175,7 +44175,7 @@ SELECT 67 AS col1, - 90 + + COUNT ( * ) # Datafusion - Expected - -98 # Datafusion - Expected - 37 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(\(\- Int64\(37\)\), \(\- Int64\(\-3\)\) \+ Int64\(\-1\)\)\) AS Int32\) AS col1" at position 1 and "Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(\(\- Int64\(37\)\), \(\- Int64\(\-3\)\) \+ Int64\(\-1\)\)\) AS Int64\) AS col1" at position 1 and "Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 98, CAST ( - COALESCE ( - + 37, - - 3 + + - 1 ) AS INTEGER ) AS col1, + 31 AS col1 query II rowsort @@ -47323,7 +47323,7 @@ SELECT DISTINCT + 41 + + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(24\) \+ CAST\(NULL AS Int32\) / \(\- Int64\(\-46\)\) \* Int64\(\-38\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- nullif\(Int64\(0\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-41\)\)\) \+ Int64\(\-26\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-48\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* nullif\(Int64\(\-40\) \* Int64\(\-37\) \- Int64\(\-26\), Int64\(\-64\) \+ sum\(Int64\(89\)\) \* sum\(DISTINCT Int64\(26\)\)\) ELSE Int64\(9\) \* Int64\(\-2\) END THEN Int64\(28\) WHEN Int64\(\-14\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(24\) \+ CAST\(NULL AS Int64\) / \(\- Int64\(\-46\)\) \* Int64\(\-38\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- nullif\(Int64\(0\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-41\)\)\) \+ Int64\(\-26\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-48\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* nullif\(Int64\(\-40\) \* Int64\(\-37\) \- Int64\(\-26\), Int64\(\-64\) \+ sum\(Int64\(89\)\) \* sum\(DISTINCT Int64\(26\)\)\) ELSE Int64\(9\) \* Int64\(\-2\) END THEN Int64\(28\) WHEN Int64\(\-14\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 50 AS col0, 24 + + CAST ( NULL AS INTEGER ) / - - 46 * + - 38 + + CASE COUNT ( * ) WHEN - NULLIF ( - 0, COUNT ( * ) + - 41 ) + - 26 + + CASE - COUNT ( * ) WHEN - 48 THEN - - COUNT ( * ) * NULLIF ( - 40 * - 37 - - 26, - 64 + SUM ( 89 ) * SUM ( DISTINCT 26 ) ) ELSE 9 * - 2 END THEN 28 WHEN - 14 THEN NULL END AS col0 query I rowsort label-9019 diff --git a/data/sqlite/random/expr/slt_good_39.slt b/data/sqlite/random/expr/slt_good_39.slt index d1d337d..902eb29 100644 --- a/data/sqlite/random/expr/slt_good_39.slt +++ b/data/sqlite/random/expr/slt_good_39.slt @@ -439,7 +439,7 @@ SELECT DISTINCT 52 * 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "\(\- CASE sum\(Int64\(13\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(3\) THEN Int64\(\-47\) \* Int64\(36\) \* Int64\(\-70\) \* avg\(Int64\(\-61\)\) \* Int64\(77\) WHEN Int64\(33\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-86\)\) THEN NULL END\) \+ Int64\(78\) \* CASE Int64\(2\) WHEN Int64\(84\) THEN \(\- CAST\(Int64\(34\) AS Int32\)\) \* Int64\(81\) END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "\(\- CASE sum\(Int64\(13\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(3\) THEN Int64\(\-47\) \* Int64\(36\) \* Int64\(\-70\) \* avg\(Int64\(\-61\)\) \* Int64\(77\) WHEN Int64\(33\) \+ CAST\(NULL AS Int64\) \+ Int64\(\-87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-86\)\) THEN NULL END\) \+ Int64\(78\) \* CASE Int64\(2\) WHEN Int64\(84\) THEN \(\- CAST\(Int64\(34\) AS Int64\)\) \* Int64\(81\) END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 59 AS col2, - ( CASE + SUM ( ALL + + 13 ) WHEN + + COUNT ( * ) / + 3 THEN - 47 * 36 * - 70 * AVG ( ALL ( - 61 ) ) * 77 WHEN + 33 + + CAST ( NULL AS INTEGER ) + - 87 + - COUNT ( * ) * - - 86 THEN NULL END ) + 78 * CASE 2 WHEN 84 THEN - CAST ( + 34 AS INTEGER ) * + 81 END * COUNT ( * ) AS col2 query I rowsort @@ -2629,7 +2629,7 @@ SELECT ALL 24 + + 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(0\) \* \(\- Int64\(7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(0\) \* \(\- Int64\(7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 83 / - - CAST ( NULL AS INTEGER ) AS col0, + 0 * - + 7 AS col0 # Datafusion - Types were automatically converted from: @@ -3733,7 +3733,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-9\) AS Int32\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-9\) AS Int64\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - 9 AS INTEGER ) AS col0, 21 AS col0 query I rowsort label-711 @@ -6140,7 +6140,7 @@ SELECT 3 + + 75 * - 82 + 47 + + 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- Int64\(\-46\) \+ \(\- CAST\(\(\- Int64\(\-53\)\) AS Int32\)\) AS col0" at position 0 and "\(\- min\(Int64\(\-18\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- Int64\(\-46\) \+ \(\- CAST\(\(\- Int64\(\-53\)\) AS Int64\)\) AS col0" at position 0 and "\(\- min\(Int64\(\-18\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 86 - - 46 + - CAST ( - - 53 AS INTEGER ) col0, - MIN ( - 18 ) AS col0 query II rowsort @@ -6207,7 +6207,7 @@ SELECT DISTINCT + COUNT ( * ) * 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) / CAST\(Int64\(92\) AS Int32\) \* Int64\(56\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) / CAST\(Int64\(92\) AS Int64\) \* Int64\(56\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 37 / CAST ( 92 AS INTEGER ) * 56 col2, - 82 AS col2 query I rowsort label-1181 @@ -7019,7 +7019,7 @@ SELECT ALL MIN ( - 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-83\)\)\) AS col1" at position 0 and "CAST\(count\(\(\- CAST\(\(\- Int64\(\-87\)\) AS Int32\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-83\)\)\) AS col1" at position 0 and "CAST\(count\(\(\- CAST\(\(\- Int64\(\-87\)\) AS Int64\)\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT SUM ( ALL - - 83 ) AS col1, + CAST ( COUNT ( - + CAST ( - - 87 AS INTEGER ) ) AS INTEGER ) col1 query I rowsort @@ -8031,7 +8031,7 @@ SELECT DISTINCT CAST ( + MAX ( DISTINCT - 44 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "CAST\(Int64\(\-32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "CAST\(Int64\(\-32\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 15 col0, CAST ( + - 32 AS INTEGER ) AS col0 query I rowsort label-1529 @@ -8507,7 +8507,7 @@ SELECT ALL - CASE + 13 WHEN MAX ( DISTINCT - 50 ) THEN NULL ELSE - + 39 * + ( 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(\-1\) WHEN Int64\(13\) THEN Int64\(\-52\) / Int64\(23\) \+ Int64\(38\) ELSE Int64\(41\) END\) AS Int32\) / \(\- Int64\(\-71\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(\-1\) WHEN Int64\(13\) THEN Int64\(\-52\) / Int64\(23\) \+ Int64\(38\) ELSE Int64\(41\) END\) AS Int64\) / \(\- Int64\(\-71\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - CASE - 1 WHEN + 13 THEN + + ( - 52 ) / 23 + + + 38 ELSE + 41 END AS INTEGER ) / - - 71 AS col2, 66 col2 query I rowsort @@ -9308,7 +9308,7 @@ SELECT DISTINCT NULLIF ( - + 21, - 62 ) * - 17 * - - 21 * + 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - ( - 42 ) ) * + + CAST ( NULL AS INTEGER ) AS col2, 34 col2 query I rowsort label-1771 @@ -12795,7 +12795,7 @@ SELECT ALL 57 + - MIN ( + 92 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* \(\- CAST\(NULL AS Int32\)\) \* sum\(DISTINCT Int64\(84\)\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(91\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* \(\- CAST\(NULL AS Int64\)\) \* sum\(DISTINCT Int64\(84\)\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(91\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 20 * - + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT 84 ) + + + 3 AS col2, + 91 * + ( + + 26 ) AS col2 query I rowsort @@ -14703,7 +14703,7 @@ SELECT DISTINCT ( + - 19 ) + ( - 6 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(65\) AS col2" at position 0 and "Int64\(\-39\) \+ \(\- Int64\(\-8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(65\) AS col2" at position 0 and "Int64\(\-39\) \+ \(\- Int64\(\-8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 65 AS col2, - 39 + - - 8 AS col2 query I rowsort @@ -15201,7 +15201,7 @@ SELECT + - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 70 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -15608,7 +15608,7 @@ SELECT 99 + - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 94 AS col2 query I rowsort @@ -17063,7 +17063,7 @@ SELECT ALL - 45 - 7 * + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- Int64\(5\) \* Int64\(83\) \* \(\- CAST\(Int64\(\-5\) AS Int32\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- Int64\(5\) \* Int64\(83\) \* \(\- CAST\(Int64\(\-5\) AS Int64\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 - 5 * + + 83 * - + CAST ( - 5 AS INTEGER ) * - CAST ( NULL AS INTEGER ) col2, 51 AS col2 query II rowsort label-3247 @@ -22499,7 +22499,7 @@ SELECT DISTINCT - - 99 + + + 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-36\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(36\) \+ \(\- max\(DISTINCT Int64\(94\)\)\) \- Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-36\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(36\) \+ \(\- max\(DISTINCT Int64\(94\)\)\) \- Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + - ( + - 36 ) AS INTEGER ) AS col1, 36 + + - MAX ( DISTINCT + + 94 ) - - 27 col1 query I rowsort @@ -24266,7 +24266,7 @@ SELECT ( + - 94 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -457 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-22\) AS Int32\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int32\) \* \(\- Int64\(70\)\) \- Int64\(37\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-22\) AS Int64\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int64\) \* \(\- Int64\(70\)\) \- Int64\(37\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - 22 AS INTEGER ) AS col0, CAST ( + 7 AS INTEGER ) * - + 70 - 37 + + 70 AS col0 query I rowsort @@ -24311,7 +24311,7 @@ SELECT ALL + + 63 * - 73 + 37 + - COALESCE ( - 32, - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5880 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(98\)\) AS Int32\) \* Int64\(60\) AS col2" at position 0 and "CASE \(\- coalesce\(Int64\(\-40\), \(\- Int64\(91\)\)\)\) WHEN Int64\(\-34\) \* Int64\(0\) \* \(\- Int64\(72\)\) THEN NULL WHEN Int64\(\-43\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(55\) \* \(\- avg\(DISTINCT \(\- \(\- nullif\(\(\- Int64\(\-39\)\), Int64\(96\)\)\)\)\)\) \- Int64\(61\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(41\) END \+ Int64\(37\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(98\)\) AS Int64\) \* Int64\(60\) AS col2" at position 0 and "CASE \(\- coalesce\(Int64\(\-40\), \(\- Int64\(91\)\)\)\) WHEN Int64\(\-34\) \* Int64\(0\) \* \(\- Int64\(72\)\) THEN NULL WHEN Int64\(\-43\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(55\) \* \(\- avg\(DISTINCT \(\- \(\- nullif\(\(\- Int64\(\-39\)\), Int64\(96\)\)\)\)\)\) \- Int64\(61\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(41\) END \+ Int64\(37\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( - + 98 AS INTEGER ) * + + 60 AS col2, CASE + - COALESCE ( - 40, - + 91 ) WHEN - 34 * 0 * - + 72 THEN NULL WHEN - 43 / - - COUNT ( * ) + - - COUNT ( * ) THEN - + COUNT ( * ) / 55 * + - AVG ( DISTINCT - - NULLIF ( ( - ( - 39 ) ), + + 96 ) ) - + 61 WHEN + + COUNT ( * ) THEN + 41 END + 37 + + + COUNT ( * ) AS col2 query II rowsort label-4630 @@ -25159,7 +25159,7 @@ SELECT ALL + CAST ( - + 3 AS INTEGER ) / 39 / - + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) AS col2" at position 0 and "sum\(Int64\(23\)\) \+ CAST\(Int64\(\-57\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) AS col2" at position 0 and "sum\(Int64\(23\)\) \+ CAST\(Int64\(\-57\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + 90 ) AS col2, + SUM ( ALL 23 ) + + CAST ( - 57 AS INTEGER ) AS col2 query I rowsort @@ -33612,7 +33612,7 @@ SELECT 99 + - 30 * + ( 91 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-15\)\) AS Int32\) / Int64\(8\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-15\)\) AS Int64\) / Int64\(8\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - 15 AS INTEGER ) / + 8 AS col2, 64 col2 query I rowsort label-6407 @@ -39413,7 +39413,7 @@ SELECT ALL - 16 + - - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- coalesce\(Int64\(94\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- coalesce\(Int64\(94\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, ( - ( + COALESCE ( 94, + - COUNT ( * ) ) ) ) + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: @@ -39745,7 +39745,7 @@ SELECT ALL - 26 * - - 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- CAST\(Int64\(21\) AS Int32\)\)\) WHEN Int64\(62\) THEN Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END AS col2" at position 0 and "nullif\(\(\- Int64\(\-82\)\), Int64\(90\) \+ Int64\(\-54\) \* \(\- nullif\(sum\(Int64\(10\)\), Int64\(88\)\)\)\) \* Int64\(47\) \+ Int64\(24\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- CAST\(Int64\(21\) AS Int64\)\)\) WHEN Int64\(62\) THEN Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END AS col2" at position 0 and "nullif\(\(\- Int64\(\-82\)\), Int64\(90\) \+ Int64\(\-54\) \* \(\- nullif\(sum\(Int64\(10\)\), Int64\(88\)\)\)\) \* Int64\(47\) \+ Int64\(24\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - - CAST ( 21 AS INTEGER ) WHEN 62 THEN + 43 / + + COUNT ( * ) ELSE NULL END AS col2, NULLIF ( - - 82, + + 90 + - 54 * - NULLIF ( + SUM ( ALL + 10 ), ( + 88 ) ) ) * + + 47 + + 24 + COUNT ( * ) * + 72 * - 12 AS col2 # Datafusion - Datafusion expected results: @@ -40791,7 +40791,7 @@ SELECT DISTINCT - 74 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1105 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- min\(Int64\(\-13\)\)\) AS col2" at position 0 and "\(\- Int64\(11\)\) / CAST\(\(\- Int64\(49\)\) AS Int32\) \+ \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- min\(Int64\(\-13\)\)\) AS col2" at position 0 and "\(\- Int64\(11\)\) / CAST\(\(\- Int64\(49\)\) AS Int64\) \+ \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 85 * + - MIN ( ALL + - 13 ) AS col2, - ( + + ( 11 ) ) / + CAST ( - + 49 AS INTEGER ) + - + 44 AS col2 query I rowsort @@ -40897,7 +40897,7 @@ SELECT ALL ( 50 ) - - + COUNT ( * ) * 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "Int64\(10\) \- CAST\(Int64\(69\) AS Int32\) \+ Int64\(51\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "Int64\(10\) \- CAST\(Int64\(69\) AS Int64\) \+ Int64\(51\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 83 AS col1, + 10 - CAST ( 69 AS INTEGER ) + + 51 + + 61 AS col1 query II rowsort label-7797 @@ -43082,7 +43082,7 @@ SELECT ALL 18 / 82 # Datafusion - Expected - 1806 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-3\)\) \* max\(Int64\(53\)\) \+ \(\- \(\- Int64\(\-61\)\)\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(48\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-3\)\) \* max\(Int64\(53\)\) \+ \(\- \(\- Int64\(\-61\)\)\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(48\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 3 * + + MAX ( 53 ) + - - ( + - 61 ) * - 27 AS col0, 48 * - CAST ( NULL AS INTEGER ) * 30 AS col0, - ( + + 99 ) query I rowsort @@ -44492,7 +44492,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1380 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(\-18\) \* Int64\(\-82\) \+ \(\- Int64\(65\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ Int64\(\-18\) \* Int64\(\-82\) \+ \(\- Int64\(65\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 31 * CAST ( + - COUNT ( * ) AS INTEGER ) + - 18 * + ( - 82 ) + - + 65 AS col1, 84 AS col1 query II rowsort label-8480 @@ -47471,7 +47471,7 @@ NULL # Datafusion - Expected - 122 # Datafusion - Expected - 48 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(26\), CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(DISTINCT Int64\(96\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(26\), CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(DISTINCT Int64\(96\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( 26, CAST ( + COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) + SUM ( DISTINCT + 96 ) AS col1, + 48 AS col1, 11 col0 query II rowsort label-9055 @@ -47772,7 +47772,7 @@ SELECT ALL COUNT ( * ) + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1327 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(76\) \+ Int64\(91\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(76\) \* Int64\(15\) \* CAST\(\(\- CAST\(CASE Int64\(\-23\) WHEN Int64\(71\) THEN Int64\(0\) / max\(Int64\(2\)\) END AS Int32\)\) AS Int32\) / nullif\(Int64\(13\) \+ \(\- Int64\(63\) \+ Int64\(13\)\), \(\- Int64\(55\)\) \+ Int64\(97\) \* Int64\(90\)\) \+ nullif\(Int64\(2\), Int64\(1\) \* Int64\(\-71\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(76\) \+ Int64\(91\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(76\) \* Int64\(15\) \* CAST\(\(\- CAST\(CASE Int64\(\-23\) WHEN Int64\(71\) THEN Int64\(0\) / max\(Int64\(2\)\) END AS Int64\)\) AS Int64\) / nullif\(Int64\(13\) \+ \(\- Int64\(63\) \+ Int64\(13\)\), \(\- Int64\(55\)\) \+ Int64\(97\) \* Int64\(90\)\) \+ nullif\(Int64\(2\), Int64\(1\) \* Int64\(\-71\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 * + 76 + + 91 + + 20 col1, 76 * 15 * + CAST ( - CAST ( + CASE + - 23 WHEN 71 THEN + 0 / MAX ( + + 2 ) END AS INTEGER ) AS INTEGER ) / NULLIF ( 13 + - ( 63 + 13 ), - ( 55 ) + 97 * 90 ) + NULLIF ( 2, 1 * - 71 - + COUNT ( * ) * 25 ) col1 query I rowsort @@ -48046,7 +48046,7 @@ SELECT + - 1 - + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-68\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-68\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 13 AS col0, - CAST ( - 68 AS INTEGER ) AS col0 query I rowsort label-9164 @@ -49525,7 +49525,7 @@ SELECT DISTINCT 24 * NULLIF ( + 65, - 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int32\)\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int64\)\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - CAST ( + 52 AS INTEGER ) ) col1, 49 AS col1 query I rowsort label-9446 @@ -50453,7 +50453,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 72 AS col1, + CAST ( COUNT ( * ) AS INTEGER ) * + 36 AS col1 query II rowsort @@ -51865,7 +51865,7 @@ SELECT 83 col2, 21 * 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(51\) WHEN \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(72\)\)\) THEN Int64\(8\) \+ \(\- CAST\(Int64\(82\) AS Int32\)\) / \(\- Int64\(4\)\) \* Int64\(89\) / Int64\(\-66\) \- Int64\(45\) WHEN \(\- sum\(DISTINCT Int64\(\-34\)\)\) THEN \(\- Int64\(\-32\)\) WHEN \(\- Int64\(\-16\)\) \* Int64\(61\) \+ Int64\(\-88\) THEN NULL ELSE NULL END \+ sum\(Int64\(1\)\) / Int64\(\-75\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(51\) WHEN \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(72\)\)\) THEN Int64\(8\) \+ \(\- CAST\(Int64\(82\) AS Int64\)\) / \(\- Int64\(4\)\) \* Int64\(89\) / Int64\(\-66\) \- Int64\(45\) WHEN \(\- sum\(DISTINCT Int64\(\-34\)\)\) THEN \(\- Int64\(\-32\)\) WHEN \(\- Int64\(\-16\)\) \* Int64\(61\) \+ Int64\(\-88\) THEN NULL ELSE NULL END \+ sum\(Int64\(1\)\) / Int64\(\-75\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 - - COUNT ( * ) col2, CASE 51 WHEN - + NULLIF ( - + COUNT ( * ), + 72 ) THEN + 8 + - + CAST ( + + 82 AS INTEGER ) / - + 4 * + + 89 / + - 66 - 45 WHEN - SUM ( DISTINCT - 34 ) THEN - - 32 WHEN - - 16 * + 61 + + - 88 THEN NULL ELSE NULL END + SUM ( ALL ( 1 ) ) / - 75 + - 72 AS col2 query I rowsort label-9891 diff --git a/data/sqlite/random/expr/slt_good_4.slt b/data/sqlite/random/expr/slt_good_4.slt index cc73b2f..d147387 100644 --- a/data/sqlite/random/expr/slt_good_4.slt +++ b/data/sqlite/random/expr/slt_good_4.slt @@ -1062,7 +1062,7 @@ SELECT ALL - 11 + 69 * - - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- coalesce\(Int64\(55\), \(\- nullif\(Int64\(57\), Int64\(45\) \* avg\(Int64\(16\)\)\)\), Int64\(\-91\) \* \(\- Int64\(\-75\)\)\)\) \+ \(\- Int64\(\-89\)\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(73\) \- CAST\(Int64\(49\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- coalesce\(Int64\(55\), \(\- nullif\(Int64\(57\), Int64\(45\) \* avg\(Int64\(16\)\)\)\), Int64\(\-91\) \* \(\- Int64\(\-75\)\)\)\) \+ \(\- Int64\(\-89\)\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(73\) \- CAST\(Int64\(49\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 57 + + - COALESCE ( + 55, + - NULLIF ( + 57, + + 45 * + AVG ( + 16 ) ), - 91 * - + ( - 75 ) ) + - - 89 col1, 23 + + 73 - CAST ( 49 AS INTEGER ) AS col1 query II rowsort @@ -1414,7 +1414,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-59\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-59\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) 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\. SELECT DISTINCT COUNT ( * ) - - - 59 / + COUNT ( * ) + + 53 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-262 @@ -2792,7 +2792,7 @@ SELECT NULLIF ( 90, + 64 * - COUNT ( + + 73 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-45\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-45\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 16 AS col1, + CAST ( - - 45 AS INTEGER ) AS col1 query I rowsort label-521 @@ -3462,7 +3462,7 @@ SELECT - 91 + - 99 - + 5 * - 72 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(\(\- max\(\(\- \(\- Int64\(\-27\)\)\)\)\) AS Float64\) AS Int32\)\) AS col2" at position 0 and "Int64\(99\) \- nullif\(\(\- Int64\(10\)\), Int64\(32\) \+ max\(DISTINCT Int64\(36\)\) / Int64\(\-25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(\(\- max\(\(\- \(\- Int64\(\-27\)\)\)\)\) AS Float64\) AS Int64\)\) AS col2" at position 0 and "Int64\(99\) \- nullif\(\(\- Int64\(10\)\), Int64\(32\) \+ max\(DISTINCT Int64\(36\)\) / Int64\(\-25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( CAST ( - + MAX ( - - ( + - 27 ) ) AS FLOAT8 ) AS INTEGER ) col2, 99 - NULLIF ( - + 10, 32 + + MAX ( DISTINCT + + 36 ) / - 25 ) AS col2 query I rowsort @@ -5352,7 +5352,7 @@ SELECT + 56 AS col0, + ( + 50 ) * + 88 * + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(92\) / min\(\(\- Int64\(87\)\)\) AS col1" at position 0 and "CAST\(Int64\(73\) AS Int32\) \+ \(\- Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(92\) / min\(\(\- Int64\(87\)\)\) AS col1" at position 0 and "CAST\(Int64\(73\) AS Int64\) \+ \(\- Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 * 92 / + MIN ( - + 87 ) AS col1, + CAST ( + 73 AS INTEGER ) + - + 62 AS col1 query I rowsort label-1002 @@ -10344,7 +10344,7 @@ SELECT + + ( + SUM ( - + 29 ) ) + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(79\) \* avg\(DISTINCT Int64\(\-64\)\) \* \(\- sum\(Int64\(\-81\)\)\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(79\) \* avg\(DISTINCT Int64\(\-64\)\) \* \(\- sum\(Int64\(\-81\)\)\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 11 + 1 col2, - CAST ( NULL AS INTEGER ) * + 79 * ( + AVG ( DISTINCT + - 64 ) ) * + - SUM ( ALL - 81 ) * + 91 col2 query I rowsort label-1955 @@ -11259,7 +11259,7 @@ SELECT 8 / ( - 60 ) + - 62, 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-14\) \+ Int64\(30\) \+ Int64\(38\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-46\) \* \(\- Int64\(95\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-14\) \+ Int64\(30\) \+ Int64\(38\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-46\) \* \(\- Int64\(95\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 11 * - 14 + + 30 + 38 * - ( - + COUNT ( * ) ) * - 46 * - + 95 + - CAST ( NULL AS INTEGER ) AS col2, ( - 5 ) AS col2 # Datafusion - Types were automatically converted from: @@ -13743,7 +13743,7 @@ SELECT DISTINCT - 33 * + + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(95\) \* Int64\(\-30\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(95\) \* Int64\(\-30\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col0, 95 * - 30 + - CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-2602 @@ -14176,7 +14176,7 @@ SELECT 45 - + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(5\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(5\) \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 68 AS col2, 5 - - CAST ( NULL AS INTEGER ) * + 94 AS col2 query I rowsort label-2685 @@ -15806,7 +15806,7 @@ SELECT + COUNT ( * ) - - + 76 * - 6 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \- \(\- CAST\(\(\- Int64\(\-71\)\) AS Int32\)\) / Int64\(\-73\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \- \(\- CAST\(\(\- Int64\(\-71\)\) AS Int64\)\) / Int64\(\-73\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 24 - + - CAST ( - - 71 AS INTEGER ) / + - 73 AS col2, - CAST ( NULL AS FLOAT8 ) + + 67 AS col2 query I rowsort @@ -16026,7 +16026,7 @@ SELECT ALL ( - COUNT ( * ) ) * - CASE WHEN - 38 IS NOT NULL THEN ( - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(43\) AS Int32\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(43\) AS Int64\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + + 43 AS INTEGER ) AS col1, - 12 AS col1 query I rowsort @@ -18356,7 +18356,7 @@ SELECT + COUNT ( * ) + - - 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 5310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-74\) \+ nullif\(\(\- \(\- CASE Int64\(11\) WHEN CASE WHEN Int64\(87\) != Int64\(92\) \* Int64\(43\) AND NOT Int64\(\-72\) \* Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-84\) IS NULL THEN Int64\(90\) WHEN NOT NULL > Int64\(\-29\) THEN Int64\(68\) ELSE \(\- coalesce\(nullif\(Int64\(7\), Int64\(97\)\), \(\- CASE Int64\(93\) WHEN Int64\(3\) \* Int64\(\-65\) \+ Int64\(\-86\) THEN Int64\(71\) / Int64\(\-95\) WHEN Int64\(1\) / Int64\(48\) THEN NULL ELSE Int64\(34\) / CAST\(Int64\(98\) / Int64\(45\) AS Int32\) END\)\)\) END THEN NULL WHEN min\(Int64\(77\)\) THEN \(\- max\(Int64\(11\)\)\) \* Int64\(74\) \+ Int64\(32\) ELSE Int64\(\-73\) END\)\), Int64\(\-14\) \+ Int64\(51\)\) \+ Int64\(95\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-74\) \+ nullif\(\(\- \(\- CASE Int64\(11\) WHEN CASE WHEN Int64\(87\) != Int64\(92\) \* Int64\(43\) AND NOT Int64\(\-72\) \* Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-84\) IS NULL THEN Int64\(90\) WHEN NOT NULL > Int64\(\-29\) THEN Int64\(68\) ELSE \(\- coalesce\(nullif\(Int64\(7\), Int64\(97\)\), \(\- CASE Int64\(93\) WHEN Int64\(3\) \* Int64\(\-65\) \+ Int64\(\-86\) THEN Int64\(71\) / Int64\(\-95\) WHEN Int64\(1\) / Int64\(48\) THEN NULL ELSE Int64\(34\) / CAST\(Int64\(98\) / Int64\(45\) AS Int64\) END\)\)\) END THEN NULL WHEN min\(Int64\(77\)\) THEN \(\- max\(Int64\(11\)\)\) \* Int64\(74\) \+ Int64\(32\) ELSE Int64\(\-73\) END\)\), Int64\(\-14\) \+ Int64\(51\)\) \+ Int64\(95\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 83 ) + + 28 AS col2, 3 * - 74 + NULLIF ( - - CASE 11 WHEN CASE WHEN 87 <> + + 92 * + 43 AND NOT - 72 * + 82 * COUNT ( * ) * - 84 IS NULL THEN 90 WHEN NOT ( NULL ) > - 29 THEN + 68 ELSE - COALESCE ( + NULLIF ( + 7, ( 97 ) ), - CASE 93 WHEN + 3 * - 65 + - 86 THEN + 71 / - 95 WHEN 1 / 48 THEN NULL ELSE + 34 / CAST ( 98 / + 45 AS INTEGER ) END ) END THEN NULL WHEN + MIN ( + 77 ) THEN - MAX ( 11 ) * ( + 74 ) + 32 ELSE - 73 END, - 14 + 51 ) + + 95 * 59 AS col2 query I rowsort @@ -18949,7 +18949,7 @@ SELECT ALL + ( + + 57 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(\-21\) \* Int64\(\-36\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(\-21\) \* Int64\(\-36\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 45 * - 21 * + - 36 + - - CAST ( NULL AS INTEGER ) col2, 25 AS col2 query II rowsort label-3595 @@ -20550,7 +20550,7 @@ SELECT ALL - COUNT ( DISTINCT + 20 ), 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-85\), \(\- CASE Int64\(32\) WHEN count\(Int64\(\-90\)\) \* \(\- Int64\(\-18\)\) \+ CAST\(NULL AS Float64\) \* Int64\(83\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(\-97\) END\)\)\)\) AS col1" at position 0 and "CAST\(\(\- count\(DISTINCT Int64\(43\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-85\), \(\- CASE Int64\(32\) WHEN count\(Int64\(\-90\)\) \* \(\- Int64\(\-18\)\) \+ CAST\(NULL AS Float64\) \* Int64\(83\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(\-97\) END\)\)\)\) AS col1" at position 0 and "CAST\(\(\- count\(DISTINCT Int64\(43\)\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - COALESCE ( - 85, - CASE 32 WHEN + COUNT ( ALL - 90 ) * - - 18 + CAST ( NULL AS FLOAT8 ) * 83 THEN COUNT ( * ) ELSE - 97 END ) ) AS col1, CAST ( - COUNT ( DISTINCT + 43 ) AS INTEGER ) AS col1 query II rowsort label-3903 @@ -22393,7 +22393,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 13322 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(12\) \* Int64\(34\) \* Int64\(32\) \+ coalesce\(Int64\(8\), Int64\(43\), Int64\(\-88\) \- Int64\(\-76\)\) \* Int64\(\-29\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CASE Int64\(\-42\) WHEN \(\- avg\(Int64\(52\)\)\) \+ Int64\(71\) THEN CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(98\) THEN Int64\(98\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(\-64\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-77\) END ELSE coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(61\)\) \* Int64\(\-41\) \+ Int64\(\-47\) \* Int64\(\-66\), Int64\(85\) \+ Int64\(14\)\) \+ Int64\(\-35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(12\) \* Int64\(34\) \* Int64\(32\) \+ coalesce\(Int64\(8\), Int64\(43\), Int64\(\-88\) \- Int64\(\-76\)\) \* Int64\(\-29\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CASE Int64\(\-42\) WHEN \(\- avg\(Int64\(52\)\)\) \+ Int64\(71\) THEN CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(98\) THEN Int64\(98\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(\-64\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-77\) END ELSE coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(61\)\) \* Int64\(\-41\) \+ Int64\(\-47\) \* Int64\(\-66\), Int64\(85\) \+ Int64\(14\)\) \+ Int64\(\-35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 44 col1, 12 * 34 * + 32 + COALESCE ( + ( 8 ), + + 43, ( + - 88 ) - - 76 ) * - 29 / - COUNT ( * ) - + CASE - 42 WHEN - AVG ( + 52 ) + 71 THEN CASE - COUNT ( * ) WHEN + 98 THEN 98 WHEN - CAST ( NULL AS INTEGER ) THEN - 64 WHEN - COUNT ( * ) THEN - 77 END ELSE + COALESCE ( + COUNT ( * ), + COUNT ( + 61 ) * - 41 + - 47 * - 66, 85 + 14 ) + + - 35 END AS col1 query I rowsort label-4252 @@ -22919,7 +22919,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1566 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(27\) \* Int64\(\-58\) AS col2" at position 0 and "CAST\(Int64\(57\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(27\) \* Int64\(\-58\) AS col2" at position 0 and "CAST\(Int64\(57\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 27 * - 58 AS col2, CAST ( 57 AS INTEGER ) AS col2 query I rowsort label-4353 @@ -24389,7 +24389,7 @@ SELECT DISTINCT 38 - ( + 46 ) AS col1 # Datafusion - Expected - -77 # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-15\)\) \+ \(\- Int64\(\-10\)\) AS col1" at position 1 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-15\)\) \+ \(\- Int64\(\-10\)\) AS col1" at position 1 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( ALL - + 77 ) AS col2, + COUNT ( - 15 ) + - - 10 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-4640 @@ -24665,7 +24665,7 @@ SELECT DISTINCT + NULLIF ( + CAST ( 7 AS INTEGER ), - 38 / + 6 + 69 / + 51 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) \+ Int64\(61\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) \+ Int64\(61\) \- CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 38 + 61 - + CAST ( NULL AS INTEGER ) AS col2, - 46 AS col2 query II rowsort @@ -24918,7 +24918,7 @@ SELECT ALL + - 48 * ( + 94 ) * - + COUNT ( - + 79 ) + - - 66 - - 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 71 ) * - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 query I rowsort label-4741 @@ -25352,7 +25352,7 @@ SELECT DISTINCT - - 71 + + 49 col0, + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(64\), \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(64\), \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( 64, - CAST ( NULL AS INTEGER ) ) AS col0, + 76 AS col0 query I rowsort @@ -25792,7 +25792,7 @@ SELECT + ( + ( 29 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(\-79\)\)\) \- \(\- Int64\(19\)\) \* nullif\(Int64\(38\), Int64\(22\)\) \* Int64\(19\) \+ \(\- \(\- min\(Int64\(51\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(\-79\)\)\) \- \(\- Int64\(19\)\) \* nullif\(Int64\(38\), Int64\(22\)\) \* Int64\(19\) \+ \(\- \(\- min\(Int64\(51\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) + - + ( - - 79 ) - - + 19 * + NULLIF ( 38, 22 ) * + 19 + - - MIN ( 51 ) col0 query II rowsort label-4907 @@ -27243,7 +27243,7 @@ SELECT COUNT ( * ) * + COALESCE ( - - COALESCE ( 78, + 65, + - 65 ), - CAST ( NU # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5918226 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(\-22\)\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-6\) \- Int64\(28\) \* Int64\(99\) \* Int64\(35\) \* Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(\-22\)\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-6\) \- Int64\(28\) \* Int64\(99\) \* Int64\(35\) \* Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT AVG ( + ( - 22 ) ) + CAST ( NULL AS INTEGER ) AS col0, - 6 - 28 * 99 * + 35 * 61 AS col0 query I rowsort @@ -30174,7 +30174,7 @@ SELECT + 10 * - - 79 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) 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\. SELECT ALL - 84 AS col0, - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-5734 @@ -30415,7 +30415,7 @@ SELECT 29 * - + 55 * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(31\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(31\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + + 31 AS col2, + 34 col2 query I rowsort @@ -31609,7 +31609,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 57024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int32\) AS col0" at position 0 and "Int64\(64\) \* CASE Int64\(\-91\) WHEN Int64\(\-47\) \* Int64\(58\) THEN NULL ELSE Int64\(\-27\) \* Int64\(\-33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int64\) AS col0" at position 0 and "Int64\(64\) \* CASE Int64\(\-91\) WHEN Int64\(\-47\) \* Int64\(58\) THEN NULL ELSE Int64\(\-27\) \* Int64\(\-33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 77 AS INTEGER ) AS col0, 64 * CASE - 91 WHEN - 47 * + 58 THEN NULL ELSE - 27 * - 33 END AS col0 query I rowsort label-6006 @@ -33633,7 +33633,7 @@ SELECT ( - 38 ) + - 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN CAST\(NULL AS Int32\) \* Int64\(\-15\) THEN \(\- Int64\(52\)\) END \* Int64\(0\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN CAST\(NULL AS Int64\) \* Int64\(\-15\) THEN \(\- Int64\(52\)\) END \* Int64\(0\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + + 70 WHEN + CAST ( NULL AS INTEGER ) * + - 15 THEN - + 52 END * - 0 AS col0, 65 AS col0 query II rowsort @@ -36304,7 +36304,7 @@ SELECT - 43 + + + 31 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(5\) \- Int64\(\-51\) \+ \(\- Int64\(28\)\) \* CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(5\) \- Int64\(\-51\) \+ \(\- Int64\(28\)\) \* CAST\(NULL AS Int64\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 37 AS col1, + COUNT ( * ) * 5 - - 51 + ( - + 28 ) * + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 87 AS col1 query II rowsort label-6894 @@ -39082,7 +39082,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- max\(DISTINCT Int64\(3\)\)\) \+ Int64\(\-4\) \* Int64\(95\) \- Int64\(\-18\) \* Int64\(\-89\) \* Int64\(\-27\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- max\(DISTINCT Int64\(3\)\)\) \+ Int64\(\-4\) \* Int64\(95\) \- Int64\(\-18\) \* Int64\(\-89\) \* Int64\(\-27\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 3 ) + - 4 * + + 95 - - 18 * - 89 * + - 27 AS col2, 85 AS col2 query I rowsort @@ -41068,7 +41068,7 @@ SELECT - 88 + - - COUNT ( * ) * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 35 AS INTEGER ) col0, + COUNT ( * ) AS col0 query I rowsort @@ -41558,7 +41558,7 @@ SELECT - ( - ( + MIN ( DISTINCT 37 ) ) ) * COUNT ( * ) - COUNT ( * ) + - 46 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * - 12 AS col0 query I rowsort label-7899 @@ -42353,7 +42353,7 @@ SELECT COUNT ( * ) AS col1, - 94 * 26 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "Int64\(81\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-66\) \+ Int64\(18\) \* Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "Int64\(81\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(\-66\) \+ Int64\(18\) \* Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 99 AS col0, 81 * + - ( - CAST ( NULL AS INTEGER ) ) * - 66 + + 18 * - 79 AS col0 query I rowsort @@ -44883,7 +44883,7 @@ SELECT CAST ( - + 79 AS INTEGER ) AS col0, + 51 # Datafusion - Expected - 84 # Datafusion - Expected - 4374 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* CAST\(Int64\(81\) AS Int32\) AS col0" at position 1 and "Int64\(\-20\) / \(\- count\(DISTINCT Int64\(92\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* CAST\(Int64\(81\) AS Int64\) AS col0" at position 1 and "Int64\(\-20\) / \(\- count\(DISTINCT Int64\(92\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 84 AS col1, + 54 * CAST ( + 81 AS INTEGER ) AS col0, + - 20 / - COUNT ( DISTINCT 92 ) AS col0 query I rowsort @@ -46156,7 +46156,7 @@ SELECT - 51 / 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(86\)\) AS Int32\) AS col1" at position 0 and "Int64\(78\) \- Int64\(1\) / Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(86\)\) AS Int64\) AS col1" at position 0 and "Int64\(78\) \- Int64\(1\) / Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + 86 AS INTEGER ) AS col1, 78 - + + 1 / 62 AS col1 query I rowsort label-8775 @@ -48181,7 +48181,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \- \(\- Int64\(68\)\) \+ Int64\(77\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-49\) \* Int64\(45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ CAST\(\(\- \(\- CAST\(NULL AS Int64\)\)\) AS Int64\) \- \(\- Int64\(68\)\) \+ Int64\(77\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-49\) \* Int64\(45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - - + 68 + + 77 - - COUNT ( * ) + - 49 * + 45 / - COUNT ( * ) * - 27 col0, 72 AS col0 query I rowsort label-9157 @@ -50601,7 +50601,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- coalesce\(Int64\(3\), CASE Int64\(\-67\) WHEN min\(Int64\(87\)\) / Int64\(76\) \* Int64\(8\) \+ Int64\(4\) \+ Int64\(4\) THEN Int64\(92\) ELSE NULL END, Int64\(\-86\), Int64\(59\)\)\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- coalesce\(Int64\(3\), CASE Int64\(\-67\) WHEN min\(Int64\(87\)\) / Int64\(76\) \* Int64\(8\) \+ Int64\(4\) \+ Int64\(4\) THEN Int64\(92\) ELSE NULL END, Int64\(\-86\), Int64\(59\)\)\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - COALESCE ( 3, + + CASE - 67 WHEN + + MIN ( 87 ) / + 76 * + 8 + 4 + 4 THEN 92 ELSE NULL END, - 86, + 59 ) + 18 AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_40.slt b/data/sqlite/random/expr/slt_good_40.slt index ed425fc..56f0945 100644 --- a/data/sqlite/random/expr/slt_good_40.slt +++ b/data/sqlite/random/expr/slt_good_40.slt @@ -1654,7 +1654,7 @@ SELECT 8 * - 57 * COALESCE ( + + 22, - NULLIF ( - 95, - COUNT ( * ) + + + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(26\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE max\(Int64\(22\)\) WHEN Int64\(27\) \+ \(\- Int64\(78\)\) \- Int64\(89\) \* Int64\(25\) THEN NULL WHEN Int64\(95\) \* Int64\(40\) THEN Int64\(93\) WHEN avg\(Int64\(\-90\)\) THEN NULL END\) \+ Int64\(91\) \* \(\- Int64\(\-10\)\) \* Int64\(61\) \- Int64\(\-52\) \* Int64\(46\) \* Int64\(\-73\) AS col1" at position 0 and "Int64\(\-21\) \* \(\- CASE \(\- CASE count\(DISTINCT \(\- Int64\(\-90\)\)\) WHEN \(\- count\(Int64\(81\)\)\) \* Int64\(\-67\) THEN CAST\(CAST\(NULL AS Int32\) AS Int32\) ELSE coalesce\(Int64\(75\), Int64\(\-72\) \+ Int64\(54\) \* Int64\(22\)\) END\) WHEN Int64\(66\) THEN NULL WHEN Int64\(69\) \+ Int64\(3\) THEN NULL ELSE Int64\(4\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(26\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE max\(Int64\(22\)\) WHEN Int64\(27\) \+ \(\- Int64\(78\)\) \- Int64\(89\) \* Int64\(25\) THEN NULL WHEN Int64\(95\) \* Int64\(40\) THEN Int64\(93\) WHEN avg\(Int64\(\-90\)\) THEN NULL END\) \+ Int64\(91\) \* \(\- Int64\(\-10\)\) \* Int64\(61\) \- Int64\(\-52\) \* Int64\(46\) \* Int64\(\-73\) AS col1" at position 0 and "Int64\(\-21\) \* \(\- CASE \(\- CASE count\(DISTINCT \(\- Int64\(\-90\)\)\) WHEN \(\- count\(Int64\(81\)\)\) \* Int64\(\-67\) THEN CAST\(CAST\(NULL AS Int64\) AS Int64\) ELSE coalesce\(Int64\(75\), Int64\(\-72\) \+ Int64\(54\) \* Int64\(22\)\) END\) WHEN Int64\(66\) THEN NULL WHEN Int64\(69\) \+ Int64\(3\) THEN NULL ELSE Int64\(4\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 26 AS INTEGER ) + - COUNT ( * ) + COUNT ( * ) * - CASE MAX ( + 22 ) WHEN + 27 + - + 78 - + 89 * 25 THEN NULL WHEN + 95 * 40 THEN 93 WHEN AVG ( - 90 ) THEN NULL END + + 91 * - - 10 * + 61 - - 52 * 46 * - 73 AS col1, - 21 * + - ( CASE - CASE COUNT ( DISTINCT - - 90 ) WHEN - COUNT ( 81 ) * - 67 THEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ELSE COALESCE ( + 75, + - 72 + 54 * 22 ) END WHEN + 66 THEN NULL WHEN 69 + 3 THEN NULL ELSE 4 END ) AS col1 query I rowsort @@ -3284,7 +3284,7 @@ SELECT + + 14 + + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(75\) \+ Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN sum\(Int64\(73\)\) THEN \(\- Int64\(58\)\) \- count\(Int64\(1\)\) AS count\(\*\) ELSE CASE WHEN NOT Int64\(71\) NOT IN \(\[Int64\(75\) \- min\(DISTINCT Int64\(\-25\) \+ Int64\(74\)\)\]\) THEN Int64\(\-10\) WHEN NULL >= min\(CASE CASE Int64\(14\) WHEN Int64\(50\) \+ Int64\(\-49\) THEN NULL ELSE Int64\(57\) \+ Int64\(9\) END WHEN Int64\(\-49\) \+ Int64\(80\) THEN Int64\(71\) \* Int64\(15\) \+ Int64\(47\) WHEN Int64\(88\) \+ CAST\(NULL AS Int32\) THEN Int64\(\-81\) \+ nullif\(Int64\(98\), Int64\(80\) \+ Int64\(\-78\)\) \* Int64\(26\) WHEN Int64\(94\) THEN NULL ELSE NULL END\) THEN NULL END \- Int64\(\-60\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(75\) \+ Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN sum\(Int64\(73\)\) THEN \(\- Int64\(58\)\) \- count\(Int64\(1\)\) AS count\(\*\) ELSE CASE WHEN NOT Int64\(71\) NOT IN \(\[Int64\(75\) \- min\(DISTINCT Int64\(\-25\) \+ Int64\(74\)\)\]\) THEN Int64\(\-10\) WHEN NULL >= min\(CASE CASE Int64\(14\) WHEN Int64\(50\) \+ Int64\(\-49\) THEN NULL ELSE Int64\(57\) \+ Int64\(9\) END WHEN Int64\(\-49\) \+ Int64\(80\) THEN Int64\(71\) \* Int64\(15\) \+ Int64\(47\) WHEN Int64\(88\) \+ CAST\(NULL AS Int64\) THEN Int64\(\-81\) \+ nullif\(Int64\(98\), Int64\(80\) \+ Int64\(\-78\)\) \* Int64\(26\) WHEN Int64\(94\) THEN NULL ELSE NULL END\) THEN NULL END \- Int64\(\-60\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 22 AS col2, 63 + + 75 + - 0 / - COUNT ( * ) + - CASE ( COUNT ( * ) ) WHEN ( + SUM ( 73 ) ) THEN - ( 58 ) - + ( + COUNT ( * ) ) ELSE + CASE WHEN NOT 71 NOT IN ( 75 - MIN ( DISTINCT - 25 + + ( 74 ) ) ) THEN - 10 WHEN NULL >= MIN ( CASE + CASE 14 WHEN + 50 + - 49 THEN NULL ELSE 57 + 9 END WHEN - 49 + + 80 THEN 71 * 15 + + 47 WHEN 88 + + CAST ( NULL AS INTEGER ) THEN - 81 + + NULLIF ( + 98, 80 + - 78 ) * + 26 WHEN ( 94 ) THEN NULL ELSE NULL END ) THEN NULL END - - 60 END col2 query I rowsort label-618 @@ -8069,7 +8069,7 @@ SELECT - 71 * + - ( - COUNT ( * ) ) - - 77 * + SUM ( DISTINCT ( + - 80 ) ) + - C # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col0, 69 + - 80 AS col0 query II rowsort label-1525 @@ -8663,7 +8663,7 @@ SELECT 51, 71 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(\(\- \(\- coalesce\(Int64\(\-77\), Int64\(53\)\)\)\), Int64\(\-35\)\) AS Int32\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(\(\- \(\- coalesce\(Int64\(\-77\), Int64\(53\)\)\)\), Int64\(\-35\)\) AS Int64\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + NULLIF ( - - COALESCE ( - 77, + 53 ), - 35 ) AS INTEGER ) AS col1, - 62 AS col1 query II rowsort label-1638 @@ -9161,7 +9161,7 @@ SELECT ALL - ( 97 ) * + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(43\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) \+ \(\- Int64\(36\)\) \* \(\- \(\- nullif\(Int64\(7\), Int64\(72\) \+ CASE \(\- Int64\(\-79\)\) WHEN Int64\(34\) THEN NULL WHEN \(\- CASE Int64\(48\) WHEN sum\(Int64\(\-40\)\) \+ avg\(Int64\(81\)\) \+ \(\- Int64\(\-18\)\) \* Int64\(\-46\) \+ Int64\(86\) THEN CAST\(Int64\(60\) AS Int32\) \+ Int64\(76\) \* Int64\(95\) \+ Int64\(3\) \- Int64\(82\) \+ Int64\(\-24\) / \(\- Int64\(64\)\) \* \(\- Int64\(94\)\) END\) THEN NULL WHEN Int64\(20\) \* Int64\(67\) \- Int64\(62\) \* Int64\(81\) THEN Int64\(29\) ELSE Int64\(90\) \- Int64\(96\) END \+ Int64\(57\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(43\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) \+ \(\- Int64\(36\)\) \* \(\- \(\- nullif\(Int64\(7\), Int64\(72\) \+ CASE \(\- Int64\(\-79\)\) WHEN Int64\(34\) THEN NULL WHEN \(\- CASE Int64\(48\) WHEN sum\(Int64\(\-40\)\) \+ avg\(Int64\(81\)\) \+ \(\- Int64\(\-18\)\) \* Int64\(\-46\) \+ Int64\(86\) THEN CAST\(Int64\(60\) AS Int64\) \+ Int64\(76\) \* Int64\(95\) \+ Int64\(3\) \- Int64\(82\) \+ Int64\(\-24\) / \(\- Int64\(64\)\) \* \(\- Int64\(94\)\) END\) THEN NULL WHEN Int64\(20\) \* Int64\(67\) \- Int64\(62\) \* Int64\(81\) THEN Int64\(29\) ELSE Int64\(90\) \- Int64\(96\) END \+ Int64\(57\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 * - ( + COALESCE ( COUNT ( * ), 43 ) ) col1, + COUNT ( * ) * - + 29 + - ( + 36 ) * - - NULLIF ( + 7, 72 + CASE - - 79 WHEN 34 THEN NULL WHEN - CASE 48 WHEN + SUM ( ALL - 40 ) + ( AVG ( ALL + 81 ) ) + - - 18 * + - 46 + + 86 THEN CAST ( + + 60 AS INTEGER ) + 76 * 95 + 3 - + 82 + + - 24 / - + 64 * - ( + 94 ) END THEN NULL WHEN 20 * + 67 - + 62 * 81 THEN + 29 ELSE 90 - 96 END + 57 ) AS col1 query I rowsort label-1730 @@ -10015,7 +10015,7 @@ SELECT ALL - 87 * COUNT ( * ) + - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(40\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(40\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 47 AS col1, + 40 + 51 AS col1 query I rowsort @@ -12065,7 +12065,7 @@ SELECT - MIN ( ALL + - 0 ) * + - 82 * + 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - 1 AS col2 query I rowsort label-2289 @@ -14752,7 +14752,7 @@ SELECT ALL - - 63 + - + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ CAST\(NULL AS Int32\) / Int64\(\-45\) AS col0" at position 0 and "Int64\(71\) \+ \(\- Int64\(\-68\)\) \+ Int64\(\-88\) \+ Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ CAST\(NULL AS Int64\) / Int64\(\-45\) AS col0" at position 0 and "Int64\(71\) \+ \(\- Int64\(\-68\)\) \+ Int64\(\-88\) \+ Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 48 + CAST ( NULL AS INTEGER ) / - 45 AS col0, 71 + - - 68 + - 88 + + - 95 * + COUNT ( * ) AS col0 query I rowsort label-2803 @@ -19800,7 +19800,7 @@ SELECT + - 34 + 39 / - 9 + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "min\(Int64\(64\)\) / \(\- CAST\(Int64\(54\) AS Int32\)\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-85\) \* Int64\(91\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "min\(Int64\(64\)\) / \(\- CAST\(Int64\(54\) AS Int64\)\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-85\) \* Int64\(91\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 AS col0, + MIN ( 64 ) / + - CAST ( + 54 AS INTEGER ) + - - 53 * - 85 * 91 * + CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -20972,7 +20972,7 @@ SELECT DISTINCT - - 49 + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 * - CAST ( NULL AS INTEGER ) AS col0, + 65 AS col0 query I rowsort label-3986 @@ -22631,7 +22631,7 @@ SELECT + NULLIF ( - 17, - - 81 ), 28 * 96 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(CAST\(NULL AS Int32\)\)\) \* Int64\(68\) AS col2" at position 0 and "\(\- coalesce\(\(\- Int64\(40\)\), Int64\(97\), Int64\(\-93\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(CAST\(NULL AS Int64\)\)\) \* Int64\(68\) AS col2" at position 0 and "\(\- coalesce\(\(\- Int64\(40\)\), Int64\(97\), Int64\(\-93\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 68 col2, - COALESCE ( - + 40, 97, - 93 ) AS col2 query I rowsort label-4302 @@ -24990,7 +24990,7 @@ SELECT NULLIF ( COUNT ( * ), 4 * 94 + + + 51 ) * - MIN ( + - 58 ) / + 18 - + - C # Datafusion - Datafusion expected results: # Datafusion - Expected - -5076 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(74\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(\(\- Int64\(14\)\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- avg\(Int64\(14\)\)\)\) \+ \(\- min\(DISTINCT Int64\(81\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(74\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(\(\- Int64\(14\)\) AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- avg\(Int64\(14\)\)\)\) \+ \(\- min\(DISTINCT Int64\(81\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 * + - 54 AS col2, 74 / NULLIF ( + + COUNT ( * ), - CAST ( - ( 14 ) AS INTEGER ) * + COUNT ( * ) * - - AVG ( + + 14 ) + + - MIN ( DISTINCT ( 81 ) ) ) * COUNT ( * ) - + 62 AS col2 query II rowsort @@ -25814,7 +25814,7 @@ SELECT ALL - 2 * - - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -487542 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(66\) \* Int64\(89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-12\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(66\) \* Int64\(89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-12\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 83 * + 66 * 89 AS col1, CAST ( - - 12 AS INTEGER ) AS col1 query I rowsort label-4903 @@ -26288,7 +26288,7 @@ SELECT 78 + ( - + 80 ) + 13 * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(64\) AS Int32\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(64\) AS Int64\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( 64 AS INTEGER ) AS col2, 71 AS col2 query II rowsort label-4993 @@ -26311,7 +26311,7 @@ SELECT ALL - - ( - 65 ) / 44 * + - 56 AS col2, + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* CASE Int64\(66\) WHEN Int64\(0\) / Int64\(57\) / Int64\(\-8\) \+ Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(28\) THEN Int64\(26\) END \* Int64\(1\) \* Int64\(\-9\) \* Int64\(59\) \+ \(\- coalesce\(Int64\(\-59\), nullif\(Int64\(\-47\), Int64\(\-32\) / \(\- Int64\(74\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \+ Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(41\)\) \+ Int64\(\-56\) \- Int64\(28\) \* Int64\(35\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(\-26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* CASE Int64\(66\) WHEN Int64\(0\) / Int64\(57\) / Int64\(\-8\) \+ Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(28\) THEN Int64\(26\) END \* Int64\(1\) \* Int64\(\-9\) \* Int64\(59\) \+ \(\- coalesce\(Int64\(\-59\), nullif\(Int64\(\-47\), Int64\(\-32\) / \(\- Int64\(74\)\) \+ \(\- CAST\(NULL AS Int64\)\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\) \+ Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(41\)\) \+ Int64\(\-56\) \- Int64\(28\) \* Int64\(35\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(\-26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 41 * + CASE 66 WHEN - 0 / 57 / - 8 + - 81 + - COUNT ( * ) - + 28 THEN + 26 END * + 1 * - 9 * + ( 59 ) + - COALESCE ( - 59, NULLIF ( - 47, - 32 / - + 74 + - CAST ( NULL AS INTEGER ) + - CAST ( + - COUNT ( * ) AS INTEGER ) ) + + - 90 + - COUNT ( * ), - - COUNT ( * ) * - + 41 + - 56 - 28 * + 35 ) col0, COUNT ( * ) * MAX ( + - 26 ) AS col0 query I rowsort label-4997 @@ -27162,7 +27162,7 @@ SELECT + - COALESCE ( + 87, + 71 + - 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(14\) AS Int32\) AS col1" at position 0 and "max\(Int64\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(14\) AS Int64\) AS col1" at position 0 and "max\(Int64\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + + 14 AS INTEGER ) AS col1, MAX ( + 99 ) AS col1 query I rowsort label-5158 @@ -30669,7 +30669,7 @@ SELECT ALL + COALESCE ( + 60, 22 + + ( + + 83 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(78\)\) AS col1" at position 0 and "Int64\(\-20\) \- \(\- count\(Int64\(\-15\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(78\)\) AS col1" at position 0 and "Int64\(\-20\) \- \(\- count\(Int64\(\-15\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * - + 78 AS col1, ( - 20 ) - - + COUNT ( - 15 ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 query I rowsort @@ -33831,7 +33831,7 @@ SELECT ALL 67 / + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "\(\- CASE Int64\(46\) WHEN Int64\(8\) \* Int64\(7\) \* CAST\(NULL AS Int32\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) THEN CAST\(NULL AS Int32\) \* Int64\(34\) \* Int64\(84\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "\(\- CASE Int64\(46\) WHEN Int64\(8\) \* Int64\(7\) \* CAST\(NULL AS Int64\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) THEN CAST\(NULL AS Int64\) \* Int64\(34\) \* Int64\(84\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 69 AS col1, - CASE + 46 WHEN + 8 * + + 7 * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN 19 THEN + CAST ( NULL AS INTEGER ) * 34 * + 84 ELSE NULL END AS col1 query I rowsort @@ -40192,7 +40192,7 @@ SELECT ALL COALESCE ( - + 81, + + 42 * + MAX ( DISTINCT + 6 ), - COUNT ( * ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 286 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "min\(Int64\(\-26\)\) \* Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "min\(Int64\(\-26\)\) \* Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col0, MIN ( ALL + - 26 ) * - 11 AS col0 query I rowsort @@ -40740,7 +40740,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(14\) \+ sum\(DISTINCT Int64\(\-97\)\) \+ nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-88\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(14\) \+ sum\(DISTINCT Int64\(\-97\)\) \+ nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-88\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81 * + 14 + SUM ( DISTINCT - 97 ) + + NULLIF ( - CAST ( NULL AS INTEGER ), - 88 ) AS col1, - COUNT ( * ) / 8 AS col1 query I rowsort label-7749 @@ -40993,7 +40993,7 @@ SELECT DISTINCT 26 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-7798 @@ -41408,7 +41408,7 @@ SELECT DISTINCT NULLIF ( 11, + 88 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(11\) AS Int32\) AS col2" at position 0 and "Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(11\) AS Int64\) AS col2" at position 0 and "Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + ( 11 ) AS INTEGER ) AS col2, - 36 AS col2 query I rowsort label-7876 @@ -41688,7 +41688,7 @@ SELECT + 78 / + 10 + - + 36 + - - 26 # Datafusion - Expected - 42 # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "Int64\(\-74\) / \(\- coalesce\(\(\- sum\(Int64\(91\)\)\), \(\- Int64\(86\)\) \+ \(\- CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(41\) WHEN Int64\(56\) \* Int64\(39\) THEN NULL WHEN Int64\(\-7\) THEN NULL WHEN CASE Int64\(30\) WHEN Int64\(21\) THEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \* Int64\(31\) THEN NULL ELSE Int64\(\-73\) END \- Int64\(11\) THEN Int64\(99\) \- Int64\(77\) \* CAST\(NULL AS Int32\) WHEN Int64\(62\) THEN NULL ELSE NULL END\) \+ Int64\(22\), Int64\(49\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "Int64\(\-74\) / \(\- coalesce\(\(\- sum\(Int64\(91\)\)\), \(\- Int64\(86\)\) \+ \(\- CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(41\) WHEN Int64\(56\) \* Int64\(39\) THEN NULL WHEN Int64\(\-7\) THEN NULL WHEN CASE Int64\(30\) WHEN Int64\(21\) THEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \* Int64\(31\) THEN NULL ELSE Int64\(\-73\) END \- Int64\(11\) THEN Int64\(99\) \- Int64\(77\) \* CAST\(NULL AS Int64\) WHEN Int64\(62\) THEN NULL ELSE NULL END\) \+ Int64\(22\), Int64\(49\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42, - COUNT ( * ) * - COUNT ( * ) AS col1, - 74 / - COALESCE ( - SUM ( + 91 ), - + 86 + - CASE 52 WHEN COUNT ( * ) THEN + ( + + ( 41 ) ) WHEN + 56 * + 39 THEN NULL WHEN + - 7 THEN NULL WHEN + CASE + 30 WHEN 21 THEN + COUNT ( * ) * COUNT ( * ) WHEN 75 * 31 THEN NULL ELSE - 73 END - 11 THEN 99 - 77 * CAST ( NULL AS INTEGER ) WHEN 62 THEN NULL ELSE NULL END + 22, 49 ) - + COUNT ( * ) + - COUNT ( * ) col1 query I rowsort label-7929 @@ -41984,7 +41984,7 @@ SELECT - + 85 + - - 65 - + + 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "CAST\(\(\- Int64\(32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "CAST\(\(\- Int64\(32\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 70 * - - 3 col0, CAST ( - + 32 AS INTEGER ) AS col0 query II rowsort label-7985 @@ -42640,7 +42640,7 @@ SELECT DISTINCT - COUNT ( ALL + - 98 ) + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(\-49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 55 ) AS col2, CAST ( NULL AS INTEGER ) + - - 49 AS col2 query I rowsort label-8110 @@ -43207,7 +43207,7 @@ SELECT DISTINCT - - 28 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(42\) / CAST\(Int64\(\-68\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(42\) / CAST\(Int64\(\-68\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 65 + + + 45 AS col2, 42 / CAST ( - 68 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: @@ -44386,7 +44386,7 @@ SELECT DISTINCT - ( 10 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col2 query I rowsort @@ -44688,7 +44688,7 @@ SELECT ALL 13 * - + 84 * + + MAX ( - - ( - 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(71\) AS col1" at position 0 and "Int64\(8\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(71\) AS col1" at position 0 and "Int64\(8\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \- Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * 71 AS col1, 8 * - - CAST ( NULL AS INTEGER ) - + + 99 AS col1 query I rowsort @@ -44968,7 +44968,7 @@ SELECT + - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4601 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- Int64\(9\)\) \* \(\- CAST\(Int64\(6\) AS Int32\)\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- Int64\(9\)\) \* \(\- CAST\(Int64\(6\) AS Int64\)\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 86 * - + 9 * - CAST ( + 6 AS INTEGER ) + - + 43 col1, 45 AS col1 query I rowsort label-8553 @@ -46110,7 +46110,7 @@ SELECT 20 / - 45 + - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(9\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(9\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0, 9 + + 47 AS col0 query I rowsort label-8771 @@ -49179,7 +49179,7 @@ SELECT ( + 62 ) / - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 246 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(82\) AS Int32\) \+ min\(\(\- Int64\(\-95\)\)\) \+ Int64\(69\) AS col1" at position 0 and "Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(79\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(82\) AS Int64\) \+ min\(\(\- Int64\(\-95\)\)\) \+ Int64\(69\) AS col1" at position 0 and "Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(79\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + 82 AS INTEGER ) + + MIN ( ALL - - 95 ) + 69 AS col1, + 70 + + COUNT ( * ) / + + 79 + + 95 AS col1 query I rowsort label-9363 @@ -50095,7 +50095,7 @@ SELECT ALL + 84 - - COUNT ( * ) + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(17\) / Int64\(42\) AS col2" at position 0 and "Int64\(\-30\) \+ \(\- \(\- nullif\(Int64\(\-6\), \(\- CAST\(coalesce\(Int64\(\-14\), Int64\(2\) \* Int64\(90\) \- Int64\(10\), Int64\(46\) \+ Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\)\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(17\) / Int64\(42\) AS col2" at position 0 and "Int64\(\-30\) \+ \(\- \(\- nullif\(Int64\(\-6\), \(\- CAST\(coalesce\(Int64\(\-14\), Int64\(2\) \* Int64\(90\) \- Int64\(10\), Int64\(46\) \+ Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\)\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 * 17 / + 42 col2, - 30 + - - NULLIF ( - 6, - CAST ( COALESCE ( - 14, 2 * + 90 - + 10, 46 + 63 * + + COUNT ( * ) ) AS INTEGER ) ) * ( + 3 ) AS col2 query I rowsort label-9537 diff --git a/data/sqlite/random/expr/slt_good_41.slt b/data/sqlite/random/expr/slt_good_41.slt index c7037ca..f201d38 100644 --- a/data/sqlite/random/expr/slt_good_41.slt +++ b/data/sqlite/random/expr/slt_good_41.slt @@ -399,7 +399,7 @@ SELECT DISTINCT + + NULLIF ( MIN ( + + 9 ), + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -9946 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(74\), Int64\(62\)\)\)\) AS col1" at position 0 and "\(\- sum\(Int64\(94\)\)\) \* \(\- Int64\(\-88\)\) \- coalesce\(\(\- Int64\(\-18\)\), Int64\(99\) \* Int64\(\-24\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-67\), \(\- count\(\(\- Int64\(\-75\)\)\)\) \* \(\- CASE Int64\(\-81\) WHEN Int64\(\-66\) THEN Int64\(71\) \* Int64\(\-95\) \* CASE Int64\(26\) WHEN Int64\(\-83\) THEN Int64\(23\) END \- \(\- Int64\(22\)\) \+ CAST\(\(\- sum\(Int64\(53\)\)\) AS Int32\) \* \(\- CAST\(Int64\(32\) AS Int32\)\) \+ Int64\(29\) WHEN CASE Int64\(54\) WHEN Int64\(\-88\) \* Int64\(\-86\) THEN Int64\(78\) \* CAST\(NULL AS Int32\) END THEN NULL WHEN Int64\(74\) / CAST\(NULL AS Int32\) \+ Int64\(25\) THEN NULL END\)\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(74\), Int64\(62\)\)\)\) AS col1" at position 0 and "\(\- sum\(Int64\(94\)\)\) \* \(\- Int64\(\-88\)\) \- coalesce\(\(\- Int64\(\-18\)\), Int64\(99\) \* Int64\(\-24\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-67\), \(\- count\(\(\- Int64\(\-75\)\)\)\) \* \(\- CASE Int64\(\-81\) WHEN Int64\(\-66\) THEN Int64\(71\) \* Int64\(\-95\) \* CASE Int64\(26\) WHEN Int64\(\-83\) THEN Int64\(23\) END \- \(\- Int64\(22\)\) \+ CAST\(\(\- sum\(Int64\(53\)\)\) AS Int64\) \* \(\- CAST\(Int64\(32\) AS Int64\)\) \+ Int64\(29\) WHEN CASE Int64\(54\) WHEN Int64\(\-88\) \* Int64\(\-86\) THEN Int64\(78\) \* CAST\(NULL AS Int64\) END THEN NULL WHEN Int64\(74\) / CAST\(NULL AS Int64\) \+ Int64\(25\) THEN NULL END\)\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - + NULLIF ( + + 74, + 62 ) ) AS col1, - SUM ( ALL 94 ) * - - 88 - + + COALESCE ( - - 18, + 99 * - 24 + - - 28 + - 67, - COUNT ( ALL - - 75 ) * - CASE + - 81 WHEN + - 66 THEN 71 * - 95 * + + CASE 26 WHEN - 83 THEN + 23 END - - + 22 + CAST ( - SUM ( ALL 53 ) AS INTEGER ) * - CAST ( + 32 AS INTEGER ) + 29 WHEN CASE 54 WHEN - 88 * - 86 THEN + 78 * CAST ( NULL AS INTEGER ) END THEN NULL WHEN + 74 / ( CAST ( NULL AS INTEGER ) ) + 25 THEN NULL END ) * 93 AS col1 query I rowsort @@ -5260,7 +5260,7 @@ NULL # Datafusion - Expected - -22698 # Datafusion - Expected - 92 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* Int64\(\-26\) \* \(\- CAST\(Int64\(97\) AS Int32\)\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* Int64\(\-26\) \* \(\- CAST\(Int64\(97\) AS Int64\)\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 9 * ( - 26 ) * - CAST ( 97 AS INTEGER ) col1, 92 AS col1, + 19 query II rowsort label-997 @@ -5782,7 +5782,7 @@ SELECT COALESCE ( + - 55, - - 59 ) + + - COUNT ( * ) * + 2 * + COUNT ( * ) - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(36\) \+ \(\- CAST\(Int64\(71\) AS Int32\)\) \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(36\) \+ \(\- CAST\(Int64\(71\) AS Int64\)\) \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44 col2, 94 + + 36 + - CAST ( 71 AS INTEGER ) + + 84 AS col2 query I rowsort label-1096 @@ -6793,7 +6793,7 @@ SELECT DISTINCT 22 / + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1536 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(40\) \+ Int64\(16\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(\-41\) \* CAST\(Int64\(\-63\) AS Float64\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-13\) \* Int64\(36\) THEN Int64\(95\) \+ Int64\(\-51\) \+ Int64\(30\) \+ Int64\(21\) \+ Int64\(37\) \* Int64\(\-22\) \* \(\- Int64\(\-52\)\) \* Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(11\) \+ Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(40\) \+ Int64\(16\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \- Int64\(\-41\) \* CAST\(Int64\(\-63\) AS Float64\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-13\) \* Int64\(36\) THEN Int64\(95\) \+ Int64\(\-51\) \+ Int64\(30\) \+ Int64\(21\) \+ Int64\(37\) \* Int64\(\-22\) \* \(\- Int64\(\-52\)\) \* Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(11\) \+ Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 38 * 40 + + 16 AS col2, CAST ( NULL AS INTEGER ) - - 41 * + CAST ( - 63 AS FLOAT8 ) * - CASE + - COUNT ( * ) WHEN - 13 * + 36 THEN + 95 + - 51 + 30 + + 21 + 37 * - 22 * - - 52 * + 24 * COUNT ( * ) END * 11 + - 98 AS col2 query I rowsort label-1283 @@ -9217,7 +9217,7 @@ SELECT ( 98 ) * 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-31\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(\-31\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 AS col1, + CAST ( NULL AS INTEGER ) / + ( - 31 ) * + ( - - 33 ) AS col1 query I rowsort label-1743 @@ -9389,7 +9389,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-15\), nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(23\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-99\) \* Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(43\)\)\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-15\), nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(23\) \- \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-99\) \* Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(43\)\)\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - 15, NULLIF ( - COUNT ( * ), + 23 - - CAST ( NULL AS INTEGER ) + + - 99 * - 91 + + COUNT ( * ) - + + 43 ) ) AS col0, - 83 AS col0 query II rowsort label-1776 @@ -11002,7 +11002,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 53 AS col1, CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 query I rowsort label-2085 @@ -12347,7 +12347,7 @@ SELECT DISTINCT + MAX ( + + 52 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(58\) AS Int32\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(58\) AS Int64\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + ( + 58 ) AS INTEGER ) AS col2, 63 col2 query I rowsort @@ -14334,7 +14334,7 @@ SELECT + CAST ( + 43 AS INTEGER ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33264 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(\-66\) \* Int64\(36\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(\-66\) \* Int64\(36\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 14 * - 66 * + ( + 36 ) col1, - CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-2724 @@ -15075,7 +15075,7 @@ SELECT + 5 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -6495 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-66\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \* Int64\(\-73\) \- min\(DISTINCT \(\- Int64\(59\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(DISTINCT Int64\(\-19\)\) AS col0" at position 0 and "Int64\(89\) \* Int64\(\-72\) \- Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-66\) AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \* Int64\(\-73\) \- min\(DISTINCT \(\- Int64\(59\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(DISTINCT Int64\(\-19\)\) AS col0" at position 0 and "Int64\(89\) \* Int64\(\-72\) \- Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * COUNT ( * ) / 34 * - 73 - + + MIN ( DISTINCT - + 59 ) * - - COUNT ( * ) * COUNT ( DISTINCT - 19 ) AS col0, 89 * - 72 - 87 AS col0 query II rowsort label-2865 @@ -15676,7 +15676,7 @@ SELECT - 31 - + + NULLIF ( - + ( + COUNT ( * ) ), + - NULLIF ( COALESCE ( + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -271440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(58\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(60\), \(\- Int64\(91\)\) \* CAST\(\(\- max\(Int64\(58\)\)\) AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(58\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(60\), \(\- Int64\(91\)\) \* CAST\(\(\- max\(Int64\(58\)\)\) AS Int64\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 52 AS col1, + 58 * + + COUNT ( * ) * - COALESCE ( + 60, - + 91 * + CAST ( + - MAX ( ALL + 58 ) AS INTEGER ) - + ( - COUNT ( * ) ) ) * 78 AS col1 query I rowsort label-2980 @@ -18667,7 +18667,7 @@ SELECT DISTINCT - 72 * 66, 76 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(\-47\) \* CASE Int64\(55\) WHEN Int64\(18\) \+ \(\- nullif\(Int64\(84\), Int64\(45\)\)\) \+ \(\- \(\- nullif\(Int64\(57\), Int64\(23\) \+ CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-85\) \+ CAST\(Int64\(83\) AS Int32\) THEN \(\- Int64\(\-6\)\) \+ Int64\(\-43\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(\-47\) \* CASE Int64\(55\) WHEN Int64\(18\) \+ \(\- nullif\(Int64\(84\), Int64\(45\)\)\) \+ \(\- \(\- nullif\(Int64\(57\), Int64\(23\) \+ CAST\(NULL AS Int64\)\)\)\) \+ Int64\(\-85\) \+ CAST\(Int64\(83\) AS Int64\) THEN \(\- Int64\(\-6\)\) \+ Int64\(\-43\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + 50 ) AS col2, - 47 * CASE + 55 WHEN + + 18 + + - NULLIF ( + 84, 45 ) + - - NULLIF ( 57, + 23 + + CAST ( NULL AS INTEGER ) ) + - 85 + + CAST ( 83 AS INTEGER ) THEN - - 6 + - 43 END col2 query I rowsort @@ -20708,7 +20708,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "coalesce\(Int64\(\-5\), count\(Int64\(1\)\) AS count\(\*\), Int64\(63\) \* coalesce\(Int64\(\-4\), \(\- Int64\(\-65\)\) / Int64\(12\)\) \* \(\- Int64\(16\)\) \* Int64\(\-63\) \+ Int64\(99\), Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "coalesce\(Int64\(\-5\), count\(Int64\(1\)\) AS count\(\*\), Int64\(63\) \* coalesce\(Int64\(\-4\), \(\- Int64\(\-65\)\) / Int64\(12\)\) \* \(\- Int64\(16\)\) \* Int64\(\-63\) \+ Int64\(99\), Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + ( - 5 ), COUNT ( * ), + 63 * + COALESCE ( - 4, - - 65 / 12 ) * - ( + + 16 ) * + - 63 + 99, 83 ) AS col2 query I rowsort @@ -23325,7 +23325,7 @@ SELECT ALL + 97 + - 26 + + 24 - + 9 * + 91 * 43 AS col1, - 25 * - 55 + - ( NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ Int64\(\-38\) \+ Int64\(66\) \+ Int64\(59\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ Int64\(\-38\) \+ Int64\(66\) \+ Int64\(59\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 79 + + - 38 + + 66 + 59 AS col1, CAST ( NULL AS INTEGER ) AS col1 query II rowsort @@ -23358,7 +23358,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 131140 # Datafusion - Expected - -25344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(20\) \* CAST\(Int64\(\-79\) AS Int32\) AS col2" at position 0 and "Int64\(44\) \* \(\- Int64\(48\)\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(20\) \* CAST\(Int64\(\-79\) AS Int64\) AS col2" at position 0 and "Int64\(44\) \* \(\- Int64\(48\)\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 83 * + 20 * + CAST ( - 79 AS INTEGER ) AS col2, 44 * - + 48 * + 12 AS col2 query I rowsort label-4449 @@ -23917,7 +23917,7 @@ SELECT 46 * - 81 + - + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, + 90 * - 99 AS col0 query I rowsort label-4555 @@ -25273,7 +25273,7 @@ SELECT - CAST ( + - 56 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-41\) AS Int32\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-41\) AS Int64\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( CAST ( - 41 AS INTEGER ) ) AS col0, - 87 AS col0 query I rowsort label-4812 @@ -25420,7 +25420,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 1465 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "CAST\(Int64\(27\) AS Int32\) \* \(\- Int64\(\-51\)\) \+ \(\- Int64\(88\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "CAST\(Int64\(27\) AS Int64\) \* \(\- Int64\(\-51\)\) \+ \(\- Int64\(88\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 AS col1, + CAST ( + 27 AS INTEGER ) * - - 51 + - + 88 * - COUNT ( * ) col1 query I rowsort label-4838 @@ -30191,7 +30191,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) 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\. SELECT ALL 38 AS col0, CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Types were automatically converted from: @@ -33106,7 +33106,7 @@ SELECT - SUM ( DISTINCT - 86 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 626 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(55\) \* \(\- \(\- nullif\(Int64\(11\), Int64\(84\)\)\)\) \+ Int64\(21\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(55\) \* \(\- \(\- nullif\(Int64\(11\), Int64\(84\)\)\)\) \+ Int64\(21\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 91 AS col0, + 55 * - - NULLIF ( + 11, + 84 ) + + 21 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-6314 @@ -33958,7 +33958,7 @@ SELECT - COUNT ( * ) * 31 * 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "\(\- CAST\(Int64\(73\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "\(\- CAST\(Int64\(73\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 44 AS col0, - CAST ( + 73 AS INTEGER ) AS col0 query I rowsort label-6476 @@ -37357,7 +37357,7 @@ SELECT + + 23 * - + 62 * - COUNT ( * ) * - 97 * + 34 # Datafusion - Expected - 9 # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 9 AS col1, + CAST ( NULL AS INTEGER ) * 45 AS col1, + - CAST ( + - 20 AS INTEGER ) AS col2 query I rowsort label-7120 @@ -37495,7 +37495,7 @@ SELECT 14 * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1520 # Datafusion - Expected - -5096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(80\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-52\), CAST\(NULL AS Int32\)\)\) \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(80\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-52\), CAST\(NULL AS Int64\)\)\) \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 19 * + 80 col1, - NULLIF ( - 52, + CAST ( NULL AS INTEGER ) ) * - 98 AS col1 query I rowsort @@ -37522,7 +37522,7 @@ SELECT ( + COUNT ( * ) ) * - - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5304 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(68\) \* Int64\(\-2\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(39\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(68\) \* Int64\(\-2\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(39\) / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 * + + 68 * - 2 * COUNT ( * ) AS col2, 39 / - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-7151 @@ -37611,7 +37611,7 @@ SELECT + 61 AS col1, + 33 - - + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(94\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(94\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( - + 94 AS INTEGER ) AS col0, - 18 col0 query I rowsort @@ -37887,7 +37887,7 @@ SELECT + ( 85 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-62\)\) \* Int64\(71\) \+ Int64\(\-44\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-62\)\) \* Int64\(71\) \+ Int64\(\-44\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( - 62 ) * + + 71 + + ( - 44 ) + - + CAST ( NULL AS INTEGER ) AS col2, 51 col2 query I rowsort label-7219 @@ -40899,7 +40899,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(92\)\) WHEN Int64\(52\) \+ \(\- Int64\(\-99\)\) \* \(\- max\(Int64\(\-5\)\)\) THEN Int64\(26\) ELSE CAST\(NULL AS Int32\) \* Int64\(\-14\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(92\)\) WHEN Int64\(52\) \+ \(\- Int64\(\-99\)\) \* \(\- max\(Int64\(\-5\)\)\) THEN Int64\(26\) ELSE CAST\(NULL AS Int64\) \* Int64\(\-14\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 22 AS col1, - CASE - + 92 WHEN 52 + - - 99 * + - MAX ( - 5 ) THEN 26 ELSE + CAST ( NULL AS INTEGER ) * - 14 END AS col1 query I rowsort @@ -40992,7 +40992,7 @@ SELECT ALL 65 + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -1852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-46\)\) \+ nullif\(Int64\(95\), Int64\(4\) / Int64\(90\)\) \* Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \- \(\- Int64\(\-46\)\) \+ nullif\(Int64\(95\), Int64\(4\) / Int64\(90\)\) \* Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 92 col1, CAST ( - COUNT ( * ) AS INTEGER ) - - - 46 + NULLIF ( 95, 4 / + ( + 90 ) ) * - 19 col1 query II rowsort label-7818 @@ -43277,7 +43277,7 @@ SELECT ALL - COALESCE ( - COALESCE ( 38, + 62 ), + + 39 * + 90 ) + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / \(\- \(\- CASE Int64\(6\) WHEN \(\- CAST\(Int64\(70\) AS Int32\)\) \+ Int64\(36\) THEN Int64\(99\) END\)\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / \(\- \(\- CASE Int64\(6\) WHEN \(\- CAST\(Int64\(70\) AS Int64\)\) \+ Int64\(36\) THEN Int64\(99\) END\)\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 / - - CASE + 6 WHEN - CAST ( 70 AS INTEGER ) + 36 THEN 99 END AS col2, + 31 AS col2 query I rowsort label-8252 @@ -45277,7 +45277,7 @@ SELECT - 27 + + 44 * + 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2573 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(83\) AS Int32\)\) \* Int64\(\-31\) AS col2" at position 0 and "Int64\(2\) \* Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(83\) AS Int64\)\) \* Int64\(\-31\) AS col2" at position 0 and "Int64\(2\) \* Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - CAST ( + 83 AS INTEGER ) ) * - 31 AS col2, 2 * + - 81 col2 query I rowsort label-8635 @@ -48414,7 +48414,7 @@ SELECT - ( - 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) \* CAST\(Int64\(\-85\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(73\) THEN sum\(DISTINCT Int64\(\-75\)\) WHEN CAST\(NULL AS Int32\) \* Int64\(73\) \+ Int64\(\-10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-23\) \* \(\- Int64\(14\)\) \* \(\- Int64\(36\)\) \* coalesce\(\(\- Int64\(\-21\)\), Int64\(\-94\)\) \+ Int64\(29\) END\) AS col1" at position 0 and "CAST\(Int64\(28\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) \* CAST\(Int64\(\-85\) AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(73\) THEN sum\(DISTINCT Int64\(\-75\)\) WHEN CAST\(NULL AS Int64\) \* Int64\(73\) \+ Int64\(\-10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-23\) \* \(\- Int64\(14\)\) \* \(\- Int64\(36\)\) \* coalesce\(\(\- Int64\(\-21\)\), Int64\(\-94\)\) \+ Int64\(29\) END\) AS col1" at position 0 and "CAST\(Int64\(28\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 59 * + ( CAST ( - 85 AS INTEGER ) ) + + COUNT ( * ) * - CASE COUNT ( * ) WHEN 73 THEN + SUM ( DISTINCT - 75 ) WHEN + + CAST ( NULL AS INTEGER ) * + 73 + - 10 THEN + COUNT ( * ) * - 23 * - + 14 * - + 36 * + COALESCE ( - - 21, - 94 ) + + 29 END AS col1, CAST ( 28 AS INTEGER ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_42.slt b/data/sqlite/random/expr/slt_good_42.slt index 2cfb089..cc80c4b 100644 --- a/data/sqlite/random/expr/slt_good_42.slt +++ b/data/sqlite/random/expr/slt_good_42.slt @@ -4073,7 +4073,7 @@ SELECT ALL + 71 * - + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \- count\(DISTINCT Int64\(69\)\) AS col0" at position 0 and "nullif\(CAST\(NULL AS Int32\), \(\- Int64\(75\)\) \* \(\- Int64\(\-16\)\) \* Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \- count\(DISTINCT Int64\(69\)\) AS col0" at position 0 and "nullif\(CAST\(NULL AS Int64\), \(\- Int64\(75\)\) \* \(\- Int64\(\-16\)\) \* Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 - COUNT ( DISTINCT + 69 ) AS col0, NULLIF ( CAST ( NULL AS INTEGER ), - + 75 * - - 16 * + 40 ) AS col0 query I rowsort label-769 @@ -6286,7 +6286,7 @@ SELECT ALL - SUM ( + 91 ) * 65 + - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / \(\- Int64\(\-69\)\) \* \(\- sum\(\(\- CAST\(Int64\(65\) AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / \(\- Int64\(\-69\)\) \* \(\- sum\(\(\- CAST\(Int64\(65\) AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 / - - 69 * - SUM ( - + CAST ( + + 65 AS INTEGER ) ) AS col2, - 77 AS col2 query I rowsort label-1196 @@ -6778,7 +6778,7 @@ SELECT ALL - - NULLIF ( - + 83, - 86 / + MIN ( + + 94 ) + - - 39 ) * - 51 + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) / \(\- min\(Int64\(\-61\)\)\) \+ \(\- CAST\(Int64\(\-30\) AS Int32\)\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) / \(\- min\(Int64\(\-61\)\)\) \+ \(\- CAST\(Int64\(\-30\) AS Int64\)\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 81 / + - MIN ( ALL - 61 ) + + - CAST ( - 30 AS INTEGER ) col0, CAST ( NULL AS FLOAT8 ) AS col0 query I rowsort label-1287 @@ -6809,7 +6809,7 @@ SELECT - 39 * 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -353 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* min\(DISTINCT Int64\(50\)\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(\-8\) \* CAST\(NULL AS Int32\) \+ count\(DISTINCT \(\- \(\- coalesce\(Int64\(\-25\), Int64\(87\)\)\)\)\) \* Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* min\(DISTINCT Int64\(50\)\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(\-8\) \* CAST\(NULL AS Int64\) \+ count\(DISTINCT \(\- \(\- coalesce\(Int64\(\-25\), Int64\(87\)\)\)\)\) \* Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 9 * MIN ( DISTINCT + 50 ) + 97 AS col0, - 8 * + + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - - COALESCE ( - 25, 87 ) ) * 11 AS col0 query I rowsort @@ -6967,7 +6967,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 2205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(65\) THEN \(\- coalesce\(CAST\(\(\- Int64\(\-64\)\) AS Int32\), Int64\(2\)\)\) ELSE Int64\(63\) \* Int64\(35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(65\) THEN \(\- coalesce\(CAST\(\(\- Int64\(\-64\)\) AS Int64\), Int64\(2\)\)\) ELSE Int64\(63\) \* Int64\(35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 15 AS col1, COUNT ( * ) * + CASE + COUNT ( * ) WHEN 65 THEN - COALESCE ( CAST ( - - 64 AS INTEGER ), + 2 ) ELSE + 63 * 35 END AS col1 query I rowsort label-1323 @@ -7169,7 +7169,7 @@ SELECT ALL + 87 * + 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(\-42\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-80\)\) \+ Int64\(59\) \+ CAST\(NULL AS Int32\) / Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(\-42\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-80\)\) \+ Int64\(59\) \+ CAST\(NULL AS Int64\) / Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) col0, COALESCE ( - 42, - - COUNT ( * ) * - ( ( - 80 ) ) + ( ( + 59 ) ) + + CAST ( NULL AS INTEGER ) / 14 ) AS col0 query I rowsort label-1361 @@ -7901,7 +7901,7 @@ SELECT + MIN ( ALL - 87 ), 49 + - + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -1078 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-41\)\) AS col2" at position 0 and "Int64\(98\) \* CAST\(CAST\(Int64\(\-11\) AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-41\)\) AS col2" at position 0 and "Int64\(98\) \* CAST\(CAST\(Int64\(\-11\) AS Int64\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( - 41 ) AS col2, 98 * CAST ( + CAST ( - 11 AS INTEGER ) AS INTEGER ) AS col2 query I rowsort @@ -10464,7 +10464,7 @@ SELECT 16 + + - ( - ( - - 23 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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\. SELECT ALL 71 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -12707,7 +12707,7 @@ SELECT - + 73 + + MIN ( - 69 ) * - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col2, - 97 AS col2 query I rowsort label-2420 @@ -13423,7 +13423,7 @@ SELECT + NULLIF ( - + 92, 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(99\), Int64\(\-52\), Int64\(\-33\) \- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(99\), Int64\(\-52\), Int64\(\-33\) \- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( + 99, - 52, - 33 - + CAST ( NULL AS INTEGER ) ) col0, + 66 col0 query II rowsort @@ -15682,7 +15682,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-57\)\) \* CAST\(NULL AS Int32\) \- CAST\(NULL AS Float64\) \+ Int64\(91\) AS col2" at position 0 and "\(\- nullif\(sum\(DISTINCT \(\- Int64\(76\)\)\), Int64\(\-38\)\)\) \- Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-57\)\) \* CAST\(NULL AS Int64\) \- CAST\(NULL AS Float64\) \+ Int64\(91\) AS col2" at position 0 and "\(\- nullif\(sum\(DISTINCT \(\- Int64\(76\)\)\), Int64\(\-38\)\)\) \- Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( ALL - 57 ) * + CAST ( NULL AS INTEGER ) - CAST ( NULL AS FLOAT8 ) + 91 AS col2, - NULLIF ( + SUM ( DISTINCT - + 76 ), - 38 ) - - 90 AS col2 query II rowsort label-2993 @@ -17123,7 +17123,7 @@ SELECT COALESCE ( - 17, + 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-54\) AS Int32\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-54\) AS Int64\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - 54 AS INTEGER ) col2, + ( + 21 ) AS col2 query I rowsort @@ -18256,7 +18256,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) 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\. SELECT + - 60 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -19000,7 +19000,7 @@ SELECT 14 * + ( + 16 ) + - + COUNT ( * ) * + - 56 + 86 * - - 15 * - 32 * - - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, 50 AS col2 query I rowsort @@ -19273,7 +19273,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1584 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* max\(DISTINCT CAST\(Int64\(\-72\) AS Int32\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* max\(DISTINCT CAST\(Int64\(\-72\) AS Int64\)\) 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\. SELECT DISTINCT + - 22 * MAX ( DISTINCT + ( CAST ( + - 72 AS INTEGER ) ) ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3681 @@ -21031,7 +21031,7 @@ SELECT - 76 * 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "CASE Int64\(\-17\) WHEN Int64\(18\) \* Int64\(17\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-76\)\) \+ Int64\(\-55\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) THEN Int64\(\-26\) WHEN \(\- CASE sum\(Int64\(18\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- max\(Int64\(61\)\) \+ Int64\(97\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(27\) \- Int64\(\-59\) \+ \(\- CAST\(NULL AS Int32\)\) THEN CASE Int64\(\-33\) WHEN \(\- Int64\(\-70\)\) \* Int64\(4\) / \(\- max\(Int64\(\-20\)\)\) \- Int64\(\-73\) THEN Int64\(4\) \* Int64\(\-73\) \+ Int64\(\-66\) / Int64\(47\) WHEN CAST\(NULL AS Float64\) THEN Int64\(\-16\) WHEN Int64\(85\) \- Int64\(\-58\) THEN Int64\(20\) \* Int64\(62\) END \* Int64\(81\) ELSE Int64\(\-67\) END\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "CASE Int64\(\-17\) WHEN Int64\(18\) \* Int64\(17\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-76\)\) \+ Int64\(\-55\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) THEN Int64\(\-26\) WHEN \(\- CASE sum\(Int64\(18\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- max\(Int64\(61\)\) \+ Int64\(97\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(27\) \- Int64\(\-59\) \+ \(\- CAST\(NULL AS Int64\)\) THEN CASE Int64\(\-33\) WHEN \(\- Int64\(\-70\)\) \* Int64\(4\) / \(\- max\(Int64\(\-20\)\)\) \- Int64\(\-73\) THEN Int64\(4\) \* Int64\(\-73\) \+ Int64\(\-66\) / Int64\(47\) WHEN CAST\(NULL AS Float64\) THEN Int64\(\-16\) WHEN Int64\(85\) \- Int64\(\-58\) THEN Int64\(20\) \* Int64\(62\) END \* Int64\(81\) ELSE Int64\(\-67\) END\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 98 ) AS col0, CASE - 17 WHEN 18 * + ( + 17 ) / - COUNT ( * ) + - - 76 + - 55 - - + COUNT ( * ) * 78 THEN - 26 WHEN - + CASE + SUM ( 18 ) WHEN + - COUNT ( * ) - MAX ( 61 ) + 97 THEN NULL WHEN - COUNT ( * ) / + 27 - - 59 + + - CAST ( NULL AS INTEGER ) THEN CASE - 33 WHEN - - 70 * 4 / - MAX ( - 20 ) - + - 73 THEN + 4 * - 73 + - 66 / 47 WHEN CAST ( NULL AS FLOAT8 ) THEN + - 16 WHEN 85 - - 58 THEN 20 * 62 END * 81 ELSE - 67 END THEN NULL END AS col0 query I rowsort @@ -22601,7 +22601,7 @@ SELECT ( 90 ) * - 5 col1 # Datafusion - Expected - -12 # Datafusion - Expected - NULL skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- Int64\(85\)\) AS col0" at position 0 and "CASE \(\- Int64\(50\)\) WHEN Int64\(36\) \+ CASE \(\- \(\- nullif\(Int64\(92\), min\(DISTINCT Int64\(17\)\) \+ Int64\(54\)\)\)\) WHEN Int64\(43\) \+ Int64\(3\) THEN Int64\(57\) \* Int64\(30\) \* Int64\(\-8\) WHEN \(\- Int64\(94\)\) \* Int64\(\-23\) THEN \(\- Int64\(30\)\) / Int64\(\-88\) / CAST\(Int64\(0\) AS Int32\) END THEN CAST\(Int64\(63\) AS Int32\) END \* Int64\(86\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- Int64\(85\)\) AS col0" at position 0 and "CASE \(\- Int64\(50\)\) WHEN Int64\(36\) \+ CASE \(\- \(\- nullif\(Int64\(92\), min\(DISTINCT Int64\(17\)\) \+ Int64\(54\)\)\)\) WHEN Int64\(43\) \+ Int64\(3\) THEN Int64\(57\) \* Int64\(30\) \* Int64\(\-8\) WHEN \(\- Int64\(94\)\) \* Int64\(\-23\) THEN \(\- Int64\(30\)\) / Int64\(\-88\) / CAST\(Int64\(0\) AS Int64\) END THEN CAST\(Int64\(63\) AS Int64\) END \* Int64\(86\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 + ( - + 85 ) AS col0, CASE - ( + + 50 ) WHEN 36 + + CASE - - NULLIF ( + + 92, MIN ( DISTINCT 17 ) + + 54 ) WHEN 43 + + 3 THEN 57 * 30 * - 8 WHEN - + 94 * - 23 THEN - + 30 / + - 88 / CAST ( 0 AS INTEGER ) END THEN + + ( + CAST ( + 63 AS INTEGER ) ) END * 86 + - COUNT ( * ) AS col0 query I rowsort @@ -33101,7 +33101,7 @@ SELECT ALL - ( - - NULLIF ( 73, + 83 + - MIN ( + 53 ) / - 2 * + 11 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4464 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(62\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(62\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 * 62 AS col2, CAST ( NULL AS INTEGER ) + + - 30 AS col2 query II rowsort @@ -34425,7 +34425,7 @@ SELECT DISTINCT 25 * - - 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1, 9 col1 query I rowsort label-6578 @@ -36282,7 +36282,7 @@ SELECT 52 + + 15 * + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(11\)\)\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(28\) \+ Int64\(29\) / Int64\(36\) \* Int64\(\-5\) \- Int64\(39\) \- Int64\(54\) \+ Int64\(85\) \* avg\(Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(11\)\)\) / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(28\) \+ Int64\(29\) / Int64\(36\) \* Int64\(\-5\) \- Int64\(39\) \- Int64\(54\) \+ Int64\(85\) \* avg\(Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 58 col1, - MIN ( DISTINCT + 11 ) / - CAST ( NULL AS INTEGER ) + 28 + + 29 / ( + 36 ) * + - 5 - 39 - + 54 + + ( + 85 ) * + AVG ( - 77 ) AS col1 query I rowsort label-6935 @@ -37669,7 +37669,7 @@ SELECT ALL + 90 * - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-6\) AS col1" at position 0 and "coalesce\(Int64\(8\), \(\- Int64\(77\)\) \* Int64\(\-85\), Int64\(13\) \+ Int64\(\-88\) / Int64\(50\) \* Int64\(95\) \+ Int64\(56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-6\) AS col1" at position 0 and "coalesce\(Int64\(8\), \(\- Int64\(77\)\) \* Int64\(\-85\), Int64\(13\) \+ Int64\(\-88\) / Int64\(50\) \* Int64\(95\) \+ Int64\(56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 81 - - CAST ( NULL AS INTEGER ) * - 6 AS col1, COALESCE ( 8, - + 77 * + - 85, + 13 + ( - 88 ) / + + 50 * 95 + + 56 ) AS col1 query I rowsort @@ -38049,7 +38049,7 @@ SELECT DISTINCT - 23 + + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 3796 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-18\)\) \+ Int64\(45\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "\(\- min\(Int64\(73\)\)\) \* \(\- CAST\(Int64\(52\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-18\)\) \+ Int64\(45\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "\(\- min\(Int64\(73\)\)\) \* \(\- CAST\(Int64\(52\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + + 60 ) + - - 18 + 45 + + + COUNT ( * ) + - 33 col0, - MIN ( + + 73 ) * + - CAST ( + 52 AS INTEGER ) AS col0 query I rowsort @@ -38358,7 +38358,7 @@ SELECT MAX ( 92 ) AS col1 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-1\) \+ Int64\(\-77\) AS col1" at position 1 and "\(\- min\(\(\- CAST\(CAST\(Int64\(\-34\) AS Int32\) AS Int32\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-1\) \+ Int64\(\-77\) AS col1" at position 1 and "\(\- min\(\(\- CAST\(CAST\(Int64\(\-34\) AS Int64\) AS Int64\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 1 * - + 64, CAST ( NULL AS INTEGER ) + - 1 + - 77 AS col1, - MIN ( - CAST ( CAST ( + - 34 AS INTEGER ) AS INTEGER ) ) AS col1 query II rowsort label-7331 @@ -39439,7 +39439,7 @@ SELECT + 12 - + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39325 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-65\) \* Int64\(55\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* CASE Int64\(21\) WHEN \(\- Int64\(95\)\) / Int64\(21\) THEN NULL WHEN Int64\(60\) THEN Int64\(3\) \- Int64\(42\) \- Int64\(73\) \- Int64\(64\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-65\) \* Int64\(55\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* CASE Int64\(21\) WHEN \(\- Int64\(95\)\) / Int64\(21\) THEN NULL WHEN Int64\(60\) THEN Int64\(3\) \- Int64\(42\) \- Int64\(73\) \- Int64\(64\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 11 * - 65 * 55 col0, CAST ( NULL AS INTEGER ) * CASE 21 WHEN - + 95 / + + 21 THEN NULL WHEN 60 THEN 3 - + + 42 - 73 - + 64 END AS col0 query I rowsort label-7535 @@ -39604,7 +39604,7 @@ SELECT ALL - COALESCE ( 57, - - COUNT ( * ) / - 75 * + 12 / 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int32\) \* Int64\(16\) AS col1" at position 0 and "Int64\(3\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int64\) \* Int64\(16\) AS col1" at position 0 and "Int64\(3\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + CAST ( + + 77 AS INTEGER ) ) * + 16 AS col1, 3 * + 59 AS col1 query I rowsort @@ -41242,7 +41242,7 @@ SELECT ALL - 24 * + 55 + + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1267 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(20\) AS Int32\) AS col2" at position 0 and "Int64\(26\) \+ Int64\(51\) \+ Int64\(85\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(20\) AS Int64\) AS col2" at position 0 and "Int64\(26\) \+ Int64\(51\) \+ Int64\(85\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + 20 AS INTEGER ) col2, 26 + + 51 + 85 * + 14 AS col2 query I rowsort label-7881 @@ -42420,7 +42420,7 @@ SELECT + CASE WHEN ( - 73 ) IS NULL THEN NULL ELSE - 21 END / SUM ( NULLIF ( + + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* \(\- Int64\(97\)\) \+ Int64\(34\) \+ \(\- CAST\(Int64\(58\) AS Int32\)\) AS col2" at position 0 and "Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(68\) \* \(\- count\(Int64\(\-25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* \(\- Int64\(97\)\) \+ Int64\(34\) \+ \(\- CAST\(Int64\(58\) AS Int64\)\) AS col2" at position 0 and "Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(68\) \* \(\- count\(Int64\(\-25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS FLOAT8 ) * - + 97 + + 34 + + - CAST ( + + 58 AS INTEGER ) AS col2, 1 * COUNT ( * ) * + 68 * - COUNT ( + - 25 ) AS col2 query I rowsort label-8108 @@ -42436,7 +42436,7 @@ SELECT DISTINCT CASE + - 76 WHEN - 31 * - ( MAX ( 41 ) ) * + 44 * + - SUM ( DIST # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + 80 AS col1 query I rowsort @@ -47372,7 +47372,7 @@ SELECT + COALESCE ( + MAX ( DISTINCT + 76 ), + + 52 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2871 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(2\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(2\) \+ \(\- CAST\(Int64\(10\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 * - 35 + - COUNT ( * ) AS col1, + 2 + - CAST ( + 10 AS INTEGER ) AS col1 query I rowsort label-9054 @@ -47934,7 +47934,7 @@ SELECT ALL - 91 / - - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4324 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(92\), Int64\(57\) \+ Int64\(\-7\)\)\) \* \(\- Int64\(\-47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(92\), Int64\(57\) \+ Int64\(\-7\)\)\) \* \(\- Int64\(\-47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2, - NULLIF ( + 92, 57 + + - 7 ) * - - 47 AS col2 query I rowsort @@ -48358,7 +48358,7 @@ SELECT + 1 * - 83 * + 0 + + 11 * CAST ( + COUNT ( * ) AS INTEGER ) + 60 + + 74 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 1056 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-38\) / Int64\(\-80\) \+ Int64\(\-33\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(32\)\) AS col2" at position 0 and "min\(\(\- Int64\(\-68\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-38\) / Int64\(\-80\) \+ Int64\(\-33\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(32\)\) AS col2" at position 0 and "min\(\(\- Int64\(\-68\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), + - 38 / + ( - 80 ) + + - 33 * + + ( COUNT ( * ) ) ) * - + 32 AS col2, + MIN ( - - 68 ) AS col2 query I rowsort label-9240 @@ -48803,7 +48803,7 @@ SELECT 96 * - 63 + - 43 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - 25 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(\-54\), Int64\(83\) \* Int64\(27\) / Int64\(\-65\) / Int64\(\-47\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(24\), Int64\(\-33\) \+ Int64\(\-60\) \+ Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(19\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) / \(\- avg\(Int64\(10\)\)\) \+ Int64\(70\) \+ Int64\(88\) \* Int64\(\-41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(\-54\), Int64\(83\) \* Int64\(27\) / Int64\(\-65\) / Int64\(\-47\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(24\), Int64\(\-33\) \+ Int64\(\-60\) \+ Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(19\) \+ \(\- CAST\(Int64\(80\) AS Int64\)\) / \(\- avg\(Int64\(10\)\)\) \+ Int64\(70\) \+ Int64\(88\) \* Int64\(\-41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2, 25, COALESCE ( - 54, 83 * + 27 / - 65 / - 47 - + COUNT ( * ) + + 24, - 33 + - 60 + + 70 + + COUNT ( * ) + 19 + - CAST ( + + 80 AS INTEGER ) / - AVG ( ALL + 10 ) + 70 + 88 * - 41 * - COUNT ( * ) ) AS col2 query I rowsort label-9324 @@ -50634,7 +50634,7 @@ SELECT DISTINCT + + 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, 89 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_43.slt b/data/sqlite/random/expr/slt_good_43.slt index d9cacd1..dc3c8d3 100644 --- a/data/sqlite/random/expr/slt_good_43.slt +++ b/data/sqlite/random/expr/slt_good_43.slt @@ -1367,7 +1367,7 @@ SELECT DISTINCT + - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 21 AS col1 query I rowsort label-262 @@ -3734,7 +3734,7 @@ SELECT NULLIF ( + ( + + 31 ), + - 76 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) col1 query I rowsort label-723 @@ -4809,7 +4809,7 @@ SELECT DISTINCT 41 * + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - MIN ( ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) ) AS col1, 65 AS col1 query I rowsort @@ -5264,7 +5264,7 @@ SELECT + ( - - 15 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * 46 AS col0 query I rowsort @@ -11319,7 +11319,7 @@ SELECT - ( + 68 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, 80 AS col0 query I rowsort @@ -13044,7 +13044,7 @@ SELECT DISTINCT 15 - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(Int64\(76\) AS Int32\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(Int64\(76\) AS Int64\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( + CAST ( 76 AS INTEGER ) ) AS col2, + 94 AS col2 query I rowsort label-2532 @@ -15117,7 +15117,7 @@ SELECT + 13 * 78 * 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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\. SELECT ALL 24 col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-2932 @@ -19918,7 +19918,7 @@ SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), + 63 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "CAST\(Int64\(\-32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "CAST\(Int64\(\-32\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 15 col0, CAST ( + - 32 AS INTEGER ) AS col0 query II rowsort label-3864 @@ -20862,7 +20862,7 @@ SELECT + + ( + SUM ( 41 ) ) - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 70 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-4046 @@ -20910,7 +20910,7 @@ SELECT ALL - + COUNT ( * ) / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 94 AS col2 query I rowsort @@ -29874,7 +29874,7 @@ SELECT DISTINCT + 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -487542 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(66\) \* Int64\(89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-12\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(66\) \* Int64\(89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-12\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 83 * + 66 * 89 AS col1, CAST ( - - 12 AS INTEGER ) AS col1 query I rowsort @@ -32386,7 +32386,7 @@ SELECT DISTINCT - ( 10 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col2 query I rowsort @@ -34858,7 +34858,7 @@ SELECT + 62 / - - COUNT ( DISTINCT 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 53 AS col1, CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 query I rowsort @@ -37416,7 +37416,7 @@ SELECT - - 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) 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\. SELECT ALL 38 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -43142,7 +43142,7 @@ SELECT - - 17 - + COALESCE ( - 22, - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) 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\. SELECT + - 60 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -43229,7 +43229,7 @@ SELECT + COUNT ( DISTINCT - 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, 50 AS col2 # Datafusion - Datafusion expected results: @@ -45241,7 +45241,7 @@ SELECT ALL + 89 * - COUNT ( * ) / COUNT ( - 0 ), + MIN ( ALL + 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1, 9 col1 query I rowsort label-8775 @@ -47914,7 +47914,7 @@ SELECT COUNT ( + 9 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - 79 col0 query I rowsort label-9291 @@ -49176,7 +49176,7 @@ SELECT + 57 col1, 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-81\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-81\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 23 AS col2, CAST ( - - 81 AS INTEGER ) AS col2 query I rowsort label-9537 @@ -50164,7 +50164,7 @@ SELECT + 98 * + - 51 AS col1 # Datafusion - Expected - 93 # Datafusion - Expected - -3771 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(60\) \* max\(CAST\(\(\- Int64\(64\)\) AS Int32\)\) \+ Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(60\) \* max\(CAST\(\(\- Int64\(64\)\) AS Int64\)\) \+ Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 93 AS col2, + 60 * + MAX ( CAST ( - + 64 AS INTEGER ) ) + 69 AS col2, 77 col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_44.slt b/data/sqlite/random/expr/slt_good_44.slt index 6051b88..69df407 100644 --- a/data/sqlite/random/expr/slt_good_44.slt +++ b/data/sqlite/random/expr/slt_good_44.slt @@ -404,7 +404,7 @@ SELECT + SUM ( - 73 ) AS col2, + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "max\(Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(DISTINCT CAST\(NULL AS Int64\)\) AS col1" at position 0 and "max\(Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 * + COUNT ( * ) - + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, + MAX ( 25 ) AS col1 query I rowsort label-70 @@ -556,7 +556,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(22\)\) \- Int64\(25\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-89\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(22\)\) \- Int64\(25\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-89\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 22 - 25 AS col0, - CAST ( - 89 AS INTEGER ) col0 query I rowsort label-98 @@ -1710,7 +1710,7 @@ SELECT DISTINCT 9 AS col1, ( COUNT ( * ) ) * - - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4186 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(Int64\(23\) AS Int32\)\)\) \* Int64\(\-14\) \* Int64\(\-13\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(Int64\(23\) AS Int64\)\)\) \* Int64\(\-14\) \* Int64\(\-13\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( + - CAST ( + 23 AS INTEGER ) ) * + ( - 14 ) * - 13 AS col2, - 95 AS col2 query I rowsort @@ -2334,7 +2334,7 @@ SELECT - 70 * - 23 + - 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col0, 3 + + 85 AS col0 query I rowsort label-439 @@ -3392,7 +3392,7 @@ SELECT ALL + - COUNT ( - + NULLIF ( + 13, - - 92 ) ) * - 33 AS col1, 15 + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - 79 col0 query I rowsort @@ -4553,7 +4553,7 @@ SELECT + NULLIF ( 35, + - COUNT ( * ) / - 9 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(\-29\), Int64\(\-52\)\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(70\) \- CAST\(NULL AS Int32\) \* \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(\-29\), Int64\(\-52\)\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(70\) \- CAST\(NULL AS Int64\) \* \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) * - NULLIF ( - 29, + - 52 ) + 59 AS col2, 70 - CAST ( NULL AS INTEGER ) * - - 5 AS col2 query II rowsort label-857 @@ -8105,7 +8105,7 @@ SELECT MIN ( 67 ) AS col0, 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 62 col1, ( 61 ) * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 73 AS col1 query I rowsort label-1542 @@ -8740,7 +8740,7 @@ SELECT CAST ( + - AVG ( + 19 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -229320 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(42\)\)\) \* Int64\(65\) \* Int64\(84\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(42\)\)\) \* Int64\(65\) \* Int64\(84\) 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\. SELECT - MAX ( ALL + ( + + 42 ) ) * 65 * + 84 col0, + ( - CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort @@ -8928,7 +8928,7 @@ SELECT 32, - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(\-4\) \+ \(\- coalesce\(nullif\(\(\- Int64\(\-50\)\), \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(85\) / Int64\(48\) \- \(\- Int64\(68\)\)\)\)\), CAST\(NULL AS Int32\), Int64\(9\) \* Int64\(\-69\) \+ coalesce\(\(\- Int64\(\-26\)\), Int64\(\-13\), Int64\(\-16\) \- Int64\(66\) \* CAST\(Int64\(\-22\) \+ Int64\(\-93\) \* Int64\(\-31\) AS Int32\)\)\)\) \+ Int64\(7\) \* \(\- CASE Int64\(\-87\) WHEN Int64\(77\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(25\) \+ Int64\(60\)\) \* Int64\(\-94\) WHEN Int64\(41\) THEN Int64\(69\) \+ Int64\(25\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(\-4\) \+ \(\- coalesce\(nullif\(\(\- Int64\(\-50\)\), \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(85\) / Int64\(48\) \- \(\- Int64\(68\)\)\)\)\), CAST\(NULL AS Int64\), Int64\(9\) \* Int64\(\-69\) \+ coalesce\(\(\- Int64\(\-26\)\), Int64\(\-13\), Int64\(\-16\) \- Int64\(66\) \* CAST\(Int64\(\-22\) \+ Int64\(\-93\) \* Int64\(\-31\) AS Int64\)\)\)\) \+ Int64\(7\) \* \(\- CASE Int64\(\-87\) WHEN Int64\(77\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(25\) \+ Int64\(60\)\) \* Int64\(\-94\) WHEN Int64\(41\) THEN Int64\(69\) \+ Int64\(25\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 col2, - 4 + - COALESCE ( NULLIF ( - - 50, - NULLIF ( COUNT ( * ), 85 / + 48 - - + 68 ) ), + CAST ( NULL AS INTEGER ), 9 * - 69 + COALESCE ( - - 26, - 13, - 16 - 66 * CAST ( - 22 + - 93 * - 31 AS INTEGER ) ) ) + ( 7 ) * ( - CASE - 87 WHEN 77 THEN - ( COUNT ( * ) ) + - ( + 25 + + 60 ) * - 94 WHEN 41 THEN 69 + + 25 END ) col2 query I rowsort label-1700 @@ -10421,7 +10421,7 @@ SELECT DISTINCT COUNT ( - 75 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(50\) AS Int32\) \+ Int64\(\-32\) \- Int64\(14\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(50\) AS Int64\) \+ Int64\(\-32\) \- Int64\(14\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 50 AS INTEGER ) + - 32 - 14 AS col0, + 75 AS col0 query I rowsort label-1987 @@ -11146,7 +11146,7 @@ SELECT ALL + 38 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-73\)\) WHEN Int64\(99\) \+ Int64\(1\) \+ Int64\(\-46\) \+ Int64\(52\) \* Int64\(2\) THEN \(\- CAST\(Int64\(\-49\) AS Int32\)\) \* Int64\(\-87\) WHEN Int64\(\-67\) \+ Int64\(46\) THEN NULL ELSE Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 0 and "Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-73\)\) WHEN Int64\(99\) \+ Int64\(1\) \+ Int64\(\-46\) \+ Int64\(52\) \* Int64\(2\) THEN \(\- CAST\(Int64\(\-49\) AS Int64\)\) \* Int64\(\-87\) WHEN Int64\(\-67\) \+ Int64\(46\) THEN NULL ELSE Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 0 and "Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE - - 73 WHEN + + 99 + ( 1 ) + - 46 + + 52 * + 2 THEN - CAST ( - 49 AS INTEGER ) * + - 87 WHEN + - 67 + + + 46 THEN NULL ELSE - 25 * COUNT ( * ) END AS col0, 80 * - - COUNT ( * ) AS col0 query I rowsort @@ -12564,7 +12564,7 @@ SELECT ALL + + 66 AS col1, - 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-81\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-81\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 23 AS col2, CAST ( - - 81 AS INTEGER ) AS col2 query I rowsort label-2397 @@ -18404,7 +18404,7 @@ SELECT ALL MAX ( - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) AS col2" at position 0 and "CAST\(Int64\(37\) AS Int32\) \- Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) AS col2" at position 0 and "CAST\(Int64\(37\) AS Int64\) \- Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 9 AS col2, CAST ( + 37 AS INTEGER ) - + 53 AS col2 query I rowsort @@ -19628,7 +19628,7 @@ SELECT ALL + 10 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(16\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(16\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col1, 16 * + 9 AS col1 query I rowsort @@ -26365,7 +26365,7 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - 5147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-64\) \+ Int64\(\-75\) \+ coalesce\(Int64\(81\), Int64\(\-39\), count\(Int64\(91\)\) \+ Int64\(\-9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-64\) \+ Int64\(\-75\) \+ coalesce\(Int64\(81\), Int64\(\-39\), count\(Int64\(91\)\) \+ Int64\(\-9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 75 / + CAST ( NULL AS INTEGER ) AS col1, - 64 + + - 75 + + + COALESCE ( + 81, - 39, COUNT ( 91 ) + + - 9 ) col1, + - ( - 47 ) + 60 * + + COALESCE ( 85, 60 + 47 ) AS col0 query I rowsort @@ -29098,7 +29098,7 @@ SELECT COUNT ( DISTINCT - 73 ) # Datafusion - Expected - 117 # Datafusion - Expected - 4 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- Int64\(\-93\)\) WHEN CAST\(\(\- Int64\(83\)\) AS Int32\) \+ sum\(\(\- CASE Int64\(\-86\) WHEN Int64\(0\) THEN Int64\(65\) END\)\) THEN NULL ELSE Int64\(\-49\) END\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- Int64\(\-93\)\) WHEN CAST\(\(\- Int64\(83\)\) AS Int64\) \+ sum\(\(\- CASE Int64\(\-86\) WHEN Int64\(0\) THEN Int64\(65\) END\)\) THEN NULL ELSE Int64\(\-49\) END\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 * + COUNT ( * ) + - ( + CASE - - 93 WHEN + CAST ( - ( 83 ) AS INTEGER ) + + SUM ( ALL - CASE - 86 WHEN 0 THEN 65 END ) THEN NULL ELSE - 49 END ) AS col2, + 4 AS col2, - 12 + + - 76 + - 77 + 94 query I rowsort label-5546 @@ -30429,7 +30429,7 @@ SELECT + + NULLIF ( - 20, - 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ) AS col2, 20 AS col2 query II rowsort @@ -33547,7 +33547,7 @@ SELECT ALL COUNT ( * ) + - CAST ( - - COUNT ( 93 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 28 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-6395 @@ -34959,7 +34959,7 @@ SELECT + 46 + 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(Int64\(45\) AS Int32\), Int64\(\-66\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(Int64\(45\) AS Int64\), Int64\(\-66\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + CAST ( 45 AS INTEGER ), - 66 ) AS col0, - COUNT ( * ) AS col0 query II rowsort label-6665 @@ -38066,7 +38066,7 @@ SELECT 60 / + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(\-55\) AS Int32\)\) / \(\- CAST\(Int64\(24\) AS Int32\)\) THEN Int64\(52\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(1\) ELSE NULL END \* \(\- Int64\(\-41\)\) \- Int64\(\-24\) \* CAST\(Int64\(\-96\) AS Int32\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(\-55\) AS Int64\)\) / \(\- CAST\(Int64\(24\) AS Int64\)\) THEN Int64\(52\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(1\) ELSE NULL END \* \(\- Int64\(\-41\)\) \- Int64\(\-24\) \* CAST\(Int64\(\-96\) AS Int64\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 + + 63 * + COUNT ( * ) + - 72 * + CASE - COUNT ( * ) WHEN - + CAST ( - 55 AS INTEGER ) / + - ( + CAST ( 24 AS INTEGER ) ) THEN + 52 * + COUNT ( * ) + + 1 ELSE NULL END * - - 41 - + - 24 * + CAST ( + ( - 96 ) AS INTEGER ) AS col0, - 35 AS col0 query I rowsort label-7256 @@ -39498,7 +39498,7 @@ SELECT + 68 * + CASE - - 96 WHEN 70 + - - 26 - 47 / - 67 THEN - - 74 WHEN - 61 T # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COALESCE ( 52, - - COUNT ( * ) * + 73 ) AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) col0 query I rowsort label-7526 @@ -43241,7 +43241,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col1, + 34 AS col1 query II rowsort label-8244 @@ -43512,7 +43512,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(71\) AS col2" at position 0 and "Int64\(57\) \* Int64\(\-77\) / \(\- Int64\(10\)\) \+ Int64\(\-98\) \* min\(Int64\(\-53\)\) \* Int64\(\-89\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) / CASE Int64\(33\) WHEN \(\- CASE nullif\(Int64\(33\), \(\- coalesce\(Int64\(90\), \(\- CASE Int64\(21\) WHEN Int64\(\-53\) THEN Int64\(34\) END\) \+ count\(Int64\(52\)\)\)\)\) WHEN Int64\(12\) \* Int64\(59\) THEN Int64\(\-81\) \+ \(\- \(\- avg\(DISTINCT Int64\(24\)\)\) \+ CAST\(Int64\(\-63\) AS Float64\)\) / Int64\(\-64\) END\) \- avg\(DISTINCT Int64\(59\)\) THEN Int64\(33\) \+ Int64\(\-58\) \* Int64\(\-98\) WHEN Int64\(\-46\) THEN Int64\(\-9\) WHEN Int64\(\-77\) \+ CAST\(Int64\(\-64\) AS Int32\) THEN NULL ELSE NULL END \- Int64\(6\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(71\) AS col2" at position 0 and "Int64\(57\) \* Int64\(\-77\) / \(\- Int64\(10\)\) \+ Int64\(\-98\) \* min\(Int64\(\-53\)\) \* Int64\(\-89\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) / CASE Int64\(33\) WHEN \(\- CASE nullif\(Int64\(33\), \(\- coalesce\(Int64\(90\), \(\- CASE Int64\(21\) WHEN Int64\(\-53\) THEN Int64\(34\) END\) \+ count\(Int64\(52\)\)\)\)\) WHEN Int64\(12\) \* Int64\(59\) THEN Int64\(\-81\) \+ \(\- \(\- avg\(DISTINCT Int64\(24\)\)\) \+ CAST\(Int64\(\-63\) AS Float64\)\) / Int64\(\-64\) END\) \- avg\(DISTINCT Int64\(59\)\) THEN Int64\(33\) \+ Int64\(\-58\) \* Int64\(\-98\) WHEN Int64\(\-46\) THEN Int64\(\-9\) WHEN Int64\(\-77\) \+ CAST\(Int64\(\-64\) AS Int64\) THEN NULL ELSE NULL END \- Int64\(6\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 26 - 71 AS col2, 57 * - 77 / - + 10 + + - 98 * MIN ( ALL + - 53 ) * - 89 * ( COUNT ( * ) ) - + 88 / + CASE 33 WHEN - CASE + NULLIF ( 33, - COALESCE ( ( + 90 ), - CASE + 21 WHEN - 53 THEN + 34 END + COUNT ( 52 ) ) ) WHEN 12 * + 59 THEN - 81 + - ( - AVG ( DISTINCT + 24 ) + CAST ( - 63 AS FLOAT8 ) ) / - 64 END - AVG ( DISTINCT 59 ) THEN 33 + - 58 * - 98 WHEN - 46 THEN - 9 WHEN - 77 + CAST ( - 64 AS INTEGER ) THEN NULL ELSE NULL END - 6 * + 21 AS col2 query I rowsort @@ -46385,7 +46385,7 @@ SELECT ALL + - SUM ( DISTINCT - - 13 ), 47 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 51 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 1 and "coalesce\(Int64\(1\), Int64\(0\) \+ \(\- Int64\(4\)\), \(\- max\(\(\- CAST\(Int64\(73\) AS Int32\)\)\)\)\) \- \(\- Int64\(14\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 1 and "coalesce\(Int64\(1\), Int64\(0\) \+ \(\- Int64\(4\)\), \(\- max\(\(\- CAST\(Int64\(73\) AS Int64\)\)\)\)\) \- \(\- Int64\(14\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col1, 51 AS col0, ( COALESCE ( + 1, 0 + - + 4, - MAX ( - CAST ( 73 AS INTEGER ) ) ) ) - - + 14 AS col0 query I rowsort label-8844 @@ -48968,7 +48968,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 117452 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* nullif\(\(\- \(\- CAST\(\(\- Int64\(89\)\) AS Int32\)\)\), \(\- \(\- Int64\(97\)\)\)\) \* Int64\(\-20\) \+ Int64\(\-49\) \+ Int64\(48\) \+ Int64\(\-27\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* nullif\(\(\- \(\- CAST\(\(\- Int64\(89\)\) AS Int64\)\)\), \(\- \(\- Int64\(97\)\)\)\) \* Int64\(\-20\) \+ Int64\(\-49\) \+ Int64\(48\) \+ Int64\(\-27\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 66 * + NULLIF ( - - CAST ( - + ( 89 ) AS INTEGER ), - ( - + 97 ) ) * + - 20 + - 49 + 48 + - 27 col0, 67 AS col0 query I rowsort label-9334 diff --git a/data/sqlite/random/expr/slt_good_45.slt b/data/sqlite/random/expr/slt_good_45.slt index a920d7d..d734fd3 100644 --- a/data/sqlite/random/expr/slt_good_45.slt +++ b/data/sqlite/random/expr/slt_good_45.slt @@ -298,7 +298,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) / Int64\(96\) AS col2" at position 0 and "CAST\(Int64\(\-39\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) / Int64\(96\) AS col2" at position 0 and "CAST\(Int64\(\-39\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS FLOAT8 ) / + 96 AS col2, + CAST ( - 39 AS INTEGER ) AS col2 query I rowsort @@ -357,7 +357,7 @@ SELECT COUNT ( + 45 ) - + + 99 + 42 # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 82 col1, - 77 AS col2 query I rowsort @@ -2162,7 +2162,7 @@ SELECT + 62 + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- min\(\(\- Int64\(5\)\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- min\(\(\- Int64\(5\)\)\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 36 AS col0, + COUNT ( * ) + + CAST ( - MIN ( - + 5 ) AS INTEGER ) AS col0 query I rowsort label-406 @@ -2957,7 +2957,7 @@ SELECT ALL - 42 * - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 55 AS col1, CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-557 @@ -4279,7 +4279,7 @@ SELECT 64 * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(11\) \- \(\- \(\- CAST\(\(\- Int64\(35\)\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(11\) \- \(\- \(\- CAST\(\(\- Int64\(35\)\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 AS col0, 11 - - - CAST ( - + 35 AS INTEGER ) AS col0 query I rowsort @@ -4531,7 +4531,7 @@ SELECT ALL - MAX ( + 93 ) * 58 + - - SUM ( DISTINCT - 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) / 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) / 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\. SELECT - + 44 / - 9 col0, - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-852 @@ -4656,7 +4656,7 @@ SELECT ALL 60 * - 96 + - 24 + + 64 * + + 9 + 98 + 34 / 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8024 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* CAST\(Int64\(\-94\) AS Int32\) \+ Int64\(\-35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(11\) \+ \(\- Int64\(38\)\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* CAST\(Int64\(\-94\) AS Int64\) \+ Int64\(\-35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(11\) \+ \(\- Int64\(38\)\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 85 * + CAST ( - 94 AS INTEGER ) + + - 35 + NULLIF ( + + COUNT ( * ), 11 + - + 38 ) AS col1, + 34 AS col1 query I rowsort label-875 @@ -5672,7 +5672,7 @@ SELECT MIN ( DISTINCT + COALESCE ( + 79, - 32, 95, - 86 * + CAST ( NULL AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(74\) \* CAST\(NULL AS Int32\) \* Int64\(21\) \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(74\) \* CAST\(NULL AS Int64\) \* Int64\(21\) \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 62 col0, + 74 * CAST ( NULL AS INTEGER ) * + 21 * + - 48 AS col0 query II rowsort @@ -7351,7 +7351,7 @@ SELECT + COUNT ( * ) / - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -1207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "\(\- \(\- Int64\(53\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- min\(Int64\(12\)\) \+ CAST\(\(\- Int64\(72\)\) AS Int32\) \+ Int64\(12\) \* Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "\(\- \(\- Int64\(53\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- min\(Int64\(12\)\) \+ CAST\(\(\- Int64\(72\)\) AS Int64\) \+ Int64\(12\) \* Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 96 AS col2, - ( - + 53 ) * + + COUNT ( * ) - + MIN ( + 12 ) + CAST ( - + 72 AS INTEGER ) + + 12 * - 98 AS col2 query I rowsort label-1383 @@ -9679,7 +9679,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -1879 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CASE Int64\(19\) WHEN Int64\(\-11\) THEN Int64\(\-19\) WHEN Int64\(84\) THEN Int64\(4\) ELSE Int64\(\-27\) \* CAST\(Int64\(\-89\) AS Int32\) \+ Int64\(9\) \* Int64\(\-59\) END\) \- \(\- nullif\(Int64\(\-7\), Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CASE Int64\(19\) WHEN Int64\(\-11\) THEN Int64\(\-19\) WHEN Int64\(84\) THEN Int64\(4\) ELSE Int64\(\-27\) \* CAST\(Int64\(\-89\) AS Int64\) \+ Int64\(9\) \* Int64\(\-59\) END\) \- \(\- nullif\(Int64\(\-7\), Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 43 - + - COUNT ( * ) AS col1, - CASE 19 WHEN - 11 THEN - 19 WHEN + 84 THEN 4 ELSE - 27 * + CAST ( - 89 AS INTEGER ) + + 9 * - 59 END - - NULLIF ( - 7, - 90 + COUNT ( * ) ) AS col1 query I rowsort @@ -11765,7 +11765,7 @@ SELECT 83 + - + 69 + + - 64 + + + 60 * + CASE + 40 WHEN + ( - - 36 ) * 95 THEN N # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \- Int64\(11\) AS col0" at position 0 and "Int64\(32\) \+ \(\- CAST\(\(\- Int64\(\-47\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \- Int64\(11\) AS col0" at position 0 and "Int64\(32\) \+ \(\- CAST\(\(\- Int64\(\-47\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 - + 11 AS col0, + 32 + - CAST ( - + ( + - 47 ) AS INTEGER ) AS col0 query I rowsort label-2228 @@ -13184,7 +13184,7 @@ SELECT DISTINCT COUNT ( * ) + 77, 1 + + + 66 + ( + - 73 ) * - + 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "CAST\(coalesce\(\(\- CASE Int64\(\-10\) WHEN coalesce\(Int64\(37\), Int64\(\-73\) \* \(\- Int64\(34\)\)\) \- Int64\(20\) THEN NULL WHEN \(\- coalesce\(\(\- Int64\(26\)\), \(\- coalesce\(Int64\(11\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-89\)\)\)\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(22\) THEN NULL WHEN Int64\(\-91\) \* Int64\(42\) \* Int64\(\-72\) \+ Int64\(99\) THEN Int64\(20\) END\), CAST\(NULL AS Int32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "CAST\(coalesce\(\(\- CASE Int64\(\-10\) WHEN coalesce\(Int64\(37\), Int64\(\-73\) \* \(\- Int64\(34\)\)\) \- Int64\(20\) THEN NULL WHEN \(\- coalesce\(\(\- Int64\(26\)\), \(\- coalesce\(Int64\(11\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-89\)\)\)\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(22\) THEN NULL WHEN Int64\(\-91\) \* Int64\(42\) \* Int64\(\-72\) \+ Int64\(99\) THEN Int64\(20\) END\), CAST\(NULL AS Int64\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 76 AS col0, CAST ( + COALESCE ( - CASE + - 10 WHEN + COALESCE ( + 37, - 73 * - ( 34 ) ) - 20 THEN NULL WHEN - COALESCE ( - + 26, - COALESCE ( + 11, COUNT ( * ) ) + - - 89 ) * - CAST ( NULL AS FLOAT8 ) + + + 22 THEN NULL WHEN + - 91 * 42 * + - 72 + 99 THEN 20 END, CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 query I rowsort label-2497 @@ -14325,7 +14325,7 @@ SELECT NULLIF ( + 47, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * COALESCE ( CA # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 582 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "CAST\(Int64\(7\) AS Int32\) \* Int64\(83\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "CAST\(Int64\(7\) AS Int64\) \* Int64\(83\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 86 col1, CAST ( 7 AS INTEGER ) * + 83 + 1 AS col1 query I rowsort @@ -18516,7 +18516,7 @@ SELECT + 91, - 75 AS col1, - 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 4866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(DISTINCT Int64\(\-90\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(51\) \* Int64\(95\) \- Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(DISTINCT Int64\(\-90\)\) AS Int64\)\) AS col2" at position 0 and "Int64\(51\) \* Int64\(95\) \- Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( CAST ( + AVG ( DISTINCT - 90 ) AS INTEGER ) ) AS col2, 51 * + + 95 - - 21 AS col2 query I rowsort label-3514 @@ -18604,7 +18604,7 @@ SELECT ALL + COUNT ( * ) AS col1, - 71 * - + 78 * + 41 + - 95 * - ( + 68 ) + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3929 # Datafusion - Expected - 3835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(54\), \(\- Int64\(50\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) \+ Int64\(41\) AS col1" at position 0 and "nullif\(nullif\(CAST\(Int64\(82\) AS Int32\), Int64\(\-46\) \* CASE Int64\(53\) WHEN CAST\(NULL AS Int32\) THEN Int64\(34\) \* CAST\(Int64\(27\) AS Int32\) \+ Int64\(\-10\) ELSE NULL END\), Int64\(33\) / Int64\(\-58\)\) / Int64\(66\) \+ Int64\(54\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(54\), \(\- Int64\(50\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) \+ Int64\(41\) AS col1" at position 0 and "nullif\(nullif\(CAST\(Int64\(82\) AS Int64\), Int64\(\-46\) \* CASE Int64\(53\) WHEN CAST\(NULL AS Int64\) THEN Int64\(34\) \* CAST\(Int64\(27\) AS Int64\) \+ Int64\(\-10\) ELSE NULL END\), Int64\(33\) / Int64\(\-58\)\) / Int64\(66\) \+ Int64\(54\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 54, - + 50 ) * COUNT ( * ) * + 72 + + 41 AS col1, NULLIF ( NULLIF ( + CAST ( ( + 82 ) AS INTEGER ), - 46 * + ( + CASE 53 WHEN CAST ( NULL AS INTEGER ) THEN 34 * CAST ( 27 AS INTEGER ) + - 10 ELSE NULL END ) ), 33 / - 58 ) / 66 + ( 54 ) * 71 AS col1 # Datafusion - Types were automatically converted from: @@ -20460,13 +20460,13 @@ SELECT + COALESCE ( 73, 29 ) AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 25 # Datafusion - Expected - -7387 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-37\) \- max\(Int64\(14\)\) \+ Int64\(76\) AS col1" at position 1 and "Int64\(\-83\) \* Int64\(89\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(\-37\) \- max\(Int64\(14\)\) \+ Int64\(76\) AS col1" at position 1 and "Int64\(\-83\) \* Int64\(89\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ), CAST ( COUNT ( * ) AS INTEGER ) * + - 37 - + MAX ( + 14 ) + + 76 AS col1, - 83 * 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(94\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(94\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, + 94 * + + 37 AS col1 query II rowsort @@ -22473,7 +22473,7 @@ SELECT + 86 AS col1, 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "\(\- nullif\(Int64\(21\), Int64\(32\)\)\) / CAST\(Int64\(62\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "\(\- nullif\(Int64\(21\), Int64\(32\)\)\) / CAST\(Int64\(62\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 2 AS col0, - NULLIF ( + 21, 32 ) / + CAST ( + 62 AS INTEGER ) AS col0 query II rowsort @@ -22955,7 +22955,7 @@ SELECT + ( SUM ( 14 ) ) / 14 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- coalesce\(Int64\(\-48\), \(\- CAST\(Int64\(90\) AS Int32\)\) \* Int64\(20\), Int64\(23\) \* Int64\(\-24\), \(\- CAST\(\(\- Int64\(\-18\)\) AS Int32\)\)\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(42\) \* count\(DISTINCT \(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- coalesce\(Int64\(\-48\), \(\- CAST\(Int64\(90\) AS Int64\)\) \* Int64\(20\), Int64\(23\) \* Int64\(\-24\), \(\- CAST\(\(\- Int64\(\-18\)\) AS Int64\)\)\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(42\) \* count\(DISTINCT \(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 - COALESCE ( - 48, - CAST ( 90 AS INTEGER ) * + 20, 23 * - 24, - CAST ( - - 18 AS INTEGER ) ) + 53 AS col0, 42 * COUNT ( DISTINCT - + 20 ) AS col0 query I rowsort @@ -23134,7 +23134,7 @@ SELECT - 63 + - - 65 * 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 164025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-81\)\) \* Int64\(81\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-81\)\) \* Int64\(81\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 AS col1, - 25 * ( - - 81 ) * + ( + 81 ) * CAST ( + - COUNT ( * ) AS INTEGER ) col1 query I rowsort label-4394 @@ -24012,7 +24012,7 @@ SELECT ALL 52 + + + COUNT ( * ) * + 78 * + - CAST ( AVG ( - - 37 ) AS INTEGER ) # Datafusion - Expected - -149850 # Datafusion - Expected - 98 # Datafusion - Expected - -5776 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(45\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(56\) \* Int64\(43\)\)\)\) \* Int64\(90\) \* Int64\(\-37\) AS col1" at position 0 and "Int64\(76\) \* Int64\(\-76\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(45\), \(\- CAST\(NULL AS Int64\)\) \* Int64\(56\) \* Int64\(43\)\)\)\) \* Int64\(90\) \* Int64\(\-37\) AS col1" at position 0 and "Int64\(76\) \* Int64\(\-76\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + ( ( - NULLIF ( ( 45 ), - CAST ( NULL AS INTEGER ) * 56 * + 43 ) ) ) ) * 90 * - 37 AS col1, 98 AS col2, + 76 * - 76 col1 query I rowsort label-4561 @@ -30442,7 +30442,7 @@ SELECT - - 51 col2, + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(59\)\), Int64\(\-8\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(59\)\), Int64\(\-8\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 85 AS col2, CAST ( NULLIF ( - + 59, - 8 ) AS INTEGER ) AS col2 query I rowsort @@ -30699,7 +30699,7 @@ SELECT DISTINCT - ( 44 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47334 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(46\) \* Int64\(\-49\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(46\) \* Int64\(\-49\) 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\. SELECT 21 * + + 46 * - 49 AS col0, - CAST ( NULL AS INTEGER ) col0 query I rowsort label-5840 @@ -32565,13 +32565,13 @@ SELECT ALL + 23 + - NULLIF ( + + 44, - 95 ) AS col1, 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2679 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- sum\(CAST\(NULL AS Float64\)\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- sum\(CAST\(NULL AS Float64\)\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 60 + - CAST ( NULL AS INTEGER ) * - SUM ( + + CAST ( NULL AS FLOAT8 ) ) AS col1, 57 * - + 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-67\) AS Int32\)\) \+ Int64\(10\) AS col1" at position 0 and "min\(Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-67\) AS Int64\)\) \+ Int64\(10\) AS col1" at position 0 and "min\(Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - CAST ( + - 67 AS INTEGER ) ) + 10 AS col1, MIN ( ALL + 2 ) AS col1 query I rowsort @@ -32869,7 +32869,7 @@ SELECT + COALESCE ( - - 75, - CASE 49 WHEN + 48 THEN + - 3 + - - 62 END ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-6254 @@ -33200,7 +33200,7 @@ SELECT 91 * + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* \(\- Int64\(73\)\) / Int64\(\-36\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* \(\- Int64\(73\)\) / Int64\(\-36\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col2, - COUNT ( * ) * 43 * - + 73 / - 36 + + + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -33425,7 +33425,7 @@ SELECT + ( - 34 ) * 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(44\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(97\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(\-73\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(44\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(97\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \- Int64\(\-73\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 + + COUNT ( * ) + - ( + 44 ) * - CAST ( NULL AS INTEGER ) + + 97 * + - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) - + - 73 AS col2, 7 AS col2 query II rowsort label-6361 @@ -35257,7 +35257,7 @@ SELECT + ( - 97 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-96\) AS col0" at position 0 and "CAST\(Int64\(\-77\) AS Int32\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-96\) AS col0" at position 0 and "CAST\(Int64\(\-77\) AS Int64\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - - 96 AS col0, ( + CAST ( - 77 AS INTEGER ) ) + 48 col0 query I rowsort @@ -39178,7 +39178,7 @@ SELECT DISTINCT - - MAX ( 99 ) + - + 19 + + 48 - + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / max\(DISTINCT \(\- Int64\(87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "CAST\(NULL AS Int64\) / max\(DISTINCT \(\- Int64\(87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 AS col2, CAST ( NULL AS INTEGER ) / MAX ( DISTINCT - + 87 ) AS col2 query I rowsort @@ -40359,7 +40359,7 @@ SELECT 33 * - 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 18 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -41648,7 +41648,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2672 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(2\)\) \* Int64\(17\) \+ Int64\(25\) \* coalesce\(CAST\(Int64\(22\) AS Int32\), \(\- Int64\(\-22\)\)\) \+ Int64\(72\) \* Int64\(29\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(2\)\) \* Int64\(17\) \+ Int64\(25\) \* coalesce\(CAST\(Int64\(22\) AS Int64\), \(\- Int64\(\-22\)\)\) \+ Int64\(72\) \* Int64\(29\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( + 2 ) * + 17 + + 25 * + COALESCE ( + CAST ( + 22 AS INTEGER ), + ( - - 22 ) ) + 72 * 29 AS col2, 18 AS col2 query I rowsort label-7934 @@ -41990,7 +41990,7 @@ SELECT + 12 * + + ( COUNT ( * ) ) / - 99 - COUNT ( * ) * + COUNT ( * ) * - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 577808 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(Int64\(67\), Int64\(63\), Int64\(7\)\) \* Int64\(88\) \* Int64\(98\) AS col2" at position 0 and "Int64\(73\) \* Int64\(\-89\) \+ \(\- Int64\(28\)\) \- CAST\(NULL AS Int32\) \* Int64\(\-22\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(Int64\(67\), Int64\(63\), Int64\(7\)\) \* Int64\(88\) \* Int64\(98\) AS col2" at position 0 and "Int64\(73\) \* Int64\(\-89\) \+ \(\- Int64\(28\)\) \- CAST\(NULL AS Int64\) \* Int64\(\-22\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * COALESCE ( + 67, + 63, + 7 ) * 88 * + 98 AS col2, + ( + 73 ) * - 89 + - + 28 - + CAST ( NULL AS INTEGER ) * - 22 + 67 AS col2 query I rowsort label-7999 @@ -43929,7 +43929,7 @@ SELECT - - 16 + 86 * 85 * - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(10\) \* CAST\(Int64\(34\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(10\) \* CAST\(Int64\(34\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 47 AS col2, + 10 * CAST ( 34 AS INTEGER ) AS col2 query I rowsort label-8375 @@ -45639,7 +45639,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -475 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- CAST\(Int64\(87\) AS Int32\)\) \+ \(\- Int64\(\-7\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(56\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- CAST\(Int64\(87\) AS Int64\)\) \+ \(\- Int64\(\-7\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(56\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 4 + - CAST ( + 87 AS INTEGER ) + - - 7 * COUNT ( * ) * MAX ( ALL + + 56 ) * - COUNT ( * ) AS col1, 48 AS col1 query I rowsort @@ -48944,7 +48944,7 @@ SELECT + 42 * + 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- CAST\(Int64\(90\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- CAST\(Int64\(90\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 AS col1, - CAST ( + 90 AS INTEGER ) AS col1 query I rowsort @@ -49704,7 +49704,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) / Int64\(\-3\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) / Int64\(\-3\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 / - 3 + + - CAST ( NULL AS INTEGER ) col1, + 71 AS col1 query I rowsort label-9475 @@ -49780,7 +49780,7 @@ SELECT DISTINCT + 92 * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ CASE Int64\(65\) WHEN \(\- Int64\(\-8\)\) THEN CAST\(NULL AS Int32\) END AS col1" at position 0 and "Int64\(\-50\) \+ count\(Int64\(33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ CASE Int64\(65\) WHEN \(\- Int64\(\-8\)\) THEN CAST\(NULL AS Int64\) END AS col1" at position 0 and "Int64\(\-50\) \+ count\(Int64\(33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 75 + CASE + + 65 WHEN - - 8 THEN + CAST ( NULL AS INTEGER ) END AS col1, - 50 + + + COUNT ( + 33 ) AS col1 query I rowsort @@ -50797,7 +50797,7 @@ SELECT + COUNT ( DISTINCT - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col2" at position 0 and "coalesce\(Int64\(85\), Int64\(11\) \* CAST\(NULL AS Int32\)\) \+ Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col2" at position 0 and "coalesce\(Int64\(85\), Int64\(11\) \* CAST\(NULL AS Int64\)\) \+ Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - ( - 75 ) AS col2, + COALESCE ( 85, 11 * CAST ( NULL AS INTEGER ) ) + 35 AS col2 query I rowsort label-9683 diff --git a/data/sqlite/random/expr/slt_good_46.slt b/data/sqlite/random/expr/slt_good_46.slt index d0eb176..2a6517f 100644 --- a/data/sqlite/random/expr/slt_good_46.slt +++ b/data/sqlite/random/expr/slt_good_46.slt @@ -1264,7 +1264,7 @@ SELECT - 4 * 37 + + + 68 * 86 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "\(\- \(\- \(\- Int64\(99\)\)\)\) / Int64\(\-17\) \* CASE Int64\(\-9\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(94\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* Int64\(71\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "\(\- \(\- \(\- Int64\(99\)\)\)\) / Int64\(\-17\) \* CASE Int64\(\-9\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(94\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \* Int64\(71\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT ( * ) THEN NULL WHEN 94 THEN ( ( COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) * + 71 END AS col0 query I rowsort label-239 @@ -2636,7 +2636,7 @@ SELECT - ( - - COUNT ( 66 ) ) + ( + 92 ) # Datafusion - Expected - -45 # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) / CAST\(NULL AS Int32\) AS col1" at position 1 and "Int64\(71\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) / CAST\(NULL AS Int64\) AS col1" at position 1 and "Int64\(71\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 45, - 83 / + + CAST ( NULL AS INTEGER ) AS col1, + 71 AS col1 query I rowsort @@ -4522,7 +4522,7 @@ SELECT - MAX ( DISTINCT + 93 ) + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(10\), \(\- Int64\(\-20\)\) \* \(\- CASE Int64\(\-26\) WHEN CASE Int64\(68\) WHEN Int64\(78\) / Int64\(69\) \* Int64\(\-21\) THEN CAST\(Int64\(42\) AS Int32\) END THEN Int64\(72\) ELSE Int64\(\-59\) END\) \- min\(Int64\(28\)\) \* Int64\(\-70\)\)\) \+ Int64\(\-65\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(10\), \(\- Int64\(\-20\)\) \* \(\- CASE Int64\(\-26\) WHEN CASE Int64\(68\) WHEN Int64\(78\) / Int64\(69\) \* Int64\(\-21\) THEN CAST\(Int64\(42\) AS Int64\) END THEN Int64\(72\) ELSE Int64\(\-59\) END\) \- min\(Int64\(28\)\) \* Int64\(\-70\)\)\) \+ Int64\(\-65\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( 10, - - 20 * - CASE - 26 WHEN CASE 68 WHEN + ( 78 ) / 69 * - 21 THEN CAST ( 42 AS INTEGER ) END THEN + + 72 ELSE - 59 END - MIN ( 28 ) * + - 70 ) + - 65 AS col1, 77 AS col1 query II rowsort label-855 @@ -7286,7 +7286,7 @@ SELECT 42 * - 20 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "CAST\(Int64\(\-29\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "CAST\(Int64\(\-29\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 AS col0, + CAST ( - 29 AS INTEGER ) AS col0 query I rowsort label-1375 @@ -7741,7 +7741,7 @@ SELECT 17 + + + COUNT ( * ) + - 54 + 38 / - SUM ( + - 95 ) * 17 - + - ( - 93 ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(55\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(28\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(55\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(28\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( 75 ) * - CAST ( NULL AS INTEGER ) + + + 55 AS col0, 53 + + 28 + - CAST ( NULL AS FLOAT8 ) col0 query I rowsort @@ -12364,7 +12364,7 @@ SELECT MIN ( DISTINCT 17 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -125 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ \(\- nullif\(Int64\(52\), nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(47\) \- Int64\(0\)\) / Int64\(61\)\)\) AS col0" at position 0 and "Int64\(4\) / coalesce\(Int64\(21\), \(\- nullif\(Int64\(\-53\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) \+ Int64\(36\)\)\) \- Int64\(\-24\) / CAST\(Int64\(36\) AS Int32\), Int64\(74\) \* Int64\(2\)\) \+ Int64\(48\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ \(\- nullif\(Int64\(52\), nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(47\) \- Int64\(0\)\) / Int64\(61\)\)\) AS col0" at position 0 and "Int64\(4\) / coalesce\(Int64\(21\), \(\- nullif\(Int64\(\-53\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) \+ Int64\(36\)\)\) \- Int64\(\-24\) / CAST\(Int64\(36\) AS Int64\), Int64\(74\) \* Int64\(2\)\) \+ Int64\(48\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 73 + - NULLIF ( 52, NULLIF ( - + COUNT ( * ), + 47 - + 0 ) / + 61 ) AS col0, 4 / COALESCE ( + 21, - NULLIF ( + - 53, - + COUNT ( * ) * - 67 + + 36 ) - + - 24 / CAST ( 36 AS INTEGER ), + 74 * 2 ) + + 48 / 42 AS col0 query II rowsort label-2346 @@ -15933,7 +15933,7 @@ SELECT + 4 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(4\), \(\- Int64\(72\)\) \+ CAST\(NULL AS Int32\) \- sum\(Int64\(22\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(4\), \(\- Int64\(72\)\) \+ CAST\(NULL AS Int64\) \- sum\(Int64\(22\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( 4, + ( - + 72 ) + CAST ( NULL AS INTEGER ) - SUM ( + 22 ) ) AS col1, COUNT ( * ) * 44 AS col1 query II rowsort label-3027 @@ -17849,7 +17849,7 @@ SELECT MIN ( DISTINCT ( - 58 ) ) * 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 22 + + 55 AS col1 query I rowsort @@ -22105,7 +22105,7 @@ SELECT ALL + + 66 * 75 + + + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5964 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-84\) AS col1" at position 0 and "\(\- CASE Int64\(\-79\) WHEN coalesce\(Int64\(98\), Int64\(\-89\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-28\) \* Int64\(\-34\)\) THEN min\(Int64\(21\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-84\) AS col1" at position 0 and "\(\- CASE Int64\(\-79\) WHEN coalesce\(Int64\(98\), Int64\(\-89\) \* \(\- CAST\(NULL AS Int64\)\) \- Int64\(\-28\) \* Int64\(\-34\)\) THEN min\(Int64\(21\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 * + ( - 84 ) AS col1, - CASE - 79 WHEN COALESCE ( + 98, + - 89 * - CAST ( NULL AS INTEGER ) - - 28 * - 34 ) THEN + MIN ( ALL + 21 ) ELSE NULL END AS col1 query I rowsort label-4208 @@ -27978,7 +27978,7 @@ SELECT DISTINCT - - 34 + SUM ( ALL 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-57\) AS col2" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- min\(Int64\(34\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-96\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* Int64\(5\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-57\) AS col2" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- min\(Int64\(34\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-96\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* Int64\(5\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) + - 57 AS col2, CASE + 58 WHEN + - 28 THEN NULL ELSE + - MIN ( + 34 ) * COUNT ( * ) + - 96 * - COUNT ( * ) END * + 5 + 20 col2 # Datafusion - Types were automatically converted from: @@ -29965,7 +29965,7 @@ SELECT ALL SUM ( DISTINCT + 85 ) / + - CASE + 79 WHEN 50 * 21 THEN NULL ELSE - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(86\) \* CAST\(NULL AS Int32\) \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(86\) \* CAST\(NULL AS Int64\) \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 6 AS col1, + 86 * + CAST ( NULL AS INTEGER ) * + 75 AS col1 query I rowsort label-5706 @@ -30058,7 +30058,7 @@ SELECT + 65 + + ( + COUNT ( * ) ) * + COUNT ( * ) + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7924 # Datafusion - Expected - -5840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- CAST\(\(\- Int64\(\-12\)\) AS Int32\)\) \* sum\(Int64\(30\)\) \+ Int64\(4\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(58\) / Int64\(93\) \+ Int64\(\-80\) \* Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- CAST\(\(\- Int64\(\-12\)\) AS Int64\)\) \* sum\(Int64\(30\)\) \+ Int64\(4\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(58\) / Int64\(93\) \+ Int64\(\-80\) \* Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 22 * - + CAST ( - ( - 12 ) AS INTEGER ) * SUM ( 30 ) + 4 * + COUNT ( * ) AS col2, 58 / 93 + - 80 * 73 AS col2 query II rowsort label-5723 @@ -31477,7 +31477,7 @@ SELECT DISTINCT 59 * 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) 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\. SELECT ( + 93 ) AS col0, CAST ( NULL AS INTEGER ) col0 query II rowsort label-5993 @@ -31829,7 +31829,7 @@ NULL # Datafusion - Expected - 17 # Datafusion - Expected - 3558 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- Int64\(\-13\)\) \* Int64\(3\) \+ Int64\(99\) \+ Int64\(13\) \+ Int64\(\-93\) \* \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- Int64\(\-13\)\) \* Int64\(3\) \+ Int64\(99\) \+ Int64\(13\) \+ Int64\(\-93\) \* \(\- \(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 17 AS col1, - 45 * - 77 + + - 93 * - COUNT ( + + 66 ), - - 13 * 3 + + 99 + 13 + - 93 * - ( - - CAST ( NULL AS INTEGER ) ) AS col1 query II rowsort @@ -33009,7 +33009,7 @@ SELECT ALL + MAX ( - 35 ) + - 78 / 80 * + ( + 78 ) * + - NULLIF ( COUNT ( * ), + # Datafusion - Expected - 55 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ \(\- Int64\(\-50\)\) AS col1" at position 0 and "Int64\(56\) / CAST\(NULL AS Int32\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ \(\- Int64\(\-50\)\) AS col1" at position 0 and "Int64\(56\) / CAST\(NULL AS Int64\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 + ( + - ( ( - 50 ) ) ) AS col1, 56 / + CAST ( NULL AS INTEGER ) - + 42 AS col1, CAST ( NULL AS FLOAT8 ) * - 4 query I rowsort label-6281 @@ -33573,7 +33573,7 @@ SELECT - 36 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-22\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-22\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 22 * - 75 AS col2 query I rowsort label-6389 @@ -34314,7 +34314,7 @@ SELECT - 36 / + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2985 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(5\)\) \* Int64\(54\) / CASE Int64\(56\) WHEN \(\- \(\- max\(Int64\(\-35\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(10\) END \* \(\- Int64\(67\)\) \- Int64\(\-94\) \* Int64\(51\) \+ \(\- min\(Int64\(44\)\)\) / Int64\(88\) AS col2" at position 0 and "CASE WHEN NOT count\(CAST\(Int64\(\-75\) AS Int32\)\) NOT BETWEEN NULL AND NULL THEN Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(\-23\) AS Float64\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(5\)\) \* Int64\(54\) / CASE Int64\(56\) WHEN \(\- \(\- max\(Int64\(\-35\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(10\) END \* \(\- Int64\(67\)\) \- Int64\(\-94\) \* Int64\(51\) \+ \(\- min\(Int64\(44\)\)\) / Int64\(88\) AS col2" at position 0 and "CASE WHEN NOT count\(CAST\(Int64\(\-75\) AS Int64\)\) NOT BETWEEN NULL AND NULL THEN Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(\-23\) AS Float64\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( + + 5 ) * 54 / CASE 56 WHEN - - MAX ( - 35 ) * + COUNT ( * ) THEN NULL ELSE ( + 10 ) END * - + ( 67 ) - - 94 * + 51 + - MIN ( ALL + + 44 ) / ( + + 88 ) AS col2, CASE WHEN NOT COUNT ( ALL + CAST ( - 75 AS INTEGER ) ) NOT BETWEEN NULL AND NULL THEN ( - 86 ) + COUNT ( * ) / CAST ( - 23 AS FLOAT8 ) ELSE NULL END AS col2 query I rowsort label-6530 @@ -35822,7 +35822,7 @@ SELECT 28 * 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(64\) \+ Int64\(\-40\) AS col1" at position 0 and "nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(72\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) \* nullif\(\(\- Int64\(49\)\), \(\- Int64\(\-98\)\) \* Int64\(39\) \* Int64\(\-97\) \+ Int64\(43\) \+ \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\)\) \* Int64\(\-35\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(64\) \+ Int64\(\-40\) AS col1" at position 0 and "nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(72\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) \* nullif\(\(\- Int64\(49\)\), \(\- Int64\(\-98\)\) \* Int64\(39\) \* Int64\(\-97\) \+ Int64\(43\) \+ \(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\)\) \* Int64\(\-35\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 9 + + + 64 + - 40 AS col1, NULLIF ( - - COUNT ( * ), 72 * + COUNT ( * ) * - 43 * NULLIF ( - + 49, - - 98 * 39 * + - 97 + + 43 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) + ( - 19 ) ) * - 35 ) + 21 AS col1 query I rowsort @@ -36951,7 +36951,7 @@ SELECT - ( + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "CAST\(Int64\(56\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "CAST\(Int64\(56\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 78 AS col0, CAST ( 56 AS INTEGER ) AS col0 query I rowsort label-7038 @@ -41144,7 +41144,7 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - -13 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) / Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-33\), Int64\(57\) \* Int64\(\-72\) \+ Int64\(57\)\) \+ max\(DISTINCT CAST\(Int64\(19\) AS Int32\)\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) / Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-33\), Int64\(57\) \* Int64\(\-72\) \+ Int64\(57\)\) \+ max\(DISTINCT CAST\(Int64\(19\) AS Int64\)\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 77 AS col1, + COUNT ( * ) - 89 / 46 * - COUNT ( * ) * NULLIF ( - 33, 57 * - 72 + 57 ) + MAX ( DISTINCT CAST ( + + 19 AS INTEGER ) ) col2, COUNT ( * ) AS col2 query I rowsort @@ -42713,7 +42713,7 @@ SELECT - 95 AS col2, - ( - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- Int64\(87\)\) \+ Int64\(\-48\) \* Int64\(62\), Int64\(67\) \+ Int64\(46\) \+ nullif\(nullif\(Int64\(\-48\), count\(Int64\(1\)\) AS count\(\*\) \+ min\(DISTINCT Int64\(28\)\) \+ CASE \(\- Int64\(\-3\)\) WHEN Int64\(\-57\) THEN \(\- CAST\(Int64\(41\) AS Int32\)\) END / Int64\(\-8\)\), Int64\(58\)\) \+ Int64\(\-80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(94\) \- sum\(Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- Int64\(87\)\) \+ Int64\(\-48\) \* Int64\(62\), Int64\(67\) \+ Int64\(46\) \+ nullif\(nullif\(Int64\(\-48\), count\(Int64\(1\)\) AS count\(\*\) \+ min\(DISTINCT Int64\(28\)\) \+ CASE \(\- Int64\(\-3\)\) WHEN Int64\(\-57\) THEN \(\- CAST\(Int64\(41\) AS Int64\)\) END / Int64\(\-8\)\), Int64\(58\)\) \+ Int64\(\-80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(94\) \- sum\(Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 35 col2, COALESCE ( - - COUNT ( * ), - ( 87 ) + - 48 * + + 62, + 67 + + 46 + + NULLIF ( NULLIF ( - 48, + COUNT ( * ) + MIN ( DISTINCT + + 28 ) + + CASE - - 3 WHEN - 57 THEN + - CAST ( 41 AS INTEGER ) END / ( - 8 ) ), + 58 ) + - 80 * + - COUNT ( * ) ) + 94 - + SUM ( - 11 ) AS col2 query II rowsort @@ -43411,7 +43411,7 @@ SELECT + COUNT ( * ) - - + 51 AS col0, 18 + - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-79\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-79\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( ALL - - 79 ) AS col1, - CAST ( NULL AS INTEGER ) * 80 AS col1 query I rowsort @@ -45364,7 +45364,7 @@ SELECT DISTINCT - 29 + 45 * + 20 * + 47 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(\-33\) \- \(\- count\(Int64\(48\)\)\) \+ coalesce\(\(\- CAST\(\(\- Int64\(28\)\) AS Int32\)\) \+ Int64\(0\) \* Int64\(5\), Int64\(61\), CASE Int64\(\-23\) WHEN Int64\(36\) \* Int64\(27\) THEN Int64\(\-62\) \+ Int64\(\-26\) ELSE Int64\(1\) END \* Int64\(91\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(\-33\) \- \(\- count\(Int64\(48\)\)\) \+ coalesce\(\(\- CAST\(\(\- Int64\(28\)\) AS Int64\)\) \+ Int64\(0\) \* Int64\(5\), Int64\(61\), CASE Int64\(\-23\) WHEN Int64\(36\) \* Int64\(27\) THEN Int64\(\-62\) \+ Int64\(\-26\) ELSE Int64\(1\) END \* Int64\(91\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 0 AS col1, - 33 - - COUNT ( 48 ) + COALESCE ( - CAST ( - ( 28 ) AS INTEGER ) + 0 * + 5, 61, CASE - 23 WHEN + 36 * + 27 THEN - 62 + - 26 ELSE + 1 END * + 91 ) * + 2 AS col1 query I rowsort @@ -46964,7 +46964,7 @@ SELECT DISTINCT 73 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 + CAST ( NULL AS INTEGER ) AS col0, ( 4 ) AS col0 query I rowsort label-8950 @@ -47693,7 +47693,7 @@ SELECT - 44 + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, 0 AS col0 query I rowsort label-9090 @@ -49892,7 +49892,7 @@ SELECT ( - 14 ) + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6425 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(97\) AS Int32\) \* Int64\(67\) \- Int64\(74\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(97\) AS Int64\) \* Int64\(67\) \- Int64\(74\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + 97 AS INTEGER ) * 67 - 74 AS col1, + 83 AS col1 query II rowsort label-9509 @@ -52019,7 +52019,7 @@ SELECT ALL COUNT ( + + 14 ) * 68 * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10273536 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* min\(Int64\(\-84\)\) \* Int64\(\-49\) \* Int64\(26\) AS col1" at position 0 and "CAST\(Int64\(54\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* min\(Int64\(\-84\)\) \* Int64\(\-49\) \* Int64\(26\) AS col1" at position 0 and "CAST\(Int64\(54\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 96 * + MIN ( + - 84 ) * - 49 * + 26 AS col1, + CAST ( 54 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: @@ -52224,7 +52224,7 @@ SELECT + 50 AS col0, + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- \(\- Int64\(27\)\)\), \(\- Int64\(2\)\) \+ Int64\(60\) \- CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-10\) \+ Int64\(85\), Int64\(20\)\), Int64\(51\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(45\)\) \* nullif\(Int64\(42\), Int64\(69\) \* Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(58\)\) AS col0" at position 0 and "Int64\(77\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- \(\- Int64\(27\)\)\), \(\- Int64\(2\)\) \+ Int64\(60\) \- CAST\(NULL AS Int64\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(\-10\) \+ Int64\(85\), Int64\(20\)\), Int64\(51\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(45\)\) \* nullif\(Int64\(42\), Int64\(69\) \* Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(58\)\) AS col0" at position 0 and "Int64\(77\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + COALESCE ( + COUNT ( * ), - - ( + + 27 ), - + 2 + 60 - + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + - 10 + + 85, 20 ), 51 * - - COUNT ( * ), + + 45 ) * + NULLIF ( + 42, 69 * + + 51 ) * + - COUNT ( * ) + - + 58 AS col0, + 77 + - 25 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_47.slt b/data/sqlite/random/expr/slt_good_47.slt index 37e2f29..2e5d3d4 100644 --- a/data/sqlite/random/expr/slt_good_47.slt +++ b/data/sqlite/random/expr/slt_good_47.slt @@ -2264,7 +2264,7 @@ SELECT ALL + 75 * + 25 * + - 26 * 2 + + ( + 73 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-51\) \+ \(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-51\) \+ \(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, - 51 + - + 1 AS col0 query I rowsort label-433 @@ -2534,7 +2534,7 @@ SELECT - + 16 - + 32 * - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(Int64\(\-78\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(Int64\(\-78\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 AS col0, CAST ( - 78 AS INTEGER ) AS col0 query I rowsort label-484 @@ -5538,7 +5538,7 @@ SELECT 45 * - 89 # Datafusion - Expected - 45 # Datafusion - Expected - -38 # Datafusion - Expected - -4233 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(39\) \+ \(\- Int64\(\-64\)\) / Int64\(88\) AS col1" at position 1 and "nullif\(Int64\(14\), Int64\(14\) \+ \(\- Int64\(1\)\) \+ CASE Int64\(10\) WHEN Int64\(\-76\) \+ Int64\(\-82\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) END \+ \(\- CAST\(Int64\(\-25\) AS Int32\)\)\) \* Int64\(0\) \- Int64\(\-96\) \+ Int64\(\-3\) \+ Int64\(90\) \+ Int64\(69\) \* Int64\(\-64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(39\) \+ \(\- Int64\(\-64\)\) / Int64\(88\) AS col1" at position 1 and "nullif\(Int64\(14\), Int64\(14\) \+ \(\- Int64\(1\)\) \+ CASE Int64\(10\) WHEN Int64\(\-76\) \+ Int64\(\-82\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) END \+ \(\- CAST\(Int64\(\-25\) AS Int64\)\)\) \* Int64\(0\) \- Int64\(\-96\) \+ Int64\(\-3\) \+ Int64\(90\) \+ Int64\(69\) \* Int64\(\-64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45, - 77 + 39 + + - ( - 64 ) / 88 AS col1, + NULLIF ( + 14, + 14 + - + 1 + + CASE 10 WHEN + - 76 + - 82 THEN + COUNT ( * ) + + - 56 END + + - CAST ( + - 25 AS INTEGER ) ) * 0 - - 96 + - 3 + + + 90 + + + 69 * - 64 col1 query I rowsort label-1054 @@ -5942,7 +5942,7 @@ SELECT 51 * + - 58 + + + 90 * + MAX ( DISTINCT - 26 ), + 0 * + 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "coalesce\(Int64\(51\), CAST\(\(\- Int64\(93\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "coalesce\(Int64\(51\), CAST\(\(\- Int64\(93\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 38 AS col1, COALESCE ( 51, CAST ( - ( 93 ) AS INTEGER ) ) AS col1 query I rowsort label-1130 @@ -6262,7 +6262,7 @@ SELECT ALL - + NULLIF ( + + 31, + ( + 52 ) ) * 63 + - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "\(\- coalesce\(Int64\(9\), Int64\(\-58\) \+ Int64\(95\) \* Int64\(80\)\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "\(\- coalesce\(Int64\(9\), Int64\(\-58\) \+ Int64\(95\) \* Int64\(80\)\)\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 11 ) AS col2, - COALESCE ( + 9, - 58 + 95 * + 80 ) + + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-1191 @@ -8831,7 +8831,7 @@ SELECT ALL + ( + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(NULL AS Int32\)\) \* min\(Int64\(\-12\)\) \* Int64\(\-62\) \+ Int64\(4\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(NULL AS Int64\)\) \* min\(Int64\(\-12\)\) \* Int64\(\-62\) \+ Int64\(4\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 55 + + - CAST ( NULL AS INTEGER ) * MIN ( + - 12 ) * + - 62 + 4 AS col1, 51 AS col1 query II rowsort label-1679 @@ -9680,7 +9680,7 @@ SELECT ALL + - COALESCE ( - 69, - 19 + + 56 * - - 62 + 19 * - 85 ) * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT ALL + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -9923,7 +9923,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(3\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(91\) \- Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(3\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(91\) \- Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 99 AS col1, + 3 * - CAST ( NULL AS INTEGER ) + + + 91 - 12 AS col1 query I rowsort @@ -11481,7 +11481,7 @@ SELECT ALL - COALESCE ( - - 21, - 51 + + ( CASE + 69 WHEN 21 + 42 THEN - ( + 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(60\) / Int64\(\-96\) \* Int64\(53\) \- nullif\(Int64\(12\), Int64\(4\) \+ CAST\(Int64\(\-15\) \- Int64\(3\) AS Int32\) \* avg\(CAST\(NULL AS Int32\) \* nullif\(Int64\(69\), Int64\(31\) \* CAST\(NULL AS Int32\)\) \+ Int64\(45\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(60\) / Int64\(\-96\) \* Int64\(53\) \- nullif\(Int64\(12\), Int64\(4\) \+ CAST\(Int64\(\-15\) \- Int64\(3\) AS Int64\) \* avg\(CAST\(NULL AS Int64\) \* nullif\(Int64\(69\), Int64\(31\) \* CAST\(NULL AS Int64\)\) \+ Int64\(45\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 82 AS col0, + 60 / - 96 * 53 - NULLIF ( 12, 4 + CAST ( - 15 - + 3 AS INTEGER ) * + AVG ( ALL CAST ( NULL AS INTEGER ) * + NULLIF ( ( 69 ), + ( 31 ) * CAST ( NULL AS INTEGER ) ) + 45 ) ) AS col0 query II rowsort @@ -14021,7 +14021,7 @@ SELECT ALL - COUNT ( * ) AS col1, MIN ( - - NULLIF ( 19, - - 66 + + - 32 ) ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(22\) \+ Int64\(32\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-71\) \* \(\- Int64\(51\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(22\) \+ Int64\(32\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-71\) \* \(\- Int64\(51\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 45 AS col2, 43 + + + 22 + 32 + + 80 * + - CAST ( NULL AS INTEGER ) * - 71 * + - ( 51 ) + - - COUNT ( * ) * + 55 AS col2 query I rowsort @@ -16804,7 +16804,7 @@ SELECT 77 * + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(78\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(78\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 AS col0, 78 * + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -18047,7 +18047,7 @@ SELECT DISTINCT - CASE WHEN NULL IS NULL THEN COUNT ( * ) ELSE NULL END AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- Int64\(\-26\) AS col2" at position 0 and "\(\- nullif\(Int64\(70\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\)\)\) \+ Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- Int64\(\-26\) AS col2" at position 0 and "\(\- nullif\(Int64\(70\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\)\)\) \+ Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 - - 26 AS col2, - NULLIF ( + 70, COUNT ( * ) + CAST ( NULL AS INTEGER ) ) + - 26 AS col2 query I rowsort label-3436 @@ -22557,7 +22557,7 @@ SELECT DISTINCT - MAX ( ALL - + 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(97\), Int64\(\-50\) \* \(\- coalesce\(\(\- \(\- Int64\(\-47\)\)\), Int64\(\-81\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(77\) \+ Int64\(\-14\) \+ coalesce\(Int64\(\-60\), count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(19\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(97\), Int64\(\-50\) \* \(\- coalesce\(\(\- \(\- Int64\(\-47\)\)\), Int64\(\-81\) \+ nullif\(CAST\(NULL AS Int64\), Int64\(77\) \+ Int64\(\-14\) \+ coalesce\(Int64\(\-60\), count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(19\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( + 97, - 50 * - COALESCE ( - + ( - - 47 ), - 81 + NULLIF ( + CAST ( NULL AS INTEGER ), 77 + - 14 + + COALESCE ( - 60, + COUNT ( * ) ) ) / + 19 ) ) AS col0, + COUNT ( * ) AS col0 query I rowsort label-4306 @@ -22922,7 +22922,7 @@ SELECT ALL 78 / - + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(29\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(29\) AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 29 AS INTEGER ) AS col2, + COUNT ( * ) AS col2 query II rowsort label-4376 @@ -24088,7 +24088,7 @@ SELECT ( + 50 ) / MIN ( DISTINCT + 98 ) * - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- Int64\(7\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- Int64\(7\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 22 - 7 AS col1, CAST ( NULL AS INTEGER ) + - + ( + + 83 ) AS col1 query I rowsort @@ -24136,7 +24136,7 @@ SELECT + + 12 + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-87\) AS Int32\) AS col0" at position 0 and "Int64\(50\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-87\) AS Int64\) AS col0" at position 0 and "Int64\(50\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 87 AS INTEGER ) AS col0, + 50 + 59 col0 query I rowsort label-4606 @@ -28049,7 +28049,7 @@ SELECT 35 * - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(23\) \+ Int64\(4\) \+ Int64\(62\) AS col2" at position 0 and "CAST\(Int64\(60\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(23\) \+ Int64\(4\) \+ Int64\(62\) AS col2" at position 0 and "CAST\(Int64\(60\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 91 + + + 23 + + 4 + 62 AS col2, + CAST ( + 60 AS INTEGER ) AS col2 query I rowsort label-5344 @@ -29076,7 +29076,7 @@ SELECT ALL - - 50 * 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-44\) AS col1" at position 0 and "Int64\(6\) / Int64\(\-31\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-44\) AS col1" at position 0 and "Int64\(6\) / Int64\(\-31\) \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) / - 44 AS col1, 6 / + - 31 - + CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -30807,7 +30807,7 @@ SELECT ALL + 83 * 15, ( - - MIN ( DISTINCT - 89 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(86\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(86\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 21 * + + 86 + - CAST ( NULL AS INTEGER ) * + 13 AS col2, + COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: @@ -33062,7 +33062,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 43560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-22\) \* \(\- Int64\(\-30\)\) \* CAST\(Int64\(\-66\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-22\) \* \(\- Int64\(\-30\)\) \* CAST\(Int64\(\-66\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 AS col1, - 22 * - - 30 * CAST ( - 66 AS INTEGER ) AS col1 query II rowsort @@ -33171,7 +33171,7 @@ SELECT + 22 - + - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 180 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(82\) AS col1" at position 0 and "Int64\(15\) \- CAST\(NULL AS Int32\) \+ Int64\(\-42\) \* nullif\(Int64\(\-90\), Int64\(\-61\) \- Int64\(93\)\) \+ Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(82\) AS col1" at position 0 and "Int64\(15\) \- CAST\(NULL AS Int64\) \+ Int64\(\-42\) \* nullif\(Int64\(\-90\), Int64\(\-61\) \- Int64\(93\)\) \+ Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 + + 82 col1, 15 - CAST ( NULL AS INTEGER ) + - 42 * + NULLIF ( - 90, - 61 - 93 ) + + - 76 AS col1 query I rowsort label-6321 @@ -34010,7 +34010,7 @@ SELECT DISTINCT - 23 + - COUNT ( ALL 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -2183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-90\) \* CAST\(count\(DISTINCT Int64\(20\)\) AS Int32\) \+ \(\- Int64\(\-23\)\) \* \(\- CAST\(Int64\(91\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-90\) \* CAST\(count\(DISTINCT Int64\(20\)\) AS Int64\) \+ \(\- Int64\(\-23\)\) \* \(\- CAST\(Int64\(91\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 + + - COUNT ( * ) AS col2, - 90 * + + CAST ( + COUNT ( DISTINCT + 20 ) AS INTEGER ) + - - 23 * - CAST ( + 91 AS INTEGER ) AS col2 query I rowsort label-6480 @@ -36020,7 +36020,7 @@ SELECT DISTINCT 50 + - - 80 + 91 * - + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -126552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(90\) \* Int64\(61\) \+ \(\- Int64\(\-63\)\) \+ \(\- Int64\(39\)\) \+ \(\- CAST\(Int64\(22\) AS Int32\)\) \* \(\- Int64\(\-87\)\) \* \(\- nullif\(Int64\(\-69\), \(\- Int64\(\-20\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(90\) \* Int64\(61\) \+ \(\- Int64\(\-63\)\) \+ \(\- Int64\(39\)\) \+ \(\- CAST\(Int64\(22\) AS Int64\)\) \* \(\- Int64\(\-87\)\) \* \(\- nullif\(Int64\(\-69\), \(\- Int64\(\-20\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 94 AS col2, + 90 * + 61 + - - 63 + - + 39 + - CAST ( + + 22 AS INTEGER ) * - - 87 * - NULLIF ( - 69, - - 20 ) AS col2 query I rowsort label-6861 @@ -37672,7 +37672,7 @@ SELECT + + 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-7176 @@ -37925,7 +37925,7 @@ SELECT DISTINCT 34 + + COUNT ( * ) + + + 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 0 and "Int64\(49\) / \(\- Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int64\)\) AS col2" at position 0 and "Int64\(49\) / \(\- Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + 35 AS INTEGER ) AS col2, 49 / - + 68 AS col2 query I rowsort label-7226 @@ -41039,7 +41039,7 @@ SELECT + + NULLIF ( + 62, 14 ) + 83 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "\(\- CASE Int64\(4\) WHEN Int64\(41\) \* CAST\(\(\- CASE \(\- avg\(DISTINCT Int64\(\-68\)\)\) WHEN Int64\(86\) THEN \(\- avg\(\(\- Int64\(\-97\)\)\)\) \- Int64\(\-61\) \* Int64\(\-20\) WHEN Int64\(\-60\) THEN Int64\(43\) ELSE NULL END\) AS Int32\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-1\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "\(\- CASE Int64\(4\) WHEN Int64\(41\) \* CAST\(\(\- CASE \(\- avg\(DISTINCT Int64\(\-68\)\)\) WHEN Int64\(86\) THEN \(\- avg\(\(\- Int64\(\-97\)\)\)\) \- Int64\(\-61\) \* Int64\(\-20\) WHEN Int64\(\-60\) THEN Int64\(43\) ELSE NULL END\) AS Int64\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-1\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 9 AS col0, - CASE + 4 WHEN 41 * CAST ( + - CASE - AVG ( DISTINCT - 68 ) WHEN + 86 THEN - + AVG ( ALL - - 97 ) - - 61 * + - 20 WHEN - 60 THEN + 43 ELSE NULL END AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN - 1 END AS col0 query I rowsort @@ -41204,7 +41204,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 632 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(8\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(8\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 * 8 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: @@ -42380,7 +42380,7 @@ SELECT - COALESCE ( + SUM ( DISTINCT + 40 ), - 9 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 / + CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -43613,7 +43613,7 @@ SELECT - - 70 + - - COUNT ( * ) - + 92 * - 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 36 AS col1 query I rowsort label-8312 @@ -43805,7 +43805,7 @@ SELECT DISTINCT - SUM ( + - NULLIF ( + 49, 67 ) ) * - MIN ( + + 92 ) * - + 61 + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "min\(Int64\(\-12\)\) \* CASE Int64\(\-88\) WHEN \(\- Int64\(18\)\) THEN Int64\(77\) \* Int64\(9\) \- Int64\(59\) WHEN Int64\(\-9\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "min\(Int64\(\-12\)\) \* CASE Int64\(\-88\) WHEN \(\- Int64\(18\)\) THEN Int64\(77\) \* Int64\(9\) \- Int64\(59\) WHEN Int64\(\-9\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 * - - CAST ( NULL AS INTEGER ) AS col1, MIN ( - 12 ) * + CASE - 88 WHEN - + 18 THEN + 77 * + 9 - 59 WHEN - 9 THEN NULL END AS col1 query II rowsort @@ -50439,7 +50439,7 @@ SELECT 20 * - + 17 - - ( + + COUNT ( ALL - - 45 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(\-87\) AS col1" at position 0 and "CASE Int64\(\-60\) WHEN Int64\(53\) THEN Int64\(17\) END \* CAST\(NULL AS Int32\) \* Int64\(87\) / Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(\-87\) AS col1" at position 0 and "CASE Int64\(\-60\) WHEN Int64\(53\) THEN Int64\(17\) END \* CAST\(NULL AS Int64\) \* Int64\(87\) / Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 32 + - 87 AS col1, CASE + - 60 WHEN + + 53 THEN + 17 END * CAST ( NULL AS INTEGER ) * 87 / 71 AS col1 query I rowsort label-9619 diff --git a/data/sqlite/random/expr/slt_good_48.slt b/data/sqlite/random/expr/slt_good_48.slt index ebaf890..05b8acf 100644 --- a/data/sqlite/random/expr/slt_good_48.slt +++ b/data/sqlite/random/expr/slt_good_48.slt @@ -3617,7 +3617,7 @@ SELECT ALL + + 14 col2, - 79 * 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -288 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* Int64\(6\) AS col1" at position 0 and "\(\- CAST\(\(\- CASE Int64\(\-40\) WHEN Int64\(\-34\) \- Int64\(8\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN CAST\(NULL AS Int32\) \* Int64\(\-95\) \+ Int64\(4\) THEN NULL ELSE Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* Int64\(6\) AS col1" at position 0 and "\(\- CAST\(\(\- CASE Int64\(\-40\) WHEN Int64\(\-34\) \- Int64\(8\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN CAST\(NULL AS Int64\) \* Int64\(\-95\) \+ Int64\(4\) THEN NULL ELSE Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) END\) AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 48 * 6 AS col1, - CAST ( - CASE - 40 WHEN - 34 - + 8 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 95 + 4 THEN NULL ELSE + 5 * COUNT ( * ) END AS INTEGER ) * COUNT ( * ) AS col1 query I rowsort label-685 @@ -5088,7 +5088,7 @@ SELECT - 95 + 35 AS col2, 84 * + 62 * + 4 - + + 76 # Datafusion - Expected - 1094 # Datafusion - Expected - 81 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* nullif\(max\(DISTINCT Int64\(23\)\), Int64\(\-47\)\) \+ \(\- CAST\(Int64\(34\) AS Int32\)\) \+ Int64\(28\) \* Int64\(83\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* nullif\(max\(DISTINCT Int64\(23\)\), Int64\(\-47\)\) \+ \(\- CAST\(Int64\(34\) AS Int64\)\) \+ Int64\(28\) \* Int64\(83\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 * + NULLIF ( MAX ( DISTINCT + 23 ), - 47 ) + - CAST ( 34 AS INTEGER ) + 28 * + 83 col1, 72 + + ( + 9 ) AS col1, + 93 query I rowsort label-963 @@ -7968,7 +7968,7 @@ SELECT ALL - 33 AS col1, 80 # Datafusion - Expected - 947 # Datafusion - Expected - 100 # Datafusion - Expected - -293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(75\)\), Int64\(48\) \+ Int64\(87\) \* coalesce\(\(\- Int64\(\-82\)\), CAST\(NULL AS Int32\) \* \(\- Int64\(\-97\)\) / Int64\(5\) \+ Int64\(90\)\) \+ Int64\(66\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(21\) AS col0" at position 1 and "Int64\(\-91\) \- Int64\(47\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-91\) \+ Int64\(\-66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(75\)\), Int64\(48\) \+ Int64\(87\) \* coalesce\(\(\- Int64\(\-82\)\), CAST\(NULL AS Int64\) \* \(\- Int64\(\-97\)\) / Int64\(5\) \+ Int64\(90\)\) \+ Int64\(66\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(21\) AS col0" at position 1 and "Int64\(\-91\) \- Int64\(47\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-91\) \+ Int64\(\-66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 * - CAST ( - 35 AS INTEGER ) + 2, 80 * + + COALESCE ( COUNT ( * ), - + 75, 48 + + 87 * COALESCE ( - - 82, CAST ( NULL AS INTEGER ) * - - 97 / + 5 + 90 ) + + 66 ) - COUNT ( * ) + 21 col0, - 91 - + 47 + + + COUNT ( * ) + + COUNT ( * ) + - 91 + - 66 AS col0 query I rowsort label-1507 @@ -8022,7 +8022,7 @@ SELECT + 51 * + 66 * - ( - - COALESCE ( - - 23, + - 16, 32 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 75 AS col0, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1517 @@ -8110,7 +8110,7 @@ SELECT ALL 12 * 13 - - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \- \(\- Int64\(\-11\)\) \+ \(\- Int64\(14\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- nullif\(\(\- Int64\(\-85\)\), Int64\(\-64\) \* max\(Int64\(\-83\)\) \+ CAST\(\(\- Int64\(15\)\) AS Int32\) \* Int64\(\-57\) \+ Int64\(72\) \* Int64\(51\) \+ Int64\(\-26\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \- \(\- Int64\(\-11\)\) \+ \(\- Int64\(14\)\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- nullif\(\(\- Int64\(\-85\)\), Int64\(\-64\) \* max\(Int64\(\-83\)\) \+ CAST\(\(\- Int64\(15\)\) AS Int64\) \* Int64\(\-57\) \+ Int64\(72\) \* Int64\(51\) \+ Int64\(\-26\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 - - ( - 11 ) + - + 14 + - CAST ( NULL AS INTEGER ) * + - NULLIF ( - ( - 85 ), - 64 * + MAX ( ALL - 83 ) + + CAST ( - + 15 AS INTEGER ) * + - 57 + + 72 * + 51 + - 26 ) AS col0, + 23 AS col0 query II rowsort @@ -8371,7 +8371,7 @@ SELECT DISTINCT - 37 + - 85 / - 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -940 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(1\) \* Int64\(74\) \+ Int64\(84\) \+ Int64\(33\) \+ Int64\(\-30\) \* Int64\(37\) \+ CASE WHEN Int64\(70\) <= NULL THEN \(\- Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(75\) ELSE Int64\(62\) \+ Int64\(\-95\) END AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(47\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(10\)\) \* max\(Int64\(\-91\)\) \- Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(1\) \* Int64\(74\) \+ Int64\(84\) \+ Int64\(33\) \+ Int64\(\-30\) \* Int64\(37\) \+ CASE WHEN Int64\(70\) <= NULL THEN \(\- Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(75\) ELSE Int64\(62\) \+ Int64\(\-95\) END AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(47\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(10\)\) \* max\(Int64\(\-91\)\) \- Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 12 + + 1 * 74 + 84 + + + 33 + + - 30 * 37 + + + CASE WHEN 70 <= NULL THEN - + 51 * - COUNT ( * ) * + + COUNT ( * ) + 75 ELSE + + 62 + - 95 END col0, - COUNT ( * ) * + 47 * - CAST ( NULL AS INTEGER ) * - + 10 * ( + MAX ( - 91 ) ) - 13 AS col0 query II rowsort label-1583 @@ -8419,7 +8419,7 @@ SELECT ALL - 77 * 24 * + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8232 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(49\) \* CAST\(Int64\(21\) AS Int32\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(49\) \* CAST\(Int64\(21\) AS Int64\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 * + 49 * CAST ( + 21 AS INTEGER ) AS col2, - 30 AS col2 query I rowsort label-1592 @@ -9923,7 +9923,7 @@ SELECT 48 + + CAST ( 80 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 117 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(43\) AS col1" at position 0 and "\(\- Int64\(\-90\)\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(43\) AS col1" at position 0 and "\(\- Int64\(\-90\)\) / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 + + 43 AS col1, - ( + - 90 ) / + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1879 @@ -15911,7 +15911,7 @@ SELECT ALL - + 56 + - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(53\) \+ Int64\(63\) \+ Int64\(37\) \+ \(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-55\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(93\) \* Int64\(\-15\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(53\) \+ Int64\(63\) \+ Int64\(37\) \+ \(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-55\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(93\) \* Int64\(\-15\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 74 + 53 + + 63 + + ( + 37 ) + - + 67 AS col0, - 55 + + COUNT ( * ) + 93 * - 15 * CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3024 @@ -15927,7 +15927,7 @@ SELECT + 10 * - - CAST ( - AVG ( DISTINCT + + 78 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1, 87 AS col1 query II rowsort @@ -23958,7 +23958,7 @@ SELECT - + 4 * - 30 + - - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - ( + COUNT ( * ) ) / + + 60 AS col1 query I rowsort label-4563 @@ -24652,7 +24652,7 @@ SELECT ALL + - 71 + - 65 + - SUM ( - 35 ) * - + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 648 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- CAST\(max\(Int64\(\-72\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- CAST\(max\(Int64\(\-72\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 9 * + ( - CAST ( + MAX ( - 72 ) AS INTEGER ) ) AS col1, + 48 AS col1 query I rowsort label-4691 @@ -28011,7 +28011,7 @@ SELECT + CAST ( - - ( 77 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-96\), Int64\(\-80\)\)\) \* \(\- Int64\(\-84\)\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-96\), Int64\(\-80\)\)\) \* \(\- Int64\(\-84\)\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - 96, + - 80 ) * - - 84 * - CAST ( NULL AS INTEGER ) * - 38 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -30994,7 +30994,7 @@ SELECT DISTINCT - 19 / - - CAST ( + COUNT ( * ) AS INTEGER ) + - 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(34\) AS Int32\) AS col2" at position 0 and "Int64\(\-64\) \- Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(34\) AS Int64\) AS col2" at position 0 and "Int64\(\-64\) \- Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 34 AS INTEGER ) AS col2, - 64 - + - 34 AS col2 query I rowsort label-5906 @@ -32512,7 +32512,7 @@ SELECT DISTINCT 92 * + - ( 49 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-6196 @@ -32726,7 +32726,7 @@ SELECT ALL - 35 / - - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(29\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(29\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( - + 29 AS INTEGER ) AS col1, 46 + + 9 AS col1 query I rowsort label-6237 @@ -34199,7 +34199,7 @@ SELECT ALL 94 + 85, 17 + + + 85 / 28 + 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-6520 @@ -34990,7 +34990,7 @@ SELECT - SUM ( ALL - 89 ) + - + COUNT ( * ) - + 84 - - - 35 + + 63 * - 96 + + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(79\), Int64\(29\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(Int64\(93\) AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(79\), Int64\(29\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- \(\- CAST\(Int64\(93\) AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 7 * + COUNT ( * ) + + + COALESCE ( + 79, + 29 ) AS col0, CAST ( NULL AS INTEGER ) * - + ( - CAST ( 93 AS FLOAT8 ) ) AS col0 query I rowsort label-6670 @@ -37025,7 +37025,7 @@ SELECT ALL + ( - COUNT ( * ) ) + + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(32\) AS Int32\)\) \+ Int64\(\-85\) \- Int64\(\-75\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(32\) AS Int64\)\) \+ Int64\(\-85\) \- Int64\(\-75\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + 32 AS INTEGER ) + - 85 - + - 75 AS col0, COUNT ( * ) AS col0 query I rowsort label-7057 @@ -38722,7 +38722,7 @@ SELECT + - 52 * + 56 + + 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1479 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-87\)\) AS Int32\) \* Int64\(17\) AS col0" at position 0 and "Int64\(\-28\) \- Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-87\)\) AS Int64\) \* Int64\(17\) AS col0" at position 0 and "Int64\(\-28\) \- Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + + CAST ( - - 87 AS INTEGER ) ) * 17 AS col0, - 28 - 72 + + COUNT ( * ) AS col0 query I rowsort label-7386 @@ -39476,7 +39476,7 @@ SELECT 41 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(47\) \* CASE Int64\(\-86\) WHEN \(\- Int64\(64\)\) / Int64\(48\) THEN \(\- Int64\(\-28\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(47\) \* CASE Int64\(\-86\) WHEN \(\- Int64\(64\)\) / Int64\(48\) THEN \(\- Int64\(\-28\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 76 AS col0, + CAST ( NULL AS INTEGER ) * 47 * CASE - 86 WHEN - + 64 / 48 THEN - - 28 ELSE NULL END AS col0 query I rowsort @@ -41019,7 +41019,7 @@ SELECT DISTINCT + 67 * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2131 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-1\) \* \(\- Int64\(14\)\) \- \(\- CAST\(NULL AS Int32\)\) \+ max\(Int64\(\-22\)\) \* \(\- Int64\(\-68\)\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-1\) \* \(\- Int64\(14\)\) \- \(\- CAST\(NULL AS Int64\)\) \+ max\(Int64\(\-22\)\) \* \(\- Int64\(\-68\)\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 82 * - 26 + - + COUNT ( * ) AS col2, 97 * - 1 * - + 14 - - CAST ( NULL AS INTEGER ) + + MAX ( - 22 ) * - - 68 * 66 col2 # Datafusion - Datafusion expected results: @@ -42531,7 +42531,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ \(\- CAST\(Int64\(27\) AS Int32\)\) AS col2" at position 0 and "Int64\(73\) \- CASE Int64\(\-67\) WHEN \(\- Int64\(\-6\)\) \* Int64\(\-58\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(63\) END \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ \(\- CAST\(Int64\(27\) AS Int64\)\) AS col2" at position 0 and "Int64\(73\) \- CASE Int64\(\-67\) WHEN \(\- Int64\(\-6\)\) \* Int64\(\-58\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(63\) END \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 66 + - + CAST ( 27 AS INTEGER ) AS col2, 73 - + CASE - 67 WHEN - - 6 * - 58 THEN NULL WHEN - COUNT ( * ) THEN + 63 END + 84 AS col2 query I rowsort label-8113 @@ -45084,7 +45084,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(72\) / Int64\(\-75\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(\-58\)\)\) / Int64\(87\) \* Int64\(17\) \* Int64\(9\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(72\) / Int64\(\-75\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(\-58\)\)\) / Int64\(87\) \* Int64\(17\) \* Int64\(9\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + 72 / + - 75 AS col0, - COUNT ( DISTINCT + - 58 ) / 87 * 17 * + 9 + 32 col0 query I rowsort label-8598 @@ -46872,7 +46872,7 @@ SELECT 35 / - + 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(44\) \* CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(44\) \* CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 6 AS col2, COUNT ( * ) + + COALESCE ( COUNT ( * ), 44 * + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -46947,7 +46947,7 @@ SELECT ( COALESCE ( + + 43, + 63 + COUNT ( * ) * 57 ) ) + - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CASE Int64\(\-40\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(7\) THEN \(\- sum\(Int64\(66\)\)\) \* Int64\(42\) \+ Int64\(84\) END\)\) / Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CASE Int64\(\-40\) WHEN CAST\(NULL AS Int64\) THEN NULL WHEN Int64\(7\) THEN \(\- sum\(Int64\(66\)\)\) \* Int64\(42\) \+ Int64\(84\) END\)\) / Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 11 AS col1, COUNT ( * ) * - - CASE - 40 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 7 THEN - SUM ( 66 ) * 42 + 84 END / - 32 col1 query I rowsort @@ -50166,7 +50166,7 @@ SELECT - NULLIF ( 73, 38 ) * - 61 * - COUNT ( - CAST ( NULL AS INTEGER ) ) * 52 # Datafusion - Expected - -42 # Datafusion - Expected - 89 # Datafusion - Expected - -63460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 1 and "CAST\(Int64\(23\) AS Int32\) \* Int64\(30\) \* \(\- Int64\(92\)\) \- Int64\(\-64\) \+ Int64\(\-44\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 1 and "CAST\(Int64\(23\) AS Int64\) \* Int64\(30\) \* \(\- Int64\(92\)\) \- Int64\(\-64\) \+ Int64\(\-44\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 42, 89 AS col1, CAST ( + 23 AS INTEGER ) * + 30 * - + 92 - + - 64 + - 44 AS col1 query I rowsort @@ -50712,7 +50712,7 @@ SELECT ALL 78 / - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 699 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CASE WHEN NOT Int64\(95\) IS NOT NULL THEN Int64\(10\) ELSE Int64\(\-74\) END\) AS Int32\)\) AS col0" at position 0 and "Int64\(22\) \* Int64\(38\) \+ Int64\(\-56\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CASE WHEN NOT Int64\(95\) IS NOT NULL THEN Int64\(10\) ELSE Int64\(\-74\) END\) AS Int64\)\) AS col0" at position 0 and "Int64\(22\) \* Int64\(38\) \+ Int64\(\-56\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - CASE WHEN NOT + 95 IS NOT NULL THEN + 10 ELSE + - 74 END AS INTEGER ) AS col0, ( 22 ) * 38 + - 56 - 81 AS col0 query I rowsort label-9675 diff --git a/data/sqlite/random/expr/slt_good_49.slt b/data/sqlite/random/expr/slt_good_49.slt index 4d20235..0174e93 100644 --- a/data/sqlite/random/expr/slt_good_49.slt +++ b/data/sqlite/random/expr/slt_good_49.slt @@ -1408,7 +1408,7 @@ SELECT ALL NULLIF ( - 32, - - ( 57 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int32\)\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int64\)\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 84 AS INTEGER ) AS col2, + 8 AS col2 query I rowsort @@ -4260,7 +4260,7 @@ SELECT DISTINCT 74 * + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "CAST\(Int64\(\-22\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "CAST\(Int64\(\-22\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 46 AS col1, ( CAST ( - 22 AS INTEGER ) ) AS col1 query I rowsort label-808 @@ -4707,7 +4707,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(19\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ CAST\(NULL AS Int64\) \* \(\- Int64\(19\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 42 ) + + CAST ( NULL AS INTEGER ) * - + 19 AS col1, + 23 AS col1 query II rowsort @@ -5892,7 +5892,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(20\) \+ Int64\(52\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(20\) \+ Int64\(52\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 70 + - CAST ( NULL AS INTEGER ) AS col2, 20 + + 52 + - - COUNT ( * ) * + + 45 * + COUNT ( * ) col2 query I rowsort label-1118 @@ -7761,7 +7761,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- Int64\(52\)\) \* Int64\(86\) \+ CASE Int64\(\-3\) WHEN \(\- CAST\(Int64\(97\) AS Int32\)\) THEN \(\- Int64\(73\)\) END \* sum\(DISTINCT Int64\(18\)\) / Int64\(58\) AS col2" at position 0 and "Int64\(78\) \- Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- Int64\(52\)\) \* Int64\(86\) \+ CASE Int64\(\-3\) WHEN \(\- CAST\(Int64\(97\) AS Int64\)\) THEN \(\- Int64\(73\)\) END \* sum\(DISTINCT Int64\(18\)\) / Int64\(58\) AS col2" at position 0 and "Int64\(78\) \- Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 1 * - + 52 * 86 + CASE - 3 WHEN - CAST ( + 97 AS INTEGER ) THEN - + 73 END * SUM ( DISTINCT 18 ) / + 58 AS col2, + 78 - - 36 AS col2 query I rowsort label-1474 @@ -10269,7 +10269,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ CAST\(NULL AS Int32\) \+ Int64\(83\) \+ Int64\(44\) AS col0" at position 0 and "Int64\(14\) \- Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ CAST\(NULL AS Int64\) \+ Int64\(83\) \+ Int64\(44\) AS col0" at position 0 and "Int64\(14\) \- Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 + ( CAST ( NULL AS INTEGER ) ) + + 83 + 44 AS col0, 14 - + 45 AS col0 query I rowsort @@ -10899,7 +10899,7 @@ SELECT 22 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(17\) \+ \(\- Int64\(\-27\)\) \+ Int64\(12\) \- Int64\(62\) \- \(\- CAST\(\(\- Int64\(\-35\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(17\) \+ \(\- Int64\(\-27\)\) \+ Int64\(12\) \- Int64\(62\) \- \(\- CAST\(\(\- Int64\(\-35\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 51 AS col0, + 17 + - - 27 + + 12 - + 62 - + - CAST ( - ( + - 35 ) AS INTEGER ) col0 query I rowsort label-2070 @@ -10976,7 +10976,7 @@ SELECT ALL 13 * + 1 + - - 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col2, 55 AS col2 query II rowsort label-2085 @@ -11322,7 +11322,7 @@ SELECT ALL - SUM ( - + 42 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -1026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "CAST\(\(\- \(\- coalesce\(Int64\(\-27\), \(\- Int64\(92\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(11\)\), Int64\(97\)\)\)\) AS Int32\) \* Int64\(40\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "CAST\(\(\- \(\- coalesce\(Int64\(\-27\), \(\- Int64\(92\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(11\)\), Int64\(97\)\)\)\) AS Int64\) \* Int64\(40\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( 60 ) AS col0, + CAST ( - - COALESCE ( - 27, - + 92, + COUNT ( * ) * - + 11, 97 ) AS INTEGER ) * 40 + + + 54 AS col0 query I rowsort @@ -11977,7 +11977,7 @@ SELECT ALL - + COUNT ( * ) + + 60 * NULLIF ( 5, + 87 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -2339 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "\(\- CAST\(Int64\(78\) AS Int32\)\) \* Int64\(30\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "\(\- CAST\(Int64\(78\) AS Int64\)\) \* Int64\(30\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 94 AS col0, - CAST ( + + 78 AS INTEGER ) * 30 + COUNT ( * ) AS col0 query I rowsort label-2280 @@ -12555,7 +12555,7 @@ SELECT 30 + - 8 + + 25 * + 47 AS col1, + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "Int64\(2\) \* Int64\(1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(63\) \- \(\- \(\- coalesce\(coalesce\(Int64\(87\), CASE Int64\(21\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(45\) \- avg\(Int64\(12\) \+ Int64\(85\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(31\) THEN sum\(Int64\(\-7\)\) ELSE Int64\(44\) END \* Int64\(\-33\), Int64\(58\)\), Int64\(54\)\)\)\) \* Int64\(25\) / Int64\(77\) \* \(\- nullif\(Int64\(70\) \- Int64\(83\), Int64\(50\) \* Int64\(61\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "Int64\(2\) \* Int64\(1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(63\) \- \(\- \(\- coalesce\(coalesce\(Int64\(87\), CASE Int64\(21\) WHEN CAST\(NULL AS Int64\) THEN NULL WHEN Int64\(45\) \- avg\(Int64\(12\) \+ Int64\(85\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(31\) THEN sum\(Int64\(\-7\)\) ELSE Int64\(44\) END \* Int64\(\-33\), Int64\(58\)\), Int64\(54\)\)\)\) \* Int64\(25\) / Int64\(77\) \* \(\- nullif\(Int64\(70\) \- Int64\(83\), Int64\(50\) \* Int64\(61\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 65 AS col2, + 2 * 1 + - COUNT ( * ) + 63 - - - COALESCE ( + COALESCE ( 87, + CASE + 21 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 - AVG ( 12 + 85 ) * + COUNT ( * ) THEN NULL WHEN 31 THEN + SUM ( ( - 7 ) ) ELSE 44 END * - 33, + 58 ), 54 ) * 25 / 77 * - NULLIF ( 70 - 83, 50 * 61 ) AS col2 query II rowsort label-2391 @@ -13235,7 +13235,7 @@ SELECT + 79 - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(\-80\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(\-80\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 91 * - 80 col2, - ( - CAST ( NULL AS INTEGER ) ) col2 query II rowsort label-2520 @@ -15283,7 +15283,7 @@ SELECT - COUNT ( * ) * + 1 / + + MIN ( 3 ) - - 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "CAST\(Int64\(14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "CAST\(Int64\(14\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( + 14 AS INTEGER ) AS col2 query I rowsort label-2909 @@ -16161,7 +16161,7 @@ SELECT ( - 86 ) * - 28 + + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "nullif\(Int64\(\-87\), Int64\(\-68\) / \(\- Int64\(\-97\)\) \+ max\(\(\- nullif\(Int64\(16\), \(\- Int64\(70\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\)\) \* Int64\(36\) \* Int64\(99\) \- \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(76\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "nullif\(Int64\(\-87\), Int64\(\-68\) / \(\- Int64\(\-97\)\) \+ max\(\(\- nullif\(Int64\(16\), \(\- Int64\(70\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\)\)\)\)\) \* Int64\(36\) \* Int64\(99\) \- \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(76\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 51 col0, + NULLIF ( - 87, + - 68 / - - 97 + MAX ( + - NULLIF ( + 16, - + 70 * - - CAST ( NULL AS INTEGER ) ) ) ) * + 36 * ( + + 99 ) - - CAST ( NULL AS FLOAT8 ) + + - COUNT ( * ) + 76 * + 22 AS col0 query I rowsort @@ -16294,7 +16294,7 @@ SELECT ALL 89 AS col2, - 26 * + 80 + 80 * + + 22 * 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(30\) \+ count\(DISTINCT CASE Int64\(\-70\) WHEN CAST\(NULL AS Int32\) THEN Int64\(43\) ELSE \(\- Int64\(\-49\)\) \* \(\- CAST\(NULL AS Float64\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(30\) \+ count\(DISTINCT CASE Int64\(\-70\) WHEN CAST\(NULL AS Int64\) THEN Int64\(43\) ELSE \(\- Int64\(\-49\)\) \* \(\- CAST\(NULL AS Float64\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col0, + 30 + + COUNT ( DISTINCT + CASE - 70 WHEN + ( + + CAST ( NULL AS INTEGER ) ) THEN + 43 ELSE - - 49 * - CAST ( NULL AS FLOAT8 ) END ) AS col0 query I rowsort @@ -19274,7 +19274,7 @@ SELECT ( COUNT ( DISTINCT + ( - 11 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(\-5\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(97\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(\-5\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(97\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - 42 ) AS col1, CASE - 5 WHEN + - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL END AS col1 query I rowsort label-3663 @@ -19435,7 +19435,7 @@ SELECT + 10, COUNT ( - CASE - - 98 WHEN 81 THEN 39 ELSE + 39 END ) * - 41 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 5963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(48\) \+ \(\- nullif\(Int64\(73\), \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(95\) \* CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-71\)\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(48\) \+ \(\- nullif\(Int64\(73\), \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(95\) \* CAST\(NULL AS Int64\)\)\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-71\)\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 77 + + 48 + - + NULLIF ( + + 73, - NULLIF ( + ( COUNT ( * ) ), 95 * + CAST ( NULL AS INTEGER ) ) ) AS col2, + ( - COUNT ( * ) ) + - ( - 71 ) * + 84 AS col2 query II rowsort @@ -23233,7 +23233,7 @@ SELECT + MIN ( DISTINCT - 10 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 5856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- coalesce\(Int64\(36\), Int64\(2\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-19\) \* Int64\(\-48\) \+ Int64\(73\)\)\) \- Int64\(58\) \+ Int64\(\-15\) AS col0" at position 0 and "Int64\(96\) \* \(\- Int64\(\-61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- coalesce\(Int64\(36\), Int64\(2\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) / Int64\(\-19\) \* Int64\(\-48\) \+ Int64\(73\)\)\) \- Int64\(58\) \+ Int64\(\-15\) AS col0" at position 0 and "Int64\(96\) \* \(\- Int64\(\-61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 5 * - COALESCE ( 36, 2, COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - 19 * + - 48 + + 73 ) - + 58 + - 15 AS col0, 96 * - - 61 AS col0 query II rowsort @@ -25896,7 +25896,7 @@ SELECT + 11 + 5 + - 70 * - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -35962 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(9\) \* Int64\(\-14\) \* Int64\(57\) \* Int64\(5\) \+ Int64\(\-40\) \+ CAST\(Int64\(\-12\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(9\) \* Int64\(\-14\) \* Int64\(57\) \* Int64\(5\) \+ Int64\(\-40\) \+ CAST\(Int64\(\-12\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 AS col1, 9 * - 14 * 57 * + 5 + - 40 + + CAST ( - 12 AS INTEGER ) col1 query I rowsort label-4924 @@ -29547,7 +29547,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- nullif\(Int64\(45\), \(\- \(\- Int64\(29\)\)\) \- Int64\(17\) \- \(\- Int64\(\-57\)\)\)\) WHEN \(\- Int64\(\-65\)\) THEN Int64\(67\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(82\) END \* count\(Int64\(8\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- nullif\(Int64\(45\), \(\- \(\- Int64\(29\)\)\) \- Int64\(17\) \- \(\- Int64\(\-57\)\)\)\) WHEN \(\- Int64\(\-65\)\) THEN Int64\(67\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN NULL ELSE Int64\(82\) END \* count\(Int64\(8\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + + CASE + - ( NULLIF ( + 45, - ( - + ( + 29 ) ) - 17 - - - 57 ) ) WHEN - - 65 THEN + 67 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE 82 END ) * COUNT ( ALL + 8 ) AS col2, 26 AS col2 query I rowsort @@ -30519,7 +30519,7 @@ SELECT + 6 + - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "CASE Int64\(\-50\) WHEN Int64\(75\) \+ Int64\(25\) THEN Int64\(\-43\) \+ Int64\(44\) WHEN max\(Int64\(\-9\)\) \+ Int64\(49\) THEN avg\(Int64\(36\)\) \+ Int64\(5\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "CASE Int64\(\-50\) WHEN Int64\(75\) \+ Int64\(25\) THEN Int64\(\-43\) \+ Int64\(44\) WHEN max\(Int64\(\-9\)\) \+ Int64\(49\) THEN avg\(Int64\(36\)\) \+ Int64\(5\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, CASE - 50 WHEN 75 + + + 25 THEN - 43 + 44 WHEN + MAX ( - 9 ) + + 49 THEN AVG ( 36 ) + 5 END AS col2 # Datafusion - Types were automatically converted from: @@ -33537,7 +33537,7 @@ SELECT COALESCE ( + 13, + + 70 / CASE + COUNT ( * ) WHEN 46 THEN - + 82 ELSE + - # Datafusion - Expected - 66 # Datafusion - Expected - NULL # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 1 and "Int64\(\-61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 1 and "Int64\(\-61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 49 + - - 17 AS col0, CAST ( NULL AS INTEGER ) AS col2, - 61 AS col2 query I rowsort @@ -35340,7 +35340,7 @@ SELECT DISTINCT 58 + COALESCE ( + - 34, + 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4964 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(17\) \+ CAST\(Int64\(81\) AS Int32\) \* Int64\(61\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(17\) \+ CAST\(Int64\(81\) AS Int64\) \* Int64\(61\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 6 + 17 + + + CAST ( + + 81 AS INTEGER ) * 61 AS col1, + 7 AS col1 query I rowsort @@ -35579,7 +35579,7 @@ SELECT MAX ( - - 71 ), - 14 * - COALESCE ( - 20, - 48, + - ( 56 ) + - NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(24\)\) \* Int64\(\-57\) \+ Int64\(11\) \+ Int64\(88\) \+ Int64\(\-39\) \* Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-79\) \* Int64\(71\) \+ Int64\(90\) \+ Int64\(66\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(24\)\) \* Int64\(\-57\) \+ Int64\(11\) \+ Int64\(88\) \+ Int64\(\-39\) \* Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-79\) \* Int64\(71\) \+ Int64\(90\) \+ Int64\(66\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 * + NULLIF ( COUNT ( * ), - + 24 * - 57 + + + 11 + + 88 + - 39 * - 38 + + + COUNT ( * ) - - 79 * + 71 + 90 + + + 66 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -37044,7 +37044,7 @@ SELECT ALL COALESCE ( + - 37, COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- Int64\(93\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- Int64\(93\) 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\. SELECT ALL 79 - 93 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-7052 @@ -38130,7 +38130,7 @@ SELECT ALL - ( 84 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 39 col0 query I rowsort @@ -38354,7 +38354,7 @@ SELECT + + 31 * - 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-28\)\) AS Int32\) \+ Int64\(\-61\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-28\)\) AS Int64\) \+ Int64\(\-61\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - - 28 AS INTEGER ) + - 61 + CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) * - 89 AS col2 query I rowsort label-7301 @@ -41323,7 +41323,7 @@ SELECT + 83, + 41 * + - 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-26\) / CAST\(NULL AS Int32\) \+ Int64\(\-70\) \* Int64\(95\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-26\) / CAST\(NULL AS Int64\) \+ Int64\(\-70\) \* Int64\(95\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + ( 96 ) AS col2, - 26 / CAST ( NULL AS INTEGER ) + + - 70 * + 95 * - 79 AS col2 query I rowsort @@ -43993,7 +43993,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62366 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(10\) \* Int64\(79\) \+ Int64\(44\) AS col2" at position 0 and "CAST\(Int64\(0\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(10\) \* Int64\(79\) \+ Int64\(44\) AS col2" at position 0 and "CAST\(Int64\(0\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 * 10 * 79 + + + 44 AS col2, CAST ( 0 AS INTEGER ) AS col2 query I rowsort label-8378 @@ -45661,7 +45661,7 @@ SELECT ALL - - 88 + + - ( + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- Int64\(18\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \- Int64\(18\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) - 18 AS col2, 59 col2 query I rowsort label-8695 @@ -45821,7 +45821,7 @@ SELECT - ( - COUNT ( * ) ) + + - 21 + - 68 * - - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( + ( - + 95 ) ) AS col0, 91 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 67 AS col0 query I rowsort @@ -46239,7 +46239,7 @@ SELECT 7 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* count\(Int64\(56\)\) AS col1" at position 0 and "min\(Int64\(\-92\)\) \+ CAST\(Int64\(87\) AS Int32\) \+ \(\- \(\- CAST\(Int64\(82\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* count\(Int64\(56\)\) AS col1" at position 0 and "min\(Int64\(\-92\)\) \+ CAST\(Int64\(87\) AS Int64\) \+ \(\- \(\- CAST\(Int64\(82\) AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 * + COUNT ( 56 ) AS col1, MIN ( ALL + - 92 ) + + CAST ( + 87 AS INTEGER ) + - - CAST ( + 82 AS INTEGER ) AS col1 query I rowsort @@ -46748,7 +46748,7 @@ SELECT ALL + COUNT ( * ) * + 66 + + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2824 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- coalesce\(Int64\(\-35\), Int64\(\-6\)\)\) \+ Int64\(\-81\) AS col2" at position 0 and "CAST\(\(\- CAST\(Int64\(78\) AS Float64\)\) AS Int32\) \- Int64\(95\) \+ Int64\(0\) \+ Int64\(\-39\) \* Int64\(\-1\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- coalesce\(Int64\(\-35\), Int64\(\-6\)\)\) \+ Int64\(\-81\) AS col2" at position 0 and "CAST\(\(\- CAST\(Int64\(78\) AS Float64\)\) AS Int64\) \- Int64\(95\) \+ Int64\(0\) \+ Int64\(\-39\) \* Int64\(\-1\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 83 * - COALESCE ( + - 35, - 6 ) + - 81 AS col2, CAST ( - CAST ( + + 78 AS FLOAT8 ) AS INTEGER ) - + 95 + 0 + + - 39 * - 1 * + 7 AS col2 # Datafusion - Types were automatically converted from: @@ -48271,7 +48271,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(99\) \- CAST\(Int64\(\-83\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(99\) \- CAST\(Int64\(\-83\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 AS col0, + 99 - + CAST ( - 83 AS INTEGER ) AS col0 query I rowsort @@ -49672,7 +49672,7 @@ SELECT 4 + - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1330 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \+ Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int64\) \+ Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 95 * + 14 AS col0, + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - 60 AS col0 query I rowsort @@ -51245,7 +51245,7 @@ SELECT - - 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(37\) \+ nullif\(CAST\(\(\- Int64\(\-55\)\) AS Int32\), Int64\(\-94\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(37\) \+ nullif\(CAST\(\(\- Int64\(\-55\)\) AS Int64\), Int64\(\-94\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 - 37 + NULLIF ( CAST ( - ( + - 55 ) AS INTEGER ), - 94 ) AS col2, 49 AS col2 query I rowsort label-9762 @@ -51375,7 +51375,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-1\), CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-1\), CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( + - 1, + CAST ( NULL AS INTEGER ) ) AS col2, - 37 AS col2 query I rowsort label-9786 diff --git a/data/sqlite/random/expr/slt_good_5.slt b/data/sqlite/random/expr/slt_good_5.slt index 0f7fe9e..3d231de 100644 --- a/data/sqlite/random/expr/slt_good_5.slt +++ b/data/sqlite/random/expr/slt_good_5.slt @@ -449,7 +449,7 @@ SELECT 80 AS col2, + 53 / - + 43 # Datafusion - Expected - NULL # Datafusion - Expected - -86805 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(62\) \+ Int64\(\-53\) \- Int64\(30\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(NULL AS Int32\) \* Int64\(\-43\) THEN NULL WHEN avg\(Int64\(\-54\)\) THEN Int64\(\-89\) END AS col1" at position 0 and "Int64\(87\) \* Int64\(7\) \* Int64\(54\) \- Int64\(\-9\) \+ Int64\(57\) \* CAST\(Int64\(\-35\) AS Int32\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(62\) \+ Int64\(\-53\) \- Int64\(30\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(NULL AS Int64\) \* Int64\(\-43\) THEN NULL WHEN avg\(Int64\(\-54\)\) THEN Int64\(\-89\) END AS col1" at position 0 and "Int64\(87\) \* Int64\(7\) \* Int64\(54\) \- Int64\(\-9\) \+ Int64\(57\) \* CAST\(Int64\(\-35\) AS Int64\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 * + 62 + - 53 - 30 * + CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * - 43 THEN NULL WHEN AVG ( - 54 ) THEN - 89 END col1, 87 * 7 * + 54 - - 9 + 57 * CAST ( - 35 AS INTEGER ) * 60 col1, + COUNT ( * ) AS col2 query II rowsort label-77 @@ -1448,7 +1448,7 @@ SELECT - 7 AS col1, COALESCE ( - 84, ( + COUNT ( * ) ) ) + - + 73 + - 25 * - - S # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(\-67\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(\-67\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 9 AS col2, - 67 * + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-266 @@ -3858,7 +3858,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(Int64\(4\) AS Int32\) / nullif\(min\(Int64\(68\)\), \(\- Int64\(\-74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "CAST\(Int64\(4\) AS Int64\) / nullif\(min\(Int64\(68\)\), \(\- Int64\(\-74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, CAST ( + 4 AS INTEGER ) / + NULLIF ( MIN ( + 68 ), + + ( - - 74 ) ) AS col0 query I rowsort @@ -6449,7 +6449,7 @@ SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), - 44 * + 18 ) * + 99 + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131614 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(79\) AS Int32\) \* Int64\(98\) \* Int64\(17\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(79\) AS Int64\) \* Int64\(98\) \* Int64\(17\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + 79 AS INTEGER ) * + 98 * ( 17 ) col0, 78 AS col0 query II rowsort @@ -10131,7 +10131,7 @@ SELECT ALL + ( - - 16 ) - + SUM ( + 97 ) AS col2, COUNT ( 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1254 # Datafusion - Expected - 988 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-66\)\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col0" at position 0 and "Int64\(15\) \* Int64\(66\) \+ \(\- Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-66\)\) AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col0" at position 0 and "Int64\(15\) \* Int64\(66\) \+ \(\- Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - - 66 AS INTEGER ) / COUNT ( * ) * 19 col0, + 15 * 66 + - + 2 AS col0 query I rowsort @@ -12015,7 +12015,7 @@ SELECT DISTINCT - 69, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(19\) \+ \(\- Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(19\) \+ \(\- Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2, 19 + - - 50 AS col2 query II rowsort label-2267 @@ -19044,7 +19044,7 @@ SELECT - + 90 + + 57 # Datafusion - Expected - 95 # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- Int64\(\-51\)\) \+ Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(95\) \- count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ Int64\(29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- Int64\(\-51\)\) \+ Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(95\) \- count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \+ Int64\(29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col0, - 52 AS col1, - + ( + - 51 ) + 97 + COUNT ( * ) - + 95 - + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 29 + COUNT ( * ) + 70 col0 query I rowsort label-3605 @@ -22781,7 +22781,7 @@ SELECT - 8 * - COUNT ( * ) + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 75 AS col1, - CAST ( NULL AS INTEGER ) col1 query I rowsort label-4320 @@ -22792,7 +22792,7 @@ SELECT ALL + 28 / + - ( - ( - 81 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-22\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-22\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, - 22 + - 49 AS col0 query I rowsort label-4322 @@ -24834,7 +24834,7 @@ SELECT 87 / - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- CASE \(\- Int64\(60\)\) WHEN \(\- coalesce\(Int64\(\-43\), Int64\(42\)\)\) \+ \(\- Int64\(\-23\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(\-44\) \* Int64\(52\) END\) WHEN Int64\(\-44\) THEN Int64\(\-73\) END \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- CASE \(\- Int64\(60\)\) WHEN \(\- coalesce\(Int64\(\-43\), Int64\(42\)\)\) \+ \(\- Int64\(\-23\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(\-44\) \* Int64\(52\) END\) WHEN Int64\(\-44\) THEN Int64\(\-73\) END \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE ( - CASE - + ( + 60 ) WHEN - COALESCE ( - 43, + 42 ) + - - 23 THEN + - COUNT ( * ) ELSE - 44 * + 52 END ) WHEN - 44 THEN - 73 END + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + 82 AS col0 query I rowsort @@ -24882,7 +24882,7 @@ SELECT ALL + - 26 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(34\)\)\)\) \+ Int64\(\-24\) \+ Int64\(\-36\) \* Int64\(58\) \* \(\- CASE count\(Int64\(\-26\)\) WHEN Int64\(91\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(Int64\(\-3\)\) \+ Int64\(38\) \* Int64\(33\) THEN Int64\(11\) \+ Int64\(4\) ELSE CASE CAST\(Int64\(60\) AS Int32\) WHEN \(\- max\(Int64\(\-74\)\)\) \* Int64\(31\) THEN Int64\(31\) WHEN avg\(DISTINCT Int64\(41\)\) \+ Int64\(98\) THEN NULL ELSE NULL END \+ Int64\(\-25\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(34\)\)\)\) \+ Int64\(\-24\) \+ Int64\(\-36\) \* Int64\(58\) \* \(\- CASE count\(Int64\(\-26\)\) WHEN Int64\(91\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(Int64\(\-3\)\) \+ Int64\(38\) \* Int64\(33\) THEN Int64\(11\) \+ Int64\(4\) ELSE CASE CAST\(Int64\(60\) AS Int64\) WHEN \(\- max\(Int64\(\-74\)\)\) \* Int64\(31\) THEN Int64\(31\) WHEN avg\(DISTINCT Int64\(41\)\) \+ Int64\(98\) THEN NULL ELSE NULL END \+ Int64\(\-25\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 3 AS col1, - MIN ( ALL - + 34 ) + - 24 + - 36 * + 58 * - CASE COUNT ( - 26 ) WHEN + + 91 * ( - COUNT ( * ) ) * + SUM ( ALL + ( - 3 ) ) + 38 * 33 THEN + 11 + 4 ELSE + CASE + CAST ( 60 AS INTEGER ) WHEN - MAX ( - 74 ) * 31 THEN 31 WHEN AVG ( DISTINCT 41 ) + + 98 THEN NULL ELSE NULL END + - 25 END AS col1 query I rowsort label-4721 @@ -26009,7 +26009,7 @@ SELECT 23 * + 44 * + 69 + - ( 89 ) - - 86 + - 2 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1843 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* \(\- min\(Int64\(55\)\)\) \+ Int64\(27\) \* \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), coalesce\(Int64\(83\), Int64\(4\)\)\)\) \+ Int64\(\-30\) / Int64\(\-78\) \* Int64\(87\) \* Int64\(84\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- avg\(\(\- Int64\(82\)\)\)\) \* Int64\(0\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* \(\- min\(Int64\(55\)\)\) \+ Int64\(27\) \* \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), coalesce\(Int64\(83\), Int64\(4\)\)\)\) \+ Int64\(\-30\) / Int64\(\-78\) \* Int64\(87\) \* Int64\(84\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / \(\- avg\(\(\- Int64\(82\)\)\)\) \* Int64\(0\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 34 * - MIN ( 55 ) + + 27 * - NULLIF ( + - COUNT ( * ), + COALESCE ( + 83, + + 4 ) ) + - 30 / + - 78 * + 87 * + + 84 AS col2, - CAST ( NULL AS INTEGER ) / - AVG ( - + 82 ) * + 0 + 32 AS col2 query I rowsort @@ -26954,7 +26954,7 @@ SELECT DISTINCT 0 * - ( - COUNT ( + + ( 12 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, + 93 col1 query I rowsort @@ -27761,7 +27761,7 @@ SELECT 77 AS col1, + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 200756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(79\) AS col0" at position 0 and "Int64\(\-39\) \* \(\- max\(Int64\(92\)\)\) \* Int64\(56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(89\) \+ Int64\(\-87\) \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) / Int64\(79\) AS col0" at position 0 and "Int64\(\-39\) \* \(\- max\(Int64\(92\)\)\) \* Int64\(56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(89\) \+ Int64\(\-87\) \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - + CAST ( NULL AS INTEGER ) ) / + 79 AS col0, ( - 39 ) * - + MAX ( ALL 92 ) * + 56 + - + COUNT ( * ) / 89 + - 87 + + - 85 AS col0 query II rowsort label-5270 @@ -28482,7 +28482,7 @@ SELECT + + 57 * + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- Int64\(79\)\) \+ Int64\(63\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- Int64\(79\)\) \+ Int64\(63\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) AS col1, + ( - ( 79 ) ) + 63 + + 58 AS col1 query I rowsort label-5407 @@ -29424,7 +29424,7 @@ SELECT - NULLIF ( - + 52, - 53 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-28\), \(\- CAST\(Int64\(20\) AS Int32\)\) \* Int64\(62\)\) AS col2" at position 0 and "nullif\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-28\), \(\- CAST\(Int64\(20\) AS Int64\)\) \* Int64\(62\)\) AS col2" at position 0 and "nullif\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( - 28, - CAST ( + 20 AS INTEGER ) * + 62 ) AS col2, NULLIF ( - 36, COUNT ( * ) ) AS col2 query I rowsort label-5585 @@ -32850,7 +32850,7 @@ SELECT ALL - 44 * + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "\(\- min\(DISTINCT Int64\(43\)\)\) \* Int64\(\-41\) \+ Int64\(29\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "\(\- min\(DISTINCT Int64\(43\)\)\) \* Int64\(\-41\) \+ Int64\(29\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 9 AS col2, ( - MIN ( DISTINCT + 43 ) ) * + - 41 + + 29 + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-6240 @@ -33306,7 +33306,7 @@ SELECT + 24 + + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 11 col2, 38 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) col2 query I rowsort label-6326 @@ -34793,7 +34793,7 @@ SELECT + NULLIF ( 13, - COALESCE ( - COALESCE ( + CASE + - MAX ( DISTINCT - - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "CASE nullif\(Int64\(\-76\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(26\) \+ \(\- Int64\(42\)\)\) WHEN CASE Int64\(43\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN CAST\(NULL AS Int32\) END \- min\(Int64\(73\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- CASE Int64\(26\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-4\) THEN \(\- coalesce\(Int64\(\-77\), Int64\(50\)\)\) \+ Int64\(86\) \- Int64\(57\) \* Int64\(1\) ELSE NULL END\) \- \(\- Int64\(48\)\) / Int64\(19\) END \+ Int64\(\-67\) \* nullif\(Int64\(46\), Int64\(16\)\) \- \(\- max\(DISTINCT Int64\(26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "CASE nullif\(Int64\(\-76\), \(\- CAST\(NULL AS Int64\)\) \* Int64\(26\) \+ \(\- Int64\(42\)\)\) WHEN CASE Int64\(43\) WHEN \(\- \(\- CAST\(NULL AS Int64\)\)\) THEN CAST\(NULL AS Int64\) END \- min\(Int64\(73\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- CASE Int64\(26\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-4\) THEN \(\- coalesce\(Int64\(\-77\), Int64\(50\)\)\) \+ Int64\(86\) \- Int64\(57\) \* Int64\(1\) ELSE NULL END\) \- \(\- Int64\(48\)\) / Int64\(19\) END \+ Int64\(\-67\) \* nullif\(Int64\(46\), Int64\(16\)\) \- \(\- max\(DISTINCT Int64\(26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 AS col0, CASE + NULLIF ( - 76, + - CAST ( NULL AS INTEGER ) * 26 + + ( - + 42 ) ) WHEN CASE + 43 WHEN - - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) END - MIN ( ALL 73 ) * COUNT ( * ) THEN NULL ELSE - CASE 26 WHEN COUNT ( * ) * - 4 THEN - COALESCE ( - 77, + 50 ) + + 86 - + 57 * 1 ELSE NULL END - - + 48 / + + 19 END + - 67 * + NULLIF ( + 46, 16 ) - - MAX ( DISTINCT + 26 ) AS col0 # Datafusion - Types were automatically converted from: @@ -35203,7 +35203,7 @@ SELECT ALL - 54 * - + 9 + + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 441 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-35\) AS col1" at position 0 and "Int64\(\-30\) \+ Int64\(22\) \* Int64\(20\) \+ \(\- \(\- Int64\(31\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(\-35\) AS col1" at position 0 and "Int64\(\-30\) \+ Int64\(22\) \* Int64\(20\) \+ \(\- \(\- Int64\(31\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) + - 35 AS col1, - 30 + 22 * + 20 + - ( - + 31 ) col1 query I rowsort label-6685 @@ -36261,7 +36261,7 @@ SELECT ALL 16, 22 col1 # Datafusion - Expected - -77 # Datafusion - Expected - NULL # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-45\) AS col1" at position 1 and "Int64\(\-84\) \+ Int64\(73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-45\) AS col1" at position 1 and "Int64\(\-84\) \+ Int64\(73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 44 + + + 50 / + - 19 - 31, CAST ( NULL AS INTEGER ) * - 45 AS col1, + - 84 + + 73 AS col1 query II rowsort @@ -37402,7 +37402,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-5\) WHEN max\(DISTINCT \(\- Int64\(93\)\)\) THEN NULL ELSE Int64\(75\) \* \(\- max\(DISTINCT CAST\(NULL AS Int32\)\)\) \+ CAST\(NULL AS Int32\) END\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-5\) WHEN max\(DISTINCT \(\- Int64\(93\)\)\) THEN NULL ELSE Int64\(75\) \* \(\- max\(DISTINCT CAST\(NULL AS Int64\)\)\) \+ CAST\(NULL AS Int64\) END\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE - 5 WHEN + MAX ( DISTINCT - + 93 ) THEN NULL ELSE 75 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) END AS col1, 34 AS col1 query II rowsort @@ -37840,7 +37840,7 @@ SELECT + 2 + 11 AS col2 # Datafusion - Expected - 121 # Datafusion - Expected - 27 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ CAST\(Int64\(54\) AS Int32\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ CAST\(Int64\(54\) AS Int64\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 67 + CAST ( 54 AS INTEGER ) AS col1, + 27, 48 AS col1 query I rowsort label-7184 @@ -39800,7 +39800,7 @@ SELECT 52 * + 97 # Datafusion - Expected - NULL # Datafusion - Expected - 83 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) / Int64\(53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int64\) AS Int64\) / Int64\(53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 53 + - - COUNT ( * ) AS col0, + 83, + 94 AS col0 query I rowsort label-7559 @@ -41292,7 +41292,7 @@ SELECT COUNT ( * ) - - + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) / \(\- Int64\(3\)\) \+ Int64\(75\) AS col2" at position 0 and "CAST\(Int64\(\-70\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) / \(\- Int64\(3\)\) \+ Int64\(75\) AS col2" at position 0 and "CAST\(Int64\(\-70\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 51 ) / - + 3 + + 75 col2, + CAST ( + - 70 AS INTEGER ) col2 # Datafusion - Types were automatically converted from: @@ -43903,7 +43903,7 @@ SELECT NULLIF ( - 1, - - 5 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(\-23\)\) AS Int32\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(\-23\)\) AS Int64\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + COUNT ( - 23 ) AS INTEGER ) AS col1, 87 AS col1 query I rowsort @@ -44275,7 +44275,7 @@ SELECT ALL - 63 AS col2, - 61 * + 55 - - COUNT ( * ) + - - COUNT ( ALL - + 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5538 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \* Int64\(2\) \* Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(46\) WHEN \(\- nullif\(\(\- Int64\(\-98\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \- Int64\(\-43\) \* Int64\(0\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-87\)\)\) THEN Int64\(53\) \+ \(\- Int64\(\-56\)\) \+ \(\- \(\- Int64\(\-92\)\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \* Int64\(2\) \* Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(46\) WHEN \(\- nullif\(\(\- Int64\(\-98\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \- Int64\(\-43\) \* Int64\(0\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-87\)\)\) THEN Int64\(53\) \+ \(\- Int64\(\-56\)\) \+ \(\- \(\- Int64\(\-92\)\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 39 * + 2 * - 71 AS col0, CASE 46 WHEN + - NULLIF ( - - 98, COUNT ( * ) + 72 - - 43 * - 0 * - CAST ( NULL AS INTEGER ) + - 87 ) THEN + 53 + - - 56 + - - ( - 92 ) ELSE NULL END AS col0 query I rowsort @@ -44443,7 +44443,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-76\) \+ Int64\(24\) \+ \(\- nullif\(\(\- CAST\(Int64\(77\) AS Int32\)\), Int64\(17\) \* Int64\(6\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-76\) \+ Int64\(24\) \+ \(\- nullif\(\(\- CAST\(Int64\(77\) AS Int64\)\), Int64\(17\) \* Int64\(6\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 10 AS col2, - 76 + + 24 + - NULLIF ( - CAST ( + + 77 AS INTEGER ), 17 * 6 ) col2 query II rowsort label-8439 @@ -44857,7 +44857,7 @@ SELECT - + MIN ( DISTINCT + 72 ) / - MIN ( ALL + - 41 ) + + ( + COUNT ( * ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(\-79\) AS Int32\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(\-79\) AS Int64\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + - CAST ( - 79 AS INTEGER ) col0, + 8 AS col0 query I rowsort @@ -48975,7 +48975,7 @@ SELECT COALESCE ( ( + + 29 ), ( - 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 28 col0, CAST ( 7 AS INTEGER ) AS col0 query I rowsort @@ -50448,7 +50448,7 @@ SELECT + 67 / + + 70 * + - 91 * + ( 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 200 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(66\)\) WHEN Int64\(68\) \* Int64\(\-85\) THEN NULL ELSE Int64\(85\) \+ Int64\(65\) \- Int64\(\-50\) END AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(66\)\) WHEN Int64\(68\) \* Int64\(\-85\) THEN NULL ELSE Int64\(85\) \+ Int64\(65\) \- Int64\(\-50\) END AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( CASE - + 66 WHEN + 68 * - 85 THEN NULL ELSE 85 + + 65 - - 50 END AS INTEGER ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -51666,7 +51666,7 @@ SELECT - ( 0 ) / 88 + - 1 + - 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(8\) / Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(8\) / Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 / CAST ( NULL AS INTEGER ) AS col2, 8 / - 98 AS col2 query I rowsort label-9818 diff --git a/data/sqlite/random/expr/slt_good_50.slt b/data/sqlite/random/expr/slt_good_50.slt index 0ec424a..725ad61 100644 --- a/data/sqlite/random/expr/slt_good_50.slt +++ b/data/sqlite/random/expr/slt_good_50.slt @@ -646,7 +646,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) / Int64\(59\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(36\) \+ CAST\(\(\- Int64\(66\)\) AS Int32\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) / Int64\(59\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(36\) \+ CAST\(\(\- Int64\(66\)\) AS Int64\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 26 / 59 / - - COUNT ( * ) + - 32 * - - COUNT ( * ) + + 36 + + CAST ( - + 66 AS INTEGER ) col1, - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 query I rowsort @@ -4499,7 +4499,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(49\) AS col0" at position 0 and "Int64\(61\) \- count\(Int64\(62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(49\) AS col0" at position 0 and "Int64\(61\) \- count\(Int64\(62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * 49 AS col0, + 61 - + COUNT ( + 62 ) AS col0 query I rowsort @@ -5133,7 +5133,7 @@ SELECT ALL 9 * + COALESCE ( + 26, + 20 * + 44 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(74\) AS Int32\) / Int64\(25\) AS col2" at position 0 and "Int64\(\-52\) \+ \(\- count\(Int64\(\-2\)\)\) \+ Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(74\) AS Int64\) / Int64\(25\) AS col2" at position 0 and "Int64\(\-52\) \+ \(\- count\(Int64\(\-2\)\)\) \+ Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 74 AS INTEGER ) / + 25 AS col2, - 52 + - COUNT ( ALL - 2 ) + + 92 AS col2 query II rowsort @@ -6656,7 +6656,7 @@ SELECT 24, + MIN ( 31 ) / 67 + 97 * - - 34 * + 52 + + 11 * - - 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col2" at position 0 and "coalesce\(max\(Int64\(30\)\), Int64\(56\) \+ Int64\(63\), sum\(Int64\(85\)\) \* Int64\(7\) \* CAST\(Int64\(72\) AS Int32\) \+ Int64\(75\) \- \(\- count\(DISTINCT \(\- CASE Int64\(\-87\) WHEN Int64\(67\) \+ Int64\(63\) \* Int64\(0\) THEN Int64\(\-93\) ELSE \(\- coalesce\(Int64\(27\), Int64\(23\)\)\) \* Int64\(\-54\) END\)\)\) \+ Int64\(79\), Int64\(33\) \+ Int64\(\-59\)\) / \(\- CASE Int64\(\-40\) WHEN Int64\(\-86\) \* Int64\(\-47\) THEN Int64\(96\) \* Int64\(82\) ELSE Int64\(58\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col2" at position 0 and "coalesce\(max\(Int64\(30\)\), Int64\(56\) \+ Int64\(63\), sum\(Int64\(85\)\) \* Int64\(7\) \* CAST\(Int64\(72\) AS Int64\) \+ Int64\(75\) \- \(\- count\(DISTINCT \(\- CASE Int64\(\-87\) WHEN Int64\(67\) \+ Int64\(63\) \* Int64\(0\) THEN Int64\(\-93\) ELSE \(\- coalesce\(Int64\(27\), Int64\(23\)\)\) \* Int64\(\-54\) END\)\)\) \+ Int64\(79\), Int64\(33\) \+ Int64\(\-59\)\) / \(\- CASE Int64\(\-40\) WHEN Int64\(\-86\) \* Int64\(\-47\) THEN Int64\(96\) \* Int64\(82\) ELSE Int64\(58\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 4 AS col2, + COALESCE ( MAX ( + 30 ), 56 + + 63, + SUM ( ALL + + 85 ) * + 7 * CAST ( + 72 AS INTEGER ) + + 75 - - COUNT ( DISTINCT - + CASE - 87 WHEN 67 + + 63 * 0 THEN - 93 ELSE - COALESCE ( 27, ( 23 ) ) * - 54 END ) + + 79, 33 + - 59 ) / - CASE - 40 WHEN - 86 * - 47 THEN + 96 * + 82 ELSE 58 END AS col2 # Datafusion - Types were automatically converted from: @@ -8378,7 +8378,7 @@ SELECT - ( COUNT ( * ) ) / + + SUM ( - - 16 ) + 81 - + 85 * + 41 * - COUNT ( DIS # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(57\) \- Int64\(\-8\) \- CAST\(Int64\(99\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(57\) \- Int64\(\-8\) \- CAST\(Int64\(99\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col2, 57 - + ( - 8 ) - + CAST ( 99 AS INTEGER ) AS col2 query I rowsort label-1593 @@ -8400,7 +8400,7 @@ SELECT + COUNT ( 58 ) * + SUM ( + - 80 ) + COUNT ( * ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-98\) \+ CASE Int64\(\-67\) WHEN \(\- min\(Int64\(\-27\)\)\) \- Int64\(61\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \+ CAST\(Int64\(65\) AS Int32\), Int64\(49\)\) WHEN \(\- avg\(DISTINCT Int64\(\-52\)\)\) THEN Int64\(36\) \* Int64\(83\) \+ \(\- Int64\(\-32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-98\) \+ CASE Int64\(\-67\) WHEN \(\- min\(Int64\(\-27\)\)\) \- Int64\(61\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \+ CAST\(Int64\(65\) AS Int64\), Int64\(49\)\) WHEN \(\- avg\(DISTINCT Int64\(\-52\)\)\) THEN Int64\(36\) \* Int64\(83\) \+ \(\- Int64\(\-32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 18 AS col1, - 98 + CASE + - 67 WHEN - MIN ( - 27 ) - + 61 THEN + COALESCE ( COUNT ( * ), + 33 + + + CAST ( + 65 AS INTEGER ), 49 ) WHEN - AVG ( DISTINCT - 52 ) THEN + 36 * + 83 + - - 32 END col1 query I rowsort label-1597 @@ -10320,7 +10320,7 @@ SELECT - SUM ( - 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int64\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 4 AS INTEGER ), - 4 query I rowsort label-1962 @@ -11632,7 +11632,7 @@ SELECT DISTINCT - MAX ( DISTINCT + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(min\(Int64\(36\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(min\(Int64\(36\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( MIN ( + + 36 ) AS INTEGER ) AS col1, - 83 AS col1 query I rowsort @@ -14881,7 +14881,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(50\) AS Int32\)\) \+ \(\- CAST\(Int64\(\-75\) AS Int32\)\) AS col1" at position 0 and "Int64\(98\) \+ \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(50\) AS Int64\)\) \+ \(\- CAST\(Int64\(\-75\) AS Int64\)\) AS col1" at position 0 and "Int64\(98\) \+ \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 50 AS INTEGER ) + - CAST ( + - 75 AS INTEGER ) AS col1, + 98 + - - 94 AS col1 query I rowsort @@ -20014,7 +20014,7 @@ SELECT - 73 / - 14 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(Int64\(\-51\) AS Int32\), Int64\(65\)\) \* Int64\(\-66\) \- CAST\(NULL AS Int32\) \* \(\- Int64\(82\)\) AS col1" at position 0 and "CAST\(Int64\(\-57\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(Int64\(\-51\) AS Int64\), Int64\(65\)\) \* Int64\(\-66\) \- CAST\(NULL AS Int64\) \* \(\- Int64\(82\)\) AS col1" at position 0 and "CAST\(Int64\(\-57\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( CAST ( - 51 AS INTEGER ), 65 ) * - 66 - + + CAST ( NULL AS INTEGER ) * - + 82 AS col1, + CAST ( + - 57 AS INTEGER ) AS col1 query I rowsort @@ -20804,7 +20804,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \- Int64\(\-64\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \- Int64\(\-64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 - - 64 AS col1, CAST ( NULL AS INTEGER ) / + 54 AS col1 query I rowsort label-3962 @@ -24416,7 +24416,7 @@ SELECT + 19 * - 44 AS col1 # Datafusion - Expected - 79 # Datafusion - Expected - -66 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "nullif\(Int64\(\-85\), Int64\(\-84\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-28\) \* Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-16\) \+ Int64\(42\) \* CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "nullif\(Int64\(\-85\), Int64\(\-84\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-28\) \* Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-16\) \+ Int64\(42\) \* CAST\(NULL AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 79 AS col2, - 13 + + MAX ( DISTINCT - 53 ) AS col0, NULLIF ( - 85, - 84 - + - COUNT ( * ) / - - COUNT ( * ) + 57 + - COUNT ( * ) * - 28 * + - 35 * + + COUNT ( * ) + - 16 + + 42 * CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-4651 @@ -26848,7 +26848,7 @@ SELECT 58, - 14 * - COALESCE ( + - 45, 56 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -67500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(21\)\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(45\), CAST\(NULL AS Int32\)\)\) \* Int64\(\-60\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(21\)\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(45\), CAST\(NULL AS Int64\)\)\) \* Int64\(\-60\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( + 21 ) col0, - NULLIF ( + ( 45 ), CAST ( NULL AS INTEGER ) ) * - 60 * - 25 AS col0 query I rowsort @@ -31633,7 +31633,7 @@ SELECT ALL COALESCE ( 64, - 7 ) * 83 - - ( + 7 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 125911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-41\) \* \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), max\(\(\- Int64\(\-9\)\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-65\)\)\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-41\) \* \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), max\(\(\- Int64\(\-9\)\)\) \+ CAST\(NULL AS Int64\) \* Int64\(\-65\)\)\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 AS col1, 83 * + - 41 * - NULLIF ( + ( - - COUNT ( * ) ), + MAX ( - - 9 ) + CAST ( NULL AS INTEGER ) * - 65 ) * 37 AS col1 query I rowsort @@ -34166,7 +34166,7 @@ SELECT MAX ( 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-39\) / \(\- \(\- avg\(Int64\(\-87\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ CAST\(Int64\(\-19\) AS Int32\) \* Int64\(19\) \+ nullif\(CAST\(NULL AS Int32\), \(\- Int64\(\-30\)\) \+ Int64\(43\) \* Int64\(68\) \* \(\- Int64\(\-2\)\)\) \+ \(\- Int64\(53\)\) \* Int64\(86\) \+ min\(Int64\(49\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-39\) / \(\- \(\- avg\(Int64\(\-87\)\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) \+ CAST\(Int64\(\-19\) AS Int64\) \* Int64\(19\) \+ nullif\(CAST\(NULL AS Int64\), \(\- Int64\(\-30\)\) \+ Int64\(43\) \* Int64\(68\) \* \(\- Int64\(\-2\)\)\) \+ \(\- Int64\(53\)\) \* Int64\(86\) \+ min\(Int64\(49\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 39 / - - AVG ( - 87 ) + - CAST ( NULL AS INTEGER ) + + CAST ( - 19 AS INTEGER ) * 19 + + + NULLIF ( CAST ( NULL AS INTEGER ), - - 30 + + 43 * + 68 * - - 2 ) + - + 53 * 86 + + MIN ( + 49 ) AS col1, + 3 AS col1 query II rowsort label-6510 @@ -34944,7 +34944,7 @@ SELECT - 49 / + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 * + 64 + - COUNT ( * ) * + ( + + CAST ( NULL AS INTEGER ) ) AS col0, ( - - 68 ) AS col0 query I rowsort @@ -37300,7 +37300,7 @@ SELECT + 65 / 75 * + COUNT ( * ) + + - COUNT ( ALL 17 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- CAST\(Int64\(\-41\) AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- CAST\(Int64\(\-41\) AS Int64\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 + - + CAST ( + - 41 AS INTEGER ) AS col1, - COUNT ( * ) col1 query I rowsort label-7107 @@ -38094,7 +38094,7 @@ SELECT + 48 + - 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(4\) AS col2" at position 0 and "CAST\(Int64\(\-63\) AS Int32\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(4\) AS col2" at position 0 and "CAST\(Int64\(\-63\) AS Int64\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - + - COUNT ( * ) * - COUNT ( * ) - 4 AS col2, CAST ( + - 63 AS INTEGER ) + + 26 AS col2 query I rowsort @@ -38335,7 +38335,7 @@ SELECT + + 45 + - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-50\) \* Int64\(\-84\) \* CAST\(NULL AS Int32\) \- Int64\(\-50\) \+ Int64\(75\) \+ Int64\(\-75\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-50\) \* Int64\(\-84\) \* CAST\(NULL AS Int64\) \- Int64\(\-50\) \+ Int64\(75\) \+ Int64\(\-75\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 40 - COUNT ( * ) * + 48 AS col0, 99 * - 50 * - 84 * + CAST ( NULL AS INTEGER ) - - 50 + 75 + - 75 * 12 AS col0 query I rowsort @@ -39829,7 +39829,7 @@ SELECT DISTINCT - 15 / - + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(67\) AS Int32\) AS col0" at position 0 and "Int64\(\-45\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(93\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(67\) AS Int64\) AS col0" at position 0 and "Int64\(\-45\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(93\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 67 AS INTEGER ) col0, - 45 + - CAST ( NULL AS INTEGER ) + 93 * 53 AS col0 query I rowsort label-7587 @@ -40295,7 +40295,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(32\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(32\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CAST ( NULL AS INTEGER ) col0, 32 * + 39 AS col0 query II rowsort label-7677 @@ -43069,7 +43069,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "CAST\(Int64\(72\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "CAST\(Int64\(72\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 12 AS col1, CAST ( + + 72 AS INTEGER ) AS col1 query II rowsort @@ -43290,7 +43290,7 @@ SELECT DISTINCT 84 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "\(\- max\(Int64\(26\)\)\) \- CAST\(Int64\(6\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "\(\- max\(Int64\(26\)\)\) \- CAST\(Int64\(6\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 80 AS col1, - MAX ( 26 ) - CAST ( 6 AS INTEGER ) col1 query II rowsort @@ -44394,7 +44394,7 @@ SELECT ALL MIN ( DISTINCT + 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-59\)\) AS col1" at position 0 and "Int64\(13\) \* CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(99\), Int64\(92\)\)\) \* Int64\(63\) \* Int64\(67\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-59\)\) AS col1" at position 0 and "Int64\(13\) \* CAST\(NULL AS Int64\) \* \(\- coalesce\(Int64\(99\), Int64\(92\)\)\) \* Int64\(63\) \* Int64\(67\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 + - - 59 AS col1, + 13 * CAST ( NULL AS INTEGER ) * - ( + COALESCE ( 99, 92 ) ) * + 63 * + 67 + 49 AS col1 query I rowsort label-8450 diff --git a/data/sqlite/random/expr/slt_good_51.slt b/data/sqlite/random/expr/slt_good_51.slt index 4e525a3..ea424c2 100644 --- a/data/sqlite/random/expr/slt_good_51.slt +++ b/data/sqlite/random/expr/slt_good_51.slt @@ -1424,7 +1424,7 @@ SELECT + 11 + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-3\) \+ \(\- \(\- Int64\(\-70\)\)\) / coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-11\) \* Int64\(97\)\) \+ \(\- CASE CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(38\)\) \* Int64\(\-26\) THEN \(\- Int64\(14\)\) \* Int64\(56\) ELSE NULL END WHEN \(\- CAST\(Int64\(44\) AS Int32\)\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-51\) \* Int64\(\-9\) THEN Int64\(\-73\) \+ Int64\(14\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-3\) \+ \(\- \(\- Int64\(\-70\)\)\) / coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-11\) \* Int64\(97\)\) \+ \(\- CASE CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(38\)\) \* Int64\(\-26\) THEN \(\- Int64\(14\)\) \* Int64\(56\) ELSE NULL END WHEN \(\- CAST\(Int64\(44\) AS Int64\)\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-51\) \* Int64\(\-9\) THEN Int64\(\-73\) \+ Int64\(14\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - 3 + - + ( - - 70 ) / COALESCE ( + COUNT ( * ), + - 11 * 97 ) + - + CASE + CASE COUNT ( * ) WHEN - + 38 * + - 26 THEN - + 14 * ( + 56 ) ELSE NULL END WHEN - CAST ( + 44 AS INTEGER ) + - - 28 + + - 51 * - 9 THEN ( - 73 ) + 14 END AS col2 query I rowsort label-260 @@ -3323,7 +3323,7 @@ SELECT DISTINCT COUNT ( * ) col2, - 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21371816 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- coalesce\(Int64\(94\), Int64\(45\) \+ Int64\(12\)\)\) \* nullif\(Int64\(\-98\), Int64\(99\)\) \* Int64\(40\) \- Int64\(\-24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-19\) \- Int64\(\-5\) / CAST\(NULL AS Int32\) \* nullif\(Int64\(94\), Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- coalesce\(Int64\(94\), Int64\(45\) \+ Int64\(12\)\)\) \* nullif\(Int64\(\-98\), Int64\(99\)\) \* Int64\(40\) \- Int64\(\-24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-19\) \- Int64\(\-5\) / CAST\(NULL AS Int64\) \* nullif\(Int64\(94\), Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 * - + COALESCE ( + + 94, + + 45 + + 12 ) * + NULLIF ( + - 98, + 99 ) * 40 - - 24 * + ( - COUNT ( * ) ) AS col0, - 19 - - 5 / CAST ( NULL AS INTEGER ) * + NULLIF ( 94, + 99 ) AS col0 query I rowsort @@ -3461,7 +3461,7 @@ SELECT ALL + + 70 + - 63 * + ( 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 59 + + - CAST ( NULL AS INTEGER ) + + 48 AS col2, - 64 AS col2 query I rowsort @@ -4365,7 +4365,7 @@ SELECT - ( + 70 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- CAST\(\(\- \(\- CASE Int64\(12\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-42\) THEN \(\- Int64\(33\)\) WHEN Int64\(\-57\) THEN Int64\(\-8\) ELSE NULL END\)\) AS Int32\)\) \- Int64\(31\) AS col1" at position 0 and "Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- CAST\(\(\- \(\- CASE Int64\(12\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-42\) THEN \(\- Int64\(33\)\) WHEN Int64\(\-57\) THEN Int64\(\-8\) ELSE NULL END\)\) AS Int64\)\) \- Int64\(31\) AS col1" at position 0 and "Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 42 * - CAST ( - - CASE + + 12 WHEN COUNT ( * ) * - 42 THEN - + 33 WHEN - 57 THEN - 8 ELSE NULL END AS INTEGER ) - 31 AS col1, - 80 * COUNT ( * ) AS col1 query I rowsort @@ -6580,7 +6580,7 @@ SELECT ALL COUNT ( * ) * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT DISTINCT ( 71 ) + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1250 @@ -7230,7 +7230,7 @@ SELECT + ( + 55 ) AS col1 # Datafusion - Expected - 78 # Datafusion - Expected - 75 # Datafusion - Expected - -376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int32\) AS col0" at position 1 and "\(\- sum\(DISTINCT Int64\(\-4\)\)\) \* \(\- Int64\(94\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int64\) AS col0" at position 1 and "\(\- sum\(DISTINCT Int64\(\-4\)\)\) \* \(\- Int64\(94\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 79 - + COUNT ( * ), CAST ( + 75 AS INTEGER ) AS col0, - SUM ( DISTINCT ( - 4 ) ) * - + 94 AS col0 query I rowsort @@ -7263,7 +7263,7 @@ SELECT + 78 AS col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(\-57\) \+ Int64\(88\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(\-57\) \+ Int64\(88\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 * - 57 + + 88 + + CAST ( NULL AS INTEGER ) AS col0, 96 AS col0 query I rowsort label-1378 @@ -8370,7 +8370,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1138 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(\-44\) \* Int64\(25\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(\-44\) \* Int64\(25\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 38 + - 44 * 25 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1587 @@ -9215,7 +9215,7 @@ SELECT COUNT ( * ) - + 23 - + + 6 + + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-23\) AS Int32\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-23\) AS Int64\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + - 23 AS INTEGER ) AS col0, 1 AS col0 query I rowsort label-1747 @@ -11065,7 +11065,7 @@ SELECT ALL NULLIF ( COUNT ( * ), - 64 ) + - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 165 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(66\) AS Int32\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(66\) AS Int64\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 66 AS INTEGER ) + 99 col2, - 85 AS col2 query I rowsort label-2097 @@ -16265,7 +16265,7 @@ SELECT - 19 * - COUNT ( * ) * MIN ( ALL 66 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(82\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(84\)\)\) \* Int64\(63\) \* Int64\(55\) \* Int64\(97\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(82\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(84\)\)\) \* Int64\(63\) \* Int64\(55\) \* Int64\(97\) \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( 82 ) AS col1, - COUNT ( * ) * - COUNT ( 84 ) * + 63 * + + 55 * 97 - - CAST ( NULL AS INTEGER ) * + + 14 AS col1 query I rowsort label-3090 @@ -21626,7 +21626,7 @@ SELECT SUM ( ALL - + 64 ) AS col2 # Datafusion - Expected - 43 # Datafusion - Expected - NULL # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- min\(Int64\(93\)\)\) WHEN Int64\(\-54\) THEN Int64\(60\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(49\)\) END AS col1" at position 1 and "coalesce\(Int64\(40\), Int64\(\-3\)\) \- Int64\(\-62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- min\(Int64\(93\)\)\) WHEN Int64\(\-54\) THEN Int64\(60\) \+ \(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(49\)\) END AS col1" at position 1 and "coalesce\(Int64\(40\), Int64\(\-3\)\) \- Int64\(\-62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43, + CASE - + MIN ( + 93 ) WHEN - 54 THEN 60 + ( - CAST ( NULL AS INTEGER ) ) + - + 49 END AS col1, + COALESCE ( 40, - 3 ) - - 62 AS col1 query I rowsort label-4111 @@ -21986,7 +21986,7 @@ SELECT - CAST ( + 42 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(65\) \+ Int64\(\-47\) \+ CAST\(NULL AS Int32\) / Int64\(82\) \* Int64\(51\) \- Int64\(19\) \+ Int64\(\-61\) \* Int64\(4\) / Int64\(21\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(65\) \+ Int64\(\-47\) \+ CAST\(NULL AS Int64\) / Int64\(82\) \* Int64\(51\) \- Int64\(19\) \+ Int64\(\-61\) \* Int64\(4\) / Int64\(21\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col0, 65 + - 47 + CAST ( NULL AS INTEGER ) / + 82 * + + 51 - 19 + - 61 * + 4 / + 21 * - 33 AS col0 query I rowsort @@ -22007,7 +22007,7 @@ SELECT + 81 * + + 41 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(76\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(76\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + 76 * CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-4183 @@ -23930,7 +23930,7 @@ SELECT - ( 82 ) AS col1, - COALESCE ( + + 12, + 21 + 93, + 70 / 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-98\) \* Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-98\) \* Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 AS col1, + ( + CAST ( NULL AS INTEGER ) ) + - 98 * 73 col1 query I rowsort @@ -25171,7 +25171,7 @@ SELECT DISTINCT 0 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col0 query I rowsort label-4791 @@ -27214,7 +27214,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -287164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(70\) \+ CAST\(Int64\(40\) AS Int32\) \- \(\- Int64\(\-75\)\) \* Int64\(65\) \* Int64\(58\) \+ \(\- Int64\(87\)\) \* \(\- Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(70\) \+ CAST\(Int64\(40\) AS Int64\) \- \(\- Int64\(\-75\)\) \* Int64\(65\) \* Int64\(58\) \+ \(\- Int64\(87\)\) \* \(\- Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) AS col0, 70 + CAST ( 40 AS INTEGER ) - - - 75 * + 65 * + 58 + - + 87 * - - 52 AS col0 query I rowsort @@ -27861,13 +27861,13 @@ SELECT - 82 * - COUNT ( 36 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(16\) WHEN Int64\(25\) THEN Int64\(98\) \+ CAST\(Int64\(\-67\) AS Int32\) END\) \* Int64\(\-80\) \* Int64\(\-14\) \- Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(16\) WHEN Int64\(25\) THEN Int64\(98\) \+ CAST\(Int64\(\-67\) AS Int64\) END\) \* Int64\(\-80\) \* Int64\(\-14\) \- Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 73 AS col0, 62 * + COUNT ( * ) * - CASE + 16 WHEN 25 THEN 98 + CAST ( - 67 AS INTEGER ) END * - 80 * - 14 - 54 col0 query II rowsort label-5306 @@ -29830,7 +29830,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \+ \(\- CAST\(Int64\(\-60\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \+ \(\- CAST\(Int64\(\-60\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) * 43 + + - ( CAST ( - 60 AS INTEGER ) ) AS col2, - 4 AS col2 query I rowsort @@ -30717,7 +30717,7 @@ SELECT + 51 * 30 + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -59268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(82\) \- Int64\(\-50\) \+ CAST\(Int64\(\-50\) AS Int32\) \* Int64\(\-54\) \* \(\- Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(82\) \- Int64\(\-50\) \+ CAST\(Int64\(\-50\) AS Int64\) \* Int64\(\-54\) \* \(\- Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 col0, 82 - + - 50 + CAST ( - 50 AS INTEGER ) * - 54 * - + 22 AS col0 query II rowsort label-5848 @@ -33082,7 +33082,7 @@ SELECT - + 28 - 4 - - 76 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \+ CAST\(NULL AS Float64\) AS col0" at position 0 and "\(\- coalesce\(Int64\(50\), Int64\(\-28\), Int64\(83\) \* Int64\(98\) \+ nullif\(\(\- Int64\(\-83\)\), CAST\(Int64\(51\) AS Int32\)\)\)\) \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \+ CAST\(NULL AS Float64\) AS col0" at position 0 and "\(\- coalesce\(Int64\(50\), Int64\(\-28\), Int64\(83\) \* Int64\(98\) \+ nullif\(\(\- Int64\(\-83\)\), CAST\(Int64\(51\) AS Int64\)\)\)\) \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 53 + + CAST ( NULL AS FLOAT8 ) AS col0, + ( - COALESCE ( + 50, + - 28, + 83 * 98 + NULLIF ( - - 83, CAST ( 51 AS INTEGER ) ) ) ) * 78 AS col0 query I rowsort label-6304 @@ -35353,7 +35353,7 @@ SELECT 61 * 85 # Datafusion - Expected - -36 # Datafusion - Expected - 3210 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(49\) \+ Int64\(\-73\) AS col1" at position 1 and "\(\- CAST\(NULL AS Int32\)\) \* CAST\(\(\- Int64\(19\)\) AS Float64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(49\) \+ Int64\(\-73\) AS col1" at position 1 and "\(\- CAST\(NULL AS Int64\)\) \* CAST\(\(\- Int64\(19\)\) AS Float64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + - ( + - 36 ) AS INTEGER ) AS col2, + 67 * + 49 + - 73 AS col1, - CAST ( NULL AS INTEGER ) * CAST ( - + 19 AS FLOAT8 ) AS col1 query I rowsort @@ -36798,7 +36798,7 @@ SELECT ALL - CAST ( - 25 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- coalesce\(\(\- Int64\(76\)\), Int64\(26\)\)\) / Int64\(71\) \* Int64\(77\) AS col2" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(\-77\)\) \- Int64\(15\) \- \(\- coalesce\(Int64\(51\), \(\- coalesce\(Int64\(83\), Int64\(18\) \* Int64\(\-72\) \* \(\- Int64\(\-16\)\) \* Int64\(\-24\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- coalesce\(\(\- Int64\(76\)\), Int64\(26\)\)\) / Int64\(71\) \* Int64\(77\) AS col2" at position 0 and "nullif\(CAST\(NULL AS Int64\), Int64\(\-77\)\) \- Int64\(15\) \- \(\- coalesce\(Int64\(51\), \(\- coalesce\(Int64\(83\), Int64\(18\) \* Int64\(\-72\) \* \(\- Int64\(\-16\)\) \* Int64\(\-24\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( ( 9 ) ) * - COALESCE ( - + ( + 76 ), 26 ) / 71 * 77 AS col2, + NULLIF ( CAST ( NULL AS INTEGER ), - 77 ) - + + 15 - + - COALESCE ( + 51, - COALESCE ( 83, + 18 * + - 72 * - - 16 * - 24 * - - COUNT ( * ) ) ) AS col2 query II rowsort label-7006 @@ -36971,7 +36971,7 @@ SELECT + 97 * + 9 + COALESCE ( - 23, - ( + + 28 ) * 20 + 78 ) AS col1 # Datafusion - Expected - 6338 # Datafusion - Expected - 2009 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(79\) \+ CAST\(Int64\(97\) AS Int32\) AS col1" at position 0 and "Int64\(11\) \+ \(\- coalesce\(Int64\(54\), \(\- Int64\(\-96\)\)\)\) \* \(\- min\(Int64\(37\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(79\) \+ CAST\(Int64\(97\) AS Int64\) AS col1" at position 0 and "Int64\(11\) \+ \(\- coalesce\(Int64\(54\), \(\- Int64\(\-96\)\)\)\) \* \(\- min\(Int64\(37\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 79 * 79 + CAST ( + + 97 AS INTEGER ) AS col1, 11 + - COALESCE ( + + 54, - - 96 ) * - MIN ( 37 ) AS col1, - 27 - COUNT ( * ) AS col1 query I rowsort label-7039 @@ -37668,7 +37668,7 @@ SELECT DISTINCT + 53 / + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(Int64\(43\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(Int64\(43\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 19 AS col0, + COUNT ( * ) + - - CAST ( 43 AS INTEGER ) AS col0 query II rowsort label-7173 @@ -40977,7 +40977,7 @@ SELECT + + 66 + - + 85 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(4\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(4\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COALESCE ( - + 4, COUNT ( * ) ) AS col1, + CAST ( NULL AS INTEGER ) * 70 + COUNT ( * ) AS col1 query I rowsort @@ -43124,7 +43124,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 130696 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(\-78\) \* CAST\(\(\- Int64\(\-54\)\) AS Int32\) \+ Int64\(2\) \- \(\- Int64\(47\)\) \- Int64\(7\) \+ Int64\(82\) AS col2" at position 0 and "max\(Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(\-78\) \* CAST\(\(\- Int64\(\-54\)\) AS Int64\) \+ Int64\(2\) \- \(\- Int64\(47\)\) \- Int64\(7\) \+ Int64\(82\) AS col2" at position 0 and "max\(Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 31 * + ( - 78 ) * + CAST ( - - 54 AS INTEGER ) + 2 - - + 47 - + 7 + + 82 AS col2, + MAX ( 77 ) AS col2 query I rowsort label-8216 @@ -43430,7 +43430,7 @@ SELECT - COUNT ( * ), 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-59\) / Int64\(17\) \* \(\- CASE Int64\(47\) WHEN Int64\(8\) / Int64\(92\) THEN NULL WHEN Int64\(15\) \+ Int64\(\-65\) \* Int64\(70\) \* Int64\(77\) THEN Int64\(\-11\) END\) \* Int64\(79\) \+ \(\- CASE Int64\(\-55\) WHEN Int64\(\-18\) THEN Int64\(0\) \* Int64\(\-62\) \+ \(\- min\(Int64\(\-92\)\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) END\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-59\) / Int64\(17\) \* \(\- CASE Int64\(47\) WHEN Int64\(8\) / Int64\(92\) THEN NULL WHEN Int64\(15\) \+ Int64\(\-65\) \* Int64\(70\) \* Int64\(77\) THEN Int64\(\-11\) END\) \* Int64\(79\) \+ \(\- CASE Int64\(\-55\) WHEN Int64\(\-18\) THEN Int64\(0\) \* Int64\(\-62\) \+ \(\- min\(Int64\(\-92\)\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) END\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, - 59 / 17 * - CASE + + 47 WHEN 8 / 92 THEN NULL WHEN + 15 + - 65 * 70 * + 77 THEN + - 11 END * + 79 + - CASE - 55 WHEN - 18 THEN + 0 * - 62 + - MIN ( - 92 ) ELSE COUNT ( * ) + 45 END * 36 AS col1 query I rowsort label-8274 @@ -44243,7 +44243,7 @@ SELECT - 87 * + COUNT ( * ) * - 63 * + + 6 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-53\) AS Int32\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-53\) AS Int64\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - 53 AS INTEGER ) AS col2, 0 AS col2 query I rowsort @@ -45224,7 +45224,7 @@ SELECT - - SUM ( + 60 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "Int64\(60\) \+ \(\- Int64\(34\)\) \+ Int64\(81\) \* CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ \(\- Int64\(35\)\) \* Int64\(\-22\) \- \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "Int64\(60\) \+ \(\- Int64\(34\)\) \+ Int64\(81\) \* CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\) \+ \(\- Int64\(35\)\) \* Int64\(\-22\) \- \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 1 AS col1, + 60 + - + 34 + 81 * CAST ( - - ( + + COUNT ( * ) ) AS INTEGER ) + - + 35 * ( - 22 ) - - - 70 AS col1 query I rowsort @@ -46287,7 +46287,7 @@ SELECT + 45 / 17 * + - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- Int64\(\-58\)\) \+ Int64\(\-52\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- Int64\(\-58\)\) \+ Int64\(\-52\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 77 * - - 58 + + - 52 + ( + CAST ( NULL AS INTEGER ) ) AS col0, 14 + + COUNT ( * ) AS col0 query II rowsort label-8814 @@ -47982,7 +47982,7 @@ SELECT - ( 7 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(14\) \* Int64\(\-7\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(14\) \* Int64\(\-7\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 52 + + 14 * - 7 * COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -51336,7 +51336,7 @@ SELECT ALL COUNT ( * ), 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "\(\- min\(Int64\(99\)\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "\(\- min\(Int64\(99\)\)\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 AS col1, - MIN ( ALL 99 ) + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_52.slt b/data/sqlite/random/expr/slt_good_52.slt index 9a64da9..0985bd4 100644 --- a/data/sqlite/random/expr/slt_good_52.slt +++ b/data/sqlite/random/expr/slt_good_52.slt @@ -2618,7 +2618,7 @@ SELECT ( + - 99 ), COUNT ( - - 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(62\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-81\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(8\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(62\) \* \(\- CAST\(NULL AS Int64\)\) / Int64\(\-81\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(8\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 0 / + 62 * + - CAST ( NULL AS INTEGER ) / - 81 + + - 11 AS col2, 8 + - ( COUNT ( * ) ) AS col2 query I rowsort label-491 @@ -3977,7 +3977,7 @@ SELECT + ( COUNT ( * ) ) * COUNT ( * ) * + + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1, 29 col1 query I rowsort label-752 @@ -7235,7 +7235,7 @@ SELECT ALL 57 + CASE - 15 WHEN + - 47 * 49 * - ( - 35 ) + + 88 THEN NULL WHEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - -2063 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(25\) \* \(\- CAST\(Int64\(85\) AS Int32\)\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(25\) \* \(\- CAST\(Int64\(85\) AS Int64\)\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 62 + + + 25 * - CAST ( + 85 AS INTEGER ) AS col0, + 45 AS col0 query I rowsort label-1377 @@ -7487,7 +7487,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(68\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(68\)\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - AVG ( 68 ) * - ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) col2, 63 col2 query I rowsort label-1426 @@ -7579,7 +7579,7 @@ SELECT ALL 91 + + 7 * COALESCE ( - ( - 56 ), COUNT ( * ) / + 60 + + COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - -3306 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(55\) WHEN CAST\(NULL AS Int32\) THEN NULL ELSE Int64\(\-87\) \* \(\- Int64\(\-38\)\) END AS col1" at position 0 and "Int64\(34\) \- Int64\(\-56\) \+ Int64\(\-89\) \- coalesce\(Int64\(\-37\), Int64\(35\) \* CAST\(NULL AS Int32\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(55\) WHEN CAST\(NULL AS Int64\) THEN NULL ELSE Int64\(\-87\) \* \(\- Int64\(\-38\)\) END AS col1" at position 0 and "Int64\(34\) \- Int64\(\-56\) \+ Int64\(\-89\) \- coalesce\(Int64\(\-37\), Int64\(35\) \* CAST\(NULL AS Int64\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + CASE + 55 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 87 * - - 38 END ) AS col1, 34 - ( - 56 ) + - 89 - + + COALESCE ( - 37, + 35 * + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) col1 query I rowsort label-1444 @@ -8067,7 +8067,7 @@ SELECT - 68 / 75 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 86 + + CAST ( NULL AS INTEGER ) col0, 0 AS col2, + + 80 AS col0 query I rowsort label-1536 @@ -13678,7 +13678,7 @@ SELECT ( + + MIN ( - 97 ) ) * + 64 + - + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) / Int64\(\-10\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) / Int64\(\-10\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 61 / - 10 AS col1, CAST ( NULL AS INTEGER ) + - ( + 14 ) AS col1 query I rowsort @@ -14433,7 +14433,7 @@ SELECT + 27 / - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) AS col2" at position 0 and "CAST\(\(\- min\(DISTINCT Int64\(42\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) AS col2" at position 0 and "CAST\(\(\- min\(DISTINCT Int64\(42\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 66 AS col2, CAST ( + - MIN ( DISTINCT ( + 42 ) ) AS INTEGER ) AS col2 query I rowsort @@ -14548,7 +14548,7 @@ SELECT DISTINCT 93 * + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 435 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(87\) AS col2" at position 0 and "Int64\(91\) \+ CAST\(Int64\(22\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(87\) AS col2" at position 0 and "Int64\(91\) \+ CAST\(Int64\(22\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 5 * 87 AS col2, 91 + CAST ( 22 AS INTEGER ) AS col2 query I rowsort @@ -16082,7 +16082,7 @@ SELECT ALL + 9 AS col1, + 75 + - 19 + + 71 * + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(49\) AS Int32\) AS col2" at position 0 and "Int64\(40\) \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(49\) AS Int64\) AS col2" at position 0 and "Int64\(40\) \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( CAST ( + 49 AS INTEGER ) ) AS col2, 40 * - 23 AS col2 query II rowsort @@ -17210,7 +17210,7 @@ SELECT 82 + + ( 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1701 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(63\) AS col2" at position 0 and "CAST\(Int64\(41\) AS Int32\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(63\) AS col2" at position 0 and "CAST\(Int64\(41\) AS Int64\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 * + 63 AS col2, CAST ( 41 AS INTEGER ) + + 74 AS col2 query I rowsort label-3282 @@ -18123,7 +18123,7 @@ SELECT - COUNT ( * ) + + + MAX ( 17 ) * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(Int64\(\-35\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(Int64\(\-35\) AS Int64\)\)\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( + - CAST ( - 35 AS INTEGER ) ) col0, - 5 AS col0 query I rowsort label-3455 @@ -18216,7 +18216,7 @@ SELECT 1 + - - NULLIF ( 59, - 88 * CAST ( NULL AS INTEGER ) ) * 1 + + 90 # Datafusion - Expected - 62 # Datafusion - Expected - 25 # Datafusion - Expected - -6743 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(62\) WHEN \(\- Int64\(\-56\)\) \+ \(\- Int64\(\-83\)\) THEN NULL ELSE Int64\(62\) END AS col1" at position 0 and "Int64\(95\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-71\) \+ Int64\(1\) \+ Int64\(69\) / Int64\(55\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(62\) WHEN \(\- Int64\(\-56\)\) \+ \(\- Int64\(\-83\)\) THEN NULL ELSE Int64\(62\) END AS col1" at position 0 and "Int64\(95\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(\-71\) \+ Int64\(1\) \+ Int64\(69\) / Int64\(55\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE 62 WHEN - - 56 + - - 83 THEN NULL ELSE 62 END AS col1, 25, 95 * CAST ( COUNT ( * ) AS INTEGER ) * - 71 + + + 1 + 69 / 55 AS col1 query I rowsort label-3473 @@ -18425,7 +18425,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-3512 @@ -21329,7 +21329,7 @@ SELECT ALL + NULLIF ( NULLIF ( - 52, - + 25 ), + + 55 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 13 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(84\) \- Int64\(\-44\) \+ Int64\(43\) / Int64\(\-84\) / Int64\(35\) \- CAST\(NULL AS Int32\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(84\) \- Int64\(\-44\) \+ Int64\(43\) / Int64\(\-84\) / Int64\(35\) \- CAST\(NULL AS Int64\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 98 + + 84 - + - 44 + 43 / + - 84 / + + 35 - + CAST ( NULL AS INTEGER ) * - + 63 AS col0, 13 AS col0, + - 81 col1 query I rowsort label-4066 @@ -21483,7 +21483,7 @@ SELECT + CAST ( 82 AS INTEGER ) * 70 + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 986 # Datafusion - Expected - -413 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(17\) AS col1" at position 0 and "coalesce\(sum\(Int64\(77\)\), Int64\(50\), Int64\(5\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(66\) \- CAST\(Int64\(12\) AS Int32\)\) \+ Int64\(\-49\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(17\) AS col1" at position 0 and "coalesce\(sum\(Int64\(77\)\), Int64\(50\), Int64\(5\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(66\) \- CAST\(Int64\(12\) AS Int64\)\) \+ Int64\(\-49\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 * + 17 AS col1, COALESCE ( SUM ( + + 77 ), 50, 5 * - CAST ( NULL AS INTEGER ) + + 66 - + + CAST ( 12 AS INTEGER ) ) + - 49 * + 10 AS col1 query I rowsort label-4096 @@ -22388,7 +22388,7 @@ SELECT + + 8 + - 18 * SUM ( + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -2814 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-98\) AS Int32\)\) AS col2" at position 0 and "Int64\(42\) \* Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-98\) AS Int64\)\) AS col2" at position 0 and "Int64\(42\) \* Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( - 98 AS INTEGER ) AS col2, 42 * + - 67 AS col2 query I rowsort label-4270 @@ -23299,7 +23299,7 @@ SELECT 8 AS col1, - ( + 89 ) + + + 63 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(31\) \+ min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(31\) \+ min\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 20 AS col0, 31 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort label-4447 @@ -25381,7 +25381,7 @@ SELECT ALL - COALESCE ( + CAST ( + 70 AS INTEGER ), - 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 50715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(90\) \- Int64\(\-48\) \+ Int64\(87\) \- Int64\(85\) \* \(\- CAST\(Int64\(\-9\) AS Int32\)\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(90\) \- Int64\(\-48\) \+ Int64\(87\) \- Int64\(85\) \* \(\- CAST\(Int64\(\-9\) AS Int64\)\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 col1, 90 - - 48 + + 87 - + + 85 * - CAST ( - 9 AS INTEGER ) * - 66 col1 # Datafusion - Datafusion expected results: @@ -29884,7 +29884,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \+ Int64\(7\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(1\) \* Int64\(14\) \* Int64\(5\) \+ Int64\(81\) \+ nullif\(\(\- Int64\(6\)\), \(\- Int64\(\-2\)\) \+ \(\- Int64\(0\)\) \+ \(\- Int64\(34\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(61\)\) \* Int64\(\-37\) \* Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int64\) \+ Int64\(7\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(1\) \* Int64\(14\) \* Int64\(5\) \+ Int64\(81\) \+ nullif\(\(\- Int64\(6\)\), \(\- Int64\(\-2\)\) \+ \(\- Int64\(0\)\) \+ \(\- Int64\(34\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(61\)\) \* Int64\(\-37\) \* Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 81 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 7 * + - 94 AS col2, 1 * + 14 * + 5 + + 81 + + NULLIF ( - + 6, - - 2 + + ( - - 0 ) + - + 34 * COUNT ( * ) + - + 61 * - 37 * + 81 ) AS col2 query II rowsort label-5699 @@ -30180,7 +30180,7 @@ SELECT COUNT ( ALL + 29 ) * + 68 - 95 * - 2 + + 15 * + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 57 AS col0 # Datafusion - Types were automatically converted from: @@ -32354,7 +32354,7 @@ SELECT ALL CAST ( + - ( + 94 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(1\) \* \(\- CAST\(\(\- \(\- max\(Int64\(28\)\)\)\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "nullif\(CAST\(NULL AS Int64\), Int64\(1\) \* \(\- CAST\(\(\- \(\- max\(Int64\(28\)\)\)\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col0, + NULLIF ( + + CAST ( NULL AS INTEGER ), 1 * - CAST ( - - MAX ( ALL 28 ) AS INTEGER ) ) AS col0 query I rowsort label-6176 @@ -33345,7 +33345,7 @@ SELECT DISTINCT - - NULLIF ( 76, - 5 - + 11 ) AS col0, - 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 77 + - - ( COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col1, 38 col1 query I rowsort label-6364 @@ -35498,7 +35498,7 @@ SELECT - 54 + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-97\), CAST\(NULL AS Int32\), Int64\(51\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-97\), CAST\(NULL AS Int64\), Int64\(51\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - 97, CAST ( NULL AS INTEGER ), 51 ) AS col2, 27 AS col2 query I rowsort label-6774 @@ -36538,7 +36538,7 @@ SELECT DISTINCT 45 AS col2, - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(12\)\), nullif\(\(\- Int64\(80\)\), Int64\(89\) \* Int64\(29\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-37\) \- \(\- Int64\(\-53\)\), Int64\(22\)\) \* Int64\(5\) / \(\- sum\(Int64\(12\)\)\) AS col1" at position 0 and "min\(Int64\(27\)\) \+ Int64\(6\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(12\)\), nullif\(\(\- Int64\(80\)\), Int64\(89\) \* Int64\(29\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\)\) \+ Int64\(\-37\) \- \(\- Int64\(\-53\)\), Int64\(22\)\) \* Int64\(5\) / \(\- sum\(Int64\(12\)\)\) AS col1" at position 0 and "min\(Int64\(27\)\) \+ Int64\(6\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - + 12, NULLIF ( - + 80, + 89 * 29 * - - CAST ( NULL AS INTEGER ) ) + - 37 - - - 53, 22 ) * 5 / - SUM ( + 12 ) AS col1, MIN ( ALL + 27 ) + + 6 * + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -36587,7 +36587,7 @@ SELECT DISTINCT 12 * - COUNT ( * ) / + - 68 col2, + 88 * 25 # Datafusion - Expected - NULL # Datafusion - Expected - -40 # Datafusion - Expected - -2550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(57\) \* \(\- Int64\(76\)\) \+ \(\- CASE Int64\(\-38\) WHEN Int64\(3\) \+ Int64\(48\) THEN Int64\(\-51\) WHEN Int64\(\-91\) THEN NULL END\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-82\) \* Int64\(32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- Int64\(57\) \* \(\- Int64\(76\)\) \+ \(\- CASE Int64\(\-38\) WHEN Int64\(3\) \+ Int64\(48\) THEN Int64\(\-51\) WHEN Int64\(\-91\) THEN NULL END\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-82\) \* Int64\(32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) - 57 * - ( + 76 ) + + - CASE - 38 WHEN + 3 + 48 THEN + - 51 WHEN - 91 THEN NULL END AS col2, + MAX ( ALL - 41 ) - + - COUNT ( * ), 74 + - 82 * + 32 AS col2 query I rowsort @@ -38082,7 +38082,7 @@ SELECT DISTINCT + 54 * 25 * + + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(30\)\)\) \- \(\- Int64\(28\)\) AS col0" at position 0 and "coalesce\(Int64\(\-27\), coalesce\(Int64\(9\), \(\- CAST\(Int64\(\-6\) AS Int32\)\) \- Int64\(95\), \(\- \(\- Int64\(1\)\)\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-58\) \* Int64\(\-23\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(84\) \- \(\- count\(DISTINCT \(\- Int64\(42\)\)\)\) / \(\- Int64\(69\)\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(62\) \* Int64\(\-7\) \- \(\- coalesce\(CASE Int64\(\-46\) WHEN nullif\(\(\- min\(Int64\(91\)\)\), Int64\(76\)\) THEN Int64\(\-55\) WHEN \(\- Int64\(39\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) THEN Int64\(90\) \+ \(\- Int64\(26\)\) \+ Int64\(62\) \+ Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-46\) THEN Int64\(5\) ELSE NULL END, Int64\(93\), Int64\(75\)\)\) \* Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(30\)\)\) \- \(\- Int64\(28\)\) AS col0" at position 0 and "coalesce\(Int64\(\-27\), coalesce\(Int64\(9\), \(\- CAST\(Int64\(\-6\) AS Int64\)\) \- Int64\(95\), \(\- \(\- Int64\(1\)\)\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-58\) \* Int64\(\-23\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(84\) \- \(\- count\(DISTINCT \(\- Int64\(42\)\)\)\) / \(\- Int64\(69\)\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(62\) \* Int64\(\-7\) \- \(\- coalesce\(CASE Int64\(\-46\) WHEN nullif\(\(\- min\(Int64\(91\)\)\), Int64\(76\)\) THEN Int64\(\-55\) WHEN \(\- Int64\(39\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) THEN Int64\(90\) \+ \(\- Int64\(26\)\) \+ Int64\(62\) \+ Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-46\) THEN Int64\(5\) ELSE NULL END, Int64\(93\), Int64\(75\)\)\) \* Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MAX ( DISTINCT + 30 ) - - + 28 AS col0, COALESCE ( - 27, + COALESCE ( 9, - CAST ( - 6 AS INTEGER ) - + 95, - - ( 1 ) * - - 94 + - 58 * - 23 ), COUNT ( * ) + + + 84 - - COUNT ( DISTINCT - + 42 ) / - + 69 + COUNT ( * ), 62 * - 7 - - COALESCE ( CASE - 46 WHEN + NULLIF ( - + MIN ( ALL 91 ), + 76 ) THEN - 55 WHEN - + 39 - + COUNT ( * ) - 89 THEN + ( + 90 ) + - + 26 + + 62 + 87 * - COUNT ( * ) WHEN - 46 THEN + 5 ELSE NULL END, + 93, + ( 75 ) ) * - 92 ) AS col0 query I rowsort label-7261 @@ -38900,7 +38900,7 @@ SELECT - 76 + - - 37 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, 24 col2 query I rowsort label-7416 @@ -39612,7 +39612,7 @@ SELECT ALL ( - 26 ), - SUM ( - 88 ) + 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(72\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(72\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 35 * CAST ( NULL AS INTEGER ) AS col2, 72 / - COUNT ( * ) AS col2 query II rowsort label-7551 @@ -41038,7 +41038,7 @@ SELECT DISTINCT 99, 14 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -2488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(14\) \* Int64\(\-92\) \+ \(\- nullif\(\(\- CASE coalesce\(Int64\(\-65\), Int64\(49\)\) WHEN Int64\(99\) \+ CASE Int64\(\-5\) \+ \(\- Int64\(70\) \+ Int64\(88\)\) \* sum\(DISTINCT Int64\(\-29\)\) WHEN Int64\(\-3\) \* Int64\(5\) THEN NULL WHEN Int64\(82\) THEN Int64\(\-37\) END THEN Int64\(5\) \* Int64\(\-72\) ELSE Int64\(25\) END\), Int64\(91\) \* Int64\(15\)\)\) \* CAST\(Int64\(\-48\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(14\) \* Int64\(\-92\) \+ \(\- nullif\(\(\- CASE coalesce\(Int64\(\-65\), Int64\(49\)\) WHEN Int64\(99\) \+ CASE Int64\(\-5\) \+ \(\- Int64\(70\) \+ Int64\(88\)\) \* sum\(DISTINCT Int64\(\-29\)\) WHEN Int64\(\-3\) \* Int64\(5\) THEN NULL WHEN Int64\(82\) THEN Int64\(\-37\) END THEN Int64\(5\) \* Int64\(\-72\) ELSE Int64\(25\) END\), Int64\(91\) \* Int64\(15\)\)\) \* CAST\(Int64\(\-48\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 5 AS col2, 14 * - 92 + + - NULLIF ( + + ( - CASE COALESCE ( - 65, 49 ) WHEN 99 + CASE - 5 + - ( 70 + 88 ) * SUM ( DISTINCT - 29 ) WHEN - 3 * 5 THEN NULL WHEN 82 THEN - 37 END THEN 5 * - 72 ELSE 25 END ), 91 * 15 ) * CAST ( - 48 AS INTEGER ) AS col2 query I rowsort @@ -42994,7 +42994,7 @@ SELECT + ( - - 20 ) * + 49 - - - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "\(\- min\(Int64\(30\)\)\) \* Int64\(21\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- avg\(Int64\(29\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "\(\- min\(Int64\(30\)\)\) \* Int64\(21\) \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- \(\- avg\(Int64\(29\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 col1, - MIN ( 30 ) * + 21 * - CAST ( NULL AS INTEGER ) + - - AVG ( 29 ) AS col1 query I rowsort label-8199 @@ -43487,7 +43487,7 @@ SELECT + - 4, + COALESCE ( - 47, - COUNT ( * ), + MIN ( ALL 75 ), 21 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "CAST\(\(\- avg\(DISTINCT Int64\(70\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "CAST\(\(\- avg\(DISTINCT Int64\(70\)\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 48 col0, CAST ( - AVG ( DISTINCT 70 ) AS INTEGER ) col0 query I rowsort label-8291 @@ -43503,7 +43503,7 @@ SELECT DISTINCT + + 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -3165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(38\) \* \(\- nullif\(Int64\(83\), CAST\(\(\- CAST\(Int64\(\-70\) AS Int32\)\) AS Int32\) \+ Int64\(98\) \* Int64\(97\)\)\) \+ Int64\(8\) \- Int64\(57\) \+ \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(38\) \* \(\- nullif\(Int64\(83\), CAST\(\(\- CAST\(Int64\(\-70\) AS Int64\)\) AS Int64\) \+ Int64\(98\) \* Int64\(97\)\)\) \+ Int64\(8\) \- Int64\(57\) \+ \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 84 AS col0, + 38 * + - NULLIF ( + + 83, + + CAST ( - CAST ( - 70 AS INTEGER ) AS INTEGER ) + + + 98 * + 97 ) + 8 - + 57 + - - 38 AS col0 query I rowsort label-8294 @@ -43983,7 +43983,7 @@ SELECT + 78 * + + COUNT ( * ) - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1525 # Datafusion - Expected - -5370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(25\) AS col1" at position 0 and "\(\- CAST\(Int64\(78\) AS Int32\)\) \* Int64\(70\) \+ \(\- coalesce\(Int64\(\-90\), coalesce\(min\(DISTINCT Int64\(9\)\), Int64\(70\), \(\- Int64\(98\)\) \+ sum\(\(\- Int64\(\-4\)\)\) \+ \(\- Int64\(10\)\) \- Int64\(\-50\) \+ Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(95\) \+ Int64\(59\) / Int64\(38\) \* Int64\(40\)\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(25\) AS col1" at position 0 and "\(\- CAST\(Int64\(78\) AS Int64\)\) \* Int64\(70\) \+ \(\- coalesce\(Int64\(\-90\), coalesce\(min\(DISTINCT Int64\(9\)\), Int64\(70\), \(\- Int64\(98\)\) \+ sum\(\(\- Int64\(\-4\)\)\) \+ \(\- Int64\(10\)\) \- Int64\(\-50\) \+ Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(95\) \+ Int64\(59\) / Int64\(38\) \* Int64\(40\)\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 61 * + 25 col1, - CAST ( + 78 AS INTEGER ) * + 70 + - COALESCE ( - 90, + COALESCE ( + MIN ( DISTINCT 9 ), 70, - + 98 + SUM ( + + ( - - 4 ) ) + + - ( 10 ) - - 50 + 65 + COUNT ( * ) + 95 + + 59 / + 38 * 40 ), COUNT ( * ) ) AS col1 query II rowsort label-8386 @@ -44090,7 +44090,7 @@ SELECT DISTINCT + 7 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) AS col2" at position 0 and "Int64\(\-32\) \- Int64\(\-1\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) AS col2" at position 0 and "Int64\(\-32\) \- Int64\(\-1\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - + 31 ) AS col2, ( + - 32 ) - + - 1 + - + CAST ( NULL AS INTEGER ) * - 41 AS col2 query I rowsort @@ -44167,7 +44167,7 @@ SELECT ALL + 13 * + + 70 + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ Int64\(19\) \+ Int64\(72\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ Int64\(19\) \+ Int64\(72\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 77 + + 19 + 72 AS col0, CAST ( NULL AS INTEGER ) * + 6 AS col0 query I rowsort @@ -45298,7 +45298,7 @@ SELECT 8 * + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7857 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- Int64\(97\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* \(\- coalesce\(Int64\(81\), Int64\(33\), Int64\(17\) / CASE nullif\(\(\- sum\(Int64\(24\)\)\), Int64\(68\) / Int64\(68\) \* Int64\(\-89\)\) WHEN \(\- \(\- avg\(DISTINCT Int64\(16\)\)\)\) THEN NULL WHEN Int64\(39\) \+ Int64\(42\) THEN Int64\(63\) \+ Int64\(23\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "\(\- Int64\(97\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* \(\- coalesce\(Int64\(81\), Int64\(33\), Int64\(17\) / CASE nullif\(\(\- sum\(Int64\(24\)\)\), Int64\(68\) / Int64\(68\) \* Int64\(\-89\)\) WHEN \(\- \(\- avg\(DISTINCT Int64\(16\)\)\)\) THEN NULL WHEN Int64\(39\) \+ Int64\(42\) THEN Int64\(63\) \+ Int64\(23\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, + ( - + 97 ) * CAST ( + + COUNT ( * ) AS INTEGER ) * - + COALESCE ( 81, ( 33 ), 17 / + CASE + NULLIF ( ( + - SUM ( ALL 24 ) ), 68 / + 68 * + - 89 ) WHEN - - AVG ( DISTINCT + 16 ) THEN NULL WHEN 39 + + 42 THEN + 63 + + ( + + 23 ) END ) AS col2 query I rowsort @@ -45430,7 +45430,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(72\)\)\) \* Int64\(64\) AS col2" at position 0 and "max\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(72\)\)\) \* Int64\(64\) AS col2" at position 0 and "max\(DISTINCT CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( + 72 ) * + ( 64 ) AS col2, + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-8659 @@ -47227,7 +47227,7 @@ SELECT COALESCE ( + ( - - 71 ), + 67 ) + + NULLIF ( - MIN ( DISTINCT 93 ), 36 / # Datafusion - Expected - NULL # Datafusion - Expected - -896 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- CASE \(\- Int64\(\-58\)\) WHEN Int64\(2\) \- Int64\(\-16\) THEN Int64\(\-70\) WHEN Int64\(89\) THEN NULL END\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- CASE \(\- Int64\(\-58\)\) WHEN Int64\(2\) \- Int64\(\-16\) THEN Int64\(\-70\) WHEN Int64\(89\) THEN NULL END\) AS Int64\)\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( - CASE - - 58 WHEN + 2 - - 16 THEN + - 70 WHEN + 89 THEN NULL END AS INTEGER ) AS col0, NULLIF ( 14, + COUNT ( * ) + - 36 ) * - + 64, + + 67 AS col0 query I rowsort @@ -47543,7 +47543,7 @@ SELECT + 84 AS col2, + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(37\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(37\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 43 AS col1, 37 * - + CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-9061 @@ -48306,7 +48306,7 @@ SELECT 16 / - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9171 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(95\)\), max\(Int64\(76\)\) \* \(\- Int64\(\-65\)\) \+ Int64\(59\) \+ CAST\(NULL AS Int32\) \+ CAST\(NULL AS Float64\)\)\) \* Int64\(97\) \+ Int64\(\-43\) \- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(56\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(47\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(95\)\), max\(Int64\(76\)\) \* \(\- Int64\(\-65\)\) \+ Int64\(59\) \+ CAST\(NULL AS Int64\) \+ CAST\(NULL AS Float64\)\)\) \* Int64\(97\) \+ Int64\(\-43\) \- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(56\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(47\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - NULLIF ( - ( + + 95 ), MAX ( 76 ) * + ( - - 65 ) + 59 + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS FLOAT8 ) ) ) * 97 + - 43 - - NULLIF ( - + COUNT ( * ), + 56 ) / COUNT ( * ) col0, 47 / COUNT ( * ) col0 query I rowsort label-9206 @@ -49043,7 +49043,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(50\)\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(\-56\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(50\)\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) / Int64\(\-56\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) / - + 50 AS col1, - ( + - CAST ( NULL AS INTEGER ) ) / - 56 / - - COUNT ( * ) col1 query I rowsort label-9347 diff --git a/data/sqlite/random/expr/slt_good_53.slt b/data/sqlite/random/expr/slt_good_53.slt index 5a43a07..abf533e 100644 --- a/data/sqlite/random/expr/slt_good_53.slt +++ b/data/sqlite/random/expr/slt_good_53.slt @@ -908,7 +908,7 @@ SELECT 91 + - 46 + SUM ( ALL + + 16 ) / + 90 AS col1, 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ Int64\(85\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(61\) \+ Int64\(38\) \* Int64\(4\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ Int64\(85\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(61\) \+ Int64\(38\) \* Int64\(4\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 85 + + + 85 AS col0, CAST ( NULL AS INTEGER ) * + + 61 + 38 * + + 4 + - 38 AS col0 query I rowsort label-166 @@ -3258,7 +3258,7 @@ SELECT ALL 14 * + + 18 + - - ( + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) 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\. SELECT - 51 / - COUNT ( * ) + + 29 col0, CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: @@ -4846,7 +4846,7 @@ SELECT DISTINCT 7 * COALESCE ( - + 73, - - 76 + - 53 ) AS col0, + COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- coalesce\(\(\- Int64\(94\)\), sum\(coalesce\(Int64\(86\), Int64\(\-89\) \* Int64\(\-66\) \+ Int64\(17\) / Int64\(92\), \(\- coalesce\(Int64\(45\), Int64\(\-8\), CAST\(Int64\(\-79\) AS Int32\) \+ Int64\(0\), Int64\(8\)\)\)\)\) \+ Int64\(41\)\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(22\)\) WHEN Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-79\) \- \(\- Int64\(45\)\) WHEN Int64\(92\) / Int64\(69\) \* Int64\(\-21\) THEN \(\- CAST\(Int64\(\-94\) AS Int32\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- coalesce\(\(\- Int64\(94\)\), sum\(coalesce\(Int64\(86\), Int64\(\-89\) \* Int64\(\-66\) \+ Int64\(17\) / Int64\(92\), \(\- coalesce\(Int64\(45\), Int64\(\-8\), CAST\(Int64\(\-79\) AS Int64\) \+ Int64\(0\), Int64\(8\)\)\)\)\) \+ Int64\(41\)\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(22\)\) WHEN Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-79\) \- \(\- Int64\(45\)\) WHEN Int64\(92\) / Int64\(69\) \* Int64\(\-21\) THEN \(\- CAST\(Int64\(\-94\) AS Int64\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 42 - + COALESCE ( - + 94, + SUM ( COALESCE ( 86, - 89 * - 66 + + + 17 / + + 92, - COALESCE ( 45, - 8, CAST ( - 79 AS INTEGER ) + + ( + 0 ), + 8 ) ) ) + + + 41 ) AS col1, + ( - + CASE - + 22 WHEN 27 * - COUNT ( * ) THEN - 79 - - + 45 WHEN + 92 / + + 69 * + - 21 THEN - CAST ( - 94 AS INTEGER ) END ) AS col1 query I rowsort @@ -5576,7 +5576,7 @@ SELECT 99 + - 82 * - ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(46\) \+ Int64\(\-11\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(46\) \+ Int64\(\-11\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 AS col0, 46 + - 11 * - - CAST ( NULL AS INTEGER ) AS col0 # Datafusion - Types were automatically converted from: @@ -7013,7 +7013,7 @@ SELECT ( - 44 ) / - - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(3\)\)\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(85\)\), Int64\(58\) \+ coalesce\(Int64\(41\) \+ Int64\(\-46\), coalesce\(\(\- Int64\(\-41\)\), Int64\(96\) \+ CASE \(\- count\(Int64\(\-22\)\)\) WHEN Int64\(\-96\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(73\), Int64\(30\) \* Int64\(97\) \- CAST\(NULL AS Int32\)\) THEN Int64\(94\) \+ Int64\(\-68\) ELSE Int64\(50\) END\), Int64\(34\) \* avg\(Int64\(34\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(3\)\)\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(85\)\), Int64\(58\) \+ coalesce\(Int64\(41\) \+ Int64\(\-46\), coalesce\(\(\- Int64\(\-41\)\), Int64\(96\) \+ CASE \(\- count\(Int64\(\-22\)\)\) WHEN Int64\(\-96\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(73\), Int64\(30\) \* Int64\(97\) \- CAST\(NULL AS Int64\)\) THEN Int64\(94\) \+ Int64\(\-68\) ELSE Int64\(50\) END\), Int64\(34\) \* avg\(Int64\(34\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( ( 3 ) ) AS col2, - NULLIF ( - + 85, 58 + COALESCE ( + 41 + - 46, COALESCE ( - ( - 41 ), 96 + CASE - COUNT ( ALL - 22 ) WHEN - 96 + + COALESCE ( + COUNT ( * ) + + COUNT ( * ) * 73, 30 * 97 - CAST ( NULL AS INTEGER ) ) THEN + 94 + - 68 ELSE 50 END ), 34 * AVG ( 34 ) ) ) AS col2 query I rowsort @@ -7533,7 +7533,7 @@ SELECT ALL 94 * + 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1012 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* CAST\(NULL AS Int32\) / min\(Int64\(\-28\)\) AS col1" at position 0 and "Int64\(\-92\) \* Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* CAST\(NULL AS Int64\) / min\(Int64\(\-28\)\) AS col1" at position 0 and "Int64\(\-92\) \* Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 0 * + CAST ( NULL AS INTEGER ) / + + MIN ( ALL - 28 ) col1, - 92 * - 11 AS col1 query I rowsort label-1423 @@ -9906,7 +9906,7 @@ SELECT ALL + + SUM ( DISTINCT + - ( 90 ) ) + - COUNT ( * ) + - ( 93 ) * COUNT ( # Datafusion - Expected - 3784 # Datafusion - Expected - NULL # Datafusion - Expected - -52200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(76\) AS col2" at position 1 and "min\(Int64\(\-58\)\) \* Int64\(\-60\) \* Int64\(\-15\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(76\) AS col2" at position 1 and "min\(Int64\(\-58\)\) \* Int64\(\-60\) \* Int64\(\-15\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 * - 47 + 83 + NULLIF ( + - 12, + 33 * + - 46 ), CAST ( NULL AS INTEGER ) * 76 AS col2, MIN ( ALL - 58 ) * - 60 * - 15 AS col2 query II rowsort label-1874 @@ -10000,7 +10000,7 @@ SELECT DISTINCT 52 * - + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT + 76 * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1892 @@ -10315,7 +10315,7 @@ SELECT ALL 48 - - - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(NULL AS Int32\)\)\) / Int64\(76\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(NULL AS Int64\)\)\) / Int64\(76\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) / + + 76 col2, 38 AS col2 query I rowsort label-1953 @@ -10805,7 +10805,7 @@ SELECT + 62 * 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) query I rowsort @@ -12836,7 +12836,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL IS NULL THEN Int64\(80\) ELSE NULL END \* Int64\(12\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) \+ Int64\(\-21\) \+ Int64\(70\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(62\), Int64\(74\)\)\) \* count\(DISTINCT Int64\(24\)\) \* \(\- Int64\(\-65\)\) \* Int64\(\-95\) / Int64\(\-32\) \+ Int64\(\-33\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL IS NULL THEN Int64\(80\) ELSE NULL END \* Int64\(12\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) \+ Int64\(\-21\) \+ Int64\(70\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(62\), Int64\(74\)\)\) \* count\(DISTINCT Int64\(24\)\) \* \(\- Int64\(\-65\)\) \* Int64\(\-95\) / Int64\(\-32\) \+ Int64\(\-33\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE WHEN NOT NULL IS NULL THEN 80 ELSE NULL END * 12 AS col2, - ( - 98 ) + + - 21 + + 70 + - + COUNT ( * ) + - COALESCE ( 62, + 74 ) * COUNT ( DISTINCT + 24 ) * - - 65 * - 95 / + - 32 + + ( - 33 ) * - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2432 @@ -12971,7 +12971,7 @@ SELECT 9 * - - 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6935 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(73\)\) \* Int64\(\-95\) AS col2" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-53\) \* \(\- \(\- coalesce\(Int64\(93\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\) \* Int64\(80\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(33\) \* Int64\(58\) \* \(\- Int64\(41\)\) \* \(\- nullif\(Int64\(80\), Int64\(38\) \* nullif\(Int64\(91\), \(\- Int64\(\-41\)\) \- Int64\(\-76\)\) \* Int64\(\-91\) \- \(\- Int64\(\-42\)\) \+ Int64\(67\)\)\)\)\)\) \+ Int64\(16\) \+ \(\- nullif\(Int64\(\-9\), Int64\(77\) \* nullif\(Int64\(79\), \(\- coalesce\(Int64\(92\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) / Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(4\) \+ Int64\(16\) AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(73\)\) \* Int64\(\-95\) AS col2" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-53\) \* \(\- \(\- coalesce\(Int64\(93\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\) \* Int64\(80\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(33\) \* Int64\(58\) \* \(\- Int64\(41\)\) \* \(\- nullif\(Int64\(80\), Int64\(38\) \* nullif\(Int64\(91\), \(\- Int64\(\-41\)\) \- Int64\(\-76\)\) \* Int64\(\-91\) \- \(\- Int64\(\-42\)\) \+ Int64\(67\)\)\)\)\)\) \+ Int64\(16\) \+ \(\- nullif\(Int64\(\-9\), Int64\(77\) \* nullif\(Int64\(79\), \(\- coalesce\(Int64\(92\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) / Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(4\) \+ Int64\(16\) AS Int64\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( + 73 ) * ( + - 95 ) AS col2, NULLIF ( + COUNT ( * ), - 53 * - - COALESCE ( + 93, COUNT ( * ) * + 33 * 80, COUNT ( * ) + 33 * + + 58 * + - ( + 41 ) * - NULLIF ( 80, + 38 * + NULLIF ( + 91, - - 41 - - 76 ) * + - 91 - - - 42 + 67 ) ) + 16 + - NULLIF ( - 9, + 77 * + ( + NULLIF ( 79, ( - COALESCE ( 92, - - COUNT ( * ) ) ) / - 91 + + COUNT ( * ) ) ) + - CAST ( 4 + 16 AS INTEGER ) ) ) AS col2 query I rowsort label-2457 @@ -13130,7 +13130,7 @@ SELECT + MAX ( DISTINCT - 50 ) * - ( + COUNT ( * ) ) / + 53 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col2, 90 + 52 col2 query I rowsort @@ -13162,7 +13162,7 @@ SELECT ALL COUNT ( - 35 ), + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(\-60\)\) AS Int32\)\) \* Int64\(76\) \* Int64\(44\) \* \(\- sum\(DISTINCT Int64\(38\)\)\) \* \(\- CASE Int64\(54\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN CAST\(Int64\(\-60\) AS Float64\) THEN \(\- nullif\(Int64\(23\), \(\- Int64\(\-50\)\) / Int64\(\-42\)\)\) \* Int64\(17\) \+ \(\- coalesce\(Int64\(42\), Int64\(\-71\)\)\) \+ Int64\(81\) \* Int64\(\-50\) \* Int64\(\-85\) / Int64\(\-43\) WHEN Int64\(\-24\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(\-60\)\) AS Int64\)\) \* Int64\(76\) \* Int64\(44\) \* \(\- sum\(DISTINCT Int64\(38\)\)\) \* \(\- CASE Int64\(54\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN CAST\(Int64\(\-60\) AS Float64\) THEN \(\- nullif\(Int64\(23\), \(\- Int64\(\-50\)\) / Int64\(\-42\)\)\) \* Int64\(17\) \+ \(\- coalesce\(Int64\(42\), Int64\(\-71\)\)\) \+ Int64\(81\) \* Int64\(\-50\) \* Int64\(\-85\) / Int64\(\-43\) WHEN Int64\(\-24\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 AS col1, - CAST ( - - 60 AS INTEGER ) * + 76 * + 44 * - SUM ( DISTINCT 38 ) * - CASE 54 WHEN ( - COUNT ( * ) ) THEN NULL WHEN CAST ( + - 60 AS FLOAT8 ) THEN - + NULLIF ( + + 23, - - 50 / + - 42 ) * + 17 + + - COALESCE ( + 42, - 71 ) + 81 * + - 50 * - 85 / - 43 WHEN - 24 THEN NULL END AS col1 query I rowsort label-2494 @@ -14206,7 +14206,7 @@ SELECT DISTINCT - + 38 / - + 45 + - 0 + - 16 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -2014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(41\) AS Int32\) AS col2" at position 0 and "Int64\(52\) \* Int64\(\-40\) \+ max\(Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(41\) AS Int64\) AS col2" at position 0 and "Int64\(52\) \* Int64\(\-40\) \+ max\(Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + 41 AS INTEGER ) AS col2, 52 * - 40 + MAX ( ALL 66 ) col2 query I rowsort @@ -14268,7 +14268,7 @@ SELECT DISTINCT - 89 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 81 AS col2, COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -16712,7 +16712,7 @@ SELECT - NULLIF ( 73, + 7 * - CAST ( NULL AS INTEGER ) ) * 35 * 38 / - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, 65 AS col0 query I rowsort @@ -17148,7 +17148,7 @@ SELECT COUNT ( ALL + 29 ) * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-86\)\) AS col1" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-86\)\) AS col1" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 + - - 86 AS col1, + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) AS col1 query II rowsort @@ -20205,7 +20205,7 @@ SELECT - COALESCE ( + 52, + COUNT ( * ) ) + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) / \(\- \(\- CAST\(Int64\(\-33\) AS Int32\)\)\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(\-94\) / \(\- Int64\(\-90\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) / \(\- \(\- CAST\(Int64\(\-33\) AS Int64\)\)\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(\-94\) / \(\- Int64\(\-90\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 32 / - - CAST ( - 33 AS INTEGER ) * - 8 AS col1, - 94 / - - 90 AS col1 query I rowsort label-3835 @@ -21097,7 +21097,7 @@ SELECT ALL - - 85 + + 36 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8618 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- Int64\(\-96\)\)\) AS Int32\) \* \(\- Int64\(\-89\)\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(57\) \+ Int64\(10\) \+ min\(Int64\(47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- Int64\(\-96\)\)\) AS Int64\) \* \(\- Int64\(\-89\)\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(57\) \+ Int64\(10\) \+ min\(Int64\(47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - ( - - 96 ) AS INTEGER ) * - - 89 + - + 74 AS col0, + 13 * + COUNT ( * ) + + 57 + + 10 + + MIN ( ( 47 ) ) AS col0 query I rowsort @@ -22710,7 +22710,7 @@ SELECT + 14 * + ( - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(30\) \* CAST\(NULL AS Int32\) \+ Int64\(\-89\) \+ Int64\(6\) / \(\- Int64\(37\)\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(30\) \* CAST\(NULL AS Int64\) \+ Int64\(\-89\) \+ Int64\(6\) / \(\- Int64\(37\)\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 1 AS col1, 30 * + CAST ( NULL AS INTEGER ) + + - 89 + + + 6 / ( - + 37 ) / 78 AS col1 query I rowsort @@ -23610,7 +23610,7 @@ SELECT 18 + + + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(9\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(9\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 + + 9 * CAST ( NULL AS INTEGER ) AS col0, ( + 31 ) AS col0 query I rowsort label-4478 @@ -28251,7 +28251,7 @@ SELECT DISTINCT + + 56 AS col1, 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(98\) \* CAST\(\(\- Int64\(\-44\)\) AS Int32\) \* CAST\(NULL AS Int32\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(98\) \* CAST\(\(\- Int64\(\-44\)\) AS Int64\) \* CAST\(NULL AS Int64\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 75 AS col2, 98 * + CAST ( - - 44 AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 87 AS col2 query II rowsort @@ -29143,7 +29143,7 @@ SELECT + 41 + - + 63 col0, - 81 * 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -1738 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(45\)\)\)\) AS col0" at position 0 and "Int64\(79\) \* \(\- CAST\(Int64\(22\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(45\)\)\)\) AS col0" at position 0 and "Int64\(79\) \* \(\- CAST\(Int64\(22\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - MAX ( ALL + 45 ) AS col0, 79 * - CAST ( 22 AS INTEGER ) AS col0 query II rowsort @@ -30410,7 +30410,7 @@ SELECT 6 + + 70 + 59 / + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 3876 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "max\(Int64\(\-76\)\) \* Int64\(\-51\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(Int64\(32\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "max\(Int64\(\-76\)\) \* Int64\(\-51\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(Int64\(32\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 49 AS col2, MAX ( - 76 ) * + - 51 + + COUNT ( * ) / - - CAST ( 32 AS INTEGER ) AS col2 query I rowsort label-5778 @@ -31738,7 +31738,7 @@ SELECT DISTINCT + 45 + - - 16 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(40\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(40\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 89 col2, 40 + - + CAST ( NULL AS INTEGER ) + + 31 AS col2 query I rowsort label-6032 @@ -32034,7 +32034,7 @@ SELECT DISTINCT 95 / - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6731 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-68\) \+ Int64\(1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \- nullif\(Int64\(89\), Int64\(\-71\) \+ Int64\(40\) \- Int64\(70\)\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-68\) \+ Int64\(1\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \- nullif\(Int64\(89\), Int64\(\-71\) \+ Int64\(40\) \- Int64\(70\)\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 99 * - 68 + + 1 AS col1, + CAST ( NULL AS INTEGER ) - + NULLIF ( + 89, + - 71 + + 40 - + 70 ) / 75 AS col1 query I rowsort @@ -32114,7 +32114,7 @@ SELECT ALL 93 * 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 query I rowsort @@ -33479,7 +33479,7 @@ SELECT ALL 96 * - - 57 * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 * + - CAST ( NULL AS INTEGER ) AS col2, + 95 AS col2 query I rowsort label-6369 @@ -37558,7 +37558,7 @@ SELECT ALL 57 * + + COUNT ( * ) # Datafusion - Expected - 1528 # Datafusion - Expected - -82 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- Int64\(\-42\)\) \+ Int64\(57\) \- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- Int64\(\-42\)\) \+ Int64\(57\) \- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 35 * - - 42 + + 57 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2, - 82 AS col2, - + 57 query I rowsort @@ -38225,7 +38225,7 @@ SELECT COUNT ( * ) * + 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(1\), Int64\(50\)\)\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(1\), Int64\(50\)\)\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - CAST ( NULL AS INTEGER ) ) + + 15 + + - COUNT ( * ) * - NULLIF ( + + 1, 50 ) col2, - 63 AS col2 query I rowsort label-7274 @@ -39475,7 +39475,7 @@ SELECT 17 + 25 + - 44 # Datafusion - Expected - 32 # Datafusion - Expected - -56 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "count\(Int64\(88\)\) \* \(\- CAST\(Int64\(\-58\) AS Int32\)\) / \(\- Int64\(97\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "count\(Int64\(88\)\) \* \(\- CAST\(Int64\(\-58\) AS Int64\)\) / \(\- Int64\(97\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 AS col1, + COUNT ( + 88 ) * - ( + + CAST ( - 58 AS INTEGER ) ) / - ( 97 ) + + - 56 AS col1, + SUM ( DISTINCT 55 ) query I rowsort label-7513 @@ -39737,7 +39737,7 @@ SELECT ALL + NULLIF ( - CAST ( ( - - COUNT ( * ) ) AS INTEGER ), + 1 * - 5 + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(6\)\) AS Int32\)\) \+ Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(DISTINCT Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(6\)\) AS Int64\)\) \+ Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(DISTINCT Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - + 6 AS INTEGER ) + + 80 AS col1, COUNT ( * ) + + SUM ( DISTINCT + - 24 ) col1 query I rowsort label-7563 @@ -40060,7 +40060,7 @@ SELECT DISTINCT 54 + + + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 336168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-56\) \* Int64\(\-69\) \* max\(\(\- Int64\(\-87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-56\) \* Int64\(\-69\) \* max\(\(\- Int64\(\-87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 58 + + CAST ( NULL AS INTEGER ) col2, - 56 * - 69 * + MAX ( - - 87 ) AS col2 query I rowsort @@ -40158,7 +40158,7 @@ SELECT - SUM ( 16 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- coalesce\(Int64\(89\), Int64\(60\) \* Int64\(\-19\) \+ \(\- Int64\(6\)\)\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE Int64\(\-45\) WHEN Int64\(47\) THEN count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(14\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(\(\- Int64\(44\)\)\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- coalesce\(Int64\(89\), Int64\(60\) \* Int64\(\-19\) \+ \(\- Int64\(6\)\)\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE Int64\(\-45\) WHEN Int64\(47\) THEN count\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(14\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(\(\- Int64\(44\)\)\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MIN ( - COALESCE ( 89, + 60 * - 19 + + ( - + 6 ) ) ) / + COUNT ( * ) AS col2, 18 * - CASE - 45 WHEN 47 THEN + + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * 14 + - - COUNT ( * ) + - COUNT ( ALL - + 44 ) ELSE NULL END col2 query I rowsort @@ -40174,7 +40174,7 @@ SELECT ALL - + 0 * + ( + - 57 ) + + 45 + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1709 # Datafusion - Expected - 4660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(78\) \+ Int64\(\-85\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-69\)\), \(\- CAST\(Int64\(\-92\) AS Int32\)\)\) \* Int64\(68\) \+ coalesce\(Int64\(\-32\), Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(78\) \+ Int64\(\-85\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-69\)\), \(\- CAST\(Int64\(\-92\) AS Int64\)\)\) \* Int64\(68\) \+ coalesce\(Int64\(\-32\), Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 23 * + 78 + - 85 col1, + COALESCE ( - ( - 69 ), - CAST ( - 92 AS INTEGER ) ) * 68 + + COALESCE ( + - 32, + ( + + 84 ) ) AS col1 # Datafusion - Datafusion expected results: @@ -40224,7 +40224,7 @@ SELECT - 99 * - 33 - + ( + NULLIF ( - 50, 16 * - CASE - 19 WHEN + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(\-78\)\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(21\) / Int64\(\-51\) \* Int64\(\-62\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(\-78\)\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(21\) / Int64\(\-51\) \* Int64\(\-62\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 32 * COUNT ( * ) + + COUNT ( + - 78 ) + + 62 AS col2, 21 / - 51 * - 62 * + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -45996,7 +45996,7 @@ SELECT ALL - 70 * - + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3787 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(40\) \+ Int64\(67\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-63\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(40\) \+ Int64\(67\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-63\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 * + 40 + 67 AS col0, + CAST ( - - 63 AS INTEGER ) AS col0 query I rowsort @@ -48340,7 +48340,7 @@ SELECT COUNT ( * ) * - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(73\) AS col0" at position 0 and "count\(DISTINCT \(\- \(\- \(\- CAST\(Int64\(16\) AS Int32\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(73\) AS col0" at position 0 and "count\(DISTINCT \(\- \(\- \(\- CAST\(Int64\(16\) AS Int64\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( 29 ) + + 73 AS col0, COUNT ( DISTINCT - - ( + - CAST ( + 16 AS INTEGER ) ) ) AS col0 query I rowsort label-9203 @@ -52397,7 +52397,7 @@ SELECT ALL COUNT ( * ) + - CAST ( - - COUNT ( 93 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 28 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_54.slt b/data/sqlite/random/expr/slt_good_54.slt index 53da9e2..0ade7fe 100644 --- a/data/sqlite/random/expr/slt_good_54.slt +++ b/data/sqlite/random/expr/slt_good_54.slt @@ -718,7 +718,7 @@ SELECT ALL - + NULLIF ( 24, + - 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + COALESCE ( 52, - - COUNT ( * ) * + 73 ) AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) col0 query I rowsort label-133 @@ -1251,7 +1251,7 @@ SELECT ALL CAST ( + 34 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col1, + 34 AS col1 query I rowsort label-236 @@ -2949,7 +2949,7 @@ SELECT MIN ( ALL + - 66 ) / + - 28 + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 55 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-566 @@ -6953,7 +6953,7 @@ SELECT DISTINCT - 62 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-1343 @@ -7851,7 +7851,7 @@ SELECT DISTINCT - COALESCE ( - - COUNT ( * ), + 84 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / max\(DISTINCT \(\- Int64\(87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "CAST\(NULL AS Int64\) / max\(DISTINCT \(\- Int64\(87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 AS col2, CAST ( NULL AS INTEGER ) / MAX ( DISTINCT - + 87 ) AS col2 query I rowsort label-1516 @@ -12052,7 +12052,7 @@ SELECT ALL - ( - + 65 ) + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 22 + + 55 AS col1 query I rowsort label-2335 @@ -15786,7 +15786,7 @@ SELECT DISTINCT 73 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 + CAST ( NULL AS INTEGER ) AS col0, ( 4 ) AS col0 # Datafusion - Types were automatically converted from: @@ -17666,7 +17666,7 @@ SELECT ALL + MIN ( - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT ALL + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3429 @@ -21306,7 +21306,7 @@ SELECT - 49 + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 query I rowsort label-4133 @@ -21337,7 +21337,7 @@ SELECT ALL ( + 84 ) * + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 0 and "Int64\(49\) / \(\- Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int64\)\) AS col2" at position 0 and "Int64\(49\) / \(\- Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + 35 AS INTEGER ) AS col2, 49 / - + 68 AS col2 query I rowsort label-4139 @@ -22096,7 +22096,7 @@ SELECT + 34 + + MIN ( + 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 36 AS col1 query I rowsort @@ -24455,7 +24455,7 @@ SELECT DISTINCT - 89 / + ( + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 75 AS col0, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -27783,7 +27783,7 @@ SELECT DISTINCT 92 * + - ( 49 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 AS col1, CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-5385 @@ -32319,7 +32319,7 @@ SELECT DISTINCT + - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "CAST\(Int64\(14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "CAST\(Int64\(14\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( + 14 AS INTEGER ) AS col2 query I rowsort label-6266 @@ -36239,7 +36239,7 @@ SELECT + 20 * + + ( 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT MAX ( + ( - + 95 ) ) AS col0, 91 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 67 AS col0 query II rowsort @@ -38318,7 +38318,7 @@ SELECT ALL - CAST ( + - 5 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int64\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 4 AS INTEGER ), - 4 query I rowsort @@ -47427,7 +47427,7 @@ SELECT DISTINCT 0 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col0 query I rowsort @@ -47692,7 +47692,7 @@ SELECT - 82 * - COUNT ( 36 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) query I rowsort @@ -50191,7 +50191,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- Int64\(\-87\)\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / \(\- Int64\(\-87\)\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) / - - 87 + - + 43 AS col1, + 23 + 58 AS col1 query I rowsort @@ -51133,7 +51133,7 @@ SELECT + NULLIF ( - 4, + 83 ) * - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-38\) AS Int32\) AS col1" at position 0 and "Int64\(29\) / Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-38\) AS Int64\) AS col1" at position 0 and "Int64\(29\) / Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 38 AS INTEGER ) col1, + 29 / - 33 AS col1 query I rowsort label-9907 diff --git a/data/sqlite/random/expr/slt_good_55.slt b/data/sqlite/random/expr/slt_good_55.slt index 50ea41e..a0b1198 100644 --- a/data/sqlite/random/expr/slt_good_55.slt +++ b/data/sqlite/random/expr/slt_good_55.slt @@ -3559,7 +3559,7 @@ SELECT CAST ( 26 AS INTEGER ) - ( - - COUNT ( - + 73 ) ) * + 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-40\) \+ max\(Int64\(62\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-40\) \+ max\(Int64\(62\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 40 + + MAX ( + 62 ) AS col2, 97 AS col2 query I rowsort label-672 @@ -6372,7 +6372,7 @@ SELECT + + 43 - - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(NULL AS Int32\) \* \(\- CAST\(\(\- coalesce\(Int64\(11\), \(\- CASE avg\(DISTINCT Int64\(67\)\) WHEN Int64\(54\) \* min\(Int64\(81\)\) \- Int64\(43\) THEN NULL WHEN Int64\(42\) \- Int64\(79\) THEN Int64\(67\) / avg\(Int64\(\-5\)\) ELSE NULL END\) \+ coalesce\(Int64\(44\) \+ Int64\(59\) \* \(\- sum\(Int64\(32\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(NULL AS Int64\) \* \(\- CAST\(\(\- coalesce\(Int64\(11\), \(\- CASE avg\(DISTINCT Int64\(67\)\) WHEN Int64\(54\) \* min\(Int64\(81\)\) \- Int64\(43\) THEN NULL WHEN Int64\(42\) \- Int64\(79\) THEN Int64\(67\) / avg\(Int64\(\-5\)\) ELSE NULL END\) \+ coalesce\(Int64\(44\) \+ Int64\(59\) \* \(\- sum\(Int64\(32\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 64 AS col1, + 75 * CAST ( NULL AS INTEGER ) * - CAST ( - COALESCE ( 11, - CASE AVG ( DISTINCT 67 ) WHEN 54 * MIN ( ALL + 81 ) - 43 THEN NULL WHEN 42 - + 79 THEN 67 / + AVG ( ALL - 5 ) ELSE NULL END + + COALESCE ( 44 + 59 * - SUM ( + 32 ), + COUNT ( * ) ) ) AS INTEGER ) AS col1 query I rowsort label-1208 @@ -8779,7 +8779,7 @@ SELECT DISTINCT 72 + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(45\) \+ Int64\(23\) \+ Int64\(31\) \+ Int64\(80\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(45\) \+ Int64\(23\) \+ Int64\(31\) \+ Int64\(80\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 * - + COUNT ( * ) + 45 + 23 + 31 + 80 + + CAST ( NULL AS INTEGER ) col2, 35 AS col2 query II rowsort @@ -10268,7 +10268,7 @@ SELECT 49 * ( 26 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "CAST\(Int64\(29\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "CAST\(Int64\(29\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 92 AS col1, CAST ( + 29 AS INTEGER ) AS col1 query II rowsort @@ -10751,7 +10751,7 @@ SELECT + 12 - - COUNT ( * ) col2, 46 * - - 22 + + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9009 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- sum\(Int64\(\-91\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(30\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- sum\(Int64\(\-91\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(30\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 99 * - + SUM ( - 91 ) AS col0, - CAST ( + 30 AS INTEGER ) col0 query I rowsort label-2041 @@ -11606,7 +11606,7 @@ SELECT ALL - COUNT ( * ) + + 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(47\)\)\) AS col2" at position 0 and "\(\- Int64\(18\)\) \- \(\- Int64\(\-96\)\) \+ Int64\(\-2\) \* Int64\(\-16\) / Int64\(26\) \+ Int64\(49\) \+ Int64\(37\) \+ min\(DISTINCT Int64\(\-30\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(47\)\)\) AS col2" at position 0 and "\(\- Int64\(18\)\) \- \(\- Int64\(\-96\)\) \+ Int64\(\-2\) \* Int64\(\-16\) / Int64\(26\) \+ Int64\(49\) \+ Int64\(37\) \+ min\(DISTINCT Int64\(\-30\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( ALL + 47 ) AS col2, - ( + 18 ) - - ( + - 96 ) + - 2 * - 16 / + 26 + 49 + + 37 + + MIN ( DISTINCT + - 30 ) * - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -11864,7 +11864,7 @@ SELECT - 17 / 20 / - 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6270 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* sum\(CAST\(Int64\(34\) AS Int32\)\) \+ Int64\(7\) \* Int64\(63\) \* Int64\(\-12\) \+ Int64\(64\) / Int64\(8\) AS col2" at position 0 and "Int64\(63\) / Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* sum\(CAST\(Int64\(34\) AS Int64\)\) \+ Int64\(7\) \* Int64\(63\) \* Int64\(\-12\) \+ Int64\(64\) / Int64\(8\) AS col2" at position 0 and "Int64\(63\) / Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 29 * SUM ( CAST ( + + 34 AS INTEGER ) ) + + + 7 * + 63 * - 12 + + 64 / 8 AS col2, 63 / + - 4 AS col2 query I rowsort label-2249 @@ -12278,7 +12278,7 @@ SELECT - 98 * + NULLIF ( + 40, - 2 * + + 4 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-48\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-48\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 AS col2, + CAST ( - - 48 AS INTEGER ) AS col2 query I rowsort @@ -12299,7 +12299,7 @@ SELECT DISTINCT - 65 + 16 + - + 4 - + + 33 / - + 98 + - 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(1\)\) \+ CAST\(\(\- \(\- coalesce\(Int64\(76\), Int64\(7\)\)\)\) AS Int32\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(1\)\) \+ CAST\(\(\- \(\- coalesce\(Int64\(76\), Int64\(7\)\)\)\) AS Int64\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 32 + - + 1 + CAST ( - - COALESCE ( 76, 7 ) AS INTEGER ) AS col0, + 46 AS col0 query II rowsort @@ -13244,7 +13244,7 @@ SELECT ALL - 64 * + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "CAST\(nullif\(Int64\(15\), Int64\(\-67\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "CAST\(nullif\(Int64\(15\), Int64\(\-67\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) - 73 + - - 57 AS col1, CAST ( + NULLIF ( 15, - 67 ) AS INTEGER ) AS col1 query I rowsort @@ -13919,7 +13919,7 @@ SELECT ALL - 35, + COUNT ( * ) AS col2, 32 AS col2 # Datafusion - Expected - -74 # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 1 and "CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 1 and "CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 74, 87 col1, + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -17968,7 +17968,7 @@ SELECT 61 + - + COUNT ( * ) AS col2, 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(91\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(59\) ELSE NULL END\) AS col0" at position 0 and "Int64\(30\) \* Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(91\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(59\) ELSE NULL END\) AS col0" at position 0 and "Int64\(30\) \* Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE + 91 WHEN - CAST ( NULL AS INTEGER ) THEN + 59 ELSE NULL END AS col0, + 30 * - 46 AS col0 query I rowsort label-3419 @@ -18205,7 +18205,7 @@ SELECT + ( - 62 ) * 13 - - + 31 + - 89 * 26 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-70\), \(\- Int64\(44\)\) \+ \(\- coalesce\(Int64\(50\), Int64\(43\), Int64\(18\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(35\) \* Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-70\), \(\- Int64\(44\)\) \+ \(\- coalesce\(Int64\(50\), Int64\(43\), Int64\(18\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(35\) \* Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( - 70, - + 44 + - ( + + COALESCE ( 50, + 43, + + 18 ) ) ) AS col0, CAST ( NULL AS INTEGER ) * + ( + 35 ) * - 63 AS col0 query I rowsort @@ -19030,7 +19030,7 @@ SELECT 99 * + 1 + ( + 44 ) + + NULLIF ( - 73, ( - 59 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(NULL AS Int32\), Int64\(55\) \* Int64\(\-38\) \+ Int64\(10\) \+ avg\(Int64\(48\)\) \* Int64\(\-95\) \* \(\- Int64\(\-62\)\)\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(53\)\) \* \(\- Int64\(\-11\)\)\) AS col2" at position 0 and "\(\- Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(NULL AS Int64\), Int64\(55\) \* Int64\(\-38\) \+ Int64\(10\) \+ avg\(Int64\(48\)\) \* Int64\(\-95\) \* \(\- Int64\(\-62\)\)\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(53\)\) \* \(\- Int64\(\-11\)\)\) AS col2" at position 0 and "\(\- Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), 55 * - 38 + + 10 + AVG ( 48 ) * + - 95 * - - 62 ) * NULLIF ( + COUNT ( * ), + - ( + 53 ) * - - 11 ) AS col2, - ( + 23 ) AS col2 query II rowsort label-3620 @@ -19789,7 +19789,7 @@ SELECT ALL - MAX ( + 80 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(16\) AS col1" at position 0 and "Int64\(52\) \- CAST\(NULL AS Int32\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(16\) AS col1" at position 0 and "Int64\(52\) \- CAST\(NULL AS Int64\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 * + 16 col1, 52 - CAST ( NULL AS INTEGER ) + 93 AS col1 query I rowsort label-3767 @@ -20430,7 +20430,7 @@ SELECT ALL 26 AS col1, - ( + 17 ) + 57 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -2385 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "CAST\(\(\- Int64\(45\)\) AS Int32\) \* Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "CAST\(\(\- Int64\(45\)\) AS Int64\) \* Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 28 AS col2, CAST ( - + 45 AS INTEGER ) * + 53 AS col2 query I rowsort label-3887 @@ -21037,7 +21037,7 @@ SELECT + - 5 + 71 + 54 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, + ( 57 ) AS col1 query I rowsort label-4003 @@ -21801,7 +21801,7 @@ SELECT 58 * - + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(78\) \+ Int64\(\-6\) \- CASE \(\- CAST\(NULL AS Int32\)\) WHEN \(\- Int64\(74\)\) THEN Int64\(96\) \* \(\- max\(DISTINCT Int64\(21\)\)\) \* Int64\(\-62\) \- CASE Int64\(\-23\) WHEN Int64\(\-38\) \* Int64\(98\) / Int64\(\-70\) \* Int64\(26\) THEN Int64\(\-45\) \* coalesce\(Int64\(49\), Int64\(36\)\) \* Int64\(\-24\) \* \(\- min\(nullif\(Int64\(\-40\), Int64\(1\)\)\)\) ELSE NULL END \+ Int64\(5\) END \+ Int64\(\-50\) \+ Int64\(79\) \* Int64\(\-6\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(78\) \+ Int64\(\-6\) \- CASE \(\- CAST\(NULL AS Int64\)\) WHEN \(\- Int64\(74\)\) THEN Int64\(96\) \* \(\- max\(DISTINCT Int64\(21\)\)\) \* Int64\(\-62\) \- CASE Int64\(\-23\) WHEN Int64\(\-38\) \* Int64\(98\) / Int64\(\-70\) \* Int64\(26\) THEN Int64\(\-45\) \* coalesce\(Int64\(49\), Int64\(36\)\) \* Int64\(\-24\) \* \(\- min\(nullif\(Int64\(\-40\), Int64\(1\)\)\)\) ELSE NULL END \+ Int64\(5\) END \+ Int64\(\-50\) \+ Int64\(79\) \* Int64\(\-6\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 AS col1, 78 + - 6 - + CASE - CAST ( NULL AS INTEGER ) WHEN - + 74 THEN + 96 * + - MAX ( DISTINCT 21 ) * - 62 - + CASE + ( - 23 ) WHEN - 38 * 98 / - 70 * + + 26 THEN + - 45 * + COALESCE ( 49, + 36 ) * + - 24 * - MIN ( ALL + NULLIF ( - 40, + 1 ) ) ELSE NULL END + 5 END + - 50 + 79 * + - 6 + + - COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) col1 query I rowsort @@ -22622,7 +22622,7 @@ SELECT ALL + 77 * 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 302288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-92\) \+ Int64\(70\) \* \(\- \(\- coalesce\(Int64\(45\), \(\- min\(DISTINCT Int64\(\-65\)\)\) \* \(\- CASE \(\- Int64\(87\)\) WHEN CASE Int64\(38\) WHEN count\(Int64\(\-95\)\) THEN NULL WHEN Int64\(16\) THEN Int64\(43\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL WHEN Int64\(\-36\) THEN Int64\(5\) \+ Int64\(11\) END \+ Int64\(\-67\) THEN Int64\(\-13\) WHEN Int64\(0\) THEN NULL ELSE NULL END\), Int64\(\-44\), Int64\(29\) \+ Int64\(44\) \+ Int64\(21\)\)\)\) \* Int64\(96\) \+ \(\- Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-92\) \+ Int64\(70\) \* \(\- \(\- coalesce\(Int64\(45\), \(\- min\(DISTINCT Int64\(\-65\)\)\) \* \(\- CASE \(\- Int64\(87\)\) WHEN CASE Int64\(38\) WHEN count\(Int64\(\-95\)\) THEN NULL WHEN Int64\(16\) THEN Int64\(43\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN NULL WHEN Int64\(\-36\) THEN Int64\(5\) \+ Int64\(11\) END \+ Int64\(\-67\) THEN Int64\(\-13\) WHEN Int64\(0\) THEN NULL ELSE NULL END\), Int64\(\-44\), Int64\(29\) \+ Int64\(44\) \+ Int64\(21\)\)\)\) \* Int64\(96\) \+ \(\- Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 57 col2, COUNT ( * ) + - 92 + + 70 * + - ( - COALESCE ( + 45, - + MIN ( DISTINCT - 65 ) * - CASE - + 87 WHEN CASE 38 WHEN COUNT ( - 95 ) THEN NULL WHEN 16 THEN + 43 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 36 THEN + 5 + + 11 END + - 67 THEN - 13 WHEN + 0 THEN NULL ELSE NULL END, - 44, + 29 + 44 + + 21 ) ) * 96 + - + 21 AS col2 query I rowsort label-4306 @@ -22725,7 +22725,7 @@ SELECT + 56 * 60 * + ( - 0 ), - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2196 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-36\) AS col1" at position 0 and "Int64\(\-34\) \+ \(\- Int64\(\-41\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-36\) AS col1" at position 0 and "Int64\(\-34\) \+ \(\- Int64\(\-41\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 * - 36 AS col1, - 34 + - - 41 * - CAST ( NULL AS INTEGER ) AS col1 query III rowsort @@ -23493,7 +23493,7 @@ SELECT MAX ( + ( + 81 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(87\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(87\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 * - CAST ( NULL AS INTEGER ) + 87 col2, + 40 AS col2 query I rowsort label-4471 @@ -24236,7 +24236,7 @@ SELECT + - 82 * - - 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int64\)\) \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( + CAST ( NULL AS INTEGER ) ) * 34 col2 # Datafusion - Types were automatically converted from: @@ -25523,7 +25523,7 @@ SELECT - 46 + - 81 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CAST\(Int64\(\-31\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CAST\(Int64\(\-31\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 27 AS col0, CAST ( - 31 AS INTEGER ) col0 query I rowsort @@ -27755,7 +27755,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4958 # Datafusion - Expected - 412645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int32\) \+ Int64\(56\) \* Int64\(87\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- \(\- Int64\(\-77\)\)\) \* Int64\(16\) \* Int64\(\-5\) \+ Int64\(34\) \+ Int64\(\-48\) \+ Int64\(\-18\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int64\) \+ Int64\(56\) \* Int64\(87\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- \(\- Int64\(\-77\)\)\) \* Int64\(16\) \* Int64\(\-5\) \+ Int64\(34\) \+ Int64\(\-48\) \+ Int64\(\-18\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( 86 AS INTEGER ) + + 56 * + 87 AS col0, 67 * - - COUNT ( * ) * + - ( - - 77 ) * 16 * + - 5 + 34 + - 48 + - 18 + - 43 AS col0 query I rowsort label-5289 @@ -30361,7 +30361,7 @@ SELECT - - 43 + + COALESCE ( + 10, + - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\)" at position 0 and "\(\- CAST\(NULL AS Int64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) query II rowsort label-5781 @@ -30483,7 +30483,7 @@ SELECT 56 + + 7, 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- count\(\(\- Int64\(68\)\)\)\) / Int64\(\-98\) \+ CAST\(NULL AS Int32\) \* Int64\(\-96\) \- coalesce\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\), Int64\(39\) \- count\(Int64\(90\)\) \+ Int64\(\-72\)\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- count\(\(\- Int64\(68\)\)\)\) / Int64\(\-98\) \+ CAST\(NULL AS Int64\) \* Int64\(\-96\) \- coalesce\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\), Int64\(39\) \- count\(Int64\(90\)\) \+ Int64\(\-72\)\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 38 - - COUNT ( - ( 68 ) ) / - 98 + + CAST ( NULL AS INTEGER ) * - 96 - COALESCE ( - 36, COUNT ( * ), + 39 - COUNT ( ALL + + 90 ) + - 72 ) AS col0, + 71 + - 51 AS col0 query I rowsort label-5804 @@ -31036,7 +31036,7 @@ SELECT - MIN ( DISTINCT + 64 ) * + - 34 * 28 * + 39 * + 60 + + 65 # Datafusion - Expected - -4266 # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(36\) \* CAST\(NULL AS Int32\) \* Int64\(\-63\) \+ Int64\(\-80\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(36\) \* CAST\(NULL AS Int64\) \* Int64\(\-63\) \+ Int64\(\-80\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 79 * - 54 AS col2, 36 * + CAST ( NULL AS INTEGER ) * - 63 + + + ( - 80 ) * - 75 col2, + + 38 AS col0 query I rowsort label-5908 @@ -33786,7 +33786,7 @@ SELECT MIN ( DISTINCT - + 63 ) * - + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(85\) / Int64\(68\) \* Int64\(\-72\) \* Int64\(98\) \* Int64\(88\) \* \(\- \(\- CASE Int64\(0\) WHEN Int64\(8\) \+ CAST\(Int64\(\-5\) AS Int32\) THEN Int64\(85\) END\)\) \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(85\) / Int64\(68\) \* Int64\(\-72\) \* Int64\(98\) \* Int64\(88\) \* \(\- \(\- CASE Int64\(0\) WHEN Int64\(8\) \+ CAST\(Int64\(\-5\) AS Int64\) THEN Int64\(85\) END\)\) \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 54 AS col1, 85 / 68 * - 72 * + 98 * + 88 * - - CASE + 0 WHEN 8 + CAST ( - 5 AS INTEGER ) THEN 85 END * - 61 AS col1 query I rowsort @@ -35521,7 +35521,7 @@ SELECT - - 7 * - - ( 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(87\)\) AS col2" at position 0 and "Int64\(25\) / Int64\(64\) / Int64\(67\) \* \(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-36\) \+ Int64\(72\) \+ Int64\(\-74\) \* Int64\(83\) \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(87\)\) AS col2" at position 0 and "Int64\(25\) / Int64\(64\) / Int64\(67\) \* \(\- sum\(\(\- CAST\(NULL AS Int64\)\)\)\) \* Int64\(\-36\) \+ Int64\(72\) \+ Int64\(\-74\) \* Int64\(83\) \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( ALL + 87 ) AS col2, 25 / + 64 / + 67 * + - SUM ( - CAST ( NULL AS INTEGER ) ) * - 36 + + 72 + - 74 * + 83 * + 57 AS col2 query I rowsort label-6769 @@ -36381,7 +36381,7 @@ SELECT ALL + 22 + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-36\)\) AS Int32\) AS col2" at position 0 and "Int64\(70\) \+ Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-36\)\) AS Int64\) AS col2" at position 0 and "Int64\(70\) \+ Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - - 36 AS INTEGER ) AS col2, 70 + + 53 AS col2 query I rowsort @@ -38849,7 +38849,7 @@ SELECT DISTINCT + 29 + + + ( - 59 ) - + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(36\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(36\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 82 col2, + CAST ( NULL AS INTEGER ) * 36 * + 64 AS col2 query II rowsort @@ -41935,7 +41935,7 @@ SELECT ALL + CAST ( 30 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(4\) AS Int32\)\) \* Int64\(\-20\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(4\) AS Int64\)\) \* Int64\(\-20\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 4 AS INTEGER ) * - 20 col0, + 70 AS col0 query I rowsort label-7995 @@ -42567,7 +42567,7 @@ SELECT 40 * COUNT ( DISTINCT - - 73 ) * - COUNT ( * ) + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(76\) \- Int64\(71\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(87\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(76\) \- Int64\(71\) \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(87\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 2 * + + 76 - 71 - + - CAST ( NULL AS INTEGER ) * + ( 87 ) col2, 75 col2 query I rowsort label-8118 @@ -45675,7 +45675,7 @@ SELECT ALL + - ( 84 ) + - + MIN ( DISTINCT + 87 ) * + + 85 - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "nullif\(Int64\(\-35\), CASE Int64\(34\) WHEN Int64\(\-92\) \+ CAST\(NULL AS Float64\) THEN Int64\(42\) ELSE \(\- \(\- min\(Int64\(42\)\)\)\) END \* Int64\(62\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- max\(Int64\(42\)\)\)\) \* Int64\(9\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "nullif\(Int64\(\-35\), CASE Int64\(34\) WHEN Int64\(\-92\) \+ CAST\(NULL AS Float64\) THEN Int64\(42\) ELSE \(\- \(\- min\(Int64\(42\)\)\)\) END \* Int64\(62\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) / \(\- max\(Int64\(42\)\)\)\) \* Int64\(9\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) AS col2, + NULLIF ( - 35, CASE 34 WHEN - 92 + + CAST ( NULL AS FLOAT8 ) THEN 42 ELSE - - MIN ( 42 ) END * + 62 * - - CAST ( NULL AS INTEGER ) / - MAX ( 42 ) ) * + 9 * 25 AS col2 query I rowsort @@ -47346,7 +47346,7 @@ SELECT - 91 * + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / \(\- Int64\(44\)\) \* sum\(Int64\(69\)\) / Int64\(21\) \+ Int64\(\-99\) \- \(\- Int64\(\-52\)\) \+ Int64\(56\) \+ Int64\(\-51\) \* count\(nullif\(Int64\(77\), \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "CAST\(NULL AS Int64\) / \(\- Int64\(44\)\) \* sum\(Int64\(69\)\) / Int64\(21\) \+ Int64\(\-99\) \- \(\- Int64\(\-52\)\) \+ Int64\(56\) \+ Int64\(\-51\) \* count\(nullif\(Int64\(77\), \(\- CAST\(CAST\(NULL AS Int64\) AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 29 AS col2, + CAST ( NULL AS INTEGER ) / - + 44 * + + SUM ( ALL 69 ) / + 21 + - 99 - - - 52 + 56 + - 51 * COUNT ( + NULLIF ( 77, + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) col2 query I rowsort @@ -48948,7 +48948,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -123 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(\-71\) AS col1" at position 0 and "min\(CAST\(\(\- nullif\(Int64\(63\), Int64\(88\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(\-71\) AS col1" at position 0 and "min\(CAST\(\(\- nullif\(Int64\(63\), Int64\(88\)\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - 52 ) + + ( - 71 ) AS col1, MIN ( CAST ( + - NULLIF ( 63, 88 ) AS INTEGER ) ) AS col1 query I rowsort @@ -51518,7 +51518,7 @@ SELECT ALL + + 50 - - ( - 9 ) + - - 14 * + + NULLIF ( - 89, COUNT ( * ) * - - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 35 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_56.slt b/data/sqlite/random/expr/slt_good_56.slt index 6239de4..a8aa2d8 100644 --- a/data/sqlite/random/expr/slt_good_56.slt +++ b/data/sqlite/random/expr/slt_good_56.slt @@ -216,7 +216,7 @@ SELECT DISTINCT - + MAX ( ALL + ( 71 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(90\) \* \(\- nullif\(Int64\(41\), min\(DISTINCT Int64\(84\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(90\) \* \(\- nullif\(Int64\(41\), min\(DISTINCT Int64\(84\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1, + 90 * + - NULLIF ( 41, + MIN ( DISTINCT 84 ) ) col1 query I rowsort @@ -435,7 +435,7 @@ SELECT DISTINCT + 18 * + - 66 * + 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-75\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-75\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 93 AS col1, - CAST ( - 75 AS INTEGER ) AS col1 query II rowsort label-77 @@ -924,7 +924,7 @@ SELECT ALL - - 89 + - NULLIF ( + 87, - 7 ) + + ( - + 91 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\) \- Int64\(95\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int64\) \- Int64\(95\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 4 AS INTEGER ) - + 95 AS col1, 42 AS col1 query I rowsort @@ -3922,7 +3922,7 @@ SELECT ALL 61 * + - 66 * - CAST ( 64 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(49\) \+ Int64\(17\) AS col1" at position 0 and "CAST\(Int64\(\-45\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(49\) \+ Int64\(17\) AS col1" at position 0 and "CAST\(Int64\(\-45\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 46 / 49 + + 17 AS col1, CAST ( + + ( + - 45 ) AS INTEGER ) AS col1 query I rowsort label-740 @@ -5980,7 +5980,7 @@ SELECT DISTINCT + COUNT ( * ) * + 44 / + 14 - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(95\) WHEN Int64\(\-39\) THEN Int64\(37\) WHEN Int64\(\-95\) \+ Int64\(18\) THEN NULL ELSE Int64\(4\) \+ Int64\(10\) END AS Int32\) AS col1" at position 0 and "Int64\(99\) \- Int64\(75\) \* \(\- Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(95\) WHEN Int64\(\-39\) THEN Int64\(37\) WHEN Int64\(\-95\) \+ Int64\(18\) THEN NULL ELSE Int64\(4\) \+ Int64\(10\) END AS Int64\) AS col1" at position 0 and "Int64\(99\) \- Int64\(75\) \* \(\- Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( CASE + 95 WHEN + - 39 THEN 37 WHEN - 95 + + + 18 THEN NULL ELSE + 4 + 10 END AS INTEGER ) AS col1, 99 - 75 * - + 23 AS col1 query I rowsort @@ -7381,7 +7381,7 @@ SELECT CAST ( + 39 AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3393 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(88\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(\-91\) \* \(\- count\(Int64\(\-61\) \+ CAST\(Int64\(82\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(88\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(\-91\) \* \(\- count\(Int64\(\-61\) \+ CAST\(Int64\(82\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT ( - 61 + + CAST ( 82 AS INTEGER ) ) AS col2 query I rowsort @@ -9319,7 +9319,7 @@ SELECT ALL 99 - + + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-8\)\) AS col0" at position 0 and "Int64\(2\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-8\)\) AS col0" at position 0 and "Int64\(2\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 8 AS col0, 2 * - CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -10203,7 +10203,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1868 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int32\)\) \+ \(\- count\(Int64\(76\)\)\) \- Int64\(93\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int64\)\) \+ \(\- count\(Int64\(76\)\)\) \- Int64\(93\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + 84 AS INTEGER ) + - COUNT ( 76 ) - + 93 * - 21 AS col2, - 42 AS col2 query I rowsort label-1940 @@ -11952,7 +11952,7 @@ SELECT ALL + 65 * ( + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(93\) \- Int64\(79\) \* CAST\(NULL AS Int32\) \* \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(65\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(93\) \- Int64\(79\) \* CAST\(NULL AS Int64\) \* \(\- \(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(65\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 9 + 93 - + 79 * + + CAST ( NULL AS INTEGER ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col1, - NULLIF ( ( + 65 ), - + COUNT ( * ) ) AS col1 query I rowsort label-2268 @@ -19826,7 +19826,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(22\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-82\)\) / Int64\(61\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(22\) \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(\-82\)\) / Int64\(61\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 AS col0, 22 * - CAST ( NULL AS INTEGER ) + - - 82 / + 61 * + 76 AS col0 query II rowsort @@ -20204,7 +20204,7 @@ SELECT + ( - 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "coalesce\(Int64\(15\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-84\) \* \(\- Int64\(10\)\) \+ \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "coalesce\(Int64\(15\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-84\) \* \(\- Int64\(10\)\) \+ \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 56 AS col1, COALESCE ( 15, + + COUNT ( * ) / + - 84 * - + 10 + - + CAST ( NULL AS INTEGER ) ) AS col1 query II rowsort label-3846 @@ -21243,7 +21243,7 @@ SELECT ALL - + 85 - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(\-85\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ \(\- Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(\-85\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ \(\- Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 col0, - 85 * CAST ( - COUNT ( * ) AS INTEGER ) + - - 77 col0 query I rowsort @@ -22129,7 +22129,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -1601 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-78\) \- \(\- \(\- Int64\(96\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(89\)\) \* nullif\(Int64\(18\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(47\) \- \(\- CASE \(\- \(\- avg\(DISTINCT CAST\(Int64\(99\) AS Int32\)\)\)\) WHEN Int64\(84\) THEN Int64\(40\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-78\) \- \(\- \(\- Int64\(96\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(89\)\) \* nullif\(Int64\(18\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(47\) \- \(\- CASE \(\- \(\- avg\(DISTINCT CAST\(Int64\(99\) AS Int64\)\)\)\) WHEN Int64\(84\) THEN Int64\(40\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 75 + - 78 - - ( - + 96 ) AS col2, + COUNT ( * ) + + - ( 89 ) * + NULLIF ( + 18, - COUNT ( * ) * 47 - - CASE - - AVG ( DISTINCT CAST ( 99 AS INTEGER ) ) WHEN + 84 THEN + 40 END ) AS col2 query I rowsort label-4207 @@ -24991,7 +24991,7 @@ SELECT DISTINCT - ( + COUNT ( * ) ) * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(63\) AS col1" at position 0 and "\(\- Int64\(10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(63\) AS col1" at position 0 and "\(\- Int64\(10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) * 63 AS col1, - ( 10 ) AS col1 query I rowsort label-4759 @@ -26645,7 +26645,7 @@ SELECT ALL 55 + - MIN ( 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- CAST\(NULL AS Int32\)\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- CAST\(NULL AS Int64\)\) \* CAST\(NULL AS Int64\) \* \(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - 90 AS col0, + 67 * - COUNT ( * ) AS col0 query I rowsort @@ -27370,7 +27370,7 @@ SELECT 43 + - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4284 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-11\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(84\), Int64\(41\) \- Int64\(51\)\)\) \* \(\- Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(\-11\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(84\), Int64\(41\) \- Int64\(51\)\)\) \* \(\- Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * - ( - 11 ) AS col0, - ( + NULLIF ( + 84, + + 41 - 51 ) ) * - + 51 AS col0 query I rowsort label-5209 @@ -28374,7 +28374,7 @@ SELECT - MIN ( DISTINCT - 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- Int64\(51\) \+ Int64\(14\) \+ Int64\(72\) \+ \(\- \(\- Int64\(47\)\)\) \+ Int64\(\-3\) / CAST\(Int64\(67\) AS Int32\) \+ Int64\(\-2\) / CAST\(Int64\(81\) AS Int32\) \* Int64\(50\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(78\) \- \(\- Int64\(\-45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- Int64\(51\) \+ Int64\(14\) \+ Int64\(72\) \+ \(\- \(\- Int64\(47\)\)\) \+ Int64\(\-3\) / CAST\(Int64\(67\) AS Int64\) \+ Int64\(\-2\) / CAST\(Int64\(81\) AS Int64\) \* Int64\(50\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(78\) \- \(\- Int64\(\-45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 59 - 51 + 14 + 72 + - - ( 47 ) + - 3 / + CAST ( + 67 AS INTEGER ) + - 2 / + CAST ( + + 81 AS INTEGER ) * + 50 AS col2, CAST ( NULL AS INTEGER ) + + 78 - - - 45 AS col2 query I rowsort @@ -28684,7 +28684,7 @@ SELECT COUNT ( * ) * + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 1058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(71\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(54\) \+ Int64\(\-14\) \* Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(71\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(54\) \+ Int64\(\-14\) \* Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 71 AS INTEGER ) * + - COUNT ( * ) col0, 24 * + ( 54 ) + + ( + - 14 ) * 17 col0 query I rowsort label-5456 @@ -30132,7 +30132,7 @@ SELECT - 11 * - + 30 * 63 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -671810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ coalesce\(Int64\(24\), Int64\(\-3\)\) AS col2" at position 0 and "Int64\(34\) \+ Int64\(98\) \* CAST\(Int64\(77\) AS Int32\) \* Int64\(\-90\) \+ Int64\(96\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ coalesce\(Int64\(24\), Int64\(\-3\)\) AS col2" at position 0 and "Int64\(34\) \+ Int64\(98\) \* CAST\(Int64\(77\) AS Int64\) \* Int64\(\-90\) \+ Int64\(96\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 + + COALESCE ( + 24, - 3 ) AS col2, 34 + + 98 * CAST ( 77 AS INTEGER ) * - 90 + + 96 * + 76 AS col2 query II rowsort @@ -35033,7 +35033,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / CAST\(NULL AS Int32\) \+ nullif\(Int64\(\-28\), Int64\(53\)\) \+ Int64\(43\) AS col1" at position 0 and "Int64\(96\) \+ Int64\(3\) \* count\(Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / CAST\(NULL AS Int64\) \+ nullif\(Int64\(\-28\), Int64\(53\)\) \+ Int64\(43\) AS col1" at position 0 and "Int64\(96\) \+ Int64\(3\) \* count\(Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 62 / CAST ( NULL AS INTEGER ) + + NULLIF ( + - 28, + 53 ) + + 43 AS col1, 96 + ( 3 ) * COUNT ( 75 ) AS col1 query I rowsort @@ -36873,7 +36873,7 @@ SELECT NULLIF ( + + 40, + ( - - 14 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 62 AS col1, - CAST ( NULL AS INTEGER ) * 78 AS col1 query I rowsort @@ -37254,7 +37254,7 @@ SELECT DISTINCT - MAX ( DISTINCT 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(82\)\) AS Int32\) \+ Int64\(45\) \* Int64\(2\) AS col2" at position 0 and "nullif\(Int64\(\-9\), \(\- Int64\(75\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(82\)\) AS Int64\) \+ Int64\(45\) \* Int64\(2\) AS col2" at position 0 and "nullif\(Int64\(\-9\), \(\- Int64\(75\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - + 82 AS INTEGER ) + + 45 * 2 AS col2, NULLIF ( - 9, - ( 75 ) ) AS col2 query I rowsort @@ -39773,7 +39773,7 @@ SELECT DISTINCT - COUNT ( * ) / 2 * + - 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2419 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(25\), \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-38\) \* Int64\(63\) AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(25\), \(\- CAST\(NULL AS Int64\)\)\)\) \+ Int64\(\-38\) \* Int64\(63\) AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( + 25, - CAST ( NULL AS INTEGER ) ) + - 38 * + 63 AS col2, - 58 AS col2 query I rowsort @@ -40322,7 +40322,7 @@ SELECT ALL - 20 * - 9 + + 42 AS col2, - 95 * - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(25\) \+ Int64\(40\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(25\) \+ Int64\(40\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) * 25 + + 40 AS col0, 39 AS col0 query I rowsort label-7672 @@ -40447,7 +40447,7 @@ SELECT + COUNT ( DISTINCT 45 ) * + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(39\) \+ CAST\(Int64\(90\) AS Int32\) \- Int64\(88\) \* Int64\(14\) \+ \(\- Int64\(\-69\)\) \* Int64\(49\) \- Int64\(73\) \+ CAST\(NULL AS Int32\) \+ Int64\(29\) \+ coalesce\(\(\- Int64\(99\)\), Int64\(46\), Int64\(59\) \* Int64\(61\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-2\)\)\) \* Int64\(79\) AS col0" at position 0 and "\(\- Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(39\) \+ CAST\(Int64\(90\) AS Int64\) \- Int64\(88\) \* Int64\(14\) \+ \(\- Int64\(\-69\)\) \* Int64\(49\) \- Int64\(73\) \+ CAST\(NULL AS Int64\) \+ Int64\(29\) \+ coalesce\(\(\- Int64\(99\)\), Int64\(46\), Int64\(59\) \* Int64\(61\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-2\)\)\) \* Int64\(79\) AS col0" at position 0 and "\(\- Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 79 + + 39 + + CAST ( 90 AS INTEGER ) - + 88 * 14 + - - 69 * 49 - 73 + + + CAST ( NULL AS INTEGER ) + + 29 + COALESCE ( - + 99, + 46, 59 * 61 + 80 * COUNT ( * ) / - - 2 ) * + 79 AS col0, ( - - 20 ) AS col0 query I rowsort label-7696 @@ -41088,7 +41088,7 @@ SELECT DISTINCT + 12 * - 82 + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(17\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(17\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) * + 17 col0, 81 AS col0 query I rowsort label-7816 @@ -43817,7 +43817,7 @@ SELECT 20 + + MAX ( ALL + 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "CAST\(CAST\(Int64\(\-34\) AS Int32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "CAST\(CAST\(Int64\(\-34\) AS Int64\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 65 AS col0, CAST ( CAST ( - 34 AS INTEGER ) AS INTEGER ) AS col0 query I rowsort label-8341 @@ -46294,7 +46294,7 @@ SELECT ALL + 18 + - - 97 - - 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ Int64\(61\) \+ \(\- \(\- CASE Int64\(\-75\) WHEN Int64\(14\) / \(\- CAST\(NULL AS Int32\)\) THEN Int64\(81\) END\)\) AS col2" at position 0 and "Int64\(\-51\) \* nullif\(\(\- \(\- CAST\(Int64\(80\) AS Int32\)\)\), Int64\(\-62\)\) \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ Int64\(61\) \+ \(\- \(\- CASE Int64\(\-75\) WHEN Int64\(14\) / \(\- CAST\(NULL AS Int64\)\) THEN Int64\(81\) END\)\) AS col2" at position 0 and "Int64\(\-51\) \* nullif\(\(\- \(\- CAST\(Int64\(80\) AS Int64\)\)\), Int64\(\-62\)\) \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 7 + + 61 + - - CASE - 75 WHEN 14 / - CAST ( NULL AS INTEGER ) THEN + 81 END AS col2, - 51 * NULLIF ( - - CAST ( + + 80 AS INTEGER ), - 62 ) + + - 31 col2 query I rowsort label-8815 @@ -47093,7 +47093,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-74\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- coalesce\(Int64\(39\), \(\- sum\(Int64\(\-25\)\)\) \+ Int64\(43\), Int64\(\-72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-74\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- coalesce\(Int64\(39\), \(\- sum\(Int64\(\-25\)\)\) \+ Int64\(43\), Int64\(\-72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 3 ) * - 74 * CAST ( NULL AS INTEGER ) AS col1, + 74 + + 54 + COUNT ( * ) / - + COALESCE ( + 39, - SUM ( - 25 ) + 43, - 72 ) AS col1 # Datafusion - Datafusion expected results: @@ -48085,7 +48085,7 @@ SELECT ALL 75 / + 50 + + 68 * - - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(90\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(90\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1, 90 * 65 AS col1 query I rowsort label-9151 diff --git a/data/sqlite/random/expr/slt_good_57.slt b/data/sqlite/random/expr/slt_good_57.slt index a42f84c..70e8dd5 100644 --- a/data/sqlite/random/expr/slt_good_57.slt +++ b/data/sqlite/random/expr/slt_good_57.slt @@ -1766,7 +1766,7 @@ SELECT 87 * - 12 + + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(34\) AS col2" at position 0 and "Int64\(0\) \* Int64\(\-61\) \- \(\- Int64\(13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- Int64\(34\) AS col2" at position 0 and "Int64\(0\) \* Int64\(\-61\) \- \(\- Int64\(13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) - + 34 AS col2, 0 * - 61 - - + 13 AS col2 query I rowsort @@ -2226,7 +2226,7 @@ SELECT - 58 + - 77 * + 25 - NULLIF ( COUNT ( * ), - 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(28\) AS Int32\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(28\) AS Int64\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + 28 AS INTEGER ) AS col2, ( 10 ) AS col2 query II rowsort label-418 @@ -2997,7 +2997,7 @@ SELECT + 56 + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(13\) \+ CAST\(\(\- Int64\(91\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "CAST\(NULL AS Int64\) / Int64\(13\) \+ CAST\(\(\- Int64\(91\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 59 AS col0, CAST ( NULL AS INTEGER ) / 13 + + CAST ( + - ( + 91 ) AS INTEGER ) AS col0 query I rowsort @@ -4744,7 +4744,7 @@ SELECT DISTINCT 37 * ( 97 ) + + 20 + 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* min\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0 query II rowsort @@ -5632,7 +5632,7 @@ SELECT 82 * + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 378 # Datafusion - Expected - 1744 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(21\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-83\)\) AS Int32\) \* Int64\(21\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(21\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-83\)\) AS Int64\) \* Int64\(21\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 18 * + 21 col1, CAST ( - - 83 AS INTEGER ) * + 21 + - - COUNT ( * ) AS col1 query II rowsort @@ -9940,7 +9940,7 @@ SELECT + 21 * + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 7920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(90\) \* \(\- CAST\(Int64\(\-88\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(90\) \* \(\- CAST\(Int64\(\-88\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 col1, + 90 * - CAST ( + ( - 88 ) AS INTEGER ) AS col1 query I rowsort @@ -10349,7 +10349,7 @@ SELECT DISTINCT + 14 + MAX ( ALL - - 90 ) * 85 - - + 72 + + SUM ( ALL - - 83 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - -163 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \+ \(\- nullif\(Int64\(95\), Int64\(70\)\)\) \- Int64\(42\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \+ \(\- nullif\(Int64\(95\), Int64\(70\)\)\) \- Int64\(42\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 26 + + - NULLIF ( + 95, 70 ) - + 42 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1974 @@ -15902,7 +15902,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) \+ Int64\(\-76\) \+ Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- Int64\(58\)\) AS Int32\) \* Int64\(24\) \- CAST\(NULL AS Int32\) / \(\- Int64\(42\)\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) \+ Int64\(\-76\) \+ Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- Int64\(58\)\) AS Int64\) \* Int64\(24\) \- CAST\(NULL AS Int64\) / \(\- Int64\(42\)\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 59 + - 76 + - 25 * COUNT ( * ) AS col2, + CAST ( + ( - + 58 ) AS INTEGER ) * + + 24 - + CAST ( NULL AS INTEGER ) / - + 42 + + 71 AS col2 query I rowsort @@ -17036,7 +17036,7 @@ SELECT ALL + - NULLIF ( + 14, 89 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(\-1\) \* \(\- CASE Int64\(85\) WHEN Int64\(48\) \+ CAST\(NULL AS Int32\) THEN Int64\(4\) / Int64\(68\) \+ Int64\(66\) END\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(\-1\) \* \(\- CASE Int64\(85\) WHEN Int64\(48\) \+ CAST\(NULL AS Int64\) THEN Int64\(4\) / Int64\(68\) \+ Int64\(66\) END\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 AS col1, - 1 * - + CASE ( 85 ) WHEN 48 + CAST ( NULL AS INTEGER ) THEN 4 / + 68 + 66 END * - 12 AS col1 query I rowsort label-3247 @@ -18893,7 +18893,7 @@ SELECT - NULLIF ( 49, + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 193456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-8\)\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(76\) = CASE \(\- \(\- Int64\(\-44\)\)\) WHEN Int64\(62\) THEN \(\- min\(Int64\(\-56\)\)\) \* count\(Int64\(\-27\)\) END THEN \(\- \(\- count\(Int64\(\-27\)\)\)\) \+ Int64\(21\) \+ Int64\(37\) WHEN NOT NULL > Int64\(\-41\) \+ avg\(Int64\(18\) \+ Int64\(53\)\) THEN Int64\(93\) / \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-46\) \+ nullif\(Int64\(11\), count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(42\)\) \- Int64\(\-84\)\)\)\) ELSE Int64\(89\) END\) \+ \(\- coalesce\(Int64\(75\) \- \(\- Int64\(57\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\)\) \* Int64\(40\), Int64\(\-31\) \+ Int64\(\-81\), Int64\(6\) \+ Int64\(44\)\)\) \* Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- Int64\(\-8\)\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(76\) = CASE \(\- \(\- Int64\(\-44\)\)\) WHEN Int64\(62\) THEN \(\- min\(Int64\(\-56\)\)\) \* count\(Int64\(\-27\)\) END THEN \(\- \(\- count\(Int64\(\-27\)\)\)\) \+ Int64\(21\) \+ Int64\(37\) WHEN NOT NULL > Int64\(\-41\) \+ avg\(Int64\(18\) \+ Int64\(53\)\) THEN Int64\(93\) / \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-46\) \+ nullif\(Int64\(11\), count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(42\)\) \- Int64\(\-84\)\)\)\) ELSE Int64\(89\) END\) \+ \(\- coalesce\(Int64\(75\) \- \(\- Int64\(57\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\)\) \* Int64\(40\), Int64\(\-31\) \+ Int64\(\-81\), Int64\(6\) \+ Int64\(44\)\)\) \* Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 8 AS col1, - CASE WHEN NOT + 76 = + CASE - - ( - 44 ) WHEN + 62 THEN - + MIN ( + - 56 ) * COUNT ( + - 27 ) END THEN - - COUNT ( - 27 ) + + 21 + + 37 WHEN NOT ( NULL ) > ( - 41 + AVG ( + 18 + 53 ) ) THEN + 93 / + ( - NULLIF ( - COUNT ( * ), - 46 + + NULLIF ( 11, COUNT ( * ) / - ( + 42 ) - - 84 ) ) ) ELSE 89 END + - COALESCE ( 75 - - ( + 57 - COUNT ( * ) * - 36 ) * 40, - 31 + - 81, 6 + 44 ) * - 51 AS col1 query I rowsort label-3600 @@ -20126,7 +20126,7 @@ SELECT DISTINCT - 42 + + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- count\(Int64\(92\)\)\) WHEN Int64\(\-35\) \* Int64\(22\) \- count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(\-12\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-12\), Int64\(88\), Int64\(93\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-32\) ELSE CAST\(NULL AS Int32\) \- Int64\(\-57\) END\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- count\(Int64\(92\)\)\) WHEN Int64\(\-35\) \* Int64\(22\) \- count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(\-12\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-12\), Int64\(88\), Int64\(93\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-32\) ELSE CAST\(NULL AS Int64\) \- Int64\(\-57\) END\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + - CASE - + COUNT ( ALL + 92 ) WHEN - 35 * + + 22 - + COUNT ( * ) THEN + + COALESCE ( - 12, - + COUNT ( * ) + - 12, 88, + 93 - - COUNT ( * ) ) * - 32 ELSE + CAST ( NULL AS INTEGER ) - - 57 END AS col2, 27 AS col2 query I rowsort @@ -20567,7 +20567,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3792 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(\-47\) \+ max\(DISTINCT Int64\(\-67\)\) \+ \(\- max\(Int64\(\-99\)\)\) AS col0" at position 0 and "Int64\(3\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(\-47\) \+ max\(DISTINCT Int64\(\-67\)\) \+ \(\- max\(Int64\(\-99\)\)\) AS col0" at position 0 and "Int64\(3\) / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 * - 47 + + MAX ( DISTINCT - 67 ) + - MAX ( ALL - 99 ) AS col0, 3 / CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3921 @@ -25625,7 +25625,7 @@ SELECT 44 * - + 86 + - MAX ( ALL + - 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -106570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(67\)\) AS Int32\) AS col0" at position 0 and "Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) \* Int64\(55\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(67\)\) AS Int64\) AS col0" at position 0 and "Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) \* Int64\(55\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + CAST ( - + 67 AS INTEGER ) ) AS col0, - 91 + COUNT ( * ) - 88 * 55 * 22 AS col0 # Datafusion - Datafusion expected results: @@ -28456,7 +28456,7 @@ SELECT ALL 15, + 69 * + 16 + - 96 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-74\)\) \+ Int64\(\-76\) \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(\-31\) / Int64\(65\) \* sum\(\(\- CAST\(Int64\(14\) AS Int32\)\)\) / \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(DISTINCT Int64\(91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-74\)\) \+ Int64\(\-76\) \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(\-31\) / Int64\(65\) \* sum\(\(\- CAST\(Int64\(14\) AS Int64\)\)\) / \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(DISTINCT Int64\(91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( ALL - 74 ) + + - 76 + + CAST ( NULL AS FLOAT8 ) col1, - 31 / + 65 * SUM ( - + CAST ( 14 AS INTEGER ) ) / - ( - ( + - COUNT ( * ) ) ) + COUNT ( DISTINCT 91 ) col1, - COALESCE ( + COUNT ( DISTINCT 31 ), - COUNT ( * ), - 46 * + NULLIF ( + ( - 60 ), - AVG ( + 83 ) ) ) query I rowsort @@ -31111,7 +31111,7 @@ SELECT 15 / - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-60\) AS Int32\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-60\) AS Int64\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - 60 AS INTEGER ) AS col0, 43 AS col0 query I rowsort label-5928 @@ -31893,7 +31893,7 @@ SELECT DISTINCT 33 + - 99 + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(54\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(54\) \- CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 AS col2, + 54 - ( + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-6076 @@ -32996,7 +32996,7 @@ SELECT - 78 * + 41 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(3\) AS col0" at position 0 and "Int64\(27\) \* Int64\(\-61\) \+ \(\- nullif\(min\(\(\- CAST\(NULL AS Int32\)\)\), \(\- Int64\(2\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\) \+ Int64\(\-93\) \* Int64\(\-50\) \+ Int64\(59\)\)\) \* \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(3\) AS col0" at position 0 and "Int64\(27\) \* Int64\(\-61\) \+ \(\- nullif\(min\(\(\- CAST\(NULL AS Int64\)\)\), \(\- Int64\(2\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\) \+ Int64\(\-93\) \* Int64\(\-50\) \+ Int64\(59\)\)\) \* \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 26 - + ( + 3 ) AS col0, 27 * - 61 + - + NULLIF ( + MIN ( ALL + - CAST ( NULL AS INTEGER ) ), - ( + + 2 ) / + COUNT ( * ) + 81 + - 93 * - 50 + + + 59 ) * - + 40 AS col0 query I rowsort @@ -35449,7 +35449,7 @@ SELECT ALL + - 32 / + - 15 - + 12 + + 66 + 22 * MAX ( DISTINCT 51 ) + - 23 * - C # Datafusion - Expected - -27 # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 27 AS col2, + 28, CAST ( NULL AS INTEGER ) col2 query I rowsort label-6757 @@ -36193,7 +36193,7 @@ SELECT 3 * 29 * + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \- nullif\(\(\- Int64\(\-82\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(53\) AS Int32\)\) \+ Int64\(\-52\) \+ Int64\(65\) / Int64\(58\) \+ Int64\(\-70\) \+ Int64\(29\) \- Int64\(89\) / nullif\(Int64\(39\), Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \- nullif\(\(\- Int64\(\-82\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(53\) AS Int64\)\) \+ Int64\(\-52\) \+ Int64\(65\) / Int64\(58\) \+ Int64\(\-70\) \+ Int64\(29\) \- Int64\(89\) / nullif\(Int64\(39\), Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 14 - + NULLIF ( - - 82, + ( - - COUNT ( * ) ) ) AS col1, - CAST ( 53 AS INTEGER ) + - 52 + + + 65 / + 58 + - 70 + 29 - + + 89 / + NULLIF ( + 39, 2 ) col1 query I rowsort label-6898 @@ -36573,7 +36573,7 @@ SELECT ALL + 73 / COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-68\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-68\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 68 * + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) * 6 AS col2 query I rowsort @@ -37942,7 +37942,7 @@ SELECT + COUNT ( * ) / - 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- Int64\(\-78\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-7\) \* Int64\(\-96\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- Int64\(\-78\) \- \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-7\) \* Int64\(\-96\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 63 ) - - 78 - - CAST ( NULL AS INTEGER ) + - 7 * + - 96 col1, + COUNT ( * ) AS col1 query I rowsort label-7230 @@ -38930,7 +38930,7 @@ SELECT ALL - 17, 83 - + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) \+ Int64\(37\) \- Int64\(94\) \+ \(\- Int64\(95\)\) AS col2" at position 0 and "Int64\(96\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-70\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) \+ Int64\(37\) \- Int64\(94\) \+ \(\- Int64\(95\)\) AS col2" at position 0 and "Int64\(96\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-70\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 74 + + 37 - + 94 + - + 95 AS col2, 96 + + NULLIF ( + COUNT ( * ), + + COUNT ( * ) * + + COUNT ( * ) + CAST ( - 70 AS INTEGER ) ) AS col2 query II rowsort @@ -39650,7 +39650,7 @@ SELECT ALL 35 * + 36 AS col2, + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -9306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col1" at position 0 and "CAST\(\(\- CAST\(\(\- Int64\(\-99\)\) AS Int32\)\) AS Int32\) \* \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col1" at position 0 and "CAST\(\(\- CAST\(\(\- Int64\(\-99\)\) AS Int64\)\) AS Int64\) \* \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 AS col1, CAST ( - CAST ( - ( - 99 ) AS INTEGER ) AS INTEGER ) * - - 94 col1 query II rowsort @@ -41108,7 +41108,7 @@ SELECT ALL - 3 - + 17 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(32\) \* Int64\(35\) AS col0" at position 0 and "coalesce\(Int64\(52\), \(\- nullif\(Int64\(78\), Int64\(74\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(67\)\)\) \* Int64\(7\) \+ coalesce\(Int64\(13\), \(\- Int64\(75\)\) \* count\(Int64\(\-20\)\) \+ \(\- Int64\(\-33\)\) \- \(\- Int64\(45\)\)\) \+ Int64\(34\) / Int64\(53\)\)\) / nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(35\) / CAST\(Int64\(15\) AS Float64\) \* Int64\(\-43\)\) / Int64\(76\), Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(32\) \* Int64\(35\) AS col0" at position 0 and "coalesce\(Int64\(52\), \(\- nullif\(Int64\(78\), Int64\(74\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(67\)\)\) \* Int64\(7\) \+ coalesce\(Int64\(13\), \(\- Int64\(75\)\) \* count\(Int64\(\-20\)\) \+ \(\- Int64\(\-33\)\) \- \(\- Int64\(45\)\)\) \+ Int64\(34\) / Int64\(53\)\)\) / nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(35\) / CAST\(Int64\(15\) AS Float64\) \* Int64\(\-43\)\) / Int64\(76\), Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 + - CAST ( NULL AS INTEGER ) + 32 * ( 35 ) AS col0, COALESCE ( 52, - ( + NULLIF ( 78, + 74 + + + COUNT ( * ) + - + ( - + 67 ) * 7 + COALESCE ( + 13, ( - + 75 ) * COUNT ( - 20 ) + - - 33 - - ( + 45 ) ) + + + 34 / 53 ) ) / NULLIF ( - CAST ( NULL AS INTEGER ), + 35 / + + CAST ( + 15 AS FLOAT8 ) * - 43 ) / + 76, + ( + 89 ) ) col0 query II rowsort @@ -41317,7 +41317,7 @@ SELECT ( 72 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(67\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(67\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 67 * + 70 AS col0 query I rowsort label-7873 @@ -43762,7 +43762,7 @@ SELECT + SUM ( DISTINCT 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "coalesce\(\(\- CASE \(\- Int64\(6\)\) WHEN Int64\(8\) \* Int64\(\-4\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-64\) END\), Int64\(46\) \* CASE Int64\(21\) WHEN \(\- Int64\(70\)\) \+ Int64\(13\) THEN NULL WHEN Int64\(35\) THEN Int64\(26\) \+ Int64\(56\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "coalesce\(\(\- CASE \(\- Int64\(6\)\) WHEN Int64\(8\) \* Int64\(\-4\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-64\) END\), Int64\(46\) \* CASE Int64\(21\) WHEN \(\- Int64\(70\)\) \+ Int64\(13\) THEN NULL WHEN Int64\(35\) THEN Int64\(26\) \+ Int64\(56\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 AS col0, + COALESCE ( - CASE - + 6 WHEN + 8 * - 4 + - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN + - 64 END, 46 * + CASE 21 WHEN - ( 70 ) + 13 THEN NULL WHEN + 35 THEN 26 + 56 ELSE NULL END ) AS col0 query I rowsort @@ -44888,7 +44888,7 @@ SELECT ALL + 71 AS col2, 29 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 77 AS col0, + CAST ( 18 AS INTEGER ) col0 query II rowsort label-8561 @@ -46173,7 +46173,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\), Int64\(51\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(\-99\) \+ Int64\(\-71\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\), Int64\(51\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) / Int64\(\-99\) \+ Int64\(\-71\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ), 51 ) * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) / - 99 + + - 71 AS col0, + ( 83 ) AS col0 query I rowsort @@ -47850,7 +47850,7 @@ SELECT + 46, + CASE - 56 WHEN 47 + 77 + 67 + + 25 THEN - + 36 + - - 15 WHEN + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -1591 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(Int64\(\-43\) AS Int32\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(Int64\(\-43\) AS Int64\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col0, CAST ( - 43 AS INTEGER ) * + + 37 AS col0 query II rowsort label-9120 @@ -48844,7 +48844,7 @@ SELECT ALL 27 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-36\)\) WHEN Int64\(\-58\) \* Int64\(\-3\) \- avg\(DISTINCT CASE Int64\(\-69\) WHEN Int64\(82\) \+ Int64\(\-78\) THEN NULL WHEN Int64\(64\) THEN Int64\(\-63\) \+ Int64\(97\) END\) THEN NULL WHEN Int64\(16\) \- \(\- coalesce\(Int64\(43\), Int64\(70\)\)\) \* Int64\(67\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "CASE \(\- Int64\(42\)\) WHEN \(\- Int64\(\-12\)\) THEN CAST\(Int64\(29\) AS Int32\) \+ Int64\(\-52\) ELSE count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-36\)\) WHEN Int64\(\-58\) \* Int64\(\-3\) \- avg\(DISTINCT CASE Int64\(\-69\) WHEN Int64\(82\) \+ Int64\(\-78\) THEN NULL WHEN Int64\(64\) THEN Int64\(\-63\) \+ Int64\(97\) END\) THEN NULL WHEN Int64\(16\) \- \(\- coalesce\(Int64\(43\), Int64\(70\)\)\) \* Int64\(67\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "CASE \(\- Int64\(42\)\) WHEN \(\- Int64\(\-12\)\) THEN CAST\(Int64\(29\) AS Int64\) \+ Int64\(\-52\) ELSE count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - - 36 WHEN - 58 * - 3 - + AVG ( DISTINCT CASE - 69 WHEN 82 + - 78 THEN NULL WHEN 64 THEN - 63 + + + 97 END ) THEN NULL WHEN 16 - - COALESCE ( 43, 70 ) * 67 THEN - COUNT ( * ) ELSE + - COUNT ( * ) END AS col1, CASE - + 42 WHEN - - 12 THEN + CAST ( 29 AS INTEGER ) + - 52 ELSE + + COUNT ( * ) END AS col1 query I rowsort label-9308 @@ -49458,7 +49458,7 @@ SELECT 50 * + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(12\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) AS col1" at position 0 and "Int64\(82\) \- CAST\(\(\- Int64\(\-81\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(12\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) AS col1" at position 0 and "Int64\(82\) \- CAST\(\(\- Int64\(\-81\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 * 12 + + COUNT ( * ) * 43 AS col1, 82 - + + CAST ( - - 81 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: @@ -52397,7 +52397,7 @@ SELECT - 18 * + - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 5096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(\-52\) \* min\(DISTINCT \(\- CAST\(Int64\(98\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(\-52\) \* min\(DISTINCT \(\- CAST\(Int64\(98\) AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 60 AS col1, - 52 * MIN ( DISTINCT - CAST ( 98 AS INTEGER ) ) AS col1 query II rowsort label-9994 diff --git a/data/sqlite/random/expr/slt_good_58.slt b/data/sqlite/random/expr/slt_good_58.slt index d83fdd5..1fb4d1e 100644 --- a/data/sqlite/random/expr/slt_good_58.slt +++ b/data/sqlite/random/expr/slt_good_58.slt @@ -1043,7 +1043,7 @@ SELECT MIN ( DISTINCT - - 48 ) + + + ( - 58 ) # Datafusion - Expected - 7 # Datafusion - Expected - -62 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-62\) AS Int32\) AS col2" at position 1 and "Int64\(83\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-62\) AS Int64\) AS col2" at position 1 and "Int64\(83\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 7 AS col0, + CAST ( - 62 AS INTEGER ) AS col2, + 83 AS col2 query II rowsort @@ -3527,7 +3527,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(\-50\) \+ \(\- CASE Int64\(77\) WHEN CAST\(Int64\(14\) AS Int32\) THEN Int64\(89\) WHEN Int64\(\-81\) \* Int64\(\-25\) THEN NULL END\) \- Int64\(21\) \* count\(DISTINCT Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(\-50\) \+ \(\- CASE Int64\(77\) WHEN CAST\(Int64\(14\) AS Int64\) THEN Int64\(89\) WHEN Int64\(\-81\) \* Int64\(\-25\) THEN NULL END\) \- Int64\(21\) \* count\(DISTINCT Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 AS col0, + ( - 50 ) + - + ( + CASE + 77 WHEN CAST ( + 14 AS INTEGER ) THEN + 89 WHEN - 81 * - 25 THEN NULL END ) - + 21 * COUNT ( DISTINCT - 32 ) AS col0 query III rowsort label-666 @@ -3601,7 +3601,7 @@ SELECT ALL - 87 + + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 370816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(74\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-22\)\) \+ Int64\(\-22\) \+ Int64\(\-74\) \- Int64\(\-58\) \* nullif\(Int64\(98\), Int64\(60\)\) \* Int64\(65\) \+ Int64\(\-18\) / \(\- Int64\(\-39\)\) \+ Int64\(61\) \+ CAST\(Int64\(27\) AS Int32\) \* Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(74\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-22\)\) \+ Int64\(\-22\) \+ Int64\(\-74\) \- Int64\(\-58\) \* nullif\(Int64\(98\), Int64\(60\)\) \* Int64\(65\) \+ Int64\(\-18\) / \(\- Int64\(\-39\)\) \+ Int64\(61\) \+ CAST\(Int64\(27\) AS Int64\) \* Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 AS col1, 74 - COUNT ( * ) + - - 22 + + - 22 + - 74 - - 58 * NULLIF ( + ( + 98 ), + 60 ) * + 65 + + - 18 / - - 39 + + 61 + + CAST ( ( 27 ) AS INTEGER ) * + 48 col1 query I rowsort label-679 @@ -4484,7 +4484,7 @@ SELECT - - 96 AS col2, + 97 AS col1 # Datafusion - Expected - 27 # Datafusion - Expected - 17 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-66\), \(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-66\), \(\- CAST\(NULL AS Int64\)\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 27 AS col1, 17 AS col2, - COALESCE ( - 66, - ( + CAST ( NULL AS INTEGER ) ) ) * - - COUNT ( * ) AS col1 query II rowsort @@ -5186,7 +5186,7 @@ SELECT ALL + 11 / + 30 + - NULLIF ( - + 75, ( COUNT ( * ) ) * + 1 + 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) / Int64\(21\) \+ Int64\(29\) AS col1" at position 0 and "\(\- CAST\(Int64\(24\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) / Int64\(21\) \+ Int64\(29\) AS col1" at position 0 and "\(\- CAST\(Int64\(24\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 28 / + 21 + + 29 AS col1, - CAST ( 24 AS INTEGER ) AS col1 query I rowsort label-982 @@ -6383,7 +6383,7 @@ SELECT DISTINCT - COUNT ( + 79 ) / 22 * - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-3\) \- Int64\(81\) \- \(\- CASE Int64\(\-31\) WHEN \(\- \(\- min\(Int64\(54\)\)\)\) \+ Int64\(15\) THEN NULL ELSE Int64\(11\) / coalesce\(CASE Int64\(\-32\) WHEN Int64\(56\) THEN Int64\(\-21\) END, Int64\(37\) \- \(\- Int64\(23\)\), Int64\(0\)\) END\) \* CAST\(Int64\(64\) AS Int32\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-3\) \- Int64\(81\) \- \(\- CASE Int64\(\-31\) WHEN \(\- \(\- min\(Int64\(54\)\)\)\) \+ Int64\(15\) THEN NULL ELSE Int64\(11\) / coalesce\(CASE Int64\(\-32\) WHEN Int64\(56\) THEN Int64\(\-21\) END, Int64\(37\) \- \(\- Int64\(23\)\), Int64\(0\)\) END\) \* CAST\(Int64\(64\) AS Int64\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * 3 + + ( + - CAST ( NULL AS INTEGER ) ) + + - 3 - 81 - ( - CASE - 31 WHEN - - MIN ( 54 ) + + + 15 THEN NULL ELSE 11 / COALESCE ( + CASE - 32 WHEN 56 THEN - 21 END, + + 37 - - + 23, - 0 ) END ) * + CAST ( + 64 AS INTEGER ) AS col2, 14 AS col2 query I rowsort label-1208 @@ -9996,7 +9996,7 @@ SELECT ALL COUNT ( * ) + - 23 AS col2, + 55 * - + COUNT ( 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- Int64\(6\)\) AS col1" at position 0 and "Int64\(17\) \* Int64\(0\) \* Int64\(\-42\) \* nullif\(CAST\(NULL AS Int32\), Int64\(98\) \* Int64\(11\) / Int64\(12\) \* Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- Int64\(6\)\) AS col1" at position 0 and "Int64\(17\) \* Int64\(0\) \* Int64\(\-42\) \* nullif\(CAST\(NULL AS Int64\), Int64\(98\) \* Int64\(11\) / Int64\(12\) \* Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 + - + 6 AS col1, 17 * - 0 * + - 42 * + NULLIF ( + + CAST ( NULL AS INTEGER ), 98 * + 11 / + + 12 * - 13 ) AS col1 query I rowsort label-1903 @@ -11640,7 +11640,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2184 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(9\) \- Int64\(85\) \+ Int64\(31\) \* \(\- CAST\(Int64\(86\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(57\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(9\) \- Int64\(85\) \+ Int64\(31\) \* \(\- CAST\(Int64\(86\) AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(57\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 63 * 9 - 85 + ( 31 ) * + - CAST ( + 86 AS INTEGER ) AS col1, COUNT ( * ) / + CAST ( 57 AS INTEGER ) AS col1 query I rowsort label-2214 @@ -13791,7 +13791,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "Int64\(2\) \* \(\- \(\- count\(CAST\(NULL AS Int32\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "Int64\(2\) \* \(\- \(\- count\(CAST\(NULL AS Int64\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 3 AS col2, 2 * - - COUNT ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + COUNT ( * ) AS col2 query I rowsort @@ -14583,7 +14583,7 @@ SELECT COUNT ( * ) * 32 + - SUM ( ALL 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- Int64\(52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 col0, CAST ( NULL AS INTEGER ) * - + 52 AS col0 query I rowsort @@ -14715,7 +14715,7 @@ SELECT COUNT ( * ) * + ( - + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3264 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-64\)\) AS Int32\) \- Int64\(80\) \* Int64\(\-40\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-64\)\) AS Int64\) \- Int64\(80\) \* Int64\(\-40\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - - 64 AS INTEGER ) - 80 * - 40 AS col0, 59 col0 query I rowsort label-2799 @@ -14906,7 +14906,7 @@ SELECT ALL - COUNT ( - 51 ) / + 5 * - 36 - COUNT ( * ) + + MAX ( DISTINCT + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(13\) \+ CASE Int64\(77\) WHEN Int64\(67\) THEN Int64\(64\) END \- \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-72\) \* coalesce\(Int64\(\-33\), Int64\(29\) \* Int64\(99\) \+ CAST\(Int64\(97\) AS Int32\), \(\- min\(Int64\(\-92\)\)\) \* Int64\(\-39\) \* Int64\(\-99\) \+ Int64\(\-2\) / Int64\(\-88\) \* Int64\(\-1\) / Int64\(74\) \* Int64\(34\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(13\) \+ CASE Int64\(77\) WHEN Int64\(67\) THEN Int64\(64\) END \- \(\- CAST\(NULL AS Int64\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-72\) \* coalesce\(Int64\(\-33\), Int64\(29\) \* Int64\(99\) \+ CAST\(Int64\(97\) AS Int64\), \(\- min\(Int64\(\-92\)\)\) \* Int64\(\-39\) \* Int64\(\-99\) \+ Int64\(\-2\) / Int64\(\-88\) \* Int64\(\-1\) / Int64\(74\) \* Int64\(34\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 col0, 13 + + CASE + 77 WHEN + 67 THEN 64 END - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + - 72 * + COALESCE ( - 33, + 29 * ( + 99 ) + + CAST ( 97 AS INTEGER ), + - MIN ( + - 92 ) * + - 39 * - 99 + - 2 / - 88 * - 1 / 74 * + 34 ) + + - COUNT ( * ) AS col0 query I rowsort label-2836 @@ -16674,7 +16674,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(37\) / coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(23\) \* Int64\(17\) \* \(\- CAST\(\(\- nullif\(Int64\(73\), Int64\(11\) \* \(\- Int64\(\-10\) \* Int64\(83\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ \(\- Int64\(35\) \+ CAST\(Int64\(\-17\) AS Int32\) \* Int64\(60\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(37\) / coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(23\) \* Int64\(17\) \* \(\- CAST\(\(\- nullif\(Int64\(73\), Int64\(11\) \* \(\- Int64\(\-10\) \* Int64\(83\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) \+ \(\- Int64\(35\) \+ CAST\(Int64\(\-17\) AS Int64\) \* Int64\(60\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 88 AS col1, + 37 / + COALESCE ( - COUNT ( * ), 23 * + ( 17 ) * - CAST ( - NULLIF ( + 73, 11 * - ( - 10 * 83 ) ) + COUNT ( * ) AS INTEGER ) + - ( 35 + CAST ( - 17 AS INTEGER ) * 60 ) ) AS col1 query II rowsort label-3178 @@ -17836,7 +17836,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 888 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, 24 * + 37 AS col0 query I rowsort @@ -19645,7 +19645,7 @@ SELECT DISTINCT 2 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 83 AS col2, CAST ( NULL AS INTEGER ) col2 query II rowsort @@ -20237,7 +20237,7 @@ SELECT ALL - 95 * - 76 * + - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - -5832 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(3\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-81\) AS Int32\)\) \* Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(3\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-81\) AS Int64\)\) \* Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 41 * + + 3 col0, - CAST ( + - 81 AS INTEGER ) * - 72 AS col0 query II rowsort @@ -20460,7 +20460,7 @@ SELECT 6 + 8 - + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 158 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(63\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(63\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 + 63 AS col1, - CAST ( NULL AS INTEGER ) / + 61 AS col1 query I rowsort label-3902 @@ -21292,7 +21292,7 @@ SELECT ALL NULLIF ( - 56, + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-88\)\)\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(58\) AS col0" at position 0 and "\(\- CASE Int64\(54\) WHEN Int64\(8\) \* Int64\(71\) \+ sum\(Int64\(\-86\)\) THEN \(\- Int64\(\-94\)\) / Int64\(75\) \* \(\- Int64\(\-33\)\) / Int64\(1\) / Int64\(\-33\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-61\) \+ Int64\(\-85\) WHEN Int64\(38\) THEN Int64\(\-50\) WHEN coalesce\(Int64\(62\), Int64\(57\) \* Int64\(41\), Int64\(55\)\) \+ Int64\(33\) THEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-21\) \+ Int64\(94\) \* CAST\(Int64\(70\) AS Int32\) \* count\(Int64\(\-29\)\) END\) \+ \(\- CASE \(\- min\(Int64\(58\)\)\) WHEN Int64\(36\) THEN Int64\(10\) WHEN Int64\(71\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE NULL END\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-88\)\)\) / \(\- CAST\(NULL AS Int64\)\) \* Int64\(58\) AS col0" at position 0 and "\(\- CASE Int64\(54\) WHEN Int64\(8\) \* Int64\(71\) \+ sum\(Int64\(\-86\)\) THEN \(\- Int64\(\-94\)\) / Int64\(75\) \* \(\- Int64\(\-33\)\) / Int64\(1\) / Int64\(\-33\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-61\) \+ Int64\(\-85\) WHEN Int64\(38\) THEN Int64\(\-50\) WHEN coalesce\(Int64\(62\), Int64\(57\) \* Int64\(41\), Int64\(55\)\) \+ Int64\(33\) THEN \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-21\) \+ Int64\(94\) \* CAST\(Int64\(70\) AS Int64\) \* count\(Int64\(\-29\)\) END\) \+ \(\- CASE \(\- min\(Int64\(58\)\)\) WHEN Int64\(36\) THEN Int64\(10\) WHEN Int64\(71\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE NULL END\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - MIN ( - 88 ) / - ( + + CAST ( NULL AS INTEGER ) ) * 58 AS col0, - CASE + 54 WHEN 8 * 71 + SUM ( ALL - 86 ) THEN - - 94 / ( + 75 ) * - - 33 / 1 / + ( - 33 ) + - COUNT ( * ) + - 61 + - 85 WHEN 38 THEN - 50 WHEN + COALESCE ( + + 62, 57 * 41, 55 ) + + 33 THEN - CAST ( NULL AS INTEGER ) + + - 21 + + 94 * CAST ( 70 AS INTEGER ) * COUNT ( ALL - 29 ) END + - CASE - MIN ( 58 ) WHEN 36 THEN 10 WHEN ( 71 ) * + COUNT ( * ) THEN NULL ELSE NULL END * + 55 AS col0 query I rowsort label-4061 @@ -22278,7 +22278,7 @@ SELECT - 58 + + + 86 + - ( - 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- \(\- Int64\(\-99\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ Int64\(\-52\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(51\) \* Int64\(73\) \+ Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- \(\- Int64\(\-99\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ Int64\(\-52\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(51\) \* Int64\(73\) \+ Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 42 - - - 99 / - + COUNT ( * ) AS col2, 51 + - 52 + - CAST ( NULL AS INTEGER ) * + 51 * + ( 73 ) + + 12 AS col2 # Datafusion - Datafusion expected results: @@ -22796,7 +22796,7 @@ SELECT 17 * MIN ( - 44 ) * 86 * - - 38 + + + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col0, 7 AS col0 query I rowsort @@ -22831,7 +22831,7 @@ SELECT DISTINCT ( + - 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -4069 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(2\) \* Int64\(45\) \* \(\- CAST\(\(\- nullif\(Int64\(\-46\), Int64\(4\) \+ min\(\(\- Int64\(10\)\)\) \* Int64\(2\) \* \(\- CASE Int64\(88\) WHEN Int64\(64\) THEN max\(DISTINCT Int64\(95\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(83\) \+ Int64\(29\) WHEN Int64\(\-89\) THEN NULL WHEN Int64\(61\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(27\) \* Int64\(6\) ELSE Int64\(7\) \* \(\- Int64\(40\)\) \* Int64\(\-58\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(2\) \* Int64\(45\) \* \(\- CAST\(\(\- nullif\(Int64\(\-46\), Int64\(4\) \+ min\(\(\- Int64\(10\)\)\) \* Int64\(2\) \* \(\- CASE Int64\(88\) WHEN Int64\(64\) THEN max\(DISTINCT Int64\(95\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(83\) \+ Int64\(29\) WHEN Int64\(\-89\) THEN NULL WHEN Int64\(61\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(27\) \* Int64\(6\) ELSE Int64\(7\) \* \(\- Int64\(40\)\) \* Int64\(\-58\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 55 AS col1, 71 + + ( + 2 ) * 45 * + - CAST ( - NULLIF ( + - 46, + ( + 4 ) + + + MIN ( - + 10 ) * + ( + 2 ) * - CASE + 88 WHEN 64 THEN + MAX ( DISTINCT 95 ) + + - COUNT ( * ) + 83 + 29 WHEN - 89 THEN NULL WHEN 61 / - COUNT ( * ) THEN 27 * 6 ELSE 7 * - + 40 * - 58 * + COUNT ( * ) END ) AS INTEGER ) AS col1 query I rowsort label-4348 @@ -24290,7 +24290,7 @@ SELECT 32 + + 43 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 AS col0, ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 query I rowsort label-4625 @@ -28116,7 +28116,7 @@ SELECT ALL 64 * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 35 AS col0 query I rowsort label-5362 @@ -30772,7 +30772,7 @@ SELECT DISTINCT - ( - + 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \+ Int64\(89\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN \(\- CAST\(Int64\(\-80\) AS Int32\)\) THEN Int64\(6\) ELSE NULL END \* Int64\(31\) / \(\- Int64\(97\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \+ Int64\(89\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN \(\- CAST\(Int64\(\-80\) AS Int64\)\) THEN Int64\(6\) ELSE NULL END \* Int64\(31\) / \(\- Int64\(97\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 14 + + 89 AS col0, CASE - 98 WHEN - CAST ( - 80 AS INTEGER ) THEN + 6 ELSE NULL END * + 31 / - + 97 * - COUNT ( * ) * + MAX ( ALL - 39 ) AS col0 query I rowsort @@ -30933,7 +30933,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(\-46\) / min\(CAST\(Int64\(\-51\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(\-46\) / min\(CAST\(Int64\(\-51\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 42 AS col2, - 46 / MIN ( CAST ( - 51 AS INTEGER ) ) AS col2 query I rowsort @@ -33936,7 +33936,7 @@ SELECT + 55 - - + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int32\) AS col0" at position 0 and "max\(Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int64\) AS col0" at position 0 and "max\(Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 61 AS INTEGER ) AS col0, MAX ( ALL + 92 ) AS col0 query I rowsort @@ -36036,7 +36036,7 @@ SELECT 32 * - COUNT ( * ) * - - 76 AS col0 # Datafusion - Expected - 59 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 1 and "Int64\(97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 1 and "Int64\(97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 59, + CAST ( NULL AS INTEGER ) AS col2, + 97 AS col2 query II rowsort label-6866 @@ -37709,7 +37709,7 @@ SELECT + + 20 * - 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "CAST\(Int64\(35\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "CAST\(Int64\(35\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 96 AS col1, CAST ( + 35 AS INTEGER ) AS col1 query II rowsort label-7188 @@ -40882,7 +40882,7 @@ SELECT - COUNT ( * ) + - COUNT ( * ) * + 51 - - - COUNT ( * ) + + + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- nullif\(Int64\(54\), \(\- Int64\(\-55\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ \(\- nullif\(Int64\(54\), \(\- Int64\(\-55\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 AS col0, - CAST ( NULL AS INTEGER ) + - NULLIF ( 54, - - 55 ) AS col0 query I rowsort label-7792 @@ -41211,7 +41211,7 @@ SELECT DISTINCT + COUNT ( * ) * - 64 * - - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ CASE Int64\(\-75\) WHEN Int64\(\-60\) THEN coalesce\(Int64\(51\), Int64\(66\)\) \+ \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- coalesce\(Int64\(\-85\), Int64\(19\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-67\) \* Int64\(\-74\)\)\) \* Int64\(\-66\) \* \(\- Int64\(42\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- avg\(Int64\(68\)\) \+ CAST\(NULL AS Int32\) \+ \(\- nullif\(\(\- min\(Int64\(49\)\)\), Int64\(95\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-40\) \* Int64\(\-98\) \- \(\- Int64\(\-20\)\) END AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ CASE Int64\(\-75\) WHEN Int64\(\-60\) THEN coalesce\(Int64\(51\), Int64\(66\)\) \+ \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- coalesce\(Int64\(\-85\), Int64\(19\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-67\) \* Int64\(\-74\)\)\) \* Int64\(\-66\) \* \(\- Int64\(42\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- avg\(Int64\(68\)\) \+ CAST\(NULL AS Int64\) \+ \(\- nullif\(\(\- min\(Int64\(49\)\)\), Int64\(95\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-40\) \* Int64\(\-98\) \- \(\- Int64\(\-20\)\) END AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 48 + CASE - 75 WHEN - 60 THEN COALESCE ( 51, 66 ) + - ( + CAST ( NULL AS INTEGER ) ) WHEN - 28 THEN NULL ELSE - COALESCE ( - 85, + 19 / + COUNT ( * ) + - 67 * - 74 ) * - 66 * - + 42 + - - COUNT ( * ) - + AVG ( 68 ) + + CAST ( NULL AS INTEGER ) + - NULLIF ( - + MIN ( + 49 ), + 95 + COUNT ( * ) ) * - 40 * + - 98 - - - 20 END AS col1, 85 col1 query I rowsort @@ -42261,7 +42261,7 @@ SELECT 61 + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- nullif\(CAST\(NULL AS Int32\), sum\(Int64\(\-69\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- nullif\(CAST\(NULL AS Int64\), sum\(Int64\(\-69\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 col0, - NULLIF ( CAST ( NULL AS INTEGER ), SUM ( - 69 ) ) + COUNT ( * ) AS col0 query II rowsort label-8057 @@ -42403,7 +42403,7 @@ SELECT 30 - + COUNT ( * ) + 58 * - + 60 * 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5832 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(72\) AS col2" at position 0 and "\(\- max\(\(\- nullif\(Int64\(32\), CAST\(Int64\(96\) AS Int32\)\)\)\)\) / min\(Int64\(36\) \+ Int64\(37\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(72\) AS col2" at position 0 and "\(\- max\(\(\- nullif\(Int64\(32\), CAST\(Int64\(96\) AS Int64\)\)\)\)\) / min\(Int64\(36\) \+ Int64\(37\)\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 81 * 72 AS col2, - MAX ( - + NULLIF ( 32, CAST ( + 96 AS INTEGER ) ) ) / MIN ( 36 + + 37 ) + + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -42963,7 +42963,7 @@ SELECT ALL - COALESCE ( - 27, + - MIN ( + 38 ) * + - 61 * - 82 * 57 / 67 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1782 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(33\) AS col0" at position 0 and "Int64\(65\) / CAST\(NULL AS Int32\) \- Int64\(\-53\) \- Int64\(76\) / Int64\(\-46\) \* Int64\(13\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(33\) AS col0" at position 0 and "Int64\(65\) / CAST\(NULL AS Int64\) \- Int64\(\-53\) \- Int64\(76\) / Int64\(\-46\) \* Int64\(13\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 54 * + 33 AS col0, 65 / + CAST ( NULL AS INTEGER ) - + - 53 - + 76 / - 46 * 13 * + 36 AS col0 query II rowsort label-8190 @@ -43317,7 +43317,7 @@ SELECT + 41 + + + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-81\) AS col0" at position 0 and "\(\- Int64\(\-45\)\) \* \(\- Int64\(58\)\) \- Int64\(92\) \+ Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-81\) AS col0" at position 0 and "\(\- Int64\(\-45\)\) \* \(\- Int64\(58\)\) \- Int64\(92\) \+ Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * - 81 AS col0, ( - - 45 ) * - + 58 - + + 92 + ( + - 13 ) AS col0 query I rowsort @@ -43619,7 +43619,7 @@ SELECT ( 80 ) + - + 41 + + 12 - + ( + 75 ) * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 180 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ min\(Int64\(26\)\) \+ Int64\(90\) AS col1" at position 0 and "nullif\(Int64\(72\), Int64\(71\) \* coalesce\(Int64\(77\), Int64\(74\), CAST\(Int64\(43\) AS Int32\) \+ Int64\(84\) \* Int64\(37\)\) \* sum\(Int64\(76\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ min\(Int64\(26\)\) \+ Int64\(90\) AS col1" at position 0 and "nullif\(Int64\(72\), Int64\(71\) \* coalesce\(Int64\(77\), Int64\(74\), CAST\(Int64\(43\) AS Int64\) \+ Int64\(84\) \* Int64\(37\)\) \* sum\(Int64\(76\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 64 + + MIN ( 26 ) + + 90 AS col1, + NULLIF ( + 72, 71 * + COALESCE ( + 77, 74, CAST ( 43 AS INTEGER ) + 84 * 37 ) * SUM ( 76 ) ) + COUNT ( * ) col1 query II rowsort label-8317 @@ -44091,7 +44091,7 @@ SELECT DISTINCT - 16, 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "sum\(Int64\(34\)\) / Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "sum\(Int64\(34\)\) / Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, + SUM ( ALL 34 ) / + - 60 AS col0 query I rowsort label-8407 @@ -44766,7 +44766,7 @@ SELECT DISTINCT - 87 * - 29 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -5429 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- nullif\(Int64\(44\), Int64\(47\) \+ Int64\(94\) \+ Int64\(30\)\)\) \* Int64\(25\) / Int64\(\-99\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-61\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- nullif\(Int64\(44\), Int64\(47\) \+ Int64\(94\) \+ Int64\(30\)\)\) \* Int64\(25\) / Int64\(\-99\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(\-61\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 65 * - NULLIF ( 44, + 47 + 94 + 30 ) * + 25 / - 99 * + ( - - COUNT ( * ) ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, ( - 61 ) * + + 89 AS col1, + - 15 + + SUM ( DISTINCT 59 ) * COUNT ( * ) AS col0 query I rowsort label-8534 @@ -45943,7 +45943,7 @@ SELECT DISTINCT - 16 * - + ( 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, 98 + - 45 AS col2 query I rowsort label-8757 @@ -47552,7 +47552,7 @@ SELECT ALL - CAST ( CASE 25 WHEN - COUNT ( * ) THEN NULL ELSE + + 31 END AS INTE # Datafusion - Expected - 0 # Datafusion - Expected - 61 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / CAST\(Int64\(89\) AS Int32\) AS col2" at position 0 and "Int64\(50\) \+ Int64\(10\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / CAST\(Int64\(89\) AS Int64\) AS col2" at position 0 and "Int64\(50\) \+ Int64\(10\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 29 / + CAST ( 89 AS INTEGER ) AS col2, 50 + + + 10 + + COUNT ( * ) col2, 0 / + + 83 * - COUNT ( * ) * 82 query II rowsort label-9064 @@ -47634,7 +47634,7 @@ SELECT SUM ( ALL + ( - - 25 ) ) * - COALESCE ( - + 55, 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 203433 # Datafusion - Expected - 300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- Int64\(\-57\)\) \* CAST\(Int64\(43\) AS Int32\) AS col0" at position 0 and "Int64\(50\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- Int64\(\-57\)\) \* CAST\(Int64\(43\) AS Int64\) AS col0" at position 0 and "Int64\(50\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 * - - 57 * + CAST ( 43 AS INTEGER ) AS col0, + 50 * 6 AS col0 query I rowsort label-9079 @@ -47995,7 +47995,7 @@ SELECT + ( - MAX ( DISTINCT 87 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(24\) AS Int32\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(24\) AS Int64\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( + + CAST ( 24 AS INTEGER ) ) AS col1, 21 col1 query I rowsort @@ -48443,7 +48443,7 @@ SELECT DISTINCT - - 31 * - 11 * 52 + COUNT ( + 6 ) - - COUNT ( * ) / 55 AS col1 # Datafusion - Expected - -24 # Datafusion - Expected - -1034 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(11\) AS col1" at position 1 and "Int64\(3\) / Int64\(64\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-95\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(11\) AS col1" at position 1 and "Int64\(3\) / Int64\(64\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-95\) AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + ( COUNT ( - - 36 ) ) + - 23, - 94 * + 11 AS col1, 3 / 64 + + 15 * COUNT ( * ) + + CAST ( + - 95 AS INTEGER ) AS col1 query I rowsort @@ -52009,7 +52009,7 @@ SELECT 18 + + ( - 58 ) + + - 31 - + + 77 * + COUNT ( * ) + 27 * COUNT ( * ) * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) 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\. SELECT DISTINCT 10 AS col0, CAST ( NULL AS INTEGER ) col0 query I rowsort label-9917 @@ -52264,7 +52264,7 @@ SELECT ALL - ( 53 ), MAX ( DISTINCT 81 ) * - 12 * COUNT ( * ) - + 82 * SUM ( - - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- Int64\(22\) \+ Int64\(\-55\) \* CAST\(NULL AS Int32\) \* Int64\(88\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(\-60\) \- min\(DISTINCT Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- Int64\(22\) \+ Int64\(\-55\) \* CAST\(NULL AS Int64\) \* Int64\(88\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(\-60\) \- min\(DISTINCT Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 - 22 + - 55 * CAST ( NULL AS INTEGER ) * + 88 AS col1, ( 20 ) + + - 60 - + MIN ( DISTINCT 23 ) AS col1 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_59.slt b/data/sqlite/random/expr/slt_good_59.slt index d69cd81..5b710e3 100644 --- a/data/sqlite/random/expr/slt_good_59.slt +++ b/data/sqlite/random/expr/slt_good_59.slt @@ -9460,7 +9460,7 @@ SELECT 29 / 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) AS col2" at position 0 and "Int64\(\-18\) \+ \(\- CAST\(Int64\(\-3\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) AS col2" at position 0 and "Int64\(\-18\) \+ \(\- CAST\(Int64\(\-3\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + 19 ) AS col2, - 18 + - CAST ( - 3 AS INTEGER ) AS col2 query I rowsort label-1808 @@ -10664,7 +10664,7 @@ SELECT - 68 AS col2, - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(67\) WHEN Int64\(\-34\) / Int64\(\-95\) THEN CAST\(NULL AS Int32\) \* Int64\(\-48\) \+ Int64\(\-29\) ELSE Int64\(\-68\) END \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(2\) \+ \(\- Int64\(88\)\) \- Int64\(38\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(67\) WHEN Int64\(\-34\) / Int64\(\-95\) THEN CAST\(NULL AS Int64\) \* Int64\(\-48\) \+ Int64\(\-29\) ELSE Int64\(\-68\) END \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(2\) \+ \(\- Int64\(88\)\) \- Int64\(38\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 AS col0, CASE + 67 WHEN + - 34 / + - 95 THEN + CAST ( NULL AS INTEGER ) * - 48 + + - 29 ELSE + - 68 END * - - COUNT ( * ) + + 2 + - + 88 - 38 / 3 AS col0 query II rowsort label-2037 @@ -11823,7 +11823,7 @@ SELECT ALL + 7 AS col1, + 77 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-45\) \* \(\- Int64\(\-70\)\) \+ count\(Int64\(66\)\) \* Int64\(58\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-3\) / Int64\(76\) \* Int64\(\-94\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-45\) \* \(\- Int64\(\-70\)\) \+ count\(Int64\(66\)\) \* Int64\(58\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-3\) / Int64\(76\) \* Int64\(\-94\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 78 col2, COUNT ( * ) * - 45 * - - 70 + COUNT ( + + ( + + 66 ) ) * + 58 + - NULLIF ( + COUNT ( * ), - 3 / 76 * + - 94 ) + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2258 @@ -12853,7 +12853,7 @@ SELECT + 77 * + - 50 * + + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(94\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(94\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * 94 AS col0, - 99 AS col0 query I rowsort label-2453 @@ -13460,7 +13460,7 @@ SELECT COUNT ( * ) / - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(\-21\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(\-21\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 + - - 21 AS col1, CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -13832,7 +13832,7 @@ SELECT + 42 + 55 + + + 97 * - 80 + + 18 + - 79 + - 49 * - COUNT ( * ) * + 7 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(25\) AS Int32\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(25\) AS Int64\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 25 AS INTEGER ) AS col2, 73 AS col2 query I rowsort label-2635 @@ -14027,7 +14027,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- \(\- nullif\(Int64\(12\), Int64\(56\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / \(\- \(\- nullif\(Int64\(12\), Int64\(56\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 AS col0, - CAST ( NULL AS INTEGER ) / - - NULLIF ( + + 12, + 56 ) AS col0 query I rowsort @@ -18006,7 +18006,7 @@ SELECT 16 + - 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -2883 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(31\) \* CAST\(Int64\(\-93\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(31\) \* CAST\(Int64\(\-93\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 17 AS col2, + 31 * + + CAST ( + - 93 AS INTEGER ) col2 query I rowsort label-3436 @@ -19709,7 +19709,7 @@ SELECT DISTINCT 49 AS col1, 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(10\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(10\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 72 - COUNT ( * ) + COUNT ( * ) AS col2, + 10 * CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-3763 @@ -21823,7 +21823,7 @@ SELECT + ( + 8 ) AS col1, MAX ( + 49 ) + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 + + - CAST ( NULL AS INTEGER ) AS col0, - 40 AS col0 query I rowsort @@ -24006,7 +24006,7 @@ SELECT DISTINCT - 14 / + COUNT ( - 84 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 74077 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int32\) AS col1" at position 0 and "Int64\(20\) \* Int64\(\-57\) \* \(\- max\(\(\- Int64\(\-65\)\)\)\) \* count\(DISTINCT Int64\(9\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE Int64\(\-84\) WHEN Int64\(\-66\) THEN \(\- Int64\(0\)\) ELSE Int64\(\-22\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int64\) AS col1" at position 0 and "Int64\(20\) \* Int64\(\-57\) \* \(\- max\(\(\- Int64\(\-65\)\)\)\) \* count\(DISTINCT Int64\(9\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE Int64\(\-84\) WHEN Int64\(\-66\) THEN \(\- Int64\(0\)\) ELSE Int64\(\-22\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 16 AS INTEGER ) AS col1, 20 * - 57 * - + MAX ( - - 65 ) * + ( COUNT ( DISTINCT 9 ) ) + - + COUNT ( * ) + + CASE - 84 WHEN - 66 THEN - + 0 ELSE - 22 END AS col1 query I rowsort label-4578 @@ -24255,7 +24255,7 @@ SELECT DISTINCT - 33 + + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6369 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(\-96\) \* CAST\(Int64\(\-65\) AS Int32\) \+ Int64\(92\) / count\(Int64\(1\)\) AS count\(\*\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(\-96\) \* CAST\(Int64\(\-65\) AS Int64\) \+ Int64\(92\) / count\(Int64\(1\)\) AS count\(\*\) 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\. SELECT DISTINCT + + 37 + - 96 * CAST ( - 65 AS INTEGER ) + + + 92 / COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-4626 @@ -25623,7 +25623,7 @@ SELECT ALL + 78 * - - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(48\) \+ Int64\(91\) AS col1" at position 0 and "nullif\(Int64\(\-58\), Int64\(\-42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(48\) \+ Int64\(91\) AS col1" at position 0 and "nullif\(Int64\(\-58\), Int64\(\-42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) * + 48 + + 91 AS col1, NULLIF ( - 58, - 42 ) col1 query I rowsort label-4894 @@ -27396,7 +27396,7 @@ NULL # Datafusion - Expected - 88 # Datafusion - Expected - -14 # Datafusion - Expected - -224044 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(88\) AS Int32\)\)\) AS col0" at position 0 and "\(\- sum\(Int64\(\-33\)\)\) \+ \(\- Int64\(83\)\) \+ Int64\(\-3\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(88\) AS Int64\)\)\) AS col0" at position 0 and "\(\- sum\(Int64\(\-33\)\)\) \+ \(\- Int64\(83\)\) \+ Int64\(\-3\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( + 88 AS INTEGER ) AS col0, - SUM ( - 33 ) + - + 83 + + - 3 * - 12 AS col0, - 50 - + 57 + - 78 * + 33 * + + 87 + COUNT ( * ) query I rowsort label-5231 @@ -30586,7 +30586,7 @@ SELECT 1 + + 53 * + 69 AS col1, + 14 * + + 23 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(50\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(50\) \- Int64\(71\) \+ Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(50\) \- CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(50\) \- Int64\(71\) \+ Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 * + + 50 - + CAST ( NULL AS INTEGER ) AS col0, 50 - + 71 + - 22 AS col0 query I rowsort label-5834 @@ -31292,7 +31292,7 @@ SELECT DISTINCT - ( - + CAST ( - - 99 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-37\) AS Int32\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-37\) AS Int64\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 37 AS INTEGER ) AS col0, + 28 AS col0 query II rowsort label-5966 @@ -36165,7 +36165,7 @@ SELECT DISTINCT 89 * - 20, 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int32\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int64\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + 10 AS INTEGER ) AS col0, 82 AS col0 query I rowsort @@ -36522,7 +36522,7 @@ SELECT ( - 82 ) * + - 21 + + 42 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(59\) \* Int64\(65\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) \- Int64\(\-86\) / Int64\(\-63\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(59\) \* Int64\(65\) \* \(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) \- Int64\(\-86\) / Int64\(\-63\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 AS col0, 59 * + 65 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + 8 - - 86 / - 63 + + + 25 col0 query II rowsort label-6961 @@ -38093,7 +38093,7 @@ SELECT DISTINCT + + ( - SUM ( - 75 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -751 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(38\)\) \- max\(\(\- Int64\(\-89\)\)\) \* max\(DISTINCT Int64\(31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- Int64\(38\)\) \- max\(\(\- Int64\(\-89\)\)\) \* max\(DISTINCT Int64\(31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 8 * + + 94 + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * - + 38 - + MAX ( ALL - - 89 ) * MAX ( DISTINCT + 31 ) AS col0 query I rowsort label-7261 @@ -39842,7 +39842,7 @@ SELECT 86 * 57 + + + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(\-73\)\) / \(\- max\(Int64\(\-16\)\)\) THEN Int64\(44\) ELSE NULL END\)\) \* Int64\(\-34\) \* CAST\(NULL AS Int32\) \+ Int64\(\-75\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(97\), Int64\(68\) \* Int64\(22\) \+ Int64\(\-25\)\)\) \* Int64\(65\) \+ Int64\(\-97\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE CAST\(NULL AS Int64\) WHEN \(\- Int64\(\-73\)\) / \(\- max\(Int64\(\-16\)\)\) THEN Int64\(44\) ELSE NULL END\)\) \* Int64\(\-34\) \* CAST\(NULL AS Int64\) \+ Int64\(\-75\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(97\), Int64\(68\) \* Int64\(22\) \+ Int64\(\-25\)\)\) \* Int64\(65\) \+ Int64\(\-97\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CASE + CAST ( NULL AS INTEGER ) WHEN - - 73 / - MAX ( - 16 ) THEN 44 ELSE NULL END * - 34 * CAST ( NULL AS INTEGER ) + - 75 + + COUNT ( * ) AS col2, - ( + + NULLIF ( + 97, + 68 * 22 + - 25 ) ) * 65 + - 97 + + 74 AS col2 query I rowsort label-7591 @@ -40006,7 +40006,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1037232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(28\) \* Int64\(84\) \* Int64\(9\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(28\) \* Int64\(84\) \* Int64\(9\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 28 * 84 * 9 * + 49 AS col0 # Datafusion - Datafusion expected results: @@ -40466,7 +40466,7 @@ SELECT SUM ( ALL - CAST ( - 98 AS INTEGER ) ) * 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- min\(\(\- Int64\(\-75\)\)\)\)\)\) \* min\(DISTINCT CASE Int64\(\-47\) WHEN Int64\(22\) \* Int64\(\-86\) \* Int64\(98\) \* Int64\(\-98\) \- Int64\(72\) THEN \(\- CASE Int64\(\-5\) WHEN Int64\(\-1\) THEN Int64\(75\) ELSE NULL END\) WHEN Int64\(\-46\) THEN NULL ELSE Int64\(86\) \+ Int64\(74\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-26\) \+ Int64\(52\) \* Int64\(\-56\) \+ Int64\(42\) END\) \* Int64\(25\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- min\(\(\- Int64\(\-75\)\)\)\)\)\) \* min\(DISTINCT CASE Int64\(\-47\) WHEN Int64\(22\) \* Int64\(\-86\) \* Int64\(98\) \* Int64\(\-98\) \- Int64\(72\) THEN \(\- CASE Int64\(\-5\) WHEN Int64\(\-1\) THEN Int64\(75\) ELSE NULL END\) WHEN Int64\(\-46\) THEN NULL ELSE Int64\(86\) \+ Int64\(74\) \+ CAST\(NULL AS Int64\) \+ Int64\(\-26\) \+ Int64\(52\) \* Int64\(\-56\) \+ Int64\(42\) END\) \* Int64\(25\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 * - NULLIF ( + COUNT ( * ), + ( - MIN ( - - 75 ) ) ) * MIN ( DISTINCT + CASE - 47 WHEN 22 * - 86 * + + 98 * + - 98 - 72 THEN + - CASE + - 5 WHEN - 1 THEN + 75 ELSE NULL END WHEN + - 46 THEN NULL ELSE 86 + 74 + CAST ( NULL AS INTEGER ) + - 26 + 52 * - 56 + + 42 END ) * + 25 + + ( - COUNT ( * ) ) AS col0, 75 + 96 AS col0 query I rowsort label-7709 @@ -40512,7 +40512,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-51\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(45\)\) \- \(\- Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-51\) \+ CAST\(NULL AS Int64\) \+ \(\- Int64\(45\)\) \- \(\- Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) - - 51 + CAST ( NULL AS INTEGER ) + - + 45 - - + 61 * - COUNT ( * ) + + 88 col1, 59 AS col1 query I rowsort label-7718 @@ -40929,7 +40929,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39744 # Datafusion - Expected - -579 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(24\) AS Int32\)\) \* Int64\(69\) \* nullif\(Int64\(24\), Int64\(\-55\)\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(\-12\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(24\) AS Int64\)\) \* Int64\(69\) \* nullif\(Int64\(24\), Int64\(\-55\)\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(\-12\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 24 AS INTEGER ) * 69 * NULLIF ( 24, - 55 ) AS col0, 69 + - 12 * + 54 AS col0 query I rowsort @@ -44252,7 +44252,7 @@ SELECT ALL + 46 + + 22 + ( - + ( 81 ) ) / - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, 90 col2 query II rowsort @@ -47411,7 +47411,7 @@ SELECT ALL + 17 * + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) / Int64\(53\) \* \(\- Int64\(\-96\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) / Int64\(53\) \* \(\- Int64\(\-96\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 53 / 53 * - - 96 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -48593,7 +48593,7 @@ SELECT + - 9 * - 0 + - 26 * - ( - 64 ) + - + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -2820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "CAST\(Int64\(94\) AS Int32\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "CAST\(Int64\(94\) AS Int64\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 61 AS col1, + CAST ( 94 AS INTEGER ) * - 30 AS col1 query I rowsort label-9268 @@ -48817,7 +48817,7 @@ SELECT ALL + 22 AS col2, - 60 / - COALESCE ( 81, ( + - CASE + + MAX ( - 1 ) WHEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "\(\- nullif\(nullif\(nullif\(\(\- sum\(Int64\(45\)\)\), Int64\(18\)\), Int64\(\-6\)\), CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "\(\- nullif\(nullif\(nullif\(\(\- sum\(Int64\(45\)\)\), Int64\(18\)\), Int64\(\-6\)\), CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 44 AS col2, ( - NULLIF ( NULLIF ( NULLIF ( - ( SUM ( + 45 ) ), 18 ), - 6 ), + CAST ( NULL AS INTEGER ) ) ) AS col2 query I rowsort label-9310 @@ -49129,7 +49129,7 @@ SELECT DISTINCT + 51, + 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- count\(CASE Int64\(23\) WHEN Int64\(98\) \+ Int64\(51\) \* Int64\(\-46\) THEN \(\- nullif\(Int64\(\-68\), coalesce\(Int64\(40\), CAST\(NULL AS Int32\), \(\- CAST\(NULL AS Int32\)\) / Int64\(88\)\)\)\) / Int64\(\-80\) \+ Int64\(98\) \+ Int64\(\-48\) \* \(\- Int64\(\-5\)\) \* Int64\(19\) ELSE NULL END\)\) \* Int64\(\-80\) \* Int64\(\-25\) \+ Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- count\(CASE Int64\(23\) WHEN Int64\(98\) \+ Int64\(51\) \* Int64\(\-46\) THEN \(\- nullif\(Int64\(\-68\), coalesce\(Int64\(40\), CAST\(NULL AS Int64\), \(\- CAST\(NULL AS Int64\)\) / Int64\(88\)\)\)\) / Int64\(\-80\) \+ Int64\(98\) \+ Int64\(\-48\) \* \(\- Int64\(\-5\)\) \* Int64\(19\) ELSE NULL END\)\) \* Int64\(\-80\) \* Int64\(\-25\) \+ Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44 AS col2, - COUNT ( + CASE 23 WHEN + + 98 + + 51 * + - 46 THEN - NULLIF ( - 68, COALESCE ( + + 40, CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) / 88 ) ) / - 80 + 98 + - 48 * - - 5 * 19 ELSE NULL END ) * - 80 * - 25 + - 74 AS col2 query I rowsort @@ -49918,7 +49918,7 @@ SELECT ALL 64 + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) / min\(Int64\(28\)\) AS col2" at position 0 and "count\(DISTINCT Int64\(74\)\) \+ \(\- \(\- CAST\(Int64\(12\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) / min\(Int64\(28\)\) AS col2" at position 0 and "count\(DISTINCT Int64\(74\)\) \+ \(\- \(\- CAST\(Int64\(12\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 87 / MIN ( + 28 ) AS col2, COUNT ( DISTINCT + 74 ) + - - CAST ( + 12 AS INTEGER ) AS col2 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_6.slt b/data/sqlite/random/expr/slt_good_6.slt index 835044a..9539b79 100644 --- a/data/sqlite/random/expr/slt_good_6.slt +++ b/data/sqlite/random/expr/slt_good_6.slt @@ -4483,7 +4483,7 @@ SELECT DISTINCT - NULLIF ( + - 57, + 40 ) * + - MIN ( DISTINCT - - 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(8\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(8\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * + 8 AS col1, 42 AS col1 query I rowsort @@ -4646,7 +4646,7 @@ SELECT ALL - MIN ( DISTINCT - - CASE - 95 WHEN 74 THEN NULL ELSE 70 / - 51 END ) # Datafusion - Expected - NULL # Datafusion - Expected - 66 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-77\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-77\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 22 * ( - CAST ( NULL AS INTEGER ) ) * - - 77 + - COUNT ( * ) col1, 66, 2 AS col1 query I rowsort label-883 @@ -5227,7 +5227,7 @@ SELECT DISTINCT 31 + - 4 + - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108663 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(34\) \* Int64\(\-39\) \+ Int64\(\-69\) AS col0" at position 0 and "Int64\(\-57\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(7\) \+ Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(34\) \* Int64\(\-39\) \+ Int64\(\-69\) AS col0" at position 0 and "Int64\(\-57\) \* \(\- CAST\(NULL AS Int64\)\) / Int64\(7\) \+ Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 82 * 34 * - 39 + - 69 col0, - 57 * - CAST ( NULL AS INTEGER ) / 7 + + 90 AS col0 query I rowsort @@ -6208,7 +6208,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-80\)\)\) \+ Int64\(19\) AS col2" at position 0 and "\(\- coalesce\(Int64\(0\), \(\- Int64\(90\)\) \* Int64\(3\), \(\- Int64\(\-61\)\) \- \(\- Int64\(69\)\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-80\)\)\) \+ Int64\(19\) AS col2" at position 0 and "\(\- coalesce\(Int64\(0\), \(\- Int64\(90\)\) \* Int64\(3\), \(\- Int64\(\-61\)\) \- \(\- Int64\(69\)\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + MIN ( ALL - 80 ) + + 19 AS col2, - COALESCE ( + 0, - + 90 * + + 3, - - 61 - - + 69 / - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 query I rowsort @@ -6701,7 +6701,7 @@ SELECT - 27 - - + COUNT ( * ) + - - 51 AS col2, + ( + + 27 ) + 2 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CASE Int64\(\-45\) WHEN Int64\(29\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(74\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "CASE Int64\(\-45\) WHEN Int64\(29\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(74\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1 query I rowsort @@ -7061,7 +7061,7 @@ SELECT - 74 - - 86 * + + 25 AS col2, - COALESCE ( + 89, - 75, 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ max\(DISTINCT Int64\(87\)\) \* \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ max\(DISTINCT Int64\(87\)\) \* \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 67 AS col2, + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 87 ) * - - 30 col2 # Datafusion - Types were automatically converted from: @@ -7529,7 +7529,7 @@ SELECT COUNT ( * ) * + ( 93 ) + - 20 * + 78 + 2 / + SUM ( DISTINCT + + 70 ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(\-37\) \+ Int64\(47\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(24\)\) / CAST\(nullif\(Int64\(79\), Int64\(14\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(\-37\) \+ Int64\(47\) \+ CAST\(NULL AS Int64\) \+ \(\- Int64\(24\)\) / CAST\(nullif\(Int64\(79\), Int64\(14\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col1, - 37 + + 47 + + CAST ( NULL AS INTEGER ) + - + ( 24 ) / CAST ( NULLIF ( + + ( + 79 ), 14 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: @@ -8153,7 +8153,7 @@ SELECT ALL + 58 + - - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -3201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(24\) / CAST\(Int64\(98\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(6\) \+ Int64\(\-41\) \* Int64\(79\) \+ \(\- Int64\(\-44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(24\) / CAST\(Int64\(98\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(6\) \+ Int64\(\-41\) \* Int64\(79\) \+ \(\- Int64\(\-44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 AS col1, 24 / + CAST ( 98 AS INTEGER ) * - ( + COUNT ( * ) ) - + 6 + - 41 * + 79 + - - 44 AS col1 query I rowsort label-1544 @@ -8427,7 +8427,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(13\) \- \(\- CAST\(coalesce\(Int64\(\-6\), Int64\(\-87\)\) AS Int32\)\) \+ Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(13\) \- \(\- CAST\(coalesce\(Int64\(\-6\), Int64\(\-87\)\) AS Int64\)\) \+ Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 65 AS col0, 13 - - CAST ( + COALESCE ( - 6, - 87 ) AS INTEGER ) + - 35 AS col0 query II rowsort @@ -8629,7 +8629,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -354816 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(Int64\(81\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(62\) ELSE Int64\(\-99\) \* Int64\(64\) \* \(\- Int64\(56\)\) END\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(Int64\(81\) AS Int64\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(62\) ELSE Int64\(\-99\) \* Int64\(64\) \* \(\- Int64\(56\)\) END\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE CAST ( + 81 AS INTEGER ) WHEN + COUNT ( * ) THEN 62 ELSE ( - 99 ) * 64 * - + 56 END AS col1, + 9 AS col1 query I rowsort @@ -9156,7 +9156,7 @@ SELECT - NULLIF ( + 93, COUNT ( ALL 6 ) - - - 37 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 40 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(CASE Int64\(78\) WHEN Int64\(74\) THEN NULL WHEN Int64\(\-74\) THEN \(\- Int64\(\-83\)\) END AS Int32\) WHEN Int64\(\-95\) \* Int64\(61\) \+ Int64\(\-99\) \+ Int64\(\-44\) THEN NULL WHEN \(\- Int64\(10\)\) \* Int64\(70\) \* Int64\(38\) THEN NULL WHEN Int64\(\-70\) THEN Int64\(65\) END\) \+ \(\- Int64\(45\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(CASE Int64\(78\) WHEN Int64\(74\) THEN NULL WHEN Int64\(\-74\) THEN \(\- Int64\(\-83\)\) END AS Int64\) WHEN Int64\(\-95\) \* Int64\(61\) \+ Int64\(\-99\) \+ Int64\(\-44\) THEN NULL WHEN \(\- Int64\(10\)\) \* Int64\(70\) \* Int64\(38\) THEN NULL WHEN Int64\(\-70\) THEN Int64\(65\) END\) \+ \(\- Int64\(45\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE CAST ( + CASE + ( 78 ) WHEN 74 THEN NULL WHEN - 74 THEN - - 83 END AS INTEGER ) WHEN + - 95 * + + 61 + + - 99 + - 44 THEN NULL WHEN - + 10 * 70 * + 38 THEN NULL WHEN - 70 THEN 65 END + - + 45 AS col1, + 82 + - 42 col1, - 54 col0 query I rowsort label-1732 @@ -10869,7 +10869,7 @@ SELECT DISTINCT + 40 AS col1, - 86 # Datafusion - Expected - 2214 # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 1 and "Int64\(97\) \+ Int64\(11\) \* Int64\(\-26\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 1 and "Int64\(97\) \+ Int64\(11\) \* Int64\(\-26\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 27 * - - ( + 82 ), 30 AS col2, + 97 + 11 * - 26 + - CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -11775,7 +11775,7 @@ SELECT - 91 * 71 * - 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(2\) \+ \(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(2\) \+ \(\- CAST\(Int64\(35\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 col2, 2 + - + CAST ( 35 AS INTEGER ) AS col2 query I rowsort label-2233 @@ -13893,7 +13893,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(90\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(90\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 + + 28 AS col2, 90 * - + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -14435,7 +14435,7 @@ SELECT DISTINCT MIN ( DISTINCT 38 ) * - 45 * 84 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- CAST\(Int64\(\-18\) AS Int32\)\) \* count\(Int64\(6\)\) AS col2" at position 0 and "Int64\(\-99\) \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- CAST\(Int64\(\-18\) AS Int64\)\) \* count\(Int64\(6\)\) AS col2" at position 0 and "Int64\(\-99\) \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 44 + - CAST ( - 18 AS INTEGER ) * COUNT ( + 6 ) AS col2, - 99 + 18 AS col2 query I rowsort label-2739 @@ -14804,7 +14804,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 42 AS col0, CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-2809 @@ -15099,7 +15099,7 @@ SELECT DISTINCT ( - + 36 ) * + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE Int64\(\-55\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-46\) WHEN \(\- \(\- count\(Int64\(45\)\)\)\) \* Int64\(\-64\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE Int64\(\-55\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-46\) WHEN \(\- \(\- count\(Int64\(45\)\)\)\) \* Int64\(\-64\) THEN NULL ELSE \(\- CAST\(NULL AS Int64\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 29 AS col1, + COUNT ( * ) + CASE - 55 WHEN - COUNT ( * ) THEN + - 46 WHEN + - ( ( - COUNT ( + 45 ) ) ) * - 64 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END AS col1 query I rowsort label-2865 @@ -15323,7 +15323,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE sum\(Int64\(60\)\) WHEN coalesce\(\(\- count\(DISTINCT Int64\(\-47\)\)\), Int64\(55\)\) \+ \(\- sum\(Int64\(13\)\)\) \+ \(\- CAST\(coalesce\(Int64\(12\), avg\(Int64\(\-54\)\), \(\- \(\- Int64\(21\)\)\)\) AS Int32\)\) \* Int64\(\-80\) THEN Int64\(60\) \+ Int64\(27\) ELSE Int64\(76\) END\) AS col2" at position 0 and "Int64\(\-92\) \* \(\- Int64\(\-90\)\) \* \(\- Int64\(\-94\)\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE sum\(Int64\(60\)\) WHEN coalesce\(\(\- count\(DISTINCT Int64\(\-47\)\)\), Int64\(55\)\) \+ \(\- sum\(Int64\(13\)\)\) \+ \(\- CAST\(coalesce\(Int64\(12\), avg\(Int64\(\-54\)\), \(\- \(\- Int64\(21\)\)\)\) AS Int64\)\) \* Int64\(\-80\) THEN Int64\(60\) \+ Int64\(27\) ELSE Int64\(76\) END\) AS col2" at position 0 and "Int64\(\-92\) \* \(\- Int64\(\-90\)\) \* \(\- Int64\(\-94\)\) \+ \(\- CAST\(NULL AS Int64\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + SUM ( ALL + + 60 ) WHEN + COALESCE ( + - COUNT ( DISTINCT - 47 ), 55 ) + - SUM ( + 13 ) + - CAST ( + COALESCE ( 12, AVG ( ALL + - 54 ), - - ( + 21 ) ) AS INTEGER ) * - 80 THEN + + 60 + + 27 ELSE + 76 END AS col2, - 92 * - - 90 * - - 94 + - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) col2 query I rowsort @@ -17821,7 +17821,7 @@ SELECT + COUNT ( * ), 42 + - 2 + + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(58\)\) \* Int64\(\-42\) \+ Int64\(64\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CASE Int64\(84\) WHEN Int64\(57\) THEN \(\- Int64\(65\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(58\)\) \* Int64\(\-42\) \+ Int64\(64\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "CASE Int64\(84\) WHEN Int64\(57\) THEN \(\- Int64\(65\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT 58 ) * - 42 + 64 + - CAST ( NULL AS INTEGER ) AS col1, CASE 84 WHEN 57 THEN - + 65 END col1 # Datafusion - Data was automatically updated based on comparison db results @@ -17853,7 +17853,7 @@ SELECT ALL + COUNT ( * ) / + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(66\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "\(\- Int64\(\-68\)\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(66\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "\(\- Int64\(\-68\)\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 90 * + 66 + - - CAST ( NULL AS INTEGER ) AS col2, - ( - 68 ) + + 0 AS col2 query I rowsort @@ -17910,7 +17910,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(32\) \- CASE Int64\(\-64\) WHEN Int64\(5\) \* Int64\(10\) \* \(\- CASE Int64\(21\) WHEN Int64\(71\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(92\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(\(\- Int64\(81\)\)\)\) \* Int64\(37\) \* \(\- Int64\(90\)\) \- avg\(Int64\(71\)\) \+ Int64\(\-66\) THEN Int64\(\-20\) / sum\(Int64\(30\)\) END\) \- Int64\(31\) \+ Int64\(\-2\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(4\) \* avg\(DISTINCT Int64\(\-26\)\) \* \(\- Int64\(\-16\)\) \+ Int64\(\-69\) \* Int64\(33\) \* Int64\(12\) THEN count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(50\) \* \(\- Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(32\) \- CASE Int64\(\-64\) WHEN Int64\(5\) \* Int64\(10\) \* \(\- CASE Int64\(21\) WHEN Int64\(71\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(92\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(\(\- Int64\(81\)\)\)\) \* Int64\(37\) \* \(\- Int64\(90\)\) \- avg\(Int64\(71\)\) \+ Int64\(\-66\) THEN Int64\(\-20\) / sum\(Int64\(30\)\) END\) \- Int64\(31\) \+ Int64\(\-2\) \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(4\) \* avg\(DISTINCT Int64\(\-26\)\) \* \(\- Int64\(\-16\)\) \+ Int64\(\-69\) \* Int64\(33\) \* Int64\(12\) THEN count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(50\) \* \(\- Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 53 AS col0, 32 - CASE - 64 WHEN + + 5 * + + 10 * - CASE 21 WHEN + 71 THEN COUNT ( * ) + - + 92 WHEN + COUNT ( * ) * COUNT ( * ) * - + MAX ( ALL - + 81 ) * 37 * - + 90 - AVG ( ALL 71 ) + - 66 THEN + - 20 / SUM ( + 30 ) END - + 31 + - 2 - + - CAST ( NULL AS INTEGER ) * 4 * AVG ( DISTINCT - 26 ) * - - 16 + - 69 * + 33 * + 12 THEN + COUNT ( * ) END + + + 50 * - - 13 AS col0 query I rowsort label-3397 @@ -18270,7 +18270,7 @@ SELECT DISTINCT + 7 * + + 84 * - 75 * - SUM ( DISTINCT - - 31 ) + - - 72 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-12\) \* \(\- \(\- CASE CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) WHEN Int64\(4\) \* Int64\(\-4\) THEN Int64\(\-74\) \* Int64\(\-95\) \+ count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-12\) \* \(\- \(\- CASE CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) WHEN Int64\(4\) \* Int64\(\-4\) THEN Int64\(\-74\) \* Int64\(\-95\) \+ count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col2, - 12 * - - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 4 * - 4 THEN + - 74 * - 95 + + + COUNT ( * ) END AS col2 query I rowsort label-3464 @@ -18289,7 +18289,7 @@ SELECT + NULLIF ( - + 28, + MIN ( CAST ( NULL AS FLOAT8 ) ) ) / + - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-92\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- Int64\(62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-92\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- Int64\(62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 * - 92 * + + CAST ( NULL AS INTEGER ) AS col0, - ( + 62 ) col0 query I rowsort @@ -23095,7 +23095,7 @@ SELECT - 70 / + 72 - + 95 + - - 22 / 55 * - + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-29\) THEN Int64\(52\) WHEN Int64\(50\) THEN \(\- CAST\(\(\- Int64\(\-24\)\) AS Int32\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-29\) THEN Int64\(52\) WHEN Int64\(50\) THEN \(\- CAST\(\(\- Int64\(\-24\)\) AS Int64\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 AS col2, CASE + COUNT ( * ) WHEN - 29 THEN + + 52 WHEN 50 THEN - CAST ( - - 24 AS INTEGER ) END AS col2 query I rowsort label-4384 @@ -24157,7 +24157,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 1736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(43\) AS Int32\) AS col0" at position 0 and "Int64\(\-62\) \* \(\- coalesce\(\(\- Int64\(\-28\)\), Int64\(4\), Int64\(6\) \* CAST\(Int64\(57\) AS Int32\) \* Int64\(4\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(43\) AS Int64\) AS col0" at position 0 and "Int64\(\-62\) \* \(\- coalesce\(\(\- Int64\(\-28\)\), Int64\(4\), Int64\(6\) \* CAST\(Int64\(57\) AS Int64\) \* Int64\(4\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 43 AS INTEGER ) col0, - 62 * - + COALESCE ( - - 28, 4, 6 * CAST ( 57 AS INTEGER ) * + 4 ) AS col0 query I rowsort @@ -24688,7 +24688,7 @@ SELECT - + ( 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -1037 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(42\) \* \(\- CAST\(Int64\(25\) AS Int32\)\) \+ Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(42\) \* \(\- CAST\(Int64\(25\) AS Int64\)\) \+ Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 10 AS col2, ( 42 ) * - CAST ( ( + 25 ) AS INTEGER ) + + 13 AS col2 query I rowsort label-4686 @@ -25622,7 +25622,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "CAST\(\(\- min\(Int64\(10\)\)\) AS Int32\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "CAST\(\(\- min\(Int64\(10\)\)\) AS Int64\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 67 col0, + CAST ( - MIN ( ALL + 10 ) AS INTEGER ) * 45 col0 query I rowsort @@ -25778,7 +25778,7 @@ SELECT COUNT ( * ) * + 36 * + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- CASE Int64\(\-68\) WHEN Int64\(40\) THEN NULL WHEN Int64\(9\) \* \(\- Int64\(44\)\) THEN NULL WHEN Int64\(50\) \+ Int64\(\-95\) \+ Int64\(14\) \- Int64\(29\) THEN min\(Int64\(76\)\) \* Int64\(\-31\) ELSE NULL END\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- CASE Int64\(\-68\) WHEN Int64\(40\) THEN NULL WHEN Int64\(9\) \* \(\- Int64\(44\)\) THEN NULL WHEN Int64\(50\) \+ Int64\(\-95\) \+ Int64\(14\) \- Int64\(29\) THEN min\(Int64\(76\)\) \* Int64\(\-31\) ELSE NULL END\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( CAST ( NULL AS INTEGER ) ) AS col2, - CASE - 68 WHEN + 40 THEN NULL WHEN 9 * - + 44 THEN NULL WHEN 50 + - 95 + + 14 - 29 THEN + ( MIN ( 76 ) ) * - 31 ELSE NULL END + 32 AS col2 query I rowsort label-4891 @@ -27978,7 +27978,7 @@ SELECT ALL - COUNT ( * ) / - + 96 # Datafusion - Expected - 24 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 and "Int64\(35\) / Int64\(\-35\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 and "Int64\(35\) / Int64\(\-35\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24, + ( + - CAST ( NULL AS INTEGER ) ) AS col0, + 35 / - 35 AS col0 query I rowsort @@ -32766,7 +32766,7 @@ SELECT ALL + 19 - + 7 + + 2 * 35 * - 55 * + SUM ( - 76 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(82\) \+ \(\- nullif\(Int64\(64\), CASE Int64\(98\) WHEN Int64\(94\) \+ \(\- nullif\(\(\- CAST\(\(\- Int64\(\-49\)\) AS Int32\)\), Int64\(\-25\) \+ \(\- Int64\(69\)\)\)\) \+ Int64\(70\) \* Int64\(\-14\) \* Int64\(15\) THEN coalesce\(Int64\(\-60\), \(\- Int64\(62\)\) \* Int64\(\-4\) \* count\(Int64\(\-42\)\) \+ \(\- max\(DISTINCT Int64\(\-28\)\)\) \- Int64\(89\) \* \(\- Int64\(77\)\) \* \(\- \(\- Int64\(84\)\)\)\) WHEN Int64\(75\) THEN NULL ELSE Int64\(96\) \* Int64\(43\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) / Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(82\) \+ \(\- nullif\(Int64\(64\), CASE Int64\(98\) WHEN Int64\(94\) \+ \(\- nullif\(\(\- CAST\(\(\- Int64\(\-49\)\) AS Int64\)\), Int64\(\-25\) \+ \(\- Int64\(69\)\)\)\) \+ Int64\(70\) \* Int64\(\-14\) \* Int64\(15\) THEN coalesce\(Int64\(\-60\), \(\- Int64\(62\)\) \* Int64\(\-4\) \* count\(Int64\(\-42\)\) \+ \(\- max\(DISTINCT Int64\(\-28\)\)\) \- Int64\(89\) \* \(\- Int64\(77\)\) \* \(\- \(\- Int64\(84\)\)\)\) WHEN Int64\(75\) THEN NULL ELSE Int64\(96\) \* Int64\(43\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) / Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 AS col0, 82 + - NULLIF ( + 64, CASE + 98 WHEN + 94 + - NULLIF ( - CAST ( - - 49 AS INTEGER ), - 25 + - + 69 ) + 70 * + - 14 * + 15 THEN + COALESCE ( - 60, - + 62 * ( - 4 ) * COUNT ( - 42 ) + - MAX ( DISTINCT + - 28 ) - 89 * - + 77 * - - ( 84 ) ) WHEN + ( + 75 ) THEN NULL ELSE 96 * + ( 43 * COUNT ( * ) ) END ) / - 16 col0 query I rowsort label-6216 @@ -33914,7 +33914,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "sum\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "sum\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 87 AS col0, + ( SUM ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0 query I rowsort label-6432 @@ -35063,7 +35063,7 @@ SELECT - 64 - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int64\) / Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) / + 99 AS col0 query II rowsort @@ -35418,7 +35418,7 @@ SELECT - - 32 AS col0, - 21 + 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \* Int64\(36\) AS col0" at position 0 and "coalesce\(Int64\(\-17\), Int64\(\-53\), \(\- Int64\(51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int64\) \* Int64\(36\) AS col0" at position 0 and "coalesce\(Int64\(\-17\), Int64\(\-53\), \(\- Int64\(51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 36 AS col0, + COALESCE ( + - 17, - 53, - + 51 ) AS col0 query I rowsort label-6717 @@ -37583,7 +37583,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3192 # Datafusion - Expected - 121380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-57\)\) AS Int32\) \* sum\(DISTINCT Int64\(56\)\) AS col0" at position 0 and "Int64\(28\) \* Int64\(85\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-57\)\) AS Int64\) \* sum\(DISTINCT Int64\(56\)\) AS col0" at position 0 and "Int64\(28\) \* Int64\(85\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - - 57 AS INTEGER ) * + SUM ( DISTINCT + 56 ) AS col0, 28 * + 85 * + 51 col0 query II rowsort @@ -40413,7 +40413,7 @@ SELECT + 71 * 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(99\)\) \+ Int64\(\-98\) / CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(99\)\) \+ Int64\(\-98\) / CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( 99 ) + - 98 / + ( CAST ( NULL AS INTEGER ) ) col0, + 47 col0 query I rowsort @@ -42057,7 +42057,7 @@ SELECT + COUNT ( * ) / 53 - - - 59 - - MIN ( DISTINCT + + 72 ) + - 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2756 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-52\), \(\- \(\- CAST\(nullif\(Int64\(55\), \(\- Int64\(\-70\)\) \+ sum\(DISTINCT Int64\(77\)\) \* Int64\(\-14\)\) AS Int32\)\)\) / Int64\(67\) \+ Int64\(\-49\) \- Int64\(\-89\)\)\)\) \* Int64\(53\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-52\), \(\- \(\- CAST\(nullif\(Int64\(55\), \(\- Int64\(\-70\)\) \+ sum\(DISTINCT Int64\(77\)\) \* Int64\(\-14\)\) AS Int64\)\)\) / Int64\(67\) \+ Int64\(\-49\) \- Int64\(\-89\)\)\)\) \* Int64\(53\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - NULLIF ( + - 52, - - CAST ( NULLIF ( 55, - - 70 + SUM ( DISTINCT + 77 ) * - 14 ) AS INTEGER ) / + 67 + - 49 - - 89 ) * + + 53 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -42877,7 +42877,7 @@ SELECT - CASE 9 WHEN - 30 THEN + 34 ELSE 28 + + - 60 - - 3 END * - 67 + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -2154600 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-35\) \* Int64\(15\) \* \(\- coalesce\(\(\- CASE \(\- Int64\(\-54\)\) WHEN Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(DISTINCT Int64\(15\)\)\) \+ Int64\(\-97\) \* Int64\(81\) \- Int64\(78\) THEN Int64\(70\) ELSE Int64\(57\) END\), Int64\(32\) \* Int64\(91\) / Int64\(\-99\), \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(4\)\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-35\) \* Int64\(15\) \* \(\- coalesce\(\(\- CASE \(\- Int64\(\-54\)\) WHEN Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(DISTINCT Int64\(15\)\)\) \+ Int64\(\-97\) \* Int64\(81\) \- Int64\(78\) THEN Int64\(70\) ELSE Int64\(57\) END\), Int64\(32\) \* Int64\(91\) / Int64\(\-99\), \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int64\)\)\), Int64\(4\)\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 * - 35 * + + 15 * - COALESCE ( - CASE - - 54 WHEN ( - 80 ) * + COUNT ( * ) * - COUNT ( DISTINCT + 15 ) + - 97 * 81 - + + 78 THEN 70 ELSE 57 END, 32 * 91 / - 99, - COALESCE ( - - CAST ( NULL AS INTEGER ), + ( 4 ) ) ) AS col0, CAST ( NULL AS INTEGER ) + 37 AS col0 query I rowsort @@ -44802,7 +44802,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ min\(DISTINCT \(\- Int64\(\-33\)\)\) AS col2" at position 0 and "Int64\(\-33\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(87\) \+ Int64\(81\) THEN \(\- Int64\(67\)\) / Int64\(\-64\) WHEN Int64\(34\) / Int64\(34\) / Int64\(75\) THEN Int64\(78\) \* Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(46\) \+ \(\- Int64\(87\)\) \* Int64\(\-98\) END \+ nullif\(Int64\(52\), CASE Int64\(1\) WHEN Int64\(68\) \- \(\- avg\(Int64\(59\)\)\) THEN NULL WHEN Int64\(\-43\) THEN Int64\(58\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ min\(DISTINCT \(\- Int64\(\-33\)\)\) AS col2" at position 0 and "Int64\(\-33\) \+ CASE \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(87\) \+ Int64\(81\) THEN \(\- Int64\(67\)\) / Int64\(\-64\) WHEN Int64\(34\) / Int64\(34\) / Int64\(75\) THEN Int64\(78\) \* Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(46\) \+ \(\- Int64\(87\)\) \* Int64\(\-98\) END \+ nullif\(Int64\(52\), CASE Int64\(1\) WHEN Int64\(68\) \- \(\- avg\(Int64\(59\)\)\) THEN NULL WHEN Int64\(\-43\) THEN Int64\(58\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 + + MIN ( DISTINCT - - 33 ) AS col2, - 33 + ( + CASE - CAST ( NULL AS INTEGER ) WHEN 87 + 81 THEN + - ( + 67 ) / - 64 WHEN 34 / 34 / 75 THEN 78 * + 53 + + COUNT ( * ) + + 46 + - + 87 * - 98 END ) + + NULLIF ( + 52, + CASE + 1 WHEN + 68 - - AVG ( 59 ) THEN NULL WHEN - 43 THEN 58 ELSE NULL END ) AS col2 query I rowsort label-8504 @@ -49169,7 +49169,7 @@ SELECT DISTINCT 27 / COUNT ( * ) + 69 * + 53 * + 24 * + 82 AS col0, + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CASE Int64\(\-95\) WHEN Int64\(71\) \- Int64\(\-93\) THEN Int64\(\-41\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-55\) END\), Int64\(6\) / \(\- Int64\(41\)\) \+ Int64\(\-12\) \+ CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(30\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CASE Int64\(\-95\) WHEN Int64\(71\) \- Int64\(\-93\) THEN Int64\(\-41\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-55\) END\), Int64\(6\) / \(\- Int64\(41\)\) \+ Int64\(\-12\) \+ CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(30\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - CASE - 95 WHEN 71 - - 93 THEN - 41 * - ( - 39 ) + - 55 END, 6 / - + 41 + - 12 + CAST ( NULL AS INTEGER ) ) AS col2, 30 + 20 AS col2 query I rowsort @@ -49603,7 +49603,7 @@ SELECT ALL 18 / 23 * - 54 * - - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ \(\- Int64\(27\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CASE Int64\(7\) WHEN \(\- \(\- min\(coalesce\(Int64\(\-16\), Int64\(\-67\) \+ \(\- CAST\(NULL AS Float64\)\) \+ Int64\(36\) \* \(\- Int64\(47\)\), Int64\(25\) \+ Int64\(20\)\)\)\)\) \* Int64\(2\) \+ \(\- \(\- coalesce\(Int64\(\-45\), sum\(Int64\(\-58\)\)\)\)\) \- avg\(Int64\(38\)\) \* CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(58\) \+ Int64\(14\) \+ Int64\(\-43\) \* Int64\(\-33\) THEN Int64\(99\) ELSE NULL END \* Int64\(96\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ \(\- Int64\(27\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "CASE Int64\(7\) WHEN \(\- \(\- min\(coalesce\(Int64\(\-16\), Int64\(\-67\) \+ \(\- CAST\(NULL AS Float64\)\) \+ Int64\(36\) \* \(\- Int64\(47\)\), Int64\(25\) \+ Int64\(20\)\)\)\)\) \* Int64\(2\) \+ \(\- \(\- coalesce\(Int64\(\-45\), sum\(Int64\(\-58\)\)\)\)\) \- avg\(Int64\(38\)\) \* CAST\(NULL AS Int64\) THEN NULL WHEN Int64\(58\) \+ Int64\(14\) \+ Int64\(\-43\) \* Int64\(\-33\) THEN Int64\(99\) ELSE NULL END \* Int64\(96\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 34 + - + 27 * - CAST ( NULL AS INTEGER ) AS col2, CASE 7 WHEN - - MIN ( COALESCE ( + - 16, - 67 + - CAST ( NULL AS FLOAT8 ) + 36 * - + 47, + 25 + ( 20 ) ) ) * 2 + - - COALESCE ( - 45, + SUM ( ALL - 58 ) ) - AVG ( 38 ) * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 58 + + 14 + + - 43 * - 33 THEN 99 ELSE NULL END * + 96 - - 4 AS col2 query I rowsort @@ -51868,7 +51868,7 @@ SELECT + - 28 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ max\(Int64\(53\)\) / count\(Int64\(\-61\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ max\(Int64\(53\)\) / count\(Int64\(\-61\)\) 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\. SELECT + + ( 35 ) + + MAX ( + 53 ) / + COUNT ( - 61 ) col0, ( + CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_60.slt b/data/sqlite/random/expr/slt_good_60.slt index 3ec0678..b93a38b 100644 --- a/data/sqlite/random/expr/slt_good_60.slt +++ b/data/sqlite/random/expr/slt_good_60.slt @@ -537,7 +537,7 @@ SELECT SUM ( + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- \(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(\-61\)\) \+ Int64\(20\) \+ Int64\(12\) AS col0" at position 0 and "Int64\(\-60\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- \(\- CAST\(NULL AS Int64\)\) / \(\- Int64\(\-61\)\) \+ Int64\(20\) \+ Int64\(12\) AS col0" at position 0 and "Int64\(\-60\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 - + - CAST ( NULL AS INTEGER ) / - - 61 + + 20 + + 12 AS col0, - 60 * COUNT ( * ) AS col0 query I rowsort @@ -1381,7 +1381,7 @@ SELECT DISTINCT + CAST ( + 59 AS INTEGER ) * + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(84\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(\(\- Int64\(72\)\)\) \+ \(\- Int64\(\-79\)\) \* Int64\(\-87\) \+ Int64\(\-14\) \+ Int64\(\-6\) \+ Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(84\) \* \(\- CAST\(NULL AS Int64\)\) \+ count\(\(\- Int64\(72\)\)\) \+ \(\- Int64\(\-79\)\) \* Int64\(\-87\) \+ Int64\(\-14\) \+ Int64\(\-6\) \+ Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 68 * 84 * - + CAST ( NULL AS INTEGER ) + + COUNT ( - ( 72 ) ) + - - 79 * + - 87 + + - 14 + - 6 + 9 + COUNT ( * ) col0, - 0 AS col0 query I rowsort @@ -1777,7 +1777,7 @@ SELECT 62 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(Int64\(59\), CAST\(Int64\(13\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(Int64\(59\), CAST\(Int64\(13\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 10 * + + COUNT ( * ) AS col1, NULLIF ( + 59, CAST ( 13 AS INTEGER ) ) AS col1 query I rowsort label-330 @@ -3335,7 +3335,7 @@ SELECT - + 73 * ( - + 70 ) * - 40 + + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) / Int64\(\-21\) \- avg\(Int64\(47\)\) \+ CASE Int64\(57\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(4\)\) END \+ Int64\(20\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) / Int64\(\-21\) \- avg\(Int64\(47\)\) \+ CASE Int64\(57\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(4\)\) END \+ Int64\(20\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 69 / - 21 - + + AVG ( 47 ) + + CASE + 57 WHEN COUNT ( * ) + + COUNT ( * ) THEN - + ( + 4 ) END + + 20 AS col0, CAST ( NULL AS INTEGER ) + - 28 + + COUNT ( * ) AS col0 query I rowsort @@ -7340,7 +7340,7 @@ SELECT 86 * + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- CAST\(NULL AS Int32\)\) \+ CASE Int64\(85\) WHEN Int64\(47\) THEN Int64\(98\) / Int64\(85\) \* \(\- Int64\(\-18\)\) END AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- CAST\(NULL AS Int64\)\) \+ CASE Int64\(85\) WHEN Int64\(47\) THEN Int64\(98\) / Int64\(85\) \* \(\- Int64\(\-18\)\) END AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 2 * - CAST ( NULL AS INTEGER ) + + CASE 85 WHEN 47 THEN 98 / + + 85 * - - 18 END AS col0, 4 AS col0 query I rowsort @@ -14946,7 +14946,7 @@ SELECT ALL + - 57 + CAST ( - COUNT ( ALL + - 7 ) AS INTEGER ) + - - 45 col0 # Datafusion - Expected - -161 # Datafusion - Expected - 84 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / \(\- min\(Int64\(51\)\)\) \+ \(\- coalesce\(CAST\(\(\- Int64\(\-80\)\) AS Int32\), nullif\(Int64\(\-75\), Int64\(\-98\)\), \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(78\) \* Int64\(10\) \+ Int64\(48\) \+ nullif\(Int64\(\-2\), \(\- \(\- CAST\(min\(Int64\(\-31\)\) AS Int32\)\)\)\) \* \(\- max\(Int64\(80\)\)\)\)\)\)\) \+ \(\- Int64\(80\)\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(\-70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / \(\- min\(Int64\(51\)\)\) \+ \(\- coalesce\(CAST\(\(\- Int64\(\-80\)\) AS Int64\), nullif\(Int64\(\-75\), Int64\(\-98\)\), \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(78\) \* Int64\(10\) \+ Int64\(48\) \+ nullif\(Int64\(\-2\), \(\- \(\- CAST\(min\(Int64\(\-31\)\) AS Int64\)\)\)\) \* \(\- max\(Int64\(80\)\)\)\)\)\)\) \+ \(\- Int64\(80\)\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(\-70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 67 / + - MIN ( ALL + 51 ) + - COALESCE ( + CAST ( - - 80 AS INTEGER ), NULLIF ( - 75, - 98 ), - COALESCE ( COUNT ( * ), + 78 * 10 + 48 + NULLIF ( - 2, - + ( - + CAST ( + MIN ( ALL - 31 ) AS INTEGER ) ) ) * - + MAX ( ALL + 80 ) ) ) + - + 80 AS col0, 84, + 58 + + - 70 col0 query I rowsort label-2839 @@ -15738,7 +15738,7 @@ SELECT ALL COUNT ( 1 ) + - - 69 + - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \* sum\(\(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-93\) / Int64\(75\) \- Int64\(64\) AS col1" at position 0 and "Int64\(60\) / Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \* sum\(\(\- CAST\(NULL AS Int64\)\)\) \* Int64\(\-93\) / Int64\(75\) \- Int64\(64\) AS col1" at position 0 and "Int64\(60\) / Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - + 67 ) * SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - 93 / 75 - + 64 AS col1, + 60 / 73 AS col1 query II rowsort label-2990 @@ -18142,7 +18142,7 @@ SELECT ALL ( + COUNT ( * ) ) * + COUNT ( * ) * - 53 / + 29 + + - COALESCE ( 72, # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(12\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* avg\(CAST\(NULL AS Int32\)\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(12\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* avg\(CAST\(NULL AS Int64\)\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 27 + + 12 AS col2, COUNT ( * ) * AVG ( + + CAST ( NULL AS INTEGER ) ) + - 12 AS col2 query II rowsort label-3452 @@ -20916,7 +20916,7 @@ SELECT DISTINCT 67 + COUNT ( * ) / + 15 + - 1 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 41 AS col2 query I rowsort label-3978 @@ -24267,7 +24267,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -1818 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(68\)\) \* coalesce\(Int64\(28\), \(\- CASE Int64\(65\) WHEN coalesce\(\(\- min\(\(\- \(\- Int64\(84\)\)\)\)\), Int64\(\-72\) \* Int64\(83\) \* \(\- Int64\(\-98\)\)\) THEN \(\- CAST\(Int64\(77\) AS Int32\)\) WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(40\) THEN Int64\(69\) / \(\- Int64\(\-20\)\) WHEN \(\- Int64\(23\)\) \* Int64\(52\) THEN NULL ELSE Int64\(\-86\) \- Int64\(\-31\) END\) / \(\- Int64\(14\)\) \+ \(\- Int64\(\-39\)\) \+ Int64\(11\) \+ \(\- Int64\(\-65\)\) THEN NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(95\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- sum\(DISTINCT Int64\(86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(68\)\) \* coalesce\(Int64\(28\), \(\- CASE Int64\(65\) WHEN coalesce\(\(\- min\(\(\- \(\- Int64\(84\)\)\)\)\), Int64\(\-72\) \* Int64\(83\) \* \(\- Int64\(\-98\)\)\) THEN \(\- CAST\(Int64\(77\) AS Int64\)\) WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(40\) THEN Int64\(69\) / \(\- Int64\(\-20\)\) WHEN \(\- Int64\(23\)\) \* Int64\(52\) THEN NULL ELSE Int64\(\-86\) \- Int64\(\-31\) END\) / \(\- Int64\(14\)\) \+ \(\- Int64\(\-39\)\) \+ Int64\(11\) \+ \(\- Int64\(\-65\)\) THEN NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(95\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- sum\(DISTINCT Int64\(86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 56 col0, - COUNT ( * ) * - + 68 * + COALESCE ( + 28, - + CASE + + 65 WHEN COALESCE ( - MIN ( ALL - - ( 84 ) ), - 72 * + 83 * - - 98 ) THEN - + CAST ( 77 AS INTEGER ) WHEN - CASE COUNT ( * ) WHEN + 40 THEN 69 / - - 20 WHEN - + 23 * + 52 THEN NULL ELSE + - 86 - - 31 END / - + 14 + - - 39 + + 11 + - - 65 THEN NULL END + - + COUNT ( * ), + ( - + 95 ) ) * + - COUNT ( * ) - - SUM ( DISTINCT + 86 ) AS col0 query II rowsort @@ -27726,7 +27726,7 @@ SELECT 48 * + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col1" at position 0 and "CASE Int64\(16\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(45\) / \(\- count\(DISTINCT Int64\(\-44\)\)\) \- min\(Int64\(60\)\) \* Int64\(\-42\) \* Int64\(\-63\) WHEN Int64\(22\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col1" at position 0 and "CASE Int64\(16\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(45\) / \(\- count\(DISTINCT Int64\(\-44\)\)\) \- min\(Int64\(60\)\) \* Int64\(\-42\) \* Int64\(\-63\) WHEN Int64\(22\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 AS col1, CASE + 16 WHEN - CAST ( NULL AS INTEGER ) THEN + ( + 45 ) / - COUNT ( DISTINCT - 44 ) - MIN ( 60 ) * - 42 * - 63 WHEN + 22 THEN NULL END AS col1 query I rowsort @@ -28707,7 +28707,7 @@ SELECT DISTINCT - ( - 36 ) * - CAST ( + + MIN ( - 91 ) AS INTEGER ) * + + 79 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 7065 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(\-79\) \* sum\(DISTINCT Int64\(\-90\)\) AS col2" at position 0 and "Int64\(24\) \+ Int64\(\-18\) \- Int64\(54\) \* CAST\(NULL AS Int32\) \+ Int64\(85\) \+ \(\- nullif\(Int64\(\-80\), Int64\(9\)\)\) \* \(\- Int64\(8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(\-79\) \* sum\(DISTINCT Int64\(\-90\)\) AS col2" at position 0 and "Int64\(24\) \+ Int64\(\-18\) \- Int64\(54\) \* CAST\(NULL AS Int64\) \+ Int64\(85\) \+ \(\- nullif\(Int64\(\-80\), Int64\(9\)\)\) \* \(\- Int64\(8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 45 + + - 79 * + SUM ( DISTINCT - 90 ) AS col2, 24 + - 18 - ( 54 ) * CAST ( NULL AS INTEGER ) + 85 + + - NULLIF ( - 80, + 9 ) * - ( 8 ) AS col2 query I rowsort label-5465 @@ -31752,7 +31752,7 @@ SELECT - + 85, - MIN ( DISTINCT 16 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CAST\(Int64\(80\) AS Int32\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CAST\(Int64\(80\) AS Int64\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - COUNT ( * ) AS col2, + CAST ( 80 AS INTEGER ) * + 4 AS col2 query I rowsort label-6036 @@ -32037,7 +32037,7 @@ SELECT + 30, - ( + 9 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) 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\. SELECT ALL + 50 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -34171,7 +34171,7 @@ SELECT ALL 35 / - - 79 - + ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int32\) AS col0" at position 0 and "max\(Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int64\) AS col0" at position 0 and "max\(Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 86 AS INTEGER ) col0, MAX ( + + 11 ) AS col0 query I rowsort label-6502 @@ -35346,7 +35346,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "CAST\(Int64\(\-66\) AS Int32\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "CAST\(Int64\(\-66\) AS Int64\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 63 AS col2, CAST ( - 66 AS INTEGER ) + + 16 AS col2 query I rowsort label-6727 @@ -36062,7 +36062,7 @@ SELECT DISTINCT 19 / 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24986 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(23\)\) \* \(\- \(\- sum\(DISTINCT Int64\(\-14\)\)\)\) \- Int64\(\-42\) \+ Int64\(88\) \* Int64\(20\) AS col2" at position 0 and "CAST\(Int64\(\-87\) AS Int32\) \+ \(\- nullif\(Int64\(75\), Int64\(\-84\) \* nullif\(Int64\(\-23\), Int64\(51\) \+ Int64\(96\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(23\)\) \* \(\- \(\- sum\(DISTINCT Int64\(\-14\)\)\)\) \- Int64\(\-42\) \+ Int64\(88\) \* Int64\(20\) AS col2" at position 0 and "CAST\(Int64\(\-87\) AS Int64\) \+ \(\- nullif\(Int64\(75\), Int64\(\-84\) \* nullif\(Int64\(\-23\), Int64\(51\) \+ Int64\(96\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 72 * - + 23 * - - SUM ( DISTINCT - 14 ) - - 42 + 88 * + 20 AS col2, + CAST ( - 87 AS INTEGER ) + - NULLIF ( 75, - 84 * NULLIF ( - 23, + 51 + + 96 ) ) AS col2 query I rowsort label-6864 @@ -36667,7 +36667,7 @@ SELECT - 59 + + 55 - 81, + 47 AS col0, + 46 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(91\) \* \(\- Int64\(\-83\)\) \+ Int64\(26\) \+ \(\- CASE \(\- Int64\(\-79\)\) WHEN Int64\(19\) \* Int64\(35\) \- Int64\(91\) \+ Int64\(9\) \* \(\- Int64\(7\)\) \+ \(\- Int64\(\-87\)\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(17\) THEN NULL WHEN Int64\(23\) THEN Int64\(96\) END\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(56\) THEN Int64\(\-60\) ELSE NULL END\) \* Int64\(\-33\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(91\) \* \(\- Int64\(\-83\)\) \+ Int64\(26\) \+ \(\- CASE \(\- Int64\(\-79\)\) WHEN Int64\(19\) \* Int64\(35\) \- Int64\(91\) \+ Int64\(9\) \* \(\- Int64\(7\)\) \+ \(\- Int64\(\-87\)\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(17\) THEN NULL WHEN Int64\(23\) THEN Int64\(96\) END\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(56\) THEN Int64\(\-60\) ELSE NULL END\) \* Int64\(\-33\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 53 col0, 91 * - - 83 + + ( 26 ) + - CASE - - 79 WHEN + 19 * + 35 - + 91 + + 9 * - + 7 + - + ( - 87 ) * - CASE - COUNT ( * ) WHEN 17 THEN NULL WHEN + + 23 THEN + ( 96 ) END + - CAST ( NULL AS INTEGER ) * + 56 THEN - 60 ELSE NULL END * - 33 * + 97 AS col0 query I rowsort @@ -36935,7 +36935,7 @@ SELECT + ( + - 69 ) * + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -610 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(67\) \+ Int64\(47\) \* CAST\(Int64\(\-13\) AS Int32\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(69\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(67\) \+ Int64\(47\) \* CAST\(Int64\(\-13\) AS Int64\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(69\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 / 67 + 47 * CAST ( - 13 AS INTEGER ) AS col1, - MIN ( ALL - + 69 ) AS col1 query I rowsort @@ -37168,7 +37168,7 @@ SELECT ALL - 47 + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(89\) \* Int64\(\-40\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(89\) \* Int64\(\-40\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) + - - 85 AS col1, CAST ( NULL AS INTEGER ) + + + 89 * - 40 * - 70 AS col1 query I rowsort label-7075 @@ -38230,7 +38230,7 @@ SELECT CASE ( - + 85 ) WHEN + 19 THEN NULL ELSE - COUNT ( * ) END * + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14804856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(89\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(75\) \+ Int64\(\-95\) \- \(\- Int64\(\-7\)\) END \* Int64\(\-67\) \* min\(Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(89\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(75\) \+ Int64\(\-95\) \- \(\- Int64\(\-7\)\) END \* Int64\(\-67\) \* min\(Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - + 16 col2, 88 * - COUNT ( * ) * + CASE 89 WHEN - COUNT ( * ) THEN NULL ELSE + 75 + - 95 - - - 7 END * - 67 * + MIN ( 93 ) AS col2 query I rowsort @@ -38357,7 +38357,7 @@ SELECT - 58 * 61 - + NULLIF ( - 59, - + 8 ) + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int32\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int64\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( - 49 AS INTEGER ) AS col2, 98 + + 36 AS col2 query I rowsort @@ -38558,7 +38558,7 @@ SELECT + ( 27 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 734 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(89\) AS col0" at position 0 and "Int64\(84\) \- \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- \(\- sum\(CAST\(\(\- Int64\(0\)\) AS Float64\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(89\) AS col0" at position 0 and "Int64\(84\) \- \(\- CAST\(NULL AS Int64\)\) \+ \(\- \(\- \(\- sum\(CAST\(\(\- Int64\(0\)\) AS Float64\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 14 * + 46 + COUNT ( * ) + 89 AS col0, + 84 - - CAST ( NULL AS INTEGER ) + - - ( ( - SUM ( ALL + CAST ( - + 0 AS FLOAT8 ) ) ) ) AS col0 query I rowsort @@ -39314,7 +39314,7 @@ SELECT - 69 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "CAST\(Int64\(49\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "CAST\(Int64\(49\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 10 AS col0, + CAST ( + 49 AS INTEGER ) AS col0 query I rowsort label-7483 @@ -40325,7 +40325,7 @@ SELECT ALL + 56 * 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) query I rowsort @@ -41896,7 +41896,7 @@ SELECT - COUNT ( * ) * + + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "CAST\(Int64\(4\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "CAST\(Int64\(4\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 42 col0, CAST ( 4 AS INTEGER ) AS col0 query I rowsort label-7973 @@ -42793,7 +42793,7 @@ SELECT 16 * + + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(90\) \* \(\- \(\- CASE Int64\(22\) WHEN CAST\(NULL AS Int32\) \* Int64\(60\) THEN Int64\(\-52\) WHEN Int64\(94\) \* Int64\(\-13\) THEN NULL END\)\) \- Int64\(61\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(90\) \* \(\- \(\- CASE Int64\(22\) WHEN CAST\(NULL AS Int64\) \* Int64\(60\) THEN Int64\(\-52\) WHEN Int64\(94\) \* Int64\(\-13\) THEN NULL END\)\) \- Int64\(61\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 91 AS col2, 90 * - - CASE 22 WHEN CAST ( NULL AS INTEGER ) * 60 THEN - 52 WHEN + 94 * - 13 THEN NULL END - 61 * + 19 AS col2 query I rowsort label-8148 @@ -44311,7 +44311,7 @@ SELECT DISTINCT - 95 + ( - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) / CAST\(Int64\(\-35\) AS Int32\) AS col2" at position 0 and "Int64\(21\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) / CAST\(Int64\(\-35\) AS Int64\) AS col2" at position 0 and "Int64\(21\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 73 / + CAST ( - 35 AS INTEGER ) AS col2, 21 / + + COUNT ( * ) AS col2 query I rowsort @@ -44381,7 +44381,7 @@ SELECT - - 56 + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(32\)\)\) \+ \(\- \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(34\) \- \(\- Int64\(77\)\)\) / Int64\(\-43\) \* Int64\(22\) \+ Int64\(\-25\) \* Int64\(\-45\) \+ Int64\(\-64\) \* min\(Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(32\)\)\) \+ \(\- \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "nullif\(CAST\(NULL AS Int64\), Int64\(34\) \- \(\- Int64\(77\)\)\) / Int64\(\-43\) \* Int64\(22\) \+ Int64\(\-25\) \* Int64\(\-45\) \+ Int64\(\-64\) \* min\(Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - MAX ( ALL 32 ) + - - COALESCE ( - + COUNT ( * ), + - 27 * COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) AS col1, NULLIF ( CAST ( NULL AS INTEGER ), + 34 - - + 77 ) / - 43 * 22 + - 25 * - 45 + - 64 * MIN ( + 65 ) AS col1 query I rowsort @@ -47720,7 +47720,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 3963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "Int64\(41\) \+ CAST\(max\(Int64\(81\)\) AS Int32\) \* Int64\(42\) \+ Int64\(8\) \* \(\- Int64\(\-65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "Int64\(41\) \+ CAST\(max\(Int64\(81\)\) AS Int64\) \* Int64\(42\) \+ Int64\(8\) \* \(\- Int64\(\-65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 33 AS col1, 41 + CAST ( + MAX ( 81 ) AS INTEGER ) * 42 + + 8 * - - 65 AS col1 query I rowsort label-9083 @@ -48920,7 +48920,7 @@ SELECT + - NULLIF ( + - 47, - 42 * + 3 + + NULLIF ( + 44, + - 26 ) ) * - 3 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 39208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-40\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-4\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(73\)\) \- Int64\(2\)\)\) \+ Int64\(\-22\) \* CAST\(Int64\(\-81\) AS Int32\) \* \(\- nullif\(Int64\(\-22\), \(\- count\(Int64\(76\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-40\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-4\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(73\)\) \- Int64\(2\)\)\) \+ Int64\(\-22\) \* CAST\(Int64\(\-81\) AS Int64\) \* \(\- nullif\(Int64\(\-22\), \(\- count\(Int64\(76\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + NULLIF ( - - 40, + COUNT ( * ) ) AS col1, - 4 * - + NULLIF ( + + COUNT ( * ), - + 73 - + ( + 2 ) ) + - 22 * CAST ( - 81 AS INTEGER ) * - + NULLIF ( - 22, - COUNT ( + 76 ) ) AS col1 query I rowsort label-9310 @@ -50415,7 +50415,7 @@ SELECT + 16 * + 70 * + 38 * - 43 - + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6734 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(41\)\)\) \* CAST\(NULL AS Int32\) \* \(\- min\(Int64\(\-85\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(41\)\)\) \* CAST\(NULL AS Int64\) \* \(\- min\(Int64\(\-85\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 74 * + - 91 AS col2, 37 * - COUNT ( * ) + - 14 + + - ( - + 41 ) * CAST ( NULL AS INTEGER ) * - MIN ( - 85 ) AS col2 query II rowsort @@ -51964,7 +51964,7 @@ SELECT - 75 - + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(6\)\) \* Int64\(21\) AS col2" at position 0 and "Int64\(\-43\) \* CASE Int64\(\-4\) WHEN Int64\(\-21\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) WHEN Int64\(87\) \+ coalesce\(Int64\(21\), CAST\(Int64\(8\) AS Int32\) / Int64\(64\)\) \* Int64\(9\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(6\)\) \* Int64\(21\) AS col2" at position 0 and "Int64\(\-43\) \* CASE Int64\(\-4\) WHEN Int64\(\-21\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) WHEN Int64\(87\) \+ coalesce\(Int64\(21\), CAST\(Int64\(8\) AS Int64\) / Int64\(64\)\) \* Int64\(9\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL 6 ) * ( 21 ) col2, - 43 * ( CASE - 4 WHEN - 21 THEN + COUNT ( * ) * + ( 31 ) WHEN 87 + COALESCE ( 21, CAST ( ( 8 ) AS INTEGER ) / + 64 ) * 9 THEN NULL END ) AS col2 query I rowsort @@ -52382,7 +52382,7 @@ SELECT ALL 53 + - - 11 * + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(56\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(56\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) AS col0, - CAST ( + 56 AS INTEGER ) AS col0 query I rowsort label-9974 diff --git a/data/sqlite/random/expr/slt_good_61.slt b/data/sqlite/random/expr/slt_good_61.slt index b01cc05..095e8c5 100644 --- a/data/sqlite/random/expr/slt_good_61.slt +++ b/data/sqlite/random/expr/slt_good_61.slt @@ -256,7 +256,7 @@ SELECT + 32 * - 96 col1, 91 * + 76 # Datafusion - Expected - -87 # Datafusion - Expected - 79 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "Int64\(\-71\) \- \(\- \(\- CAST\(Int64\(20\) AS Int32\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "Int64\(\-71\) \- \(\- \(\- CAST\(Int64\(20\) AS Int64\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 87 AS col0, 79, - 71 - - - CAST ( + 20 AS INTEGER ) AS col0 query I rowsort label-41 @@ -274,7 +274,7 @@ SELECT - 41 AS col0, - 98 AS col1 # Datafusion - Expected - -5317 # Datafusion - Expected - 36 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(Int64\(54\) AS Int32\)\) AS Int32\)\) \* \(\- Int64\(98\)\) \+ max\(Int64\(\-25\)\) AS col1" at position 0 and "min\(Int64\(41\)\) \- Int64\(41\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(Int64\(54\) AS Int64\)\) AS Int64\)\) \* \(\- Int64\(98\)\) \+ max\(Int64\(\-25\)\) AS col1" at position 0 and "min\(Int64\(41\)\) \- Int64\(41\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - + CAST ( + 54 AS INTEGER ) AS INTEGER ) * - + 98 + MAX ( ALL - 25 ) AS col1, 36, MIN ( ALL + ( 41 ) ) - 41 AS col1 query I rowsort label-44 @@ -1163,7 +1163,7 @@ SELECT ALL - 52 AS col2, - 81 + COUNT ( * ) AS col2 # Datafusion - Expected - 72 # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "coalesce\(Int64\(35\), CAST\(NULL AS Float64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(66\)\), Int64\(\-28\) \* Int64\(30\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "coalesce\(Int64\(35\), CAST\(NULL AS Float64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(66\)\), Int64\(\-28\) \* Int64\(30\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72, - COUNT ( * ) AS col1, + COALESCE ( 35, + CAST ( NULL AS FLOAT8 ) * - COUNT ( * ) + AVG ( 66 ), - 28 * 30 + - + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -1487,7 +1487,7 @@ SELECT NULLIF ( + 0, - - 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(\-31\)\) \+ Int64\(86\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) \* Int64\(\-32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(\(\- Int64\(\-14\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(\-31\)\) \+ Int64\(86\) \* CAST\(CAST\(NULL AS Int64\) AS Int64\) \* Int64\(\-32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(\(\- Int64\(\-14\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 65 ) * - - 31 + 86 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 32 + - - COUNT ( * ) AS col0, + COUNT ( - - 14 ) AS col0 query II rowsort @@ -3611,7 +3611,7 @@ SELECT ALL 0 / - - 95 * + SUM ( + 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "CAST\(Int64\(8\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "CAST\(Int64\(8\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 26 AS col1, CAST ( + 8 AS INTEGER ) AS col1 query I rowsort label-680 @@ -3994,7 +3994,7 @@ SELECT 15 * + + 16 + - 53 - + - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2638 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(69\)\), \(\- Int64\(\-42\)\)\) \- Int64\(49\) \* Int64\(\-56\) \+ Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(87\) AS Int32\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(81\) / Int64\(\-86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(69\)\), \(\- Int64\(\-42\)\)\) \- Int64\(49\) \* Int64\(\-56\) \+ Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(87\) AS Int64\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(81\) / Int64\(\-86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - + 69, - ( - 42 ) ) - 49 * + - 56 + + - 38 + + COUNT ( * ) col0, + CAST ( + 87 AS INTEGER ) + - NULLIF ( + COUNT ( * ), + 81 / - 86 ) AS col0 query I rowsort label-753 @@ -6325,7 +6325,7 @@ SELECT - - COUNT ( * ) * + - 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 639 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(81\)\) \* CAST\(\(\- Int64\(1\)\) AS Int32\) \+ \(\- Int64\(51\)\) \* Int64\(18\)\)\), Int64\(\-24\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(22\) \* Int64\(\-29\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(81\)\) \* CAST\(\(\- Int64\(1\)\) AS Int64\) \+ \(\- Int64\(51\)\) \* Int64\(18\)\)\), Int64\(\-24\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(22\) \* Int64\(\-29\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( - NULLIF ( + COUNT ( * ), - + 81 * + CAST ( - + 1 AS INTEGER ) + - + 51 * + 18 ), - 24, - COUNT ( * ) ) * + COUNT ( * ) - 22 * - 29 AS col1, ( 74 ) AS col1 query I rowsort @@ -10206,7 +10206,7 @@ SELECT - ( + 65 ) + 81 # Datafusion - Expected - -49 # Datafusion - Expected - 104 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(83\) AS col2" at position 1 and "Int64\(50\) \* Int64\(41\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-33\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(83\) AS col2" at position 1 and "Int64\(50\) \* Int64\(41\) \+ CAST\(NULL AS Int64\) \+ Int64\(\-33\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23 + 40 - 66 AS col0, + 21 + + 83 AS col2, 50 * 41 + + CAST ( NULL AS INTEGER ) + - 33 AS col2 # Datafusion - Datafusion expected results: @@ -13100,7 +13100,7 @@ SELECT DISTINCT - 69 AS col1, 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* CAST\(NULL AS Int32\) \+ Int64\(\-39\) \+ \(\- Int64\(11\)\) \* Int64\(12\) \* Int64\(\-80\) \+ Int64\(\-57\) \- Int64\(42\) \+ \(\- nullif\(Int64\(27\), \(\- Int64\(\-14\)\) / Int64\(97\) \+ Int64\(50\)\)\) \+ \(\- CAST\(Int64\(96\) AS Int32\)\) \* Int64\(\-27\) \* Int64\(\-29\) \+ \(\- Int64\(\-20\)\) AS col2" at position 0 and "Int64\(20\) / Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* CAST\(NULL AS Int64\) \+ Int64\(\-39\) \+ \(\- Int64\(11\)\) \* Int64\(12\) \* Int64\(\-80\) \+ Int64\(\-57\) \- Int64\(42\) \+ \(\- nullif\(Int64\(27\), \(\- Int64\(\-14\)\) / Int64\(97\) \+ Int64\(50\)\)\) \+ \(\- CAST\(Int64\(96\) AS Int64\)\) \* Int64\(\-27\) \* Int64\(\-29\) \+ \(\- Int64\(\-20\)\) AS col2" at position 0 and "Int64\(20\) / Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 * CAST ( NULL AS INTEGER ) + - 39 + - + 11 * 12 * - 80 + - 57 - 42 + - NULLIF ( 27, - - 14 / 97 + + + 50 ) + - CAST ( 96 AS INTEGER ) * - 27 * - 29 + - - 20 AS col2, 20 / + + ( + + 7 ) AS col2 query II rowsort label-2494 @@ -14807,7 +14807,7 @@ SELECT + 98 * - COUNT ( * ) + + + COUNT ( * ), 5 - + + SUM ( + 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* CAST\(\(\- Int64\(\-7\)\) AS Int32\) \+ Int64\(69\) \- Int64\(33\) \+ \(\- Int64\(85\)\) \+ Int64\(\-84\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* CAST\(\(\- Int64\(\-7\)\) AS Int64\) \+ Int64\(69\) \- Int64\(33\) \+ \(\- Int64\(85\)\) \+ Int64\(\-84\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( - - 7 AS INTEGER ) + + 69 - + 33 + - ( 85 ) + - 84 AS col1, - 53 col1 query II rowsort @@ -17833,7 +17833,7 @@ SELECT ALL - 15, + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(62\) \* Int64\(\-39\) \* CASE \(\- nullif\(Int64\(27\), Int64\(44\) \* Int64\(\-24\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\) WHEN Int64\(2\) \+ Int64\(29\) THEN Int64\(10\) \* Int64\(\-99\) \* Int64\(\-98\) \- max\(Int64\(23\)\) ELSE Int64\(0\) END \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(62\) \* Int64\(\-39\) \* CASE \(\- nullif\(Int64\(27\), Int64\(44\) \* Int64\(\-24\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\)\)\) WHEN Int64\(2\) \+ Int64\(29\) THEN Int64\(10\) \* Int64\(\-99\) \* Int64\(\-98\) \- max\(Int64\(23\)\) ELSE Int64\(0\) END \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 83 AS col0, 62 * - 39 * CASE - NULLIF ( + 27, + 44 * - 24 + - - CAST ( NULL AS INTEGER ) ) WHEN + 2 + + 29 THEN 10 * ( - 99 * - 98 ) - MAX ( + 23 ) ELSE ( - 0 ) END + + 15 AS col0 query I rowsort @@ -19691,7 +19691,7 @@ SELECT DISTINCT + COUNT ( * ) + - + 20 + 26 - - 33 + 97 / + - 59 + - 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "CASE \(\- Int64\(\-28\)\) WHEN Int64\(13\) THEN \(\- Int64\(3\)\) \- CAST\(NULL AS Int32\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "CASE \(\- Int64\(\-28\)\) WHEN Int64\(13\) THEN \(\- Int64\(3\)\) \- CAST\(NULL AS Int64\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 AS col0, + CASE - - 28 WHEN + 13 THEN - + 3 - + CAST ( NULL AS INTEGER ) ELSE NULL END col0 query II rowsort label-3749 @@ -22864,7 +22864,7 @@ SELECT CASE 65 WHEN - + 96 THEN NULL WHEN + 86 * + 99 THEN NULL ELSE + + 76 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -382044 # Datafusion - Expected - 2860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(79\) \* sum\(Int64\(\-62\)\) AS col1" at position 0 and "CAST\(Int64\(44\) AS Int32\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(79\) \* sum\(Int64\(\-62\)\) AS col1" at position 0 and "CAST\(Int64\(44\) AS Int64\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 78 * + 79 * + SUM ( - 62 ) AS col1, + CAST ( 44 AS INTEGER ) * + ( 65 ) AS col1 query II rowsort label-4354 @@ -24126,7 +24126,7 @@ SELECT 60 - - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(69\) AS Int32\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(69\) AS Int64\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( 69 AS INTEGER ) AS col0, 10 AS col0 query I rowsort @@ -24234,7 +24234,7 @@ SELECT ALL 85 + + 64 - + ( + 62 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(64\) \* Int64\(3\) \+ \(\- CAST\(Int64\(58\) AS Int32\)\) \+ \(\- coalesce\(Int64\(\-94\), Int64\(79\)\)\) \* Int64\(64\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(64\) \* Int64\(3\) \+ \(\- CAST\(Int64\(58\) AS Int64\)\) \+ \(\- coalesce\(Int64\(\-94\), Int64\(79\)\)\) \* Int64\(64\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, 64 * + 3 + - CAST ( 58 AS INTEGER ) + - COALESCE ( + - 94, + + 79 ) * 64 * + 2 AS col1 query I rowsort @@ -27238,7 +27238,7 @@ SELECT DISTINCT + - 34 + + - 38 # Datafusion - Expected - -213 # Datafusion - Expected - 1 # Datafusion - Expected - -2380400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "Int64\(96\) \* Int64\(\-19\) \* CAST\(\(\- \(\- Int64\(\-15\)\)\) AS Int32\) \* \(\- Int64\(87\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "Int64\(96\) \* Int64\(\-19\) \* CAST\(\(\- \(\- Int64\(\-15\)\)\) AS Int64\) \* \(\- Int64\(87\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 72 + - - 6 * + - 55 + - - 45, COUNT ( * ) col0, 96 * + - 19 * CAST ( - - ( - 15 ) AS INTEGER ) * - + 87 + + - COUNT ( * ) + - 79 col0 query I rowsort label-5190 @@ -27286,7 +27286,7 @@ SELECT - 40 * 62 * - 84 - COALESCE ( - - 6, + COUNT ( * ) / - - 23 + + NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6076 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ \(\- Int64\(21\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(98\) \* Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ \(\- Int64\(21\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(98\) \* Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 + - + 21 * + - CAST ( NULL AS INTEGER ) AS col0, 98 * + + 62 * + + COUNT ( * ) AS col0 query I rowsort label-5199 @@ -29528,7 +29528,7 @@ SELECT ALL + - 95 * - + ( + - 88 ) + - 66 + 72 / 50 - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) \+ Int64\(64\) \* Int64\(57\) \* Int64\(82\) / Int64\(93\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), Int64\(59\) \- Int64\(46\), Int64\(0\)\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) \+ Int64\(64\) \* Int64\(57\) \* Int64\(82\) / Int64\(93\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), Int64\(59\) \- Int64\(46\), Int64\(0\)\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 90 + + 64 * + 57 * + 82 / + 93 * - - CAST ( NULL AS INTEGER ) AS col0, COALESCE ( - 16, + 59 - 46, + 0 ) * + 37 AS col0 query II rowsort @@ -32064,7 +32064,7 @@ SELECT ALL + 65 * - 10 - 79 * - 10 + - + NULLIF ( + 69, - + 2 ) * NULLIF ( + COU # Datafusion - Datafusion expected results: # Datafusion - Expected - 30096 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* Int64\(73\) \- CAST\(Int64\(\-38\) AS Int32\) \* Int64\(44\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(55\)\) / Int64\(95\) \+ count\(DISTINCT \(\- Int64\(\-21\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* Int64\(73\) \- CAST\(Int64\(\-38\) AS Int64\) \* Int64\(44\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(55\)\) / Int64\(95\) \+ count\(DISTINCT \(\- Int64\(\-21\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 0 * + 73 - + CAST ( - 38 AS INTEGER ) * 44 * - COUNT ( * ) * - 18 col0, - ( + + 55 ) / + 95 + ( + COUNT ( DISTINCT - - 21 ) ) AS col0 query I rowsort @@ -32535,7 +32535,7 @@ SELECT ALL - CAST ( + 84 AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2859 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \+ Int64\(34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(40\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) AS col1" at position 0 and "Int64\(\-27\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \+ Int64\(34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(40\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) AS col1" at position 0 and "Int64\(\-27\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \- \(\- Int64\(\-26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 54 + + 34 + - COUNT ( * ) + - + 40 * + COUNT ( * ) * - 72 AS col1, - 27 + CAST ( - COUNT ( * ) AS INTEGER ) - - - 26 col1 query II rowsort label-6189 @@ -32832,7 +32832,7 @@ SELECT DISTINCT COUNT ( * ) * 7 - - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(60\) AS Int32\) AS col1" at position 0 and "Int64\(45\) \+ Int64\(74\) \+ Int64\(59\) \+ \(\- CAST\(\(\- Int64\(46\)\) AS Int32\)\) / \(\- Int64\(\-20\)\) \- \(\- Int64\(83\)\) \+ CASE Int64\(13\) WHEN Int64\(40\) THEN Int64\(1\) END \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(60\) AS Int64\) AS col1" at position 0 and "Int64\(45\) \+ Int64\(74\) \+ Int64\(59\) \+ \(\- CAST\(\(\- Int64\(46\)\) AS Int64\)\) / \(\- Int64\(\-20\)\) \- \(\- Int64\(83\)\) \+ CASE Int64\(13\) WHEN Int64\(40\) THEN Int64\(1\) END \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + 60 AS INTEGER ) AS col1, 45 + 74 + + + 59 + - CAST ( - + 46 AS INTEGER ) / - - 20 - - + 83 + + CASE + ( + 13 ) WHEN + 40 THEN + 1 END * + 59 AS col1 query I rowsort label-6246 @@ -32859,7 +32859,7 @@ SELECT + 65 * + - 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(33\) \* \(\- Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(33\) \* \(\- Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0, + 33 * - - 84 AS col0 query I rowsort label-6251 @@ -36405,7 +36405,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "sum\(Int64\(0\)\) \+ Int64\(78\) \- \(\- Int64\(30\)\) \* Int64\(65\) \+ CAST\(Int64\(\-62\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "sum\(Int64\(0\)\) \+ Int64\(78\) \- \(\- Int64\(30\)\) \* Int64\(65\) \+ CAST\(Int64\(\-62\) AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 49 AS col1, SUM ( + 0 ) + 78 - - + 30 * 65 + + CAST ( - 62 AS INTEGER ) + + + ( COUNT ( * ) ) + - 77 AS col1 query I rowsort @@ -37735,7 +37735,7 @@ SELECT - - 33 * + 72 - - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 918 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(11\) \- Int64\(3\) \* Int64\(\-53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-51\) \* Int64\(82\) \+ \(\- Int64\(\-65\)\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(11\) \- Int64\(3\) \* Int64\(\-53\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(\-51\) \* Int64\(82\) \+ \(\- Int64\(\-65\)\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 * + 11 - + + 3 * - 53 AS col1, CAST ( NULL AS INTEGER ) / - 51 * 82 + - ( - 65 ) + + 64 AS col1 query II rowsort label-7181 @@ -39839,7 +39839,7 @@ SELECT 47 - - - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-98\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-98\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col1, - CAST ( - 98 AS INTEGER ) AS col1 query II rowsort @@ -44301,7 +44301,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) \+ Int64\(41\) \+ Int64\(\-18\) \+ CAST\(NULL AS Int32\) \* Int64\(90\) \+ Int64\(22\) \* min\(DISTINCT Int64\(88\)\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) \+ Int64\(41\) \+ Int64\(\-18\) \+ CAST\(NULL AS Int64\) \* Int64\(90\) \+ Int64\(22\) \* min\(DISTINCT Int64\(88\)\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 col1, COUNT ( * ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) * 20 + 41 + - 18 + CAST ( NULL AS INTEGER ) * + 90 + 22 * MIN ( DISTINCT 88 ) * + ( + 40 ) AS col1 query II rowsort label-8433 @@ -45528,7 +45528,7 @@ SELECT ALL 27 * - + NULLIF ( 4, 82 * + - 24 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-19\) \+ Int64\(\-70\) \* Int64\(62\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-19\) \+ Int64\(\-70\) \* Int64\(62\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 19 + - 70 * + 62 AS col0, + 1 AS col0 query II rowsort label-8664 @@ -48216,7 +48216,7 @@ SELECT - 67 * 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "CAST\(Int64\(\-3\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 99 AS col0, CAST ( + - 3 AS INTEGER ) col0 query I rowsort label-9175 @@ -49733,7 +49733,7 @@ SELECT ALL + 75, + 20 + + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) 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\. SELECT ALL + 78 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-9467 diff --git a/data/sqlite/random/expr/slt_good_62.slt b/data/sqlite/random/expr/slt_good_62.slt index 8aa60df..98f1a9d 100644 --- a/data/sqlite/random/expr/slt_good_62.slt +++ b/data/sqlite/random/expr/slt_good_62.slt @@ -426,7 +426,7 @@ SELECT - 27 * 70 + - 72 - + 34 + - + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(98\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(98\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( + 98 AS INTEGER ) AS col1, + 98 AS col1 query I rowsort @@ -1801,7 +1801,7 @@ SELECT 99 * 9 * + 92 * COALESCE ( CAST ( + 76 AS INTEGER ), + + 14, - COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- Int64\(\-92\) AS col1" at position 0 and "Int64\(18\) / Int64\(85\) \* Int64\(62\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- Int64\(\-92\) AS col1" at position 0 and "Int64\(18\) / Int64\(85\) \* Int64\(62\) \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 20 - - 92 AS col1, 18 / 85 * 62 - + + CAST ( NULL AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -2091,7 +2091,7 @@ SELECT + ( 35 ) + + - COALESCE ( - 8, + 12 ) / - + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / CAST\(NULL AS Int32\) \* Int64\(6\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / CAST\(NULL AS Int64\) \* Int64\(6\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 6 / CAST ( NULL AS INTEGER ) * + 6 * + - 46 AS col1, + 68 AS col1 query I rowsort label-389 @@ -2895,7 +2895,7 @@ SELECT ALL - 11, - 99 + + - 2 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- nullif\(Int64\(\-45\), Int64\(39\)\)\)\)\)\) AS col0" at position 0 and "Int64\(\-13\) \+ Int64\(36\) \- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(17\)\) \+ Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(\-19\) WHEN Int64\(11\) \- count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-2\) THEN Int64\(40\) \* CAST\(Int64\(\-55\) AS Int32\) WHEN \(\- \(\- CAST\(NULL AS Float64\)\)\) THEN NULL ELSE Int64\(\-99\) \+ Int64\(\-52\) \+ \(\- Int64\(\-39\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- nullif\(Int64\(\-45\), Int64\(39\)\)\)\)\)\) AS col0" at position 0 and "Int64\(\-13\) \+ Int64\(36\) \- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(17\)\) \+ Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(\-19\) WHEN Int64\(11\) \- count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-2\) THEN Int64\(40\) \* CAST\(Int64\(\-55\) AS Int64\) WHEN \(\- \(\- CAST\(NULL AS Float64\)\)\) THEN NULL ELSE Int64\(\-99\) \+ Int64\(\-52\) \+ \(\- Int64\(\-39\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( - - NULLIF ( + - 45, + 39 ) ) AS col0, - 13 + + 36 - + NULLIF ( - + COUNT ( * ), + 17 ) + + + 27 * - COUNT ( * ) * CASE - 19 WHEN + 11 - + COUNT ( * ) THEN NULL WHEN - 2 THEN + + 40 * CAST ( - 55 AS INTEGER ) WHEN - - CAST ( NULL AS FLOAT8 ) THEN NULL ELSE + - 99 + - 52 + - - 39 END col0 query II rowsort label-543 @@ -3322,7 +3322,7 @@ SELECT - 13 * - + 99 * + 44 # Datafusion - Expected - 8 # Datafusion - Expected - NULL # Datafusion - Expected - -913 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(70\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(70\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 AS col2, + 70 * ( + CAST ( NULL AS INTEGER ) ) AS col2, - 11 * + 83 col2 query I rowsort label-626 @@ -6056,7 +6056,7 @@ SELECT DISTINCT - 42 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(7\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(7\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( + + 7 ) AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -8747,7 +8747,7 @@ SELECT ALL + NULLIF ( + + 72, + - 87 - + - 6 ) * - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3478 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(92\) \+ CAST\(\(\- min\(Int64\(\-74\)\)\) AS Int32\) AS col1" at position 0 and "min\(Int64\(\-60\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(92\) \+ CAST\(\(\- min\(Int64\(\-74\)\)\) AS Int64\) AS col1" at position 0 and "min\(Int64\(\-60\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 * 92 + + + CAST ( - MIN ( ALL + - 74 ) AS INTEGER ) col1, MIN ( + - 60 ) AS col1 # Datafusion - Types were automatically converted from: @@ -9140,7 +9140,7 @@ SELECT ALL NULLIF ( + 96, 96 * - + 30 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 38 AS col1 query II rowsort label-1742 @@ -9758,7 +9758,7 @@ SELECT - MIN ( DISTINCT - - NULLIF ( + 94, - 62 ) ) + 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(35\) / Int64\(\-71\) \* Int64\(49\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(94\) \+ Int64\(\-70\) THEN NULL WHEN Int64\(\-39\) \* Int64\(76\) THEN CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(4\) ELSE Int64\(64\) \* Int64\(34\) END\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(35\) / Int64\(\-71\) \* Int64\(49\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(94\) \+ Int64\(\-70\) THEN NULL WHEN Int64\(\-39\) \* Int64\(76\) THEN CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(4\) ELSE Int64\(64\) \* Int64\(34\) END\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 38 col0, 35 / - 71 * 49 * - CASE - 84 WHEN + 94 + - 70 THEN NULL WHEN - 39 * + 76 THEN CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + 4 ELSE + 64 * + 34 END + - 10 AS col0 query I rowsort @@ -10299,7 +10299,7 @@ SELECT DISTINCT 64 + + COUNT ( DISTINCT 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(45\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(88\) / \(\- max\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(45\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(88\) / \(\- max\(DISTINCT CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45 AS col1, 45 * - - COUNT ( * ) * 88 / - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -12202,7 +12202,7 @@ SELECT + 75 AS col0, ( 61 ) + + - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 35308 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-30\)\), Int64\(0\), count\(Int64\(9\)\)\) \* \(\- max\(CAST\(Int64\(\-20\) AS Int32\)\)\) \* \(\- Int64\(\-59\)\) \+ Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-30\)\), Int64\(0\), count\(Int64\(9\)\)\) \* \(\- max\(CAST\(Int64\(\-20\) AS Int64\)\)\) \* \(\- Int64\(\-59\)\) \+ Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 99 AS col0, + COALESCE ( - - 30, - 0, COUNT ( 9 ) ) * - MAX ( + CAST ( - 20 AS INTEGER ) ) * - - 59 + - 92 AS col0 query I rowsort @@ -17218,7 +17218,7 @@ SELECT ALL - - ( 86 ) + + - 11 - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(Int64\(\-39\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(Int64\(\-39\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 74 AS col1, 32 + COUNT ( * ) - - CAST ( - 39 AS INTEGER ) AS col1 query I rowsort label-3281 @@ -20121,7 +20121,7 @@ SELECT DISTINCT - 71 * SUM ( DISTINCT + 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-17\) AS Int32\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-17\) AS Int64\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + - 17 AS INTEGER ) AS col2, - 37 AS col2 query I rowsort label-3837 @@ -21031,7 +21031,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -3142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(65\) AS Int32\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(\-54\) \+ \(\- Int64\(53\)\) / Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(65\) AS Int64\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(\-54\) \+ \(\- Int64\(53\)\) / Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( 65 AS INTEGER ) AS col0, 58 * - 54 + - ( + + 53 ) / + 5 AS col0 query I rowsort label-4007 @@ -21646,7 +21646,7 @@ SELECT DISTINCT ( + 0 ) * - 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- nullif\(Int64\(41\), Int64\(87\)\)\)\) AS Int32\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- nullif\(Int64\(41\), Int64\(87\)\)\)\) AS Int64\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - NULLIF ( + 41, + 87 ) AS INTEGER ) AS col1, ( - ( 75 ) ) col1 query I rowsort label-4124 @@ -24687,7 +24687,7 @@ SELECT DISTINCT ( + 90 ) AS col1, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(0\) \* sum\(Int64\(7\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(0\) \* sum\(Int64\(7\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( NULL AS INTEGER ) * 0 * SUM ( + 7 ) col1, 19 AS col1 query I rowsort @@ -27704,7 +27704,7 @@ SELECT - 19 * + 72 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(27\) \+ nullif\(Int64\(71\), \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(27\) \+ nullif\(Int64\(71\), \(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 22 col1, 27 + NULLIF ( + 71, - - CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -27895,7 +27895,7 @@ SELECT + - ( + 46 ) + + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CAST\(NULL AS Int32\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(\-85\) \+ Int64\(91\) END AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CAST\(NULL AS Int64\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(\-85\) \+ Int64\(91\) END AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN - 85 + 91 END AS col2, 37 AS col2 query I rowsort label-5312 @@ -31543,7 +31543,7 @@ SELECT DISTINCT - - CAST ( - 71 AS INTEGER ) - + 7 - - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3447 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(99\) \* Int64\(34\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(99\) \* Int64\(34\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 30 * + CAST ( NULL AS INTEGER ) AS col2, + 99 * + 34 + + + 81 col2 query II rowsort label-6009 @@ -31725,7 +31725,7 @@ SELECT + 90 / + - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) / CAST\(NULL AS Int32\) / Int64\(68\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-43\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) / CAST\(NULL AS Int64\) / Int64\(68\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-43\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 / + CAST ( NULL AS INTEGER ) / + + 68 / + CAST ( NULL AS INTEGER ) AS col2, - 43 * - 50 AS col2 query I rowsort label-6043 @@ -32502,7 +32502,7 @@ SELECT + 28 * 68 * 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* max\(Int64\(14\)\) \- CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(6\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* max\(Int64\(14\)\) \- CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(6\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 * + MAX ( ALL 14 ) - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2, 6 * COUNT ( * ) AS col2 query I rowsort @@ -36968,7 +36968,7 @@ SELECT + COUNT ( * ) - + - COUNT ( DISTINCT 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7830 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* CAST\(Int64\(\-90\) AS Int32\) AS col1" at position 0 and "Int64\(9\) \- Int64\(56\) \+ \(\- Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* CAST\(Int64\(\-90\) AS Int64\) AS col1" at position 0 and "Int64\(9\) \- Int64\(56\) \+ \(\- Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 87 * + CAST ( - 90 AS INTEGER ) AS col1, 9 - 56 + - + 43 AS col1 query I rowsort @@ -37619,7 +37619,7 @@ SELECT DISTINCT 51 * + - 89 AS col0, + 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4968 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(72\) AS col1" at position 0 and "CAST\(Int64\(17\) AS Int32\) \- Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(72\) AS col1" at position 0 and "CAST\(Int64\(17\) AS Int64\) \- Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 69 * + 72 AS col1, + ( + CAST ( 17 AS INTEGER ) ) - 37 AS col1 query I rowsort @@ -37635,7 +37635,7 @@ SELECT 10 + + + 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4116 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(49\) / CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(49\) / CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 84 * 49 / + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 39 AS col0 query I rowsort @@ -39610,7 +39610,7 @@ SELECT - 51 * + - 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\)" at position 0 and "\(\- CAST\(NULL AS Int64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) query I rowsort label-7544 @@ -43298,7 +43298,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) + + 11 AS col0 query I rowsort label-8247 @@ -44591,7 +44591,7 @@ SELECT ALL + + 76 / - 79 * + COUNT ( - + 95 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "CAST\(Int64\(\-66\) AS Int32\) \+ CASE Int64\(12\) WHEN Int64\(\-64\) THEN Int64\(\-8\) WHEN Int64\(6\) THEN Int64\(86\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "CAST\(Int64\(\-66\) AS Int64\) \+ CASE Int64\(12\) WHEN Int64\(\-64\) THEN Int64\(\-8\) WHEN Int64\(6\) THEN Int64\(86\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 AS col2, CAST ( - 66 AS INTEGER ) + + + ( CASE + 12 WHEN - 64 THEN - 8 WHEN 6 THEN + 86 END ) AS col2 query I rowsort @@ -45484,7 +45484,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / Int64\(12\) / Int64\(84\) \* Int64\(\-18\) AS col0" at position 0 and "Int64\(\-31\) \* Int64\(6\) \+ Int64\(56\) \+ avg\(Int64\(\-59\)\) \+ \(\- Int64\(4\)\) \* Int64\(\-24\) \+ Int64\(95\) \* \(\- CAST\(\(\- Int64\(33\)\) AS Int32\)\) \* \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / Int64\(12\) / Int64\(84\) \* Int64\(\-18\) AS col0" at position 0 and "Int64\(\-31\) \* Int64\(6\) \+ Int64\(56\) \+ avg\(Int64\(\-59\)\) \+ \(\- Int64\(4\)\) \* Int64\(\-24\) \+ Int64\(95\) \* \(\- CAST\(\(\- Int64\(33\)\) AS Int64\)\) \* \(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 47 / 12 / + 84 * + - 18 AS col0, - 31 * + 6 + + 56 + AVG ( ALL - 59 ) + - + 4 * - 24 + + + 95 * - CAST ( - ( + 33 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0 query I rowsort label-8661 @@ -46596,7 +46596,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(97\) \+ Int64\(\-55\) AS col2" at position 0 and "count\(Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / Int64\(97\) \+ Int64\(\-55\) AS col2" at position 0 and "count\(Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 97 + - 55 AS col2, COUNT ( + 94 ) AS col2 query I rowsort @@ -49963,7 +49963,7 @@ SELECT 67 - + ( + - 15 ) * + 79 * + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "nullif\(\(\- CAST\(Int64\(97\) AS Int32\)\), Int64\(6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "nullif\(\(\- CAST\(Int64\(97\) AS Int64\)\), Int64\(6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 43 col2, + NULLIF ( - CAST ( + + 97 AS INTEGER ), 6 ) AS col2 query I rowsort @@ -51995,7 +51995,7 @@ SELECT MAX ( - 73 ) * + + 37 + MIN ( DISTINCT - COALESCE ( + CAST ( NULL AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-95\) \+ sum\(Int64\(42\)\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(98\) THEN Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(Int64\(\-14\), Int64\(\-66\)\) THEN coalesce\(Int64\(\-16\), Int64\(\-14\) \* Int64\(18\) \+ Int64\(\-97\), Int64\(52\), Int64\(92\) \+ Int64\(\-80\) \* coalesce\(Int64\(92\) \* CASE Int64\(87\) \* CAST\(NULL AS Int32\) WHEN Int64\(99\) THEN Int64\(\-62\) \* \(\- coalesce\(Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-64\), Int64\(\-28\), CAST\(min\(DISTINCT CAST\(Int64\(10\) AS Int32\)\) AS Float64\)\)\) ELSE NULL END, count\(Int64\(1\)\) AS count\(\*\)\)\) END \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-95\) \+ sum\(Int64\(42\)\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(98\) THEN Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(Int64\(\-14\), Int64\(\-66\)\) THEN coalesce\(Int64\(\-16\), Int64\(\-14\) \* Int64\(18\) \+ Int64\(\-97\), Int64\(52\), Int64\(92\) \+ Int64\(\-80\) \* coalesce\(Int64\(92\) \* CASE Int64\(87\) \* CAST\(NULL AS Int64\) WHEN Int64\(99\) THEN Int64\(\-62\) \* \(\- coalesce\(Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-64\), Int64\(\-28\), CAST\(min\(DISTINCT CAST\(Int64\(10\) AS Int64\)\) AS Float64\)\)\) ELSE NULL END, count\(Int64\(1\)\) AS count\(\*\)\)\) END \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 82 AS col2, 97 * ( - 95 ) + SUM ( + 42 ) + CASE + COUNT ( * ) WHEN 98 THEN - 40 + + COUNT ( * ) WHEN COALESCE ( - 14, - 66 ) THEN + COALESCE ( - 16, - 14 * + 18 + - 97, + 52, 92 + - 80 * COALESCE ( + ( + ( + 92 ) ) * CASE + 87 * CAST ( NULL AS INTEGER ) WHEN 99 THEN - 62 * - COALESCE ( + 64 * COUNT ( * ), - 64, - 28, + CAST ( + MIN ( DISTINCT CAST ( + 10 AS INTEGER ) ) AS FLOAT8 ) ) ELSE NULL END, COUNT ( * ) ) ) END * 24 AS col2 query I rowsort label-9905 diff --git a/data/sqlite/random/expr/slt_good_63.slt b/data/sqlite/random/expr/slt_good_63.slt index 38c72ac..573f55d 100644 --- a/data/sqlite/random/expr/slt_good_63.slt +++ b/data/sqlite/random/expr/slt_good_63.slt @@ -415,7 +415,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 879 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "CAST\(CAST\(Int64\(32\) AS Int32\) AS Int32\) \* Int64\(27\) \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "CAST\(CAST\(Int64\(32\) AS Int64\) AS Int64\) \* Int64\(27\) \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 55 AS col0, + CAST ( + CAST ( 32 AS INTEGER ) AS INTEGER ) * 27 + + 15 AS col0 query I rowsort label-71 @@ -1833,7 +1833,7 @@ SELECT + 88 * + + 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(21\) \+ Int64\(13\) \* Int64\(89\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \- Int64\(21\) \+ Int64\(13\) \* Int64\(89\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 32 AS col0, + CAST ( NULL AS INTEGER ) - + 21 + + 13 * + 89 * 54 col0 query I rowsort label-342 @@ -3479,7 +3479,7 @@ SELECT + 28 AS col2, + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- nullif\(Int64\(9\), count\(\(\- Int64\(0\)\)\) \* \(\- \(\- CAST\(Int64\(71\) AS Int32\)\)\)\)\) \- Int64\(47\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- nullif\(Int64\(9\), count\(\(\- Int64\(0\)\)\) \* \(\- \(\- CAST\(Int64\(71\) AS Int64\)\)\)\)\) \- Int64\(47\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( + + 9, + + COUNT ( - ( + 0 ) ) * - - CAST ( + 71 AS INTEGER ) ) - 47 AS col1, 27 AS col1 query I rowsort label-652 @@ -4222,7 +4222,7 @@ SELECT - 31 col0, + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-795 @@ -4784,7 +4784,7 @@ SELECT - 87 + - CASE WHEN 77 IS NOT NULL THEN + COUNT ( * ) END AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3654 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(9\) \+ Int64\(93\) \+ Int64\(48\) \* \(\- CAST\(\(\- Int64\(74\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(31\) \+ \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(9\) \+ Int64\(93\) \+ Int64\(48\) \* \(\- CAST\(\(\- Int64\(74\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(31\) \+ \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 0 + + 9 + + 93 + + + 48 * - + CAST ( + ( - + 74 ) AS INTEGER ) AS col0, 31 + - CAST ( NULL AS FLOAT8 ) + - COUNT ( * ) AS col0 query I rowsort label-901 @@ -6481,7 +6481,7 @@ NULL # Datafusion - Expected - -24 # Datafusion - Expected - NULL # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 24 AS col1, CAST ( NULL AS INTEGER ) col1, CAST ( + 79 AS INTEGER ) - COUNT ( DISTINCT + 64 ) + + 66 query I rowsort label-1224 @@ -7749,7 +7749,7 @@ SELECT - 4 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 38 * + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-1467 @@ -12008,7 +12008,7 @@ SELECT + - 73 * - + 93 AS col2, + 53 * - + 71 # Datafusion - Expected - NULL # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ max\(Int64\(49\)\) \- \(\- CASE Int64\(19\) WHEN \(\- Int64\(5\)\) \- Int64\(9\) \+ Int64\(22\) \- \(\- Int64\(\-72\)\) THEN NULL ELSE Int64\(\-1\) \* Int64\(\-57\) \- Int64\(\-84\) \- \(\- Int64\(24\)\) \* \(\- Int64\(\-86\)\) END\) \+ Int64\(\-37\) / Int64\(\-75\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-43\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- coalesce\(Int64\(\-97\), Int64\(\-11\), \(\- coalesce\(Int64\(95\), min\(Int64\(18\)\), Int64\(65\)\)\)\)\) \* Int64\(\-1\) THEN nullif\(\(\- Int64\(11\)\), Int64\(\-4\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(47\) WHEN Int64\(28\) THEN Int64\(48\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ max\(Int64\(49\)\) \- \(\- CASE Int64\(19\) WHEN \(\- Int64\(5\)\) \- Int64\(9\) \+ Int64\(22\) \- \(\- Int64\(\-72\)\) THEN NULL ELSE Int64\(\-1\) \* Int64\(\-57\) \- Int64\(\-84\) \- \(\- Int64\(24\)\) \* \(\- Int64\(\-86\)\) END\) \+ Int64\(\-37\) / Int64\(\-75\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-43\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- coalesce\(Int64\(\-97\), Int64\(\-11\), \(\- coalesce\(Int64\(95\), min\(Int64\(18\)\), Int64\(65\)\)\)\)\) \* Int64\(\-1\) THEN nullif\(\(\- Int64\(11\)\), Int64\(\-4\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(47\) WHEN Int64\(28\) THEN Int64\(48\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( ALL + 49 ) - - CASE + 19 WHEN - + 5 - 9 + + 22 - - - 72 THEN NULL ELSE - 1 * - 57 - + - 84 - - + 24 * - - 86 END + - 37 / + - 75 AS col0, 7 AS col2, - + COUNT ( * ) + - 43 * CASE - COUNT ( * ) WHEN - COALESCE ( - 97, - 11, + - COALESCE ( 95, + MIN ( ( 18 ) ), 65 ) ) * - 1 THEN NULLIF ( - ( + 11 ), - 4 ) * COUNT ( * ) + 47 WHEN 28 THEN + 48 END AS col0 query I rowsort @@ -12050,7 +12050,7 @@ SELECT 22 AS col2, 27 - - - 72 + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3300 # Datafusion - Expected - -29336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-33\) \* Int64\(10\) AS col2" at position 0 and "Int64\(48\) \* \(\- coalesce\(Int64\(5\), count\(DISTINCT \(\- Int64\(\-45\)\)\), Int64\(\-13\)\)\) \* Int64\(96\) \+ \(\- sum\(\(\- Int64\(\-53\)\)\)\) \* Int64\(93\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(32\)\) \+ sum\(nullif\(Int64\(89\), \(\- Int64\(\-55\)\)\)\) \+ \(\- Int64\(\-65\)\) \+ count\(DISTINCT CAST\(Int64\(86\) AS Int32\)\) \* \(\- min\(DISTINCT Int64\(\-93\)\)\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-33\) \* Int64\(10\) AS col2" at position 0 and "Int64\(48\) \* \(\- coalesce\(Int64\(5\), count\(DISTINCT \(\- Int64\(\-45\)\)\), Int64\(\-13\)\)\) \* Int64\(96\) \+ \(\- sum\(\(\- Int64\(\-53\)\)\)\) \* Int64\(93\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(32\)\) \+ sum\(nullif\(Int64\(89\), \(\- Int64\(\-55\)\)\)\) \+ \(\- Int64\(\-65\)\) \+ count\(DISTINCT CAST\(Int64\(86\) AS Int64\)\) \* \(\- min\(DISTINCT Int64\(\-93\)\)\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 * - 33 * + 10 col2, 48 * - + COALESCE ( + 5, + COUNT ( DISTINCT - - 45 ), - 13 ) * + 96 + - SUM ( - - 53 ) * + 93 + + - COUNT ( * ) + - + 32 + + SUM ( ALL + NULLIF ( 89, - - 55 ) ) + ( - - 65 ) + + COUNT ( DISTINCT CAST ( + 86 AS INTEGER ) ) * - MIN ( DISTINCT - 93 ) * - 16 AS col2 query I rowsort label-2283 @@ -12445,7 +12445,7 @@ SELECT - - COUNT ( * ), 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- \(\- CASE Int64\(\-65\) WHEN Int64\(\-77\) \+ Int64\(\-98\) \+ Int64\(60\) \* Int64\(87\) THEN \(\- \(\- Int64\(\-13\)\)\) END\)\) WHEN Int64\(17\) THEN sum\(Int64\(\-97\)\) \- Int64\(\-21\) \+ nullif\(Int64\(91\), Int64\(\-75\) \* CAST\(NULL AS Int32\)\) END\) / Int64\(35\) \- Int64\(\-40\) \+ Int64\(\-99\) \* Int64\(98\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-70\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- \(\- CASE Int64\(\-65\) WHEN Int64\(\-77\) \+ Int64\(\-98\) \+ Int64\(60\) \* Int64\(87\) THEN \(\- \(\- Int64\(\-13\)\)\) END\)\) WHEN Int64\(17\) THEN sum\(Int64\(\-97\)\) \- Int64\(\-21\) \+ nullif\(Int64\(91\), Int64\(\-75\) \* CAST\(NULL AS Int64\)\) END\) / Int64\(35\) \- Int64\(\-40\) \+ Int64\(\-99\) \* Int64\(98\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-70\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 82 AS col1, - 32 + COUNT ( * ) + - + CASE + ( - ( - ( + CASE - 65 WHEN + - 77 + - 98 + 60 * 87 THEN - ( - - 13 ) END ) ) ) WHEN + 17 THEN SUM ( - 97 ) - - 21 + NULLIF ( 91, - 75 * + + CAST ( NULL AS INTEGER ) ) END / + 35 - - 40 + - 99 * + 98 * + + COUNT ( * ) / + - 70 + 12 AS col1 query I rowsort label-2358 @@ -12992,7 +12992,7 @@ SELECT 20 / + SUM ( DISTINCT + 21 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-28\), Int64\(72\) \* Int64\(35\) \* Int64\(46\) \* Int64\(92\) \* nullif\(Int64\(\-72\), Int64\(45\)\) \+ Int64\(31\) \+ Int64\(0\) \* Int64\(69\) \* Int64\(87\) \- max\(\(\- \(\- CAST\(\(\- Int64\(33\)\) AS Int32\)\)\)\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-28\), Int64\(72\) \* Int64\(35\) \* Int64\(46\) \* Int64\(92\) \* nullif\(Int64\(\-72\), Int64\(45\)\) \+ Int64\(31\) \+ Int64\(0\) \* Int64\(69\) \* Int64\(87\) \- max\(\(\- \(\- CAST\(\(\- Int64\(33\)\) AS Int64\)\)\)\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - 28, + 72 * + 35 * 46 * + 92 * NULLIF ( + ( - 72 ), 45 ) + 31 + + 0 * + 69 * 87 - MAX ( ALL - - CAST ( - + 33 AS INTEGER ) ) ) AS col0, 33 AS col0 query I rowsort label-2462 @@ -13810,7 +13810,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- Int64\(2\)\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(31\) \+ \(\- CAST\(Int64\(73\) AS Int32\)\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- Int64\(2\)\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(31\) \+ \(\- CAST\(Int64\(73\) AS Int64\)\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 40 * - + 2 + + + 22 col1, 31 + - CAST ( + + 73 AS INTEGER ) + + 49 col1 query I rowsort @@ -14762,7 +14762,7 @@ SELECT 21, - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8425 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* CASE Int64\(\-25\) WHEN Int64\(\-39\) \* Int64\(27\) \+ Int64\(49\) THEN NULL ELSE min\(Int64\(86\)\) \* Int64\(92\) / \(\- Int64\(46\)\) \- Int64\(\-51\) END \+ Int64\(\-45\) AS col1" at position 0 and "\(\- nullif\(CAST\(NULL AS Int32\), Int64\(\-55\) \* CAST\(NULL AS Int32\) \+ \(\- Int64\(\-87\)\) \+ Int64\(85\) \+ \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* CASE Int64\(\-25\) WHEN Int64\(\-39\) \* Int64\(27\) \+ Int64\(49\) THEN NULL ELSE min\(Int64\(86\)\) \* Int64\(92\) / \(\- Int64\(46\)\) \- Int64\(\-51\) END \+ Int64\(\-45\) AS col1" at position 0 and "\(\- nullif\(CAST\(NULL AS Int64\), Int64\(\-55\) \* CAST\(NULL AS Int64\) \+ \(\- Int64\(\-87\)\) \+ Int64\(85\) \+ \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 70 * + CASE - 25 WHEN - 39 * + 27 + + + 49 THEN NULL ELSE MIN ( 86 ) * 92 / - + 46 - - 51 END + - 45 AS col1, - ( + NULLIF ( + CAST ( NULL AS INTEGER ), ( - 55 ) * + CAST ( NULL AS INTEGER ) + - + ( - 87 ) + 85 + + - CAST ( NULL AS INTEGER ) ) ) AS col1 query I rowsort label-2793 @@ -15103,7 +15103,7 @@ SELECT DISTINCT + CAST ( 15 AS INTEGER ) * - + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) AS col1 query I rowsort label-2859 @@ -18194,7 +18194,7 @@ SELECT DISTINCT 73 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7147 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-72\) \* \(\- \(\- nullif\(\(\- Int64\(99\)\), Int64\(\-74\) \* Int64\(\-75\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) AS col1" at position 0 and "\(\- nullif\(Int64\(7\), \(\- Int64\(13\)\) \- \(\- Int64\(17\)\) \+ CAST\(Int64\(\-85\) AS Int32\) \* Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-72\) \* \(\- \(\- nullif\(\(\- Int64\(99\)\), Int64\(\-74\) \* Int64\(\-75\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) AS col1" at position 0 and "\(\- nullif\(Int64\(7\), \(\- Int64\(13\)\) \- \(\- Int64\(17\)\) \+ CAST\(Int64\(\-85\) AS Int64\) \* Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 + - 72 * - - NULLIF ( - + 99, - 74 * - 75 ) + + COUNT ( * ) + - 57 col1, - NULLIF ( + 7, - + 13 - - + 17 + + CAST ( - 85 AS INTEGER ) * 15 ) AS col1 query I rowsort label-3455 @@ -18973,7 +18973,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(29\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(20\) \- Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(29\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(20\) \- Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + + COUNT ( + 29 ) / + + COUNT ( * ) AS col1, + 20 - - 8 AS col1 query I rowsort @@ -21424,7 +21424,7 @@ SELECT DISTINCT - 76 * + COALESCE ( - 65, + 96 + - - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2407 # Datafusion - Expected - -2765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-23\) \+ \(\- CAST\(Int64\(99\) AS Int32\)\) \- \(\- Int64\(93\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-46\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(79\) \* \(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-23\) \+ \(\- CAST\(Int64\(99\) AS Int64\)\) \- \(\- Int64\(93\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-46\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(79\) \* \(\- CAST\(Int64\(35\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 79 * + + ( - 23 ) + - CAST ( 99 AS INTEGER ) - - + 93 * - COUNT ( * ) * + - 46 + + 45 AS col2, + 79 * - CAST ( 35 AS INTEGER ) AS col2 # Datafusion - Types were automatically converted from: @@ -21720,7 +21720,7 @@ SELECT DISTINCT + + 73 * - - 54 + + + 45 # Datafusion - Expected - 75 # Datafusion - Expected - 6076 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(74\) \+ Int64\(25\) \+ Int64\(\-77\) \+ \(\- CAST\(Int64\(92\) AS Int32\)\) \+ Int64\(55\) \* Int64\(96\) \+ Int64\(31\) \+ \(\- Int64\(\-95\)\) AS col1" at position 1 and "Int64\(31\) \+ sum\(DISTINCT Int64\(89\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(74\) \+ Int64\(25\) \+ Int64\(\-77\) \+ \(\- CAST\(Int64\(92\) AS Int64\)\) \+ Int64\(55\) \* Int64\(96\) \+ Int64\(31\) \+ \(\- Int64\(\-95\)\) AS col1" at position 1 and "Int64\(31\) \+ sum\(DISTINCT Int64\(89\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75, 11 * 74 + + 25 + - 77 + - CAST ( + 92 AS INTEGER ) + 55 * 96 + + + 31 + - - 95 AS col1, + 31 + + SUM ( DISTINCT + 89 ) AS col1 query II rowsort label-4118 @@ -24372,7 +24372,7 @@ SELECT ALL - 80 + + - 45 + - + 97 + - 6 * + - 11 * + 36 + COUNT ( * ) / - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-57\)\) AS col2" at position 0 and "Int64\(60\) \* Int64\(90\) / Int64\(55\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-57\)\) AS col2" at position 0 and "Int64\(60\) \* Int64\(90\) / Int64\(55\) \* \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( DISTINCT + - 57 ) AS col2, + 60 * + 90 / + 55 * - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-4621 @@ -25511,7 +25511,7 @@ SELECT DISTINCT + 97 * - + COUNT ( * ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 1 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-29\) \* CASE Int64\(58\) WHEN Int64\(43\) THEN count\(Int64\(1\)\) AS count\(\*\) END WHEN Int64\(35\) THEN Int64\(\-58\) ELSE NULL END\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 1 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-29\) \* CASE Int64\(58\) WHEN Int64\(43\) THEN count\(Int64\(1\)\) AS count\(\*\) END WHEN Int64\(35\) THEN Int64\(\-58\) ELSE NULL END\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0, - CASE - + COUNT ( * ) WHEN + ( + 88 ) THEN - 29 * CASE 58 WHEN ( + 43 ) THEN + COUNT ( * ) END WHEN 35 THEN - 58 ELSE NULL END AS col0 query I rowsort label-4841 @@ -26220,7 +26220,7 @@ SELECT ALL - COUNT ( * ) * - - 36 + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -387528 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(15\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-18\) \+ Int64\(0\) AS col0" at position 0 and "max\(Int64\(72\)\) \+ Int64\(\-85\) \* Int64\(48\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(15\)\) \* CAST\(NULL AS Int64\) \+ Int64\(\-18\) \+ Int64\(0\) AS col0" at position 0 and "max\(Int64\(72\)\) \+ Int64\(\-85\) \* Int64\(48\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - + 15 * CAST ( NULL AS INTEGER ) + - 18 + + 0 AS col0, MAX ( 72 ) + - 85 * 48 * 95 AS col0 query I rowsort @@ -26272,7 +26272,7 @@ SELECT DISTINCT + ( 45 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(43\)\) \* Int64\(\-90\) \+ Int64\(39\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(29\)\) \* Int64\(97\) AS col2" at position 0 and "Int64\(59\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(43\)\) \* Int64\(\-90\) \+ Int64\(39\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(29\)\) \* Int64\(97\) AS col2" at position 0 and "Int64\(59\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( + 43 ) * - 90 + + 39 + - CAST ( NULL AS INTEGER ) * - ( 29 ) * 97 col2, 59 + + - 3 AS col2 query I rowsort label-4987 @@ -26294,7 +26294,7 @@ SELECT DISTINCT + ( - - 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -42102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(11\) \+ coalesce\(CAST\(NULL AS Int32\), Int64\(14\) \* Int64\(94\), max\(\(\- Int64\(22\)\)\)\) \* \(\- Int64\(32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(11\) \+ coalesce\(CAST\(NULL AS Int64\), Int64\(14\) \* Int64\(94\), max\(\(\- Int64\(22\)\)\)\) \* \(\- Int64\(32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, + 11 + COALESCE ( + CAST ( NULL AS INTEGER ), + 14 * + + 94, MAX ( - + 22 ) ) * + ( - + 32 ) + - COUNT ( * ) AS col1 query I rowsort @@ -32576,7 +32576,7 @@ SELECT - ( + MIN ( 4 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\) \* CASE Int64\(53\) WHEN Int64\(57\) THEN Int64\(\-55\) \* Int64\(39\) \+ \(\- Int64\(\-88\)\) \+ Int64\(94\) END AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(DISTINCT \(\- \(\- CAST\(NULL AS Int64\)\)\)\)\)\) \* CASE Int64\(53\) WHEN Int64\(57\) THEN Int64\(\-55\) \* Int64\(39\) \+ \(\- Int64\(\-88\)\) \+ Int64\(94\) END AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) * + CASE + 53 WHEN + + 57 THEN - 55 * + 39 + - - 88 + + 94 END AS col1, COUNT ( * ) AS col1 query I rowsort label-6188 @@ -37043,7 +37043,7 @@ SELECT COALESCE ( - + 76, - COUNT ( * ) / - - 68 * + + 90 + + + CAST ( + 2 AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(89\) \+ \(\- \(\- count\(Int64\(79\)\)\)\)\)\) \* \(\- Int64\(\-16\)\) \- Int64\(\-94\) \* Int64\(\-6\) \- Int64\(2\) \* Int64\(7\) AS col1" at position 0 and "Int64\(\-38\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(89\) \+ \(\- \(\- count\(Int64\(79\)\)\)\)\)\) \* \(\- Int64\(\-16\)\) \- Int64\(\-94\) \* Int64\(\-6\) \- Int64\(2\) \* Int64\(7\) AS col1" at position 0 and "Int64\(\-38\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COALESCE ( + COUNT ( * ), + 89 + - - COUNT ( + 79 ) ) * - - 16 - - 94 * + - 6 - + 2 * 7 AS col1, - 38 + + - 90 AS col1 query II rowsort @@ -37314,7 +37314,7 @@ SELECT DISTINCT 67 * + 91 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(52\) / \(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(\-39\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(52\) / \(\- avg\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(\-39\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 * + 52 / + - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1, - COUNT ( - 39 ) AS col1 query I rowsort label-7097 @@ -38635,7 +38635,7 @@ SELECT + COUNT ( * ), 80 AS col0 # Datafusion - Expected - -84 # Datafusion - Expected - -39 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(43\)\)\)\) / Int64\(63\) \* Int64\(25\) \+ \(\- \(\- CAST\(Int64\(\-84\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(43\)\)\)\) / Int64\(63\) \* Int64\(25\) \+ \(\- \(\- CAST\(Int64\(\-84\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( - + 43 ) / + 63 * + 25 + - - CAST ( + - 84 AS INTEGER ) AS col1, - 39, 67 AS col1 query I rowsort label-7344 @@ -38931,7 +38931,7 @@ SELECT ALL COALESCE ( 98, - 68 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(\(\- Int64\(94\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(\(\- Int64\(94\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 55 + + - CAST ( - + 94 AS INTEGER ) col1, 63 AS col1 query I rowsort label-7400 @@ -47489,7 +47489,7 @@ SELECT DISTINCT - + 60 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- Int64\(87\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- Int64\(87\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 12 + - ( 87 ) + + - COUNT ( * ) AS col0, + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -51521,7 +51521,7 @@ SELECT + ( + 68 ) / - COUNT ( - + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) 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\. SELECT - COUNT ( * ) * - 97 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-9798 diff --git a/data/sqlite/random/expr/slt_good_64.slt b/data/sqlite/random/expr/slt_good_64.slt index d3a9bfa..8fcfff8 100644 --- a/data/sqlite/random/expr/slt_good_64.slt +++ b/data/sqlite/random/expr/slt_good_64.slt @@ -2082,7 +2082,7 @@ SELECT ALL + CAST ( ( + 67 ) AS INTEGER ) * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, + 24 AS col2 query I rowsort label-390 @@ -2789,7 +2789,7 @@ SELECT ALL + 1 * 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(87\) AS Int32\) \* \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(87\) AS Int64\) \* \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, CAST ( 87 AS INTEGER ) * - - 38 AS col0 query II rowsort label-525 @@ -4807,7 +4807,7 @@ SELECT - COALESCE ( + + ( - 17 ), 73, + - 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col0, - 80 AS col0 query I rowsort @@ -5360,7 +5360,7 @@ SELECT MAX ( DISTINCT + 35 ) AS col1, 85 + + COUNT ( * ) * - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(98\) / \(\- Int64\(64\)\) \- Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(98\) / \(\- Int64\(64\)\) \- Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 98 / - + ( + 64 ) - + 31 AS col0 query I rowsort label-1015 @@ -5569,7 +5569,7 @@ SELECT ALL - 3 * + - 77 + - COUNT ( * ) * - + 70 AS col1 # Datafusion - Expected - -99 # Datafusion - Expected - 95 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 1 and "coalesce\(Int64\(39\), Int64\(20\), \(\- CAST\(Int64\(66\) AS Int32\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 1 and "coalesce\(Int64\(39\), Int64\(20\), \(\- CAST\(Int64\(66\) AS Int64\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 45 - 54, 95 AS col0, COALESCE ( 39, + 20, - CAST ( 66 AS INTEGER ) ) AS col0 query I rowsort label-1055 @@ -5610,7 +5610,7 @@ SELECT + 84 + + 7 * - 31 + 10 * 25 + - ( + 98 ) + + - 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / \(\- \(\- CAST\(Int64\(78\) AS Int32\)\)\) \+ Int64\(87\) \+ max\(Int64\(6\)\) AS col1" at position 0 and "nullif\(Int64\(73\), Int64\(91\)\) \+ \(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / \(\- \(\- CAST\(Int64\(78\) AS Int64\)\)\) \+ Int64\(87\) \+ max\(Int64\(6\)\) AS col1" at position 0 and "nullif\(Int64\(73\), Int64\(91\)\) \+ \(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( 6 ) / - - CAST ( + 78 AS INTEGER ) + + 87 + MAX ( + 6 ) AS col1, NULLIF ( + + 73, 91 ) + - - 75 col1 query I rowsort @@ -5781,7 +5781,7 @@ SELECT ALL 16 / - MAX ( ( 73 ) ) * - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-13\)\) \+ Int64\(75\) \* CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(2\) \* \(\- \(\- CAST\(\(\- Int64\(\-39\)\) AS Float64\)\)\) \* Int64\(37\) THEN Int64\(23\) WHEN CAST\(NULL AS Int32\) \* Int64\(32\) \+ \(\- nullif\(Int64\(\-69\), Int64\(40\) / Int64\(\-78\) \* Int64\(8\) \* Int64\(17\)\)\) THEN NULL WHEN Int64\(81\) \* Int64\(\-46\) THEN Int64\(64\) \+ \(\- Int64\(\-1\)\) END \* Int64\(\-79\) \+ Int64\(1\) \- Int64\(0\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-31\) \- \(\- \(\- Int64\(55\)\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-13\)\) \+ Int64\(75\) \* CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(2\) \* \(\- \(\- CAST\(\(\- Int64\(\-39\)\) AS Float64\)\)\) \* Int64\(37\) THEN Int64\(23\) WHEN CAST\(NULL AS Int64\) \* Int64\(32\) \+ \(\- nullif\(Int64\(\-69\), Int64\(40\) / Int64\(\-78\) \* Int64\(8\) \* Int64\(17\)\)\) THEN NULL WHEN Int64\(81\) \* Int64\(\-46\) THEN Int64\(64\) \+ \(\- Int64\(\-1\)\) END \* Int64\(\-79\) \+ Int64\(1\) \- Int64\(0\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-31\) \- \(\- \(\- Int64\(55\)\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( ALL + - 13 ) + + 75 * + CASE - - COUNT ( * ) WHEN 2 * - ( - CAST ( - - 39 AS FLOAT8 ) ) * 37 THEN + 23 WHEN + CAST ( NULL AS INTEGER ) * 32 + + ( - + NULLIF ( - 69, 40 / - 78 * + + 8 * 17 ) ) THEN NULL WHEN 81 * - 46 THEN + 64 + - - 1 END * - 79 + + 1 - + - 0 AS col0, + 81 + - 31 - - ( - + 55 ) * + 44 AS col0 query I rowsort label-1095 @@ -6401,7 +6401,7 @@ SELECT ALL + ( - 5 ) - - 69 - + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 552 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- \(\- Int64\(65\)\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ Int64\(76\) \+ Int64\(11\) \* Int64\(36\) AS col0" at position 0 and "Int64\(39\) \- Int64\(\-37\) \- CASE Int64\(13\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-2\) \* Int64\(2\) THEN Int64\(60\) \* \(\- CASE Int64\(\-47\) WHEN Int64\(57\) \+ \(\- Int64\(\-21\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-13\) ELSE Int64\(\-45\) END\) \- Int64\(41\) \* Int64\(39\) WHEN CAST\(NULL AS Int32\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- \(\- Int64\(65\)\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) \+ Int64\(76\) \+ Int64\(11\) \* Int64\(36\) AS col0" at position 0 and "Int64\(39\) \- Int64\(\-37\) \- CASE Int64\(13\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-2\) \* Int64\(2\) THEN Int64\(60\) \* \(\- CASE Int64\(\-47\) WHEN Int64\(57\) \+ \(\- Int64\(\-21\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-13\) ELSE Int64\(\-45\) END\) \- Int64\(41\) \* Int64\(39\) WHEN CAST\(NULL AS Int64\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 - - + 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 76 + 11 * + 36 AS col0, 39 - - 37 - + CASE + 13 WHEN COUNT ( * ) + - 2 * + + 2 THEN + 60 * - CASE - 47 WHEN + + 57 + - - 21 THEN - + COUNT ( * ) * + - 13 ELSE - 45 END - 41 * + 39 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col0 query I rowsort label-1212 @@ -9001,7 +9001,7 @@ SELECT DISTINCT - COUNT ( * ) * 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4896 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(68\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-56\) \* count\(DISTINCT Int64\(\-41\)\) \* Int64\(14\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(68\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-56\) \* count\(DISTINCT Int64\(\-41\)\) \* Int64\(14\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 72 * + 68 AS col2, - CAST ( NULL AS INTEGER ) * - 56 * COUNT ( DISTINCT - 41 ) * + + 14 + - ( + - ( + COUNT ( * ) ) ) / + + 32 AS col2 query I rowsort label-1708 @@ -18507,7 +18507,7 @@ SELECT ALL 18 + 33 + + - 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- Int64\(\-67\)\) AS col0" at position 0 and "CAST\(Int64\(\-68\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- Int64\(\-67\)\) AS col0" at position 0 and "CAST\(Int64\(\-68\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 88 + - - 67 col0, CAST ( - 68 AS INTEGER ) AS col0 query I rowsort @@ -19233,7 +19233,7 @@ SELECT ALL - + 48 + - - 17 + 77 + 22 * 48 + COUNT ( * ) * + - 34 - + + 93 + - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ \(\- Int64\(\-68\)\) AS col2" at position 0 and "\(\- max\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ \(\- Int64\(\-68\)\) AS col2" at position 0 and "\(\- max\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 4 + - - 68 AS col2, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 94 col2 query I rowsort label-3650 @@ -20965,7 +20965,7 @@ SELECT - 93 * ( + 60 ) + - CASE WHEN NULL NOT BETWEEN ( NULL ) AND ( - 71 ) THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(99\) AS col0" at position 0 and "Int64\(87\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(99\) AS col0" at position 0 and "Int64\(87\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 99 col0, 87 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort @@ -21243,7 +21243,7 @@ SELECT ALL ( + ( 31 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- Int64\(30\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- Int64\(30\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 82 + - + 30 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-4032 @@ -22657,7 +22657,7 @@ SELECT - 41 + - 71 * + 49 * + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) / Int64\(\-85\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) / Int64\(\-85\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 88 / - 85 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 query I rowsort label-4298 @@ -22902,7 +22902,7 @@ SELECT DISTINCT 70 AS col1, 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 4060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- \(\- Int64\(51\)\)\) \- Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-83\) \+ CAST\(Int64\(\-7\) AS Int32\) \* Int64\(\-99\) \* min\(Int64\(6\)\) \- Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- \(\- Int64\(51\)\)\) \- Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-83\) \+ CAST\(Int64\(\-7\) AS Int64\) \* Int64\(\-99\) \* min\(Int64\(6\)\) \- Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col1, - ( - + 51 ) - 63 + + COUNT ( * ) + - 83 + + CAST ( + - 7 AS INTEGER ) * - 99 * + + MIN ( ALL 6 ) - 4 AS col1 query I rowsort label-4345 @@ -23514,7 +23514,7 @@ SELECT ALL ( 88 ) col1 # Datafusion - Expected - -1 # Datafusion - Expected - 0 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) / Int64\(42\) \* Int64\(\-74\) \* \(\- \(\- Int64\(88\)\)\) \* nullif\(Int64\(8\), \(\- coalesce\(Int64\(\-32\), Int64\(\-62\), \(\- CAST\(NULL AS Int32\)\), \(\- CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 1 and "Int64\(\-40\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) / Int64\(42\) \* Int64\(\-74\) \* \(\- \(\- Int64\(88\)\)\) \* nullif\(Int64\(8\), \(\- coalesce\(Int64\(\-32\), Int64\(\-62\), \(\- CAST\(NULL AS Int64\)\), \(\- CAST\(NULL AS Int64\)\)\)\)\) AS col2" at position 1 and "Int64\(\-40\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ), - 6 / + 42 * - 74 * + - ( - ( + 88 ) ) * NULLIF ( 8, - COALESCE ( - 32, - 62, + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) AS col2, - 40 AS col2 query I rowsort label-4461 @@ -24104,7 +24104,7 @@ SELECT ALL NULLIF ( - 85, - 6 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(59\), \(\- Int64\(\-80\)\) / Int64\(26\)\)\) WHEN Int64\(11\) \* Int64\(85\) THEN Int64\(46\) / Int64\(\-94\) \+ \(\- sum\(Int64\(15\)\)\) \+ Int64\(10\) ELSE \(\- Int64\(46\)\) \* Int64\(6\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(\-41\)\) END AS col0" at position 0 and "\(\- CASE \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(60\)\) \+ Int64\(61\) \* \(\- \(\- count\(Int64\(\-66\)\)\)\) \* Int64\(54\) \* \(\- Int64\(\-71\)\) / Int64\(74\) THEN NULL WHEN \(\- sum\(DISTINCT Int64\(69\)\)\) \* Int64\(32\) THEN Int64\(38\) ELSE Int64\(19\) END\) WHEN Int64\(55\) \+ Int64\(98\) \+ Int64\(92\) \* \(\- Int64\(\-1\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* min\(Int64\(\-14\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(59\), \(\- Int64\(\-80\)\) / Int64\(26\)\)\) WHEN Int64\(11\) \* Int64\(85\) THEN Int64\(46\) / Int64\(\-94\) \+ \(\- sum\(Int64\(15\)\)\) \+ Int64\(10\) ELSE \(\- Int64\(46\)\) \* Int64\(6\) \+ CAST\(NULL AS Int64\) \+ \(\- Int64\(\-41\)\) END AS col0" at position 0 and "\(\- CASE \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(60\)\) \+ Int64\(61\) \* \(\- \(\- count\(Int64\(\-66\)\)\)\) \* Int64\(54\) \* \(\- Int64\(\-71\)\) / Int64\(74\) THEN NULL WHEN \(\- sum\(DISTINCT Int64\(69\)\)\) \* Int64\(32\) THEN Int64\(38\) ELSE Int64\(19\) END\) WHEN Int64\(55\) \+ Int64\(98\) \+ Int64\(92\) \* \(\- Int64\(\-1\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* min\(Int64\(\-14\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE + ( + - COALESCE ( COUNT ( * ), + + ( + 59 ), - - 80 / + 26 ) ) WHEN ( 11 ) * 85 THEN 46 / - 94 + + - SUM ( ALL 15 ) + 10 ELSE - ( + 46 ) * + + 6 + + CAST ( NULL AS INTEGER ) + - - 41 END AS col0, - CASE - CASE + - COUNT ( * ) WHEN - ( 60 ) + ( 61 ) * - - ( COUNT ( + - 66 ) ) * + 54 * - ( - 71 ) / + + 74 THEN NULL WHEN - SUM ( DISTINCT + 69 ) * 32 THEN 38 ELSE + 19 END WHEN 55 + 98 + + + 92 * - - 1 THEN NULL ELSE - COUNT ( * ) END * + MIN ( ALL - 14 ) * 13 AS col0 # Datafusion - Types were automatically converted from: @@ -24124,7 +24124,7 @@ SELECT ALL + 94 + - 38 * + - CASE + COUNT ( ALL + 36 ) WHEN 37 * 35 THEN + + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE coalesce\(Int64\(41\), \(\- Int64\(76\)\) \* Int64\(\-31\) \* Int64\(62\) \+ Int64\(\-83\) \+ Int64\(4\) \+ Int64\(84\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(28\)\) \* Int64\(52\), Int64\(46\)\) WHEN min\(Int64\(86\)\) THEN \(\- Int64\(\-49\)\) \* Int64\(65\) \* Int64\(\-64\) \- \(\- Int64\(19\)\) \+ Int64\(97\) WHEN nullif\(Int64\(\-18\), Int64\(87\)\) \* max\(Int64\(68\)\) \- Int64\(\-49\) THEN CASE Int64\(\-93\) WHEN Int64\(22\) \- Int64\(\-53\) \+ \(\- Int64\(\-87\)\) THEN NULL ELSE Int64\(85\) END \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-62\) / Int64\(50\) \* Int64\(94\) WHEN Int64\(\-44\) \+ \(\- \(\- Int64\(\-24\)\)\) THEN Int64\(77\) ELSE NULL END\) \+ Int64\(44\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE coalesce\(Int64\(41\), \(\- Int64\(76\)\) \* Int64\(\-31\) \* Int64\(62\) \+ Int64\(\-83\) \+ Int64\(4\) \+ Int64\(84\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(28\)\) \* Int64\(52\), Int64\(46\)\) WHEN min\(Int64\(86\)\) THEN \(\- Int64\(\-49\)\) \* Int64\(65\) \* Int64\(\-64\) \- \(\- Int64\(19\)\) \+ Int64\(97\) WHEN nullif\(Int64\(\-18\), Int64\(87\)\) \* max\(Int64\(68\)\) \- Int64\(\-49\) THEN CASE Int64\(\-93\) WHEN Int64\(22\) \- Int64\(\-53\) \+ \(\- Int64\(\-87\)\) THEN NULL ELSE Int64\(85\) END \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-62\) / Int64\(50\) \* Int64\(94\) WHEN Int64\(\-44\) \+ \(\- \(\- Int64\(\-24\)\)\) THEN Int64\(77\) ELSE NULL END\) \+ Int64\(44\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CASE + COALESCE ( + ( 41 ), - ( 76 ) * - 31 * + + 62 + + - 83 + 4 + + 84 / + COUNT ( * ) + - ( + + 28 ) * 52, + 46 ) WHEN + MIN ( ALL + 86 ) THEN - - 49 * 65 * + - 64 - - + 19 + + + 97 WHEN NULLIF ( - 18, + + 87 ) * MAX ( + 68 ) - + - 49 THEN CASE - 93 WHEN 22 - - 53 + - - 87 THEN NULL ELSE + 85 END * - + CAST ( NULL AS INTEGER ) * + - 62 / 50 * + 94 WHEN - 44 + - + ( - ( - 24 ) ) THEN 77 ELSE NULL END + 44 AS col1, 74 AS col1 query I rowsort @@ -25974,7 +25974,7 @@ SELECT ALL - NULLIF ( 17, + - 50 * + + 13 + + 74 + + 82 + 74 - + 59 / + 17 ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 154 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) / Int64\(78\) \+ Int64\(91\) \+ \(\- Int64\(\-63\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) / Int64\(78\) \+ Int64\(91\) \+ \(\- Int64\(\-63\)\) 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\. SELECT - - 2 / + 78 + 91 + - - 63 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-4931 @@ -26755,7 +26755,7 @@ SELECT - 3 * + 5 + - + 22 + - + 97 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 324 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CAST\(\(\- coalesce\(Int64\(\-4\), Int64\(\-32\) \* Int64\(53\)\)\) AS Int32\)\) \* \(\- Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- CAST\(\(\- coalesce\(Int64\(\-4\), Int64\(\-32\) \* Int64\(53\)\)\) AS Int64\)\) \* \(\- Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( - COALESCE ( + - 4, - 32 * 53 ) AS INTEGER ) * - + ( 81 ) AS col0 query I rowsort label-5082 @@ -26858,7 +26858,7 @@ SELECT + + 56 / + 50 - + - 54 + + + COUNT ( * ) + + 48 + 3 + + 18 + + 24 * + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ Int64\(\-24\) \+ \(\- CAST\(Int64\(83\) AS Int32\)\) AS col2" at position 0 and "\(\- \(\- Int64\(\-78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ Int64\(\-24\) \+ \(\- CAST\(Int64\(83\) AS Int64\)\) AS col2" at position 0 and "\(\- \(\- Int64\(\-78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 1 + - 24 + - CAST ( + 83 AS INTEGER ) AS col2, - ( - ( - 78 ) ) AS col2 query I rowsort label-5102 @@ -27241,7 +27241,7 @@ SELECT ALL - - 80 * - 58 * ( - 9 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\), Int64\(1\) \* Int64\(\-58\) \+ \(\- Int64\(\-60\)\) / Int64\(84\) \- Int64\(32\)\) \* \(\- CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\), Int64\(1\) \* Int64\(\-58\) \+ \(\- Int64\(\-60\)\) / Int64\(84\) \- Int64\(32\)\) \* \(\- CAST\(\(\- \(\- CAST\(NULL AS Int64\)\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + COUNT ( * ) AS col1, + COALESCE ( + 61, + COUNT ( * ), 1 * + - 58 + - - 60 / 84 - 32 ) * - CAST ( ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) col1 query I rowsort label-5175 @@ -28393,7 +28393,7 @@ SELECT + 2 * 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "\(\- nullif\(\(\- Int64\(99\)\), Int64\(7\) \* Int64\(\-74\) \- \(\- Int64\(34\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 0 and "\(\- nullif\(\(\- Int64\(99\)\), Int64\(7\) \* Int64\(\-74\) \- \(\- Int64\(34\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 * CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - NULLIF ( - + 99, + + 7 * - 74 - - + 34 ) AS col1 query I rowsort label-5393 @@ -29802,7 +29802,7 @@ SELECT ALL - COALESCE ( SUM ( DISTINCT + CASE + 37 WHEN - + 98 / 87 THEN NULL WH # Datafusion - Datafusion expected results: # Datafusion - Expected - 3040 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* Int64\(\-76\) AS col1" at position 0 and "Int64\(56\) \- Int64\(\-62\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* Int64\(\-76\) AS col1" at position 0 and "Int64\(56\) \- Int64\(\-62\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 * - 76 AS col1, 56 - - 62 + - CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-5658 @@ -30031,7 +30031,7 @@ SELECT - COUNT ( + + 67 ) * - NULLIF ( COUNT ( * ), 48 ) * - + 70 + - - 20 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-43\) AS Int32\)\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-43\) AS Int64\)\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + - 43 AS INTEGER ) + + 92 col0, ( + 93 ) + - 42 AS col0 query II rowsort @@ -33852,7 +33852,7 @@ SELECT - + ( + MIN ( - 14 ) ) * 52 + - 11 - SUM ( ALL - ( 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / Int64\(\-87\) AS col1" at position 0 and "CASE Int64\(74\) WHEN Int64\(0\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(22\), \(\- CAST\(Int64\(\-55\) AS Int32\)\)\) \+ Int64\(70\) END \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / Int64\(\-87\) AS col1" at position 0 and "CASE Int64\(74\) WHEN Int64\(0\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(22\), \(\- CAST\(Int64\(\-55\) AS Int64\)\)\) \+ Int64\(70\) END \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 62 / - 87 AS col1, CASE + 74 WHEN 0 THEN COALESCE ( COUNT ( * ), 22, - CAST ( - 55 AS INTEGER ) ) + + 70 END * 75 AS col1 query I rowsort label-6426 @@ -34385,7 +34385,7 @@ SELECT 37 - 56 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 7 / - CAST ( NULL AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) * + - 30 AS col1 query I rowsort @@ -34854,7 +34854,7 @@ SELECT DISTINCT - COUNT ( + + 46 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- nullif\(Int64\(48\), Int64\(12\)\)\) AS col0" at position 0 and "Int64\(\-58\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / \(\- nullif\(Int64\(48\), Int64\(12\)\)\) AS col0" at position 0 and "Int64\(\-58\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) / + - NULLIF ( + 48, + 12 ) col0, - 58 * - COUNT ( * ) AS col0 query I rowsort @@ -35571,7 +35571,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1899 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-58\) \* CAST\(Int64\(\-80\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(68\) \* \(\- CAST\(\(\- Int64\(\-76\)\) AS Int32\)\) \- Int64\(88\) \+ Int64\(77\) \+ Int64\(\-16\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-58\) \* CAST\(Int64\(\-80\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(68\) \* \(\- CAST\(\(\- Int64\(\-76\)\) AS Int64\)\) \- Int64\(88\) \+ Int64\(77\) \+ Int64\(\-16\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 AS col1, - 58 * + CAST ( - 80 AS INTEGER ) * + COUNT ( * ) + 68 * - CAST ( - - 76 AS INTEGER ) - + 88 + 77 + + - 16 * + 85 AS col1 query I rowsort label-6750 @@ -36225,7 +36225,7 @@ SELECT DISTINCT + 78 + + 62 + - 77 + - - 78 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6699 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ Int64\(\-89\) \* Int64\(75\) AS col1" at position 0 and "Int64\(16\) \- \(\- CAST\(Int64\(11\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ Int64\(\-89\) \* Int64\(75\) AS col1" at position 0 and "Int64\(16\) \- \(\- CAST\(Int64\(11\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 24 + - 89 * + 75 AS col1, + 16 - - CAST ( 11 AS INTEGER ) AS col1 query I rowsort label-6875 @@ -36546,7 +36546,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1334 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(30\) WHEN Int64\(88\) \* Int64\(46\) THEN CAST\(NULL AS Int32\) \* \(\- Int64\(10\)\) ELSE NULL END\) \* avg\(Int64\(\-41\)\) \- Int64\(83\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) \* Int64\(24\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(30\) WHEN Int64\(88\) \* Int64\(46\) THEN CAST\(NULL AS Int64\) \* \(\- Int64\(10\)\) ELSE NULL END\) \* avg\(Int64\(\-41\)\) \- Int64\(83\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) \* Int64\(24\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE 30 WHEN 88 * + 46 THEN + CAST ( NULL AS INTEGER ) * - + 10 ELSE NULL END * + AVG ( - 41 ) - 83 AS col0, + COUNT ( * ) * + 57 * + 24 + - 34 AS col0 query I rowsort label-6937 @@ -39891,7 +39891,7 @@ SELECT DISTINCT - 43 + ( 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- sum\(Int64\(\-97\)\)\), coalesce\(Int64\(45\), Int64\(\-27\)\)\)\) \* Int64\(37\) / CAST\(NULL AS Int32\) \+ Int64\(99\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- sum\(Int64\(\-97\)\)\), coalesce\(Int64\(45\), Int64\(\-27\)\)\)\) \* Int64\(37\) / CAST\(NULL AS Int64\) \+ Int64\(99\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - SUM ( - 97 ), + ( ( + + COALESCE ( + 45, + - 27 ) ) ) ) * + 37 / + CAST ( NULL AS INTEGER ) + 99 / + ( + COUNT ( * ) ) AS col0, 15 AS col0 query I rowsort label-7571 @@ -44025,7 +44025,7 @@ SELECT + 33 / ( + ( - - 92 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 72 * + CAST ( NULL AS INTEGER ) AS col2, + 16 AS col2 query I rowsort @@ -48456,7 +48456,7 @@ SELECT - 82 * - + 15, - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(20\) AS col2" at position 0 and "CASE Int64\(30\) WHEN Int64\(\-76\) THEN Int64\(\-25\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / Int64\(20\) AS col2" at position 0 and "CASE Int64\(30\) WHEN Int64\(\-76\) THEN Int64\(\-25\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) / 20 AS col2, CASE 30 WHEN + - 76 THEN - 25 END AS col2 query I rowsort label-9210 diff --git a/data/sqlite/random/expr/slt_good_65.slt b/data/sqlite/random/expr/slt_good_65.slt index 5917260..8e2f2a0 100644 --- a/data/sqlite/random/expr/slt_good_65.slt +++ b/data/sqlite/random/expr/slt_good_65.slt @@ -1215,7 +1215,7 @@ SELECT ALL - ( - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(Int64\(\-35\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(Int64\(\-35\) AS Int64\)\)\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( + - CAST ( - 35 AS INTEGER ) ) col0, - 5 AS col0 query I rowsort label-229 @@ -1256,7 +1256,7 @@ SELECT ALL 75 / - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - COUNT ( * ) AS col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -2811,7 +2811,7 @@ SELECT + + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 57 AS col0 query I rowsort label-538 @@ -7042,7 +7042,7 @@ SELECT - 37 - - - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) query I rowsort label-1359 @@ -7885,7 +7885,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, 65 AS col0 query I rowsort label-1523 @@ -9827,7 +9827,7 @@ SELECT DISTINCT + + ( + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 query I rowsort label-1899 @@ -16460,7 +16460,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\)" at position 0 and "\(\- CAST\(NULL AS Int64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) query I rowsort label-3178 @@ -20305,7 +20305,7 @@ SELECT + COUNT ( - ( - - 25 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3393 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(88\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(\-91\) \* \(\- count\(Int64\(\-61\) \+ CAST\(Int64\(82\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(88\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(\-91\) \* \(\- count\(Int64\(\-61\) \+ CAST\(Int64\(82\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT ( - 61 + + CAST ( 82 AS INTEGER ) ) AS col2 query I rowsort @@ -26476,7 +26476,7 @@ SELECT + + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* min\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort label-5114 @@ -30368,7 +30368,7 @@ SELECT - COUNT ( * ) + COUNT ( * ) AS col2 # Datafusion - Expected - -27 # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 27 AS col2, + 28, CAST ( NULL AS INTEGER ) col2 query I rowsort label-5872 @@ -34425,7 +34425,7 @@ SELECT - + COUNT ( ALL + ( CAST ( NULL AS INTEGER ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "Int64\(2\) \* \(\- \(\- count\(CAST\(NULL AS Int32\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "Int64\(2\) \* \(\- \(\- count\(CAST\(NULL AS Int64\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 3 AS col2, 2 * - - COUNT ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + COUNT ( * ) AS col2 query I rowsort label-6662 @@ -35802,7 +35802,7 @@ SELECT DISTINCT - ( + - ( - 30 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 AS col0, ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 query I rowsort @@ -38637,7 +38637,7 @@ SELECT - COUNT ( * ) - + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, 98 + - 45 AS col2 query I rowsort label-7481 @@ -41059,7 +41059,7 @@ SELECT ALL - ( - 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(\-21\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(\-21\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 86 + - - 21 AS col1, CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -41120,7 +41120,7 @@ SELECT - - CAST ( 31 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(25\) AS Int32\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(25\) AS Int64\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 25 AS INTEGER ) AS col2, 73 AS col2 query I rowsort @@ -41156,7 +41156,7 @@ SELECT ALL ( 2 ) + + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- \(\- nullif\(Int64\(12\), Int64\(56\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) / \(\- \(\- nullif\(Int64\(12\), Int64\(56\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 71 AS col0, - CAST ( NULL AS INTEGER ) / - - NULLIF ( + + 12, + 56 ) AS col0 query I rowsort label-7967 @@ -48626,7 +48626,7 @@ SELECT ALL - 25 * + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) / Int64\(\-71\) \* Int64\(35\) AS col2" at position 0 and "coalesce\(Int64\(\-94\), Int64\(\-30\) \* \(\- Int64\(34\)\), \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(63\) \* Int64\(40\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) / Int64\(\-71\) \* Int64\(35\) AS col2" at position 0 and "coalesce\(Int64\(\-94\), Int64\(\-30\) \* \(\- Int64\(34\)\), \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(63\) \* Int64\(40\) / CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 14 / - 71 * 35 col2, COALESCE ( - 94, - 30 * - + 34, - CAST ( NULL AS INTEGER ) ) * 63 * + 40 / + CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-9405 @@ -51560,7 +51560,7 @@ SELECT ALL NULLIF ( CAST ( - - 54 AS INTEGER ), - - SUM ( ALL + 46 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(45\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(75\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(45\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(75\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + 45 AS col2, - COUNT ( * ) * - COUNT ( * ) + 75 + - 73 AS col2 query I rowsort label-9965 diff --git a/data/sqlite/random/expr/slt_good_66.slt b/data/sqlite/random/expr/slt_good_66.slt index 3d45774..06369dc 100644 --- a/data/sqlite/random/expr/slt_good_66.slt +++ b/data/sqlite/random/expr/slt_good_66.slt @@ -1394,7 +1394,7 @@ SELECT 5 - 1 * + 84 * + NULLIF ( 81, 6 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- Int64\(30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / \(\- Int64\(30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 47 AS col1, CAST ( NULL AS INTEGER ) / - + 30 AS col1 query I rowsort label-256 @@ -3057,7 +3057,7 @@ SELECT DISTINCT + 10 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10336 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(8\) \* min\(Int64\(38\)\) AS col2" at position 0 and "Int64\(\-85\) \+ \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(8\) \* min\(Int64\(38\)\) AS col2" at position 0 and "Int64\(\-85\) \+ \(\- \(\- \(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 34 * + 8 * + + MIN ( ALL + ( + 38 ) ) AS col2, - 85 + + ( - ( - - CAST ( NULL AS INTEGER ) ) ) AS col2 query II rowsort @@ -4480,7 +4480,7 @@ SELECT ALL - 36 * - + 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-846 @@ -4612,7 +4612,7 @@ SELECT - 1 AS col0, 83 * - 85 # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-38\), Int64\(51\) \+ Int64\(10\) \+ Int64\(99\)\) \+ CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(92\)\)\) WHEN min\(DISTINCT coalesce\(Int64\(21\), Int64\(\-61\), Int64\(43\)\)\) THEN Int64\(99\) END \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(33\)\) / Int64\(16\) AS col0" at position 1 and "Int64\(28\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-38\), Int64\(51\) \+ Int64\(10\) \+ Int64\(99\)\) \+ CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- nullif\(\(\- CAST\(NULL AS Int64\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(92\)\)\) WHEN min\(DISTINCT coalesce\(Int64\(21\), Int64\(\-61\), Int64\(43\)\)\) THEN Int64\(99\) END \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(33\)\) / Int64\(16\) AS col0" at position 1 and "Int64\(28\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6, NULLIF ( - 38, ( 51 ) + ( 10 ) + 99 ) + CASE + + 38 WHEN - + COUNT ( * ) THEN - NULLIF ( - CAST ( NULL AS INTEGER ), + - COUNT ( * ) / 92 ) WHEN MIN ( DISTINCT + COALESCE ( + 21, - 61, 43 ) ) THEN + 99 END * COUNT ( * ) + - + 33 / + 16 col0, + 28 AS col0 query I rowsort label-871 @@ -6124,7 +6124,7 @@ SELECT ALL + 68 / + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(64\)\) AS Int32\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(64\)\) AS Int64\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - + 64 AS INTEGER ) AS col0, 82 col0 query I rowsort label-1157 @@ -6712,7 +6712,7 @@ SELECT - COUNT ( * ) * SUM ( ALL - 94 ) * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(9\)\) \* \(\- Int64\(89\)\) \+ \(\- CAST\(NULL AS Int32\)\) \- \(\- \(\- avg\(Int64\(29\)\)\)\) \* Int64\(20\) AS col2" at position 0 and "Int64\(10\) \- \(\- Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(9\)\) \* \(\- Int64\(89\)\) \+ \(\- CAST\(NULL AS Int64\)\) \- \(\- \(\- avg\(Int64\(29\)\)\)\) \* Int64\(20\) AS col2" at position 0 and "Int64\(10\) \- \(\- Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( + ( + 9 ) ) * - + 89 + - CAST ( NULL AS INTEGER ) - - - AVG ( 29 ) * ( + 20 ) AS col2, + 10 - - - 12 AS col2 query I rowsort @@ -10612,7 +10612,7 @@ SELECT + + 78 + + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(CAST\(NULL AS Int32\)\) \+ Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(CAST\(NULL AS Int64\)\) \+ Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 41 * + - COUNT ( * ) AS col1, MIN ( CAST ( NULL AS INTEGER ) ) + + - 80 * COUNT ( * ) / - + 27 AS col1 query I rowsort @@ -12793,7 +12793,7 @@ SELECT - MIN ( ( - 89 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(NULL AS Int32\), Int64\(\-1\)\)\) \* Int64\(\-51\) \+ Int64\(34\) \- \(\- CAST\(nullif\(Int64\(4\), \(\- CASE \(\- CASE \(\- nullif\(coalesce\(Int64\(55\), Int64\(82\) \* CAST\(Int64\(\-31\) AS Int32\) \- \(\- avg\(DISTINCT Int64\(\-48\)\)\), \(\- Int64\(\-8\)\)\), Int64\(\-82\) \* \(\- \(\- count\(\(\- Int64\(73\)\)\)\)\)\)\) WHEN Int64\(59\) \* Int64\(98\) \* Int64\(76\) THEN NULL ELSE Int64\(76\) END\) WHEN Int64\(53\) THEN \(\- Int64\(75\)\) ELSE NULL END\)\) AS Int32\)\) / Int64\(\-69\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(NULL AS Int64\), Int64\(\-1\)\)\) \* Int64\(\-51\) \+ Int64\(34\) \- \(\- CAST\(nullif\(Int64\(4\), \(\- CASE \(\- CASE \(\- nullif\(coalesce\(Int64\(55\), Int64\(82\) \* CAST\(Int64\(\-31\) AS Int64\) \- \(\- avg\(DISTINCT Int64\(\-48\)\)\), \(\- Int64\(\-8\)\)\), Int64\(\-82\) \* \(\- \(\- count\(\(\- Int64\(73\)\)\)\)\)\)\) WHEN Int64\(59\) \* Int64\(98\) \* Int64\(76\) THEN NULL ELSE Int64\(76\) END\) WHEN Int64\(53\) THEN \(\- Int64\(75\)\) ELSE NULL END\)\) AS Int64\)\) / Int64\(\-69\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COALESCE ( + CAST ( NULL AS INTEGER ), - 1 ) * - 51 + 34 - - CAST ( NULLIF ( + 4, - CASE - CASE - NULLIF ( COALESCE ( + 55, + 82 * + ( CAST ( + - 31 AS INTEGER ) ) - + - AVG ( DISTINCT - 48 ), - - 8 ), - 82 * - - COUNT ( ( - + 73 ) ) ) WHEN 59 * 98 * + 76 THEN NULL ELSE + + 76 END WHEN 53 THEN - + 75 ELSE NULL END ) AS INTEGER ) / ( + - 69 ) col0, + 18 AS col0 query I rowsort label-2424 @@ -13232,7 +13232,7 @@ SELECT DISTINCT 60 * - + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int64\)\) AS Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -14394,7 +14394,7 @@ SELECT + 18 * - COUNT ( * ) + + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 6885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) / \(\- Int64\(\-95\)\) AS col0" at position 0 and "CASE Int64\(\-67\) WHEN Int64\(19\) \+ Int64\(71\) THEN NULL WHEN \(\- nullif\(Int64\(44\), Int64\(\-53\) \* Int64\(2\)\)\) THEN Int64\(46\) \* \(\- Int64\(11\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-1\) \+ Int64\(53\) THEN Int64\(\-65\) \* \(\- Int64\(35\)\) \- CAST\(NULL AS Int32\) ELSE Int64\(85\) \* Int64\(81\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) / \(\- Int64\(\-95\)\) AS col0" at position 0 and "CASE Int64\(\-67\) WHEN Int64\(19\) \+ Int64\(71\) THEN NULL WHEN \(\- nullif\(Int64\(44\), Int64\(\-53\) \* Int64\(2\)\)\) THEN Int64\(46\) \* \(\- Int64\(11\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-1\) \+ Int64\(53\) THEN Int64\(\-65\) \* \(\- Int64\(35\)\) \- CAST\(NULL AS Int64\) ELSE Int64\(85\) \* Int64\(81\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( ALL + 54 ) / - - 95 AS col0, CASE - 67 WHEN 19 + 71 THEN NULL WHEN - NULLIF ( 44, - 53 * + ( + 2 ) ) THEN 46 * + ( - + 11 ) / - COUNT ( * ) WHEN + - 1 + + + 53 THEN + - 65 * - + 35 - + CAST ( NULL AS INTEGER ) ELSE + 85 * + 81 END AS col0 query I rowsort @@ -15026,7 +15026,7 @@ SELECT ALL - 35, + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -700 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) \* Int64\(20\) AS col0" at position 0 and "coalesce\(Int64\(91\), Int64\(\-42\) \* Int64\(31\) \* CAST\(Int64\(33\) AS Int32\) \- \(\- Int64\(\-40\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) \* Int64\(20\) AS col0" at position 0 and "coalesce\(Int64\(91\), Int64\(\-42\) \* Int64\(31\) \* CAST\(Int64\(33\) AS Int64\) \- \(\- Int64\(\-40\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 35 * 20 AS col0, + COALESCE ( 91, - 42 * 31 * + CAST ( 33 AS INTEGER ) - - - 40 ) AS col0 query I rowsort label-2849 @@ -16599,7 +16599,7 @@ SELECT + 92, - ( + 78 ) * - 88 + COUNT ( * ) + 1 * - 77 + + 67 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(27\) \* Int64\(14\) AS col0" at position 0 and "Int64\(74\) \- Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(27\) \* Int64\(14\) AS col0" at position 0 and "Int64\(74\) \- Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 27 * 14 col0, + 74 - + + 5 AS col0 # Datafusion - Types were automatically converted from: @@ -19397,7 +19397,7 @@ SELECT ALL 35 - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(\-63\) / Int64\(8\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(\-63\) / Int64\(8\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 38 AS col2, - 63 / + 8 + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-3680 @@ -20803,7 +20803,7 @@ SELECT 19 + - ( - 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- nullif\(Int64\(\-90\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-15\)\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- \(\- nullif\(Int64\(\-90\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-15\)\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - NULLIF ( - 90, + COUNT ( * ) + - 15 ) AS col1, - 5 AS col1 query I rowsort label-3948 @@ -21373,7 +21373,7 @@ SELECT 87 - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 955 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(41\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(94\) \- \(\- \(\- Int64\(\-10\)\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(41\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(94\) \- \(\- \(\- Int64\(\-10\)\)\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 * + 41 + 94 AS col1, + 94 - - ( - - 10 ) + - - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-4057 @@ -21940,7 +21940,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 595 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) AS col0" at position 0 and "CASE \(\- max\(CAST\(NULL AS Float64\)\)\) WHEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) / Int64\(40\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-58\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(44\)\) \+ Int64\(16\) \* \(\- Int64\(\-42\)\) \* Int64\(8\) \* Int64\(58\) THEN Int64\(24\) \+ Int64\(\-22\) \* \(\- Int64\(31\)\) WHEN Int64\(\-88\) \* Int64\(\-92\) \* Int64\(18\) THEN NULL ELSE \(\- nullif\(\(\- Int64\(\-96\)\), Int64\(93\) \+ CASE \(\- Int64\(\-76\)\) WHEN Int64\(18\) THEN Int64\(\-58\) \* Int64\(31\) WHEN Int64\(35\) THEN NULL END \+ \(\- Int64\(0\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(53\) \+ Int64\(8\) END \* Int64\(85\) \+ Int64\(\-21\) / nullif\(Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(50\) \+ Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) AS col0" at position 0 and "CASE \(\- max\(CAST\(NULL AS Float64\)\)\) WHEN \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-74\) / Int64\(40\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-58\) \* CAST\(NULL AS Int64\) \+ count\(Int64\(44\)\) \+ Int64\(16\) \* \(\- Int64\(\-42\)\) \* Int64\(8\) \* Int64\(58\) THEN Int64\(24\) \+ Int64\(\-22\) \* \(\- Int64\(31\)\) WHEN Int64\(\-88\) \* Int64\(\-92\) \* Int64\(18\) THEN NULL ELSE \(\- nullif\(\(\- Int64\(\-96\)\), Int64\(93\) \+ CASE \(\- Int64\(\-76\)\) WHEN Int64\(18\) THEN Int64\(\-58\) \* Int64\(31\) WHEN Int64\(35\) THEN NULL END \+ \(\- Int64\(0\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(53\) \+ Int64\(8\) END \* Int64\(85\) \+ Int64\(\-21\) / nullif\(Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(50\) \+ Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( ALL 54 ) AS col0, CASE - + MAX ( CAST ( NULL AS FLOAT8 ) ) WHEN - CAST ( NULL AS INTEGER ) * - 74 / 40 THEN + COUNT ( * ) WHEN - 58 * CAST ( NULL AS INTEGER ) + + COUNT ( + 44 ) + + 16 * + ( - - 42 ) * + ( + 8 ) * 58 THEN + 24 + - 22 * - + 31 WHEN - 88 * - 92 * 18 THEN NULL ELSE - NULLIF ( ( - - 96 ), + 93 + + CASE - - 76 WHEN + + 18 THEN - 58 * + 31 WHEN + 35 THEN NULL END + + - ( 0 ) * - COUNT ( * ) ) / 53 + ( 8 ) END * + 85 + - 21 / + NULLIF ( 46 * - COUNT ( * ), + 50 + - 18 ) col0 query I rowsort label-4164 @@ -24050,7 +24050,7 @@ SELECT COUNT ( * ) + 61 * - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -975 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-13\) AS col2" at position 0 and "\(\- Int64\(52\)\) \- \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-13\) AS col2" at position 0 and "\(\- Int64\(52\)\) \- \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 * - 13 AS col2, ( - + 52 ) - + - ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2 query I rowsort label-4561 @@ -24453,7 +24453,7 @@ SELECT + - MAX ( + 92 ) * + - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1458 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- nullif\(Int64\(\-9\), min\(CAST\(NULL AS Int32\)\)\)\), Int64\(75\)\)\) \* Int64\(6\) \* Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(42\) / Int64\(80\) \* \(\- Int64\(83\)\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- nullif\(Int64\(\-9\), min\(CAST\(NULL AS Int64\)\)\)\), Int64\(75\)\)\) \* Int64\(6\) \* Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(42\) / Int64\(80\) \* \(\- Int64\(83\)\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - NULLIF ( - NULLIF ( - 9, + MIN ( CAST ( NULL AS INTEGER ) ) ), 75 ) * + 6 * - 27 * + COUNT ( * ) col1, + 42 / + 80 * - + 83 + + ( - 0 ) AS col1 query I rowsort @@ -27465,7 +27465,7 @@ SELECT ALL - - 50 + - - 80 + - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(93\) \+ \(\- sum\(Int64\(\-48\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(93\) \+ \(\- sum\(Int64\(\-48\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 93 + - SUM ( + - 48 ) AS col0 # Datafusion - Datafusion expected results: @@ -30581,7 +30581,7 @@ SELECT ALL + + 43 - + 24 + + 89 * + 89 * + ( 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(22\)\) AS Int32\)\) \- Int64\(84\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(22\)\) AS Int64\)\) \- Int64\(84\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - + 22 AS INTEGER ) - 84 AS col0, 82 AS col0 query I rowsort label-5806 @@ -32711,7 +32711,7 @@ SELECT ALL - ( - 78 ) / - 67 + COALESCE ( - 0, - 56 ) / - 26 * + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2813 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(\-27\) \+ CAST\(nullif\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(26\)\) \+ Int64\(32\) \+ \(\- \(\- CAST\(Int64\(84\) AS Float64\)\)\) \+ \(\- Int64\(\-58\)\) \* CASE Int64\(\-97\) WHEN Int64\(96\) THEN Int64\(87\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(93\) THEN \(\- Int64\(\-9\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) \- Int64\(\-17\) \+ Int64\(\-94\) \* Int64\(\-38\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(\-27\) \+ CAST\(nullif\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(26\)\) \+ Int64\(32\) \+ \(\- \(\- CAST\(Int64\(84\) AS Float64\)\)\) \+ \(\- Int64\(\-58\)\) \* CASE Int64\(\-97\) WHEN Int64\(96\) THEN Int64\(87\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(93\) THEN \(\- Int64\(\-9\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) AS Int64\) \- Int64\(\-17\) \+ Int64\(\-94\) \* Int64\(\-38\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 * - 27 + CAST ( NULLIF ( + 61, + COUNT ( * ) * - + 26 + 32 + - - CAST ( 84 AS FLOAT8 ) + - - 58 * + CASE + ( - 97 ) WHEN 96 THEN + 87 WHEN + + COUNT ( * ) / + 93 THEN - - 9 ELSE + + COUNT ( * ) END ) AS INTEGER ) - - 17 + - 94 * - 38 AS col2, 20 AS col2 query I rowsort label-6214 @@ -35637,7 +35637,7 @@ SELECT ALL - 18 + + 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(14\) \* Int64\(\-26\) \* Int64\(\-2\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(14\) \* Int64\(\-26\) \* Int64\(\-2\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) + + 6 * - - CAST ( NULL AS INTEGER ) * 14 * - 26 * - 2 + COUNT ( * ) AS col0, COUNT ( * ) AS col0 query I rowsort @@ -37771,7 +37771,7 @@ SELECT - 42 + - + ( - 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / Int64\(\-54\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / Int64\(\-54\) 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\. SELECT + 7 / - 54 AS col0, + CAST ( NULL AS INTEGER ) col0 query I rowsort label-7178 @@ -38079,7 +38079,7 @@ SELECT ALL 94 + + - 45 col0, + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-68\)\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- Int64\(\-68\)\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + - - 68 AS col1, - 37 AS col1 query I rowsort @@ -38162,7 +38162,7 @@ SELECT - SUM ( ALL COALESCE ( 20, + 3 + + 60 ) ) / - + 93 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(1\) \+ Int64\(52\) \+ Int64\(\-16\) / Int64\(\-43\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(1\) \+ Int64\(52\) \+ Int64\(\-16\) / Int64\(\-43\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 52 / + 76 col1, + CAST ( NULL AS INTEGER ) / + 1 + + + 52 + ( + - 16 ) / - 43 * COUNT ( * ) / - 5 AS col1 query I rowsort label-7252 @@ -38278,7 +38278,7 @@ SELECT ALL 11 * - - 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 329712 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- \(\- nullif\(\(\- Int64\(74\)\), Int64\(83\) \+ \(\- CAST\(Int64\(19\) AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-85\)\)\)\) \* Int64\(45\) \+ Int64\(42\) AS col1" at position 0 and "min\(Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- \(\- nullif\(\(\- Int64\(74\)\), Int64\(83\) \+ \(\- CAST\(Int64\(19\) AS Int64\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-85\)\)\)\) \* Int64\(45\) \+ Int64\(42\) AS col1" at position 0 and "min\(Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 99 * - - NULLIF ( - + 74, + 83 + - + CAST ( 19 AS INTEGER ) / - COUNT ( * ) + - 85 ) * + + 45 + 42 AS col1, MIN ( + 87 ) col1 query I rowsort label-7273 @@ -38835,7 +38835,7 @@ SELECT ALL - COALESCE ( 56, + + 75 * + + 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- Int64\(\-87\)\) \* \(\- CASE Int64\(\-56\) WHEN \(\- Int64\(28\)\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN \(\- Int64\(\-90\)\) \* Int64\(\-36\) THEN \(\- Int64\(53\)\) \* \(\- Int64\(\-52\)\) \- Int64\(23\) WHEN \(\- Int64\(68\)\) THEN NULL ELSE NULL END\) AS col1" at position 0 and "CASE Int64\(\-29\) WHEN \(\- Int64\(31\)\) \+ Int64\(7\) / Int64\(88\) THEN Int64\(32\) / \(\- Int64\(\-47\)\) \+ Int64\(78\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- Int64\(\-87\)\) \* \(\- CASE Int64\(\-56\) WHEN \(\- Int64\(28\)\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN \(\- Int64\(\-90\)\) \* Int64\(\-36\) THEN \(\- Int64\(53\)\) \* \(\- Int64\(\-52\)\) \- Int64\(23\) WHEN \(\- Int64\(68\)\) THEN NULL ELSE NULL END\) AS col1" at position 0 and "CASE Int64\(\-29\) WHEN \(\- Int64\(31\)\) \+ Int64\(7\) / Int64\(88\) THEN Int64\(32\) / \(\- Int64\(\-47\)\) \+ Int64\(78\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 58 * - - 87 * - CASE - 56 WHEN - + 28 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) THEN NULL WHEN - - 90 * - 36 THEN - ( 53 ) * - - 52 - + 23 WHEN - + 68 THEN NULL ELSE NULL END AS col1, + CASE - 29 WHEN - + 31 + + 7 / 88 THEN + 32 / - - 47 + + 78 + CAST ( + + COUNT ( * ) AS FLOAT8 ) END AS col1 query I rowsort @@ -39533,7 +39533,7 @@ SELECT ALL - + 12 - + + 55, - ( - + 57 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ Int64\(\-36\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(90\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ Int64\(\-36\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- Int64\(90\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 43 + ( - 36 ) AS col0, + CAST ( NULL AS INTEGER ) * - + 90 AS col0 query I rowsort label-7510 @@ -39904,7 +39904,7 @@ SELECT ALL + 1 * + + 97 * - + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2565 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- \(\- Int64\(\-57\)\)\) AS col1" at position 0 and "Int64\(56\) \- Int64\(4\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- \(\- Int64\(\-57\)\)\) AS col1" at position 0 and "Int64\(56\) \- Int64\(4\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + + 45 ) * - ( - - 57 ) AS col1, 56 - + 4 + + + CAST ( NULL AS INTEGER ) col1 query II rowsort @@ -44067,7 +44067,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- CAST\(Int64\(75\) AS Int32\)\) \* \(\- Int64\(\-2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- CAST\(Int64\(75\) AS Int64\)\) \* \(\- Int64\(\-2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 53 AS col2, - CAST ( + + 75 AS INTEGER ) * - - 2 AS col2 query I rowsort label-8373 @@ -45238,7 +45238,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) / Int64\(32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\) / Int64\(32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / 32 AS col0, COUNT ( * ) AS col0 query I rowsort label-8596 @@ -52167,7 +52167,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(79\)\) WHEN Int64\(11\) THEN \(\- min\(\(\- Int64\(7\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) END AS col2" at position 0 and "count\(DISTINCT Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(79\)\) WHEN Int64\(11\) THEN \(\- min\(\(\- Int64\(7\)\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) END AS col2" at position 0 and "count\(DISTINCT Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE + ( - + 79 ) WHEN 11 THEN + - MIN ( ALL - + 7 ) + - CAST ( NULL AS INTEGER ) END AS col2, + COUNT ( DISTINCT - 85 ) AS col2 query I rowsort label-9911 diff --git a/data/sqlite/random/expr/slt_good_67.slt b/data/sqlite/random/expr/slt_good_67.slt index 7366cf6..364be1d 100644 --- a/data/sqlite/random/expr/slt_good_67.slt +++ b/data/sqlite/random/expr/slt_good_67.slt @@ -5909,7 +5909,7 @@ SELECT DISTINCT 22 AS col2, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(43\) \- Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(43\) \- Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 43 - - 59 AS col1 query I rowsort label-1113 @@ -6047,7 +6047,7 @@ SELECT DISTINCT - 84 / - 21 + NULLIF ( - 64, - - ( + 70 ) ) * + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 21 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1139 @@ -10358,7 +10358,7 @@ SELECT ALL + 78 * + 37 * + 76 * - - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2556 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(Int64\(16\) AS Int32\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\) \+ \(\- Int64\(85\)\) \+ Int64\(64\) \* Int64\(41\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-13\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(Int64\(16\) AS Int64\) AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\) \+ \(\- Int64\(85\)\) \+ Int64\(64\) \* Int64\(41\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-13\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + CAST ( + + 16 AS INTEGER ) AS INTEGER ) + COUNT ( * ) + - 0 + - + 85 + 64 * + 41 AS col1, - CAST ( - 13 AS INTEGER ) AS col1 query I rowsort @@ -10504,7 +10504,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) \* Int64\(89\) \* Int64\(90\) \* Int64\(\-92\) \+ Int64\(82\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-91\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) \* Int64\(89\) \* Int64\(90\) \* Int64\(\-92\) \+ Int64\(82\) \+ \(\- CAST\(NULL AS Int64\)\) \- Int64\(\-91\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 91 col2, COUNT ( * ) + 41 - COUNT ( * ) * + + 79 * 89 * + 90 * - 92 + + 82 + - + CAST ( NULL AS INTEGER ) - - 91 - + COUNT ( * ) * 79 AS col2 query I rowsort label-1991 @@ -12044,7 +12044,7 @@ SELECT DISTINCT + 39 * 87 * + 77 AS col0, NULLIF ( - - 62, - COUNT ( * ) ) * - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) AS Int32\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) AS Int64\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( CAST ( COUNT ( * ) AS FLOAT8 ) AS INTEGER ) col2, 28 AS col2 query I rowsort @@ -14133,7 +14133,7 @@ SELECT 74 * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + + 71 ) * + CAST ( NULL AS INTEGER ) AS col0, - 56 AS col0 query I rowsort label-2683 @@ -17615,7 +17615,7 @@ SELECT + 63 + + 80 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* Int64\(15\) \* Int64\(39\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* Int64\(15\) \* Int64\(39\) 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\. SELECT - CAST ( NULL AS FLOAT8 ) * + 15 * + + 39 AS col0, CAST ( NULL AS INTEGER ) col0 query I rowsort label-3354 @@ -18931,7 +18931,7 @@ SELECT ALL ( + 91 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -361 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(\(\- Int64\(15\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-19\) \* \(\- Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(\(\- Int64\(15\)\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-19\) \* \(\- Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( + CAST ( - + 15 AS INTEGER ) ) AS col2, - 19 * - - 19 AS col2 query I rowsort label-3603 @@ -19275,7 +19275,7 @@ SELECT 89 * - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(\-48\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(\-48\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 78 AS col2, - 48 * - - ( COUNT ( * ) ) + - ( - CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -19966,7 +19966,7 @@ NULL # Datafusion - Expected - -23 # Datafusion - Expected - 2 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(8\) AS col1" at position 1 and "\(\- Int64\(\-63\)\) \- CAST\(Int64\(7\) AS Int32\) \+ Int64\(51\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(69\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(8\) AS col1" at position 1 and "\(\- Int64\(\-63\)\) \- CAST\(Int64\(7\) AS Int64\) \+ Int64\(51\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(69\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 23, + 19 / 8 AS col1, - ( + - 63 ) - + CAST ( 7 AS INTEGER ) + + 51 * - + NULLIF ( + + COUNT ( * ), + 69 ) AS col1 query II rowsort @@ -22069,7 +22069,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(69\) \* Int64\(83\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(69\) \* Int64\(83\) / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 AS col1, + 69 * + 83 / - + CAST ( NULL AS INTEGER ) + - 43 AS col1 query I rowsort label-4192 @@ -22982,7 +22982,7 @@ SELECT + 34 / 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ CASE Int64\(44\) WHEN coalesce\(\(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(55\) \* Int64\(\-7\) \+ Int64\(46\)\)\)\), Int64\(45\) / CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(78\) \+ Int64\(90\) \- Int64\(\-20\) \* Int64\(\-42\) / Int64\(35\), Int64\(\-76\)\) \- \(\- count\(DISTINCT Int64\(\-88\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(11\)\) \+ Int64\(\-98\) / Int64\(\-89\) THEN NULL END \* Int64\(35\) AS col2" at position 0 and "Int64\(23\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ CASE Int64\(44\) WHEN coalesce\(\(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(55\) \* Int64\(\-7\) \+ Int64\(46\)\)\)\), Int64\(45\) / CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(78\) \+ Int64\(90\) \- Int64\(\-20\) \* Int64\(\-42\) / Int64\(35\), Int64\(\-76\)\) \- \(\- count\(DISTINCT Int64\(\-88\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(11\)\) \+ Int64\(\-98\) / Int64\(\-89\) THEN NULL END \* Int64\(35\) AS col2" at position 0 and "Int64\(23\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 + CASE 44 WHEN + COALESCE ( - - NULLIF ( - COUNT ( * ), 55 * - 7 + 46 ), 45 / + + CAST ( NULL AS INTEGER ) * - COUNT ( * ), 78 + 90 - - 20 * - 42 / 35, + - 76 ) - - COUNT ( DISTINCT - 88 ) THEN - COUNT ( * ) WHEN + ( - + 11 ) + - 98 / - 89 THEN NULL END * + + 35 AS col2, 23 + ( - + MIN ( + 12 ) ) * + 19 AS col2 query I rowsort @@ -22998,7 +22998,7 @@ SELECT 76 * - 65 + + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- max\(Int64\(12\)\)\) \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- max\(Int64\(12\)\)\) \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - MAX ( + 12 ) * - 23 AS col2 query I rowsort label-4369 @@ -26124,7 +26124,7 @@ SELECT ( - + 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(coalesce\(Int64\(34\), CAST\(NULL AS Int32\), Int64\(\-78\) \+ Int64\(34\) \+ Int64\(89\) \* Int64\(97\), count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(72\)\)\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(coalesce\(Int64\(34\), CAST\(NULL AS Int64\), Int64\(\-78\) \+ Int64\(34\) \+ Int64\(89\) \* Int64\(97\), count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(72\)\)\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + - COALESCE ( + ( COALESCE ( + 34, CAST ( NULL AS INTEGER ), - 78 + + 34 + + 89 * 97, COUNT ( * ) ) ), - ( 72 ) ) + 77 AS col1 query I rowsort label-4969 @@ -26817,7 +26817,7 @@ SELECT + - 17 + + 24 + + + 36 * - 78 * + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(79\), \(\- Int64\(\-63\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(1\) AS Int32\)\) \* Int64\(65\) \+ \(\- Int64\(\-34\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(79\), \(\- Int64\(\-63\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(1\) AS Int64\)\) \* Int64\(65\) \+ \(\- Int64\(\-34\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + + ( 79 ), - - 63 ) AS col0, - CAST ( 1 AS INTEGER ) * + 65 + - - 34 * - + COUNT ( * ) AS col0 query I rowsort label-5102 @@ -27594,7 +27594,7 @@ SELECT ALL + 46 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3759 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \+ \(\- Int64\(4\)\) \* Int64\(\-11\) \* \(\- Int64\(85\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(26\) AS Int32\)\) \+ Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \+ \(\- Int64\(4\)\) \* Int64\(\-11\) \* \(\- Int64\(85\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(26\) AS Int64\)\) \+ Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 19 + - + 4 * - 11 * - + 85 col1, - CAST ( + 26 AS INTEGER ) + + 3 AS col1 query I rowsort label-5249 @@ -28159,7 +28159,7 @@ SELECT ALL - 66 * 55 - + 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(Int64\(36\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(Int64\(36\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( + - 35 ) AS col0, - COUNT ( * ) * + + ( - CAST ( 36 AS INTEGER ) ) AS col0 query I rowsort @@ -29152,7 +29152,7 @@ SELECT ALL + COUNT ( * ) * + + 98 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-56\) \+ Int64\(\-21\) AS col2" at position 0 and "CAST\(Int64\(\-89\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-56\) \+ Int64\(\-21\) AS col2" at position 0 and "CAST\(Int64\(\-89\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 + - 56 + - 21 col2, + CAST ( - 89 AS INTEGER ) AS col2 query I rowsort label-5544 @@ -29219,7 +29219,7 @@ SELECT DISTINCT + ( + - COUNT ( * ) ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- CAST\(\(\- Int64\(\-48\)\) AS Int32\)\), \(\- sum\(Int64\(22\)\)\), \(\- Int64\(\-56\)\)\) \+ Int64\(17\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- CAST\(\(\- Int64\(\-48\)\) AS Int64\)\), \(\- sum\(Int64\(22\)\)\), \(\- Int64\(\-56\)\)\) \+ Int64\(17\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + COALESCE ( + - CAST ( - - 48 AS INTEGER ), - SUM ( 22 ), - ( - 56 ) ) + + 17 col2, 82 AS col2 query I rowsort label-5557 @@ -29572,7 +29572,7 @@ SELECT 76 + MIN ( DISTINCT + 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -1383 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int32\) \* Int64\(\-74\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int64\) \* Int64\(\-74\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 86 AS col0, + CAST ( 18 AS INTEGER ) * - 74 + - 51 AS col0 query II rowsort @@ -30308,7 +30308,7 @@ SELECT + 93 + + - 43 * - + 46 * + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(86\) WHEN Int64\(1\) \* Int64\(\-71\) \* CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(22\) THEN NULL ELSE Int64\(\-77\) \+ \(\- Int64\(82\)\) END\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(86\) WHEN Int64\(1\) \* Int64\(\-71\) \* CAST\(NULL AS Int64\) THEN NULL WHEN Int64\(22\) THEN NULL ELSE Int64\(\-77\) \+ \(\- Int64\(82\)\) END\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE + 86 WHEN 1 * - 71 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 22 THEN NULL ELSE + - 77 + - + 82 END AS col1, COUNT ( * ) AS col1 query I rowsort @@ -31295,7 +31295,7 @@ SELECT ALL 73 col0, ( - 57 ) * - 43 * + 30 + + COALESCE ( - SUM ( 36 ), + 71 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(9\)\)\) AS col1" at position 0 and "Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(9\)\)\) AS col1" at position 0 and "Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MAX ( DISTINCT + 9 ) AS col1, 45 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-5955 @@ -32562,7 +32562,7 @@ SELECT + MIN ( ALL - 76 ) col0 # Datafusion - Expected - NULL # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(82\) WHEN Int64\(71\) \* coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-47\)\) \* Int64\(\-22\) \* coalesce\(Int64\(\-99\), Int64\(29\)\) \* Int64\(\-45\) \+ Int64\(69\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-96\), CAST\(NULL AS Float64\) \* Int64\(25\) \+ Int64\(67\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END\) / \(\- Int64\(\-43\)\) \+ Int64\(\-80\) AS col1" at position 0 and "nullif\(Int64\(82\), nullif\(\(\- nullif\(Int64\(\-47\), Int64\(6\)\)\), \(\- CASE Int64\(36\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN CASE Int64\(\-44\) WHEN \(\- nullif\(Int64\(\-90\), Int64\(\-37\)\)\) THEN Int64\(48\) ELSE NULL END WHEN min\(Int64\(58\)\) THEN NULL ELSE NULL END\)\)\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(82\) WHEN Int64\(71\) \* coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-47\)\) \* Int64\(\-22\) \* coalesce\(Int64\(\-99\), Int64\(29\)\) \* Int64\(\-45\) \+ Int64\(69\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-96\), CAST\(NULL AS Float64\) \* Int64\(25\) \+ Int64\(67\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END\) / \(\- Int64\(\-43\)\) \+ Int64\(\-80\) AS col1" at position 0 and "nullif\(Int64\(82\), nullif\(\(\- nullif\(Int64\(\-47\), Int64\(6\)\)\), \(\- CASE Int64\(36\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN CASE Int64\(\-44\) WHEN \(\- nullif\(Int64\(\-90\), Int64\(\-37\)\)\) THEN Int64\(48\) ELSE NULL END WHEN min\(Int64\(58\)\) THEN NULL ELSE NULL END\)\)\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - CASE + 82 WHEN + 71 * COALESCE ( + - CAST ( NULL AS INTEGER ), - 47 ) * - 22 * + COALESCE ( - 99, 29 ) * - 45 + 69 THEN + ( + COUNT ( * ) ) WHEN + + COUNT ( * ) * NULLIF ( - 96, + CAST ( NULL AS FLOAT8 ) * 25 + + 67 ) THEN NULL WHEN + - COUNT ( * ) THEN NULL END ) / - - 43 + - 80 AS col1, NULLIF ( + 82, + NULLIF ( - ( NULLIF ( + - 47, 6 ) ), - + CASE + 36 WHEN + ( - COUNT ( * ) ) THEN + CASE - 44 WHEN - NULLIF ( - 90, - 37 ) THEN + 48 ELSE NULL END WHEN + MIN ( + ( 58 ) ) THEN NULL ELSE NULL END ) ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1, + ( - + 38 ) * CASE - 39 WHEN + COUNT ( * ) + 37 * 81 THEN - 22 * + AVG ( ALL - NULLIF ( + 67, 59 ) ) WHEN 24 + + 67 * - 36 THEN - 95 WHEN 21 THEN 29 / - 45 END AS col0 query I rowsort label-6198 @@ -33812,7 +33812,7 @@ SELECT ALL - ( - 71 ) col0 # Datafusion - Expected - 66 # Datafusion - Expected - NULL # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 and "Int64\(98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col1" at position 1 and "Int64\(98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, + ( 98 ) AS col1 query I rowsort label-6441 @@ -35200,7 +35200,7 @@ SELECT ALL COALESCE ( - ( - 23 ), - ( + - 40 ), - + 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col1, 75 + 97 AS col1 query I rowsort @@ -36242,7 +36242,7 @@ SELECT NULLIF ( COALESCE ( CAST ( - ( + + MAX ( ALL + 52 ) ) AS INTEGER ), - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(27\) \+ Int64\(\-19\) AS col0" at position 0 and "CAST\(Int64\(97\) AS Int32\) \+ Int64\(\-44\) \+ Int64\(71\) \+ \(\- Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(27\) \+ Int64\(\-19\) AS col0" at position 0 and "CAST\(Int64\(97\) AS Int64\) \+ Int64\(\-44\) \+ Int64\(71\) \+ \(\- Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 68 + 27 + - 19 AS col0, + CAST ( + 97 AS INTEGER ) + - 44 + + ( + + 71 ) + - + 21 AS col0 query I rowsort label-6907 @@ -37049,7 +37049,7 @@ SELECT ALL + + ( + 17 ) * - CASE - 18 WHEN 59 THEN NULL ELSE - 40 END AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 14 AS col1, + 61 + CAST ( NULL AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -38226,7 +38226,7 @@ SELECT - 60 - - - 18 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2311 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(32\)\) \* Int64\(\-70\) \+ Int64\(\-71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-16\) \- count\(DISTINCT \(\- CASE \(\- Int64\(\-54\)\) WHEN Int64\(78\) THEN Int64\(\-30\) \+ Int64\(98\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(32\)\) \* Int64\(\-70\) \+ Int64\(\-71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-16\) \- count\(DISTINCT \(\- CASE \(\- Int64\(\-54\)\) WHEN Int64\(78\) THEN Int64\(\-30\) \+ Int64\(98\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( + 32 ) * - 70 + - 71 AS col0, - CAST ( NULL AS INTEGER ) + + - 16 - COUNT ( DISTINCT - CASE - - 54 WHEN + 78 THEN - 30 + + 98 END ) AS col0 query I rowsort label-7282 @@ -40887,7 +40887,7 @@ SELECT DISTINCT 69 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(76\) AS Int32\) AS col2" at position 0 and "Int64\(74\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(76\) AS Int64\) AS col2" at position 0 and "Int64\(74\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + 76 AS INTEGER ) AS col2, 74 * + 50 AS col2 query I rowsort label-7789 @@ -41456,7 +41456,7 @@ SELECT - + 83 / + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- CASE Int64\(63\) WHEN Int64\(7\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \+ Int64\(\-11\) THEN CAST\(NULL AS Int32\) WHEN Int64\(16\) \+ sum\(Int64\(94\)\) / Int64\(\-8\) THEN \(\- CASE Int64\(68\) WHEN min\(Int64\(19\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(88\) WHEN Int64\(55\) THEN Int64\(32\) ELSE Int64\(72\) END\) \- \(\- Int64\(\-24\)\) END / Int64\(24\) / Int64\(32\) AS col1" at position 0 and "min\(Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- CASE Int64\(63\) WHEN Int64\(7\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \+ Int64\(\-11\) THEN CAST\(NULL AS Int64\) WHEN Int64\(16\) \+ sum\(Int64\(94\)\) / Int64\(\-8\) THEN \(\- CASE Int64\(68\) WHEN min\(Int64\(19\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(88\) WHEN Int64\(55\) THEN Int64\(32\) ELSE Int64\(72\) END\) \- \(\- Int64\(\-24\)\) END / Int64\(24\) / Int64\(32\) AS col1" at position 0 and "min\(Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 61 - + CASE + + 63 WHEN 7 / - COUNT ( * ) * 56 + - 11 THEN + + CAST ( NULL AS INTEGER ) WHEN 16 + SUM ( 94 ) / - 8 THEN - CASE 68 WHEN + MIN ( ALL + 19 ) * + COUNT ( * ) THEN + + 88 WHEN + 55 THEN + 32 ELSE 72 END - - - 24 END / 24 / + 32 col1, MIN ( - 21 ) AS col1 query I rowsort @@ -43202,7 +43202,7 @@ SELECT ALL - 93 / + ( + - 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -445 # Datafusion - Expected - 178 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-89\) AS col1" at position 0 and "Int64\(86\) \+ CAST\(Int64\(92\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-89\) AS col1" at position 0 and "Int64\(86\) \+ CAST\(Int64\(92\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 5 * + - 89 AS col1, ( + 86 ) + + CAST ( 92 AS INTEGER ) AS col1 query I rowsort label-8233 @@ -47020,7 +47020,7 @@ SELECT MAX ( - CAST ( + 14 AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- Int64\(\-2\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / \(\- Int64\(\-2\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) / - - 2 AS col0, 17 AS col0 # Datafusion - Datafusion expected results: @@ -49494,7 +49494,7 @@ SELECT COALESCE ( ( 52 ), - 14, - 74 * COUNT ( * ) ) * 96 / 77 / - 21 + CAST ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(\-44\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(\-44\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + 4 ) AS col0, - COUNT ( * ) * CAST ( - 44 AS INTEGER ) AS col0 query I rowsort label-9428 @@ -50071,7 +50071,7 @@ SELECT 42 * - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- nullif\(Int64\(89\), CAST\(NULL AS Int32\)\)\) \+ \(\- Int64\(\-77\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- nullif\(Int64\(89\), CAST\(NULL AS Int64\)\)\) \+ \(\- Int64\(\-77\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + + - NULLIF ( 89, CAST ( NULL AS INTEGER ) ) + - - 77 AS col0, + COUNT ( * ) col0 query I rowsort label-9537 @@ -50617,7 +50617,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 AS col0, + 32 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) col0 query I rowsort label-9645 @@ -51431,7 +51431,7 @@ SELECT ALL - 53 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-81\) AS col1" at position 0 and "Int64\(2\) / Int64\(35\) \* nullif\(CASE Int64\(45\) WHEN Int64\(45\) \+ Int64\(1\) \* CAST\(NULL AS Int32\) THEN Int64\(77\) END, count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-81\) AS col1" at position 0 and "Int64\(2\) / Int64\(35\) \* nullif\(CASE Int64\(45\) WHEN Int64\(45\) \+ Int64\(1\) \* CAST\(NULL AS Int64\) THEN Int64\(77\) END, count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) * - 81 col1, 2 / + 35 * + + NULLIF ( CASE + 45 WHEN 45 + 1 * CAST ( NULL AS INTEGER ) THEN 77 END, + COUNT ( * ) + + 8 ) AS col1 query I rowsort label-9803 diff --git a/data/sqlite/random/expr/slt_good_68.slt b/data/sqlite/random/expr/slt_good_68.slt index 73db0b8..50ba866 100644 --- a/data/sqlite/random/expr/slt_good_68.slt +++ b/data/sqlite/random/expr/slt_good_68.slt @@ -532,7 +532,7 @@ SELECT ALL + 24 col0, 9 - + 65 + + 46 * + 90 * - 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -808,7 +808,7 @@ SELECT ALL - - 91 * - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(\-95\) \+ Int64\(13\) \+ max\(DISTINCT coalesce\(\(\- nullif\(\(\- CAST\(Int64\(\-33\) AS Int32\)\), Int64\(85\)\)\), \(\- Int64\(\-13\)\) \* Int64\(35\) \+ \(\- Int64\(\-42\)\) / \(\- CAST\(Int64\(30\) AS Int32\)\)\)\) \- Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(\-95\) \+ Int64\(13\) \+ max\(DISTINCT coalesce\(\(\- nullif\(\(\- CAST\(Int64\(\-33\) AS Int64\)\), Int64\(85\)\)\), \(\- Int64\(\-13\)\) \* Int64\(35\) \+ \(\- Int64\(\-42\)\) / \(\- CAST\(Int64\(30\) AS Int64\)\)\)\) \- Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 74 AS col0, - 95 + 13 + + MAX ( DISTINCT COALESCE ( - + NULLIF ( - + CAST ( - 33 AS INTEGER ), + 85 ), - - 13 * + 35 + - ( - 42 ) / - CAST ( 30 AS INTEGER ) ) ) - - 47 AS col0 query I rowsort label-149 @@ -1737,7 +1737,7 @@ SELECT DISTINCT + COUNT ( DISTINCT - ( + 2 ) ) * - 9 AS col1, 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5680 # Datafusion - Expected - -819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-71\) AS col0" at position 0 and "\(\- CASE Int64\(35\) WHEN Int64\(38\) THEN NULL WHEN CAST\(NULL AS Int32\) THEN Int64\(81\) \* Int64\(60\) \* \(\- Int64\(\-70\)\) \* Int64\(\-14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(93\)\) ELSE Int64\(39\) \* Int64\(21\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-71\) AS col0" at position 0 and "\(\- CASE Int64\(35\) WHEN Int64\(38\) THEN NULL WHEN CAST\(NULL AS Int64\) THEN Int64\(81\) \* Int64\(60\) \* \(\- Int64\(\-70\)\) \* Int64\(\-14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(93\)\) ELSE Int64\(39\) \* Int64\(21\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 80 * + - 71 AS col0, - CASE 35 WHEN + + 38 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 81 * + 60 * - - 70 * - 14 + - COUNT ( * ) + - + 93 ELSE + + 39 * + 21 END AS col0 query I rowsort label-325 @@ -3299,7 +3299,7 @@ SELECT 58 * + 13 + - 16 - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(98\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- CASE Int64\(\-94\) WHEN Int64\(24\) THEN count\(Int64\(\-26\)\) ELSE \(\- Int64\(\-60\)\) END\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(37\) \+ \(\- CASE Int64\(93\) WHEN Int64\(16\) \* Int64\(58\) \* Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) \* Int64\(48\) \* Int64\(2\) \* sum\(Int64\(68\)\) \* \(\- Int64\(17\)\) \* nullif\(\(\- Int64\(\-4\)\), Int64\(\-61\) \+ Int64\(16\) \+ Int64\(22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- coalesce\(\(\- Int64\(73\)\), sum\(DISTINCT Int64\(\-85\)\) \* Int64\(17\) \+ Int64\(\-22\) \* Int64\(\-68\), CAST\(Int64\(82\) AS Int32\) / Int64\(39\)\)\) \+ Int64\(\-27\) \* Int64\(43\)\) THEN CAST\(NULL AS Int32\) \* Int64\(24\) WHEN nullif\(Int64\(\-26\), nullif\(Int64\(83\), \(\- min\(DISTINCT Int64\(54\)\)\) \+ Int64\(\-76\)\) \+ Int64\(\-22\)\) THEN NULL ELSE NULL END\) \+ Int64\(8\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(98\) \+ \(\- CAST\(NULL AS Int64\)\) \+ \(\- CASE Int64\(\-94\) WHEN Int64\(24\) THEN count\(Int64\(\-26\)\) ELSE \(\- Int64\(\-60\)\) END\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(37\) \+ \(\- CASE Int64\(93\) WHEN Int64\(16\) \* Int64\(58\) \* Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) \* Int64\(48\) \* Int64\(2\) \* sum\(Int64\(68\)\) \* \(\- Int64\(17\)\) \* nullif\(\(\- Int64\(\-4\)\), Int64\(\-61\) \+ Int64\(16\) \+ Int64\(22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- coalesce\(\(\- Int64\(73\)\), sum\(DISTINCT Int64\(\-85\)\) \* Int64\(17\) \+ Int64\(\-22\) \* Int64\(\-68\), CAST\(Int64\(82\) AS Int64\) / Int64\(39\)\)\) \+ Int64\(\-27\) \* Int64\(43\)\) THEN CAST\(NULL AS Int64\) \* Int64\(24\) WHEN nullif\(Int64\(\-26\), nullif\(Int64\(83\), \(\- min\(DISTINCT Int64\(54\)\)\) \+ Int64\(\-76\)\) \+ Int64\(\-22\)\) THEN NULL ELSE NULL END\) \+ Int64\(8\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 59 + + 98 + - + CAST ( NULL AS INTEGER ) + ( - CASE - 94 WHEN + 24 THEN + COUNT ( - 26 ) ELSE - - 60 END ) * - 78 AS col0, + 37 + - CASE 93 WHEN + ( 16 ) * + 58 * - 36 + + COUNT ( * ) + + - 56 * 48 * + 2 * + + SUM ( ALL + + 68 ) * - + 17 * + NULLIF ( - - 4, + - 61 + 16 + + 22 + - COUNT ( * ) / - COALESCE ( - + 73, + SUM ( DISTINCT - 85 ) * 17 + - 22 * - 68, + CAST ( 82 AS INTEGER ) / 39 ) + - 27 * 43 ) THEN + CAST ( NULL AS INTEGER ) * 24 WHEN + NULLIF ( - 26, NULLIF ( 83, - MIN ( DISTINCT 54 ) + - 76 ) + - 22 ) THEN NULL ELSE NULL END + + 8 * - 22 AS col0 query II rowsort @@ -5331,7 +5331,7 @@ SELECT ALL ( 30 ) * - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- CAST\(NULL AS Int64\)\)\) AS Int64\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) AS col0, - ( + COUNT ( * ) ) col0 query I rowsort @@ -5739,7 +5739,7 @@ SELECT ALL - 96 * - + 6 * 35 + - SUM ( 86 ) * + 54 # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - -806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-19\)\)\) AS col0" at position 0 and "min\(\(\- CAST\(NULL AS Int32\)\)\) \- Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-19\)\)\) AS col0" at position 0 and "min\(\(\- CAST\(NULL AS Int64\)\)\) \- Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( - 19 ) AS col0, MIN ( - CAST ( NULL AS INTEGER ) ) - - 83 AS col0, 26 * - + 31 AS col0 query I rowsort @@ -5792,7 +5792,7 @@ SELECT DISTINCT 72 + 35 + + 82 * + + 15 + - 73 / + - 74 * - 51 * 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "CAST\(Int64\(\-61\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "CAST\(Int64\(\-61\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 AS col0, + CAST ( - 61 AS INTEGER ) AS col0 query I rowsort label-1097 @@ -7938,7 +7938,7 @@ SELECT ALL 66 * - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - -850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CAST\(\(\- CASE Int64\(\-34\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN avg\(DISTINCT Int64\(18\)\) \+ Int64\(81\) THEN max\(DISTINCT Int64\(\-31\)\) ELSE Int64\(85\) \* \(\- nullif\(Int64\(\-10\), Int64\(44\) / Int64\(73\)\)\) END\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CAST\(\(\- CASE Int64\(\-34\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN avg\(DISTINCT Int64\(18\)\) \+ Int64\(81\) THEN max\(DISTINCT Int64\(\-31\)\) ELSE Int64\(85\) \* \(\- nullif\(Int64\(\-10\), Int64\(44\) / Int64\(73\)\)\) END\) AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 53 + + + 73 + + - COUNT ( * ) AS col2, COUNT ( * ) * - - CAST ( - CASE - 34 WHEN + COUNT ( * ) THEN NULL WHEN + AVG ( DISTINCT + 18 ) + + 81 THEN + MAX ( DISTINCT - 31 ) ELSE 85 * - NULLIF ( - 10, 44 / 73 ) END AS INTEGER ) AS col2 query I rowsort label-1512 @@ -8315,7 +8315,7 @@ SELECT + CAST ( 7 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + - CAST ( NULL AS INTEGER ) ) AS col1, + 11 AS col1 query I rowsort label-1583 @@ -10522,7 +10522,7 @@ SELECT 37 + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(69\) AS Int32\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(69\) AS Int64\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + 69 AS INTEGER ) AS col1, - 18 col1 query I rowsort label-1999 @@ -10642,7 +10642,7 @@ SELECT + 81 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int32\)\) \+ Int64\(23\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int64\)\) \+ Int64\(23\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) + + 23 AS col0, + 86 AS col0 query I rowsort label-2022 @@ -17947,7 +17947,7 @@ SELECT - 60 * COALESCE ( COUNT ( 26 ), - 42 ) + - ( - 21 ) # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / Int64\(\-46\) \+ Int64\(99\) \+ CAST\(NULL AS Float64\) / Int64\(\-77\) \+ \(\- Int64\(1\)\) \+ Int64\(\-28\) \* count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(63\) \* CAST\(NULL AS Int32\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / Int64\(\-46\) \+ Int64\(99\) \+ CAST\(NULL AS Float64\) / Int64\(\-77\) \+ \(\- Int64\(1\)\) \+ Int64\(\-28\) \* count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(63\) \* CAST\(NULL AS Int64\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 41 / + - 46 + 99 + CAST ( NULL AS FLOAT8 ) / - 77 + + - ( 1 ) + - 28 * + COUNT ( * ) / ( + COUNT ( * ) ) AS col1, 63 * CAST ( NULL AS INTEGER ) / + + 75 AS col1, - 13 + 10 + COUNT ( ALL - 96 + + 9 * - 20 ) AS col1 query II rowsort label-3412 @@ -19820,7 +19820,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- coalesce\(\(\- Int64\(0\)\), CAST\(Int64\(\-33\) AS Int32\), \(\- Int64\(26\)\) / sum\(Int64\(84\)\)\)\) AS col0" at position 0 and "Int64\(25\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- coalesce\(\(\- Int64\(0\)\), CAST\(Int64\(\-33\) AS Int64\), \(\- Int64\(26\)\) / sum\(Int64\(84\)\)\)\) AS col0" at position 0 and "Int64\(25\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 20 + - COALESCE ( - - 0, CAST ( + ( + - 33 ) AS INTEGER ), + - ( 26 ) / + + SUM ( + 84 ) ) AS col0, 25 * - 1 AS col0 query I rowsort label-3766 @@ -23520,7 +23520,7 @@ SELECT + 55 * 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "CASE Int64\(\-97\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- CASE \(\- Int64\(74\)\) WHEN \(\- CAST\(nullif\(Int64\(\-64\), Int64\(41\)\) AS Int32\)\) THEN Int64\(23\) END\) WHEN Int64\(10\) \* Int64\(38\) \* Int64\(\-67\) THEN NULL ELSE NULL END \* Int64\(66\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "CASE Int64\(\-97\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- CASE \(\- Int64\(74\)\) WHEN \(\- CAST\(nullif\(Int64\(\-64\), Int64\(41\)\) AS Int64\)\) THEN Int64\(23\) END\) WHEN Int64\(10\) \* Int64\(38\) \* Int64\(\-67\) THEN NULL ELSE NULL END \* Int64\(66\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 68 AS col0, + CASE - 97 WHEN + - COUNT ( * ) THEN - + CASE - + 74 WHEN - + CAST ( + NULLIF ( - 64, + 41 ) AS INTEGER ) THEN + ( 23 ) END WHEN 10 * + 38 * - 67 THEN NULL ELSE NULL END * + 66 * - 15 AS col0 query I rowsort label-4473 @@ -26933,7 +26933,7 @@ SELECT - MIN ( DISTINCT + - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(15\), CAST\(NULL AS Int32\) \* \(\- Int64\(20\)\) \* Int64\(30\) \+ Int64\(30\) \* Int64\(1\) \+ Int64\(84\)\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(15\), CAST\(NULL AS Int64\) \* \(\- Int64\(20\)\) \* Int64\(30\) \+ Int64\(30\) \* Int64\(1\) \+ Int64\(84\)\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( 15, CAST ( NULL AS INTEGER ) * - + 20 * + 30 + 30 * + 1 + + 84 ) AS col0, + 19 AS col0 query I rowsort label-5124 @@ -29958,7 +29958,7 @@ SELECT 85 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(40\) / Int64\(67\) \* CAST\(NULL AS Int32\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(40\) / Int64\(67\) \* CAST\(NULL AS Int64\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 54 AS col0, 40 / + + 67 * CAST ( NULL AS INTEGER ) * 32 AS col0 query I rowsort label-5699 @@ -31566,7 +31566,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1044 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- Int64\(12\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) \* \(\- CAST\(max\(\(\- Int64\(40\)\)\) AS Int32\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- Int64\(12\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) \* \(\- CAST\(max\(\(\- Int64\(40\)\)\) AS Int64\)\) \* CAST\(NULL AS Int64\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 87 * - + 12 * + COUNT ( * ) AS col1, 38 * - ( CAST ( + + MAX ( - + 40 ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + + - 38 AS col1 query I rowsort label-6002 @@ -32013,7 +32013,7 @@ SELECT - SUM ( DISTINCT + - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -4218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(\-85\) \+ Int64\(\-68\) AS col2" at position 0 and "\(\- sum\(\(\- coalesce\(\(\- \(\- coalesce\(Int64\(17\), \(\- Int64\(13\)\)\)\)\), \(\- CAST\(NULL AS Int32\)\), Int64\(46\)\)\)\)\) \+ \(\- Int64\(77\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(\-85\) \+ Int64\(\-68\) AS col2" at position 0 and "\(\- sum\(\(\- coalesce\(\(\- \(\- coalesce\(Int64\(17\), \(\- Int64\(13\)\)\)\)\), \(\- CAST\(NULL AS Int64\)\), Int64\(46\)\)\)\)\) \+ \(\- Int64\(77\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 98 + - 85 + - 68 AS col2, - SUM ( + - COALESCE ( - - COALESCE ( + 17, ( - + 13 ) ), ( - CAST ( NULL AS INTEGER ) ), 46 ) ) + - + 77 * 55 col2 query II rowsort label-6085 @@ -34577,7 +34577,7 @@ SELECT DISTINCT + MIN ( 46 ) * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-67\)\)\) \+ Int64\(\-48\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-67\)\)\) \+ Int64\(\-48\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + COUNT ( * ), - 67 ) + - 48 + + CAST ( NULL AS INTEGER ) AS col1, + 63 AS col1 query I rowsort @@ -35179,7 +35179,7 @@ SELECT COALESCE ( - 52, - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 85 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-42\), Int64\(1\) \* CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-42\), Int64\(1\) \* CAST\(NULL AS Int64\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( - 42, + 1 * CAST ( NULL AS INTEGER ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-6692 @@ -35341,7 +35341,7 @@ SELECT DISTINCT + 47 * + COUNT ( * ) AS col0, + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(82\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(56\) \* \(\- Int64\(69\)\) \+ \(\- \(\- max\(Int64\(\-94\)\)\)\) \* \(\- \(\- nullif\(Int64\(7\), \(\- CAST\(Int64\(32\) AS Float64\)\)\)\)\) \- coalesce\(Int64\(76\), Int64\(83\), \(\- Int64\(\-23\)\) \* Int64\(62\)\) \- Int64\(69\) / \(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(51\) THEN NULL WHEN Int64\(\-95\) \* Int64\(32\) THEN Int64\(9\) END \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(Int64\(77\) AS Float64\)\) \- Int64\(57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(82\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(56\) \* \(\- Int64\(69\)\) \+ \(\- \(\- max\(Int64\(\-94\)\)\)\) \* \(\- \(\- nullif\(Int64\(7\), \(\- CAST\(Int64\(32\) AS Float64\)\)\)\)\) \- coalesce\(Int64\(76\), Int64\(83\), \(\- Int64\(\-23\)\) \* Int64\(62\)\) \- Int64\(69\) / \(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(51\) THEN NULL WHEN Int64\(\-95\) \* Int64\(32\) THEN Int64\(9\) END \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(Int64\(77\) AS Float64\)\) \- Int64\(57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * 82 AS col0, 7 + + 56 * - + 69 + - - MAX ( ALL - 94 ) * + + ( - - NULLIF ( 7, ( - CAST ( 32 AS FLOAT8 ) ) ) ) - COALESCE ( + 76, + 83, - - 23 * + 62 ) - + ( 69 ) / ( + CASE COUNT ( * ) WHEN + 51 THEN NULL WHEN ( - 95 ) * 32 THEN 9 END + NULLIF ( ( COUNT ( * ) ), - CAST ( + 77 AS FLOAT8 ) - 57 ) ) AS col0 query II rowsort label-6722 @@ -39720,7 +39720,7 @@ SELECT - 88 * + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-42\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- Int64\(\-91\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(86\) \+ coalesce\(Int64\(50\), Int64\(9\) \* \(\- Int64\(37\)\) \- Int64\(\-13\) \- Int64\(35\) \+ \(\- count\(Int64\(\-97\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(13\) \* Int64\(\-25\) / Int64\(93\)\) \* \(\- count\(DISTINCT Int64\(9\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(Int64\(96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-42\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- Int64\(\-91\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(86\) \+ coalesce\(Int64\(50\), Int64\(9\) \* \(\- Int64\(37\)\) \- Int64\(\-13\) \- Int64\(35\) \+ \(\- count\(Int64\(\-97\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(13\) \* Int64\(\-25\) / Int64\(93\)\) \* \(\- count\(DISTINCT Int64\(9\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(Int64\(96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 11 * + - 42 * COUNT ( * ) * + COUNT ( - - 91 ) + - CAST ( NULL AS INTEGER ) + + 86 + COALESCE ( 50, + + 9 * - + 37 - - 13 - + + 35 + + - COUNT ( + - 97 ) - COUNT ( * ) - + 13 * + - 25 / 93 ) * - COUNT ( DISTINCT 9 ) * + COUNT ( * ) AS col1, MIN ( ALL 96 ) AS col1 query I rowsort @@ -41807,7 +41807,7 @@ SELECT + + 18 / + 75 + + CASE - 27 WHEN + NULLIF ( - COUNT ( - 97 ), - COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 38 * - CAST ( NULL AS INTEGER ) AS col1, 16 AS col1 # Datafusion - Types were automatically converted from: @@ -44369,7 +44369,7 @@ SELECT + + SUM ( DISTINCT 41 ) / 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(29\) \* count\(Int64\(\-86\)\) / Int64\(\-85\) \* Int64\(4\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(29\) \* count\(Int64\(\-86\)\) / Int64\(\-85\) \* Int64\(4\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + 29 * COUNT ( - 86 ) / - 85 * 4 AS col2, 5 AS col2 query I rowsort @@ -46548,7 +46548,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + 46 AS col2 query I rowsort label-8850 @@ -48343,7 +48343,7 @@ SELECT 67 * - - 20 - + 70 * + ( + MAX ( - 80 ) ) * - ( - COALESCE ( + - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "\(\- CAST\(\(\- Int64\(\-34\)\) AS Int32\)\) \+ Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "\(\- CAST\(\(\- Int64\(\-34\)\) AS Int64\)\) \+ Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 83 AS col0, - CAST ( - ( + - 34 ) AS INTEGER ) + + 24 col0 query I rowsort @@ -48910,7 +48910,7 @@ SELECT - - 92 / - 52 AS col2, - 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-15\)\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(8\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-15\)\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(8\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( ALL - 15 ) AS col1, 32 * 8 * CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -49740,7 +49740,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 157 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(89\) \+ Int64\(55\) / Int64\(31\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(89\) \+ Int64\(55\) / Int64\(31\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 67 + 89 + 55 / 31 AS col0, - CAST ( NULL AS INTEGER ) * + 99 col0 query I rowsort label-9453 diff --git a/data/sqlite/random/expr/slt_good_69.slt b/data/sqlite/random/expr/slt_good_69.slt index cb35dbf..9f04157 100644 --- a/data/sqlite/random/expr/slt_good_69.slt +++ b/data/sqlite/random/expr/slt_good_69.slt @@ -1314,7 +1314,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. SELECT COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -1532,7 +1532,7 @@ SELECT + - 40 + + - 92 + + 10 + 9 / + COUNT ( * ) + + 94 + 52 + + ( - 56 ) - - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 71 / CAST ( NULL AS INTEGER ) col2, + 19 AS col2 query I rowsort @@ -3107,7 +3107,7 @@ SELECT ALL COUNT ( * ) / - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \- Int64\(\-1\) AS col1" at position 0 and "CAST\(Int64\(29\) AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \- Int64\(\-1\) AS col1" at position 0 and "CAST\(Int64\(29\) AS Int64\) \- count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 - + - 1 AS col1, CAST ( 29 AS INTEGER ) - COUNT ( * ) - + + COUNT ( * ) col1 query I rowsort @@ -5365,7 +5365,7 @@ SELECT ALL 21 * + + 90 + + ( - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4513 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(\(\- CASE Int64\(20\) WHEN \(\- Int64\(60\)\) \* \(\- nullif\(Int64\(\-72\), Int64\(19\) \+ avg\(\(\- Int64\(7\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \- Int64\(49\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- sum\(Int64\(\-57\)\)\) \* Int64\(57\) \+ Int64\(21\) \+ Int64\(31\) THEN Int64\(36\) END\), min\(Int64\(31\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(19\)\), CAST\(\(\- Int64\(\-43\)\) AS Int32\)\)\) \* Int64\(\-53\) \+ Int64\(\-4\) \* count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(53\)\) \- Int64\(73\) \* \(\- Int64\(24\)\) \+ Int64\(98\) \- Int64\(\-59\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(\(\- CASE Int64\(20\) WHEN \(\- Int64\(60\)\) \* \(\- nullif\(Int64\(\-72\), Int64\(19\) \+ avg\(\(\- Int64\(7\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int64\) \- Int64\(49\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- sum\(Int64\(\-57\)\)\) \* Int64\(57\) \+ Int64\(21\) \+ Int64\(31\) THEN Int64\(36\) END\), min\(Int64\(31\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(19\)\), CAST\(\(\- Int64\(\-43\)\) AS Int64\)\)\) \* Int64\(\-53\) \+ Int64\(\-4\) \* count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(53\)\) \- Int64\(73\) \* \(\- Int64\(24\)\) \+ Int64\(98\) \- Int64\(\-59\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( COALESCE ( - CASE 20 WHEN - + 60 * - NULLIF ( - 72, 19 + + AVG ( - + 7 ) ) * + COUNT ( * ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + + 49 THEN - - COUNT ( * ) WHEN - SUM ( + - 57 ) * + 57 + + 21 + + 31 THEN + 36 END, + MIN ( ALL 31 ) + - - COUNT ( * ) * 19 ), + CAST ( - - 43 AS INTEGER ) ) * + - 53 + - 4 * COUNT ( * ) + ( MAX ( ALL + 53 ) ) - + 73 * + - ( + 24 ) + 98 - - 59 + + ( - 95 ) AS col1, 48 AS col1 query I rowsort label-1014 @@ -8585,7 +8585,7 @@ SELECT ALL + 73 * + - ( + CAST ( + - 57 AS INTEGER ) ) - - 65 * 78 + + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- CAST\(Int64\(20\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- CAST\(Int64\(20\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 - + CAST ( 20 AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col0 query I rowsort label-1629 @@ -8821,7 +8821,7 @@ SELECT + 16 + - NULLIF ( 60, + + 38 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(64\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(64\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 63 col1, 64 * - ( CAST ( NULL AS INTEGER ) ) col1 query I rowsort @@ -12309,7 +12309,7 @@ SELECT CAST ( + 35 AS INTEGER ) * 59 * + - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-43\) \+ \(\- CAST\(Int64\(\-54\) AS Int32\)\) \+ Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) AS col2" at position 0 and "\(\- Int64\(55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-43\) \+ \(\- CAST\(Int64\(\-54\) AS Int64\)\) \+ Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) AS col2" at position 0 and "\(\- Int64\(55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 + - 43 + - CAST ( + - 54 AS INTEGER ) + + 49 + + COUNT ( * ) * + 37 col2, - ( 55 ) AS col2 query I rowsort @@ -12433,7 +12433,7 @@ SELECT DISTINCT + 96 * - - 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4014 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \* Int64\(67\) \+ CAST\(Int64\(\-89\) AS Int32\) \- \(\- Int64\(\-51\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \* Int64\(67\) \+ CAST\(Int64\(\-89\) AS Int64\) \- \(\- Int64\(\-51\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 62 * 67 + + CAST ( - 89 AS INTEGER ) - - - 51 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -12925,7 +12925,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(\-55\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(\-55\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 AS col2, - 55 * CAST ( NULL AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: @@ -12953,7 +12953,7 @@ SELECT - 87 - + 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "sum\(DISTINCT Int64\(22\)\) \+ Int64\(75\) \* \(\- CAST\(Int64\(4\) AS Int32\)\) \+ Int64\(29\) \* Int64\(69\) / Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "sum\(DISTINCT Int64\(22\)\) \+ Int64\(75\) \* \(\- CAST\(Int64\(4\) AS Int64\)\) \+ Int64\(29\) \* Int64\(69\) / Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col0, + SUM ( DISTINCT 22 ) + + 75 * - + ( CAST ( 4 AS INTEGER ) ) + + 29 * 69 / - 10 col0 query I rowsort label-2462 @@ -13721,7 +13721,7 @@ SELECT 57 / + + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1652 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(\-88\) WHEN CAST\(Int64\(0\) AS Int32\) \* \(\- Int64\(64\)\) THEN Int64\(0\) END\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(28\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(\-88\) WHEN CAST\(Int64\(0\) AS Int64\) \* \(\- Int64\(64\)\) THEN Int64\(0\) END\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(28\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 28 ) * + + ( COUNT ( * ) ) + - CASE - 88 WHEN + ( CAST ( + 0 AS INTEGER ) ) * - ( 64 ) THEN 0 END + ( + 86 ) AS col0, 28 * 59 AS col0 query I rowsort @@ -14228,7 +14228,7 @@ SELECT COALESCE ( + + 52, - 10 ) + - COALESCE ( 1, - - 24 * - 18 ) * + 38 * + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "nullif\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(21\) \+ CAST\(NULL AS Int32\)\)\), Int64\(1\)\) \+ \(\- Int64\(71\)\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "nullif\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(21\) \+ CAST\(NULL AS Int64\)\)\), Int64\(1\)\) \+ \(\- Int64\(71\)\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 99 AS col0, NULLIF ( + ( - COALESCE ( + COUNT ( * ), 21 + + + CAST ( NULL AS INTEGER ) ) ), + + 1 ) + - + 71 + + + 50 AS col0 query II rowsort @@ -14887,7 +14887,7 @@ SELECT + SUM ( 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2, - 98 AS col2 query I rowsort label-2830 @@ -15864,7 +15864,7 @@ SELECT DISTINCT + COUNT ( * ) * + + ( 45 ) * + 1 - - COUNT ( * ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \- Int64\(6\) AS col0" at position 0 and "Int64\(\-7\) \* Int64\(37\) \+ coalesce\(Int64\(1\), Int64\(\-6\) \* nullif\(Int64\(54\), \(\- CAST\(Int64\(95\) AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \- Int64\(6\) AS col0" at position 0 and "Int64\(\-7\) \* Int64\(37\) \+ coalesce\(Int64\(1\), Int64\(\-6\) \* nullif\(Int64\(54\), \(\- CAST\(Int64\(95\) AS Int64\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 52 - + 6 AS col0, - 7 * + 37 + COALESCE ( 1, - 6 * NULLIF ( 54, - CAST ( 95 AS INTEGER ) ) ) AS col0 query I rowsort label-3021 @@ -18546,7 +18546,7 @@ SELECT + 73 / + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* CAST\(NULL AS Int32\) / Int64\(\-63\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* CAST\(NULL AS Int64\) / Int64\(\-63\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 * + CAST ( NULL AS INTEGER ) / - 63 AS col0, 43 AS col0 query I rowsort @@ -19113,7 +19113,7 @@ SELECT ALL 51 + - 88 - + 88 * + 0 * 70 * 69 # Datafusion - Expected - 1372 # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col1" at position 1 and "Int64\(2\) \+ Int64\(\-89\) \* Int64\(47\) \* \(\- \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- \(\- CASE Int64\(\-14\) WHEN Int64\(\-58\) THEN NULL ELSE Int64\(27\) END\)\)\)\)\) \* Int64\(76\) \* Int64\(\-42\) \- \(\- Int64\(\-23\)\) \- Int64\(\-29\) \* \(\- CASE \(\- Int64\(19\)\) WHEN Int64\(90\) \- Int64\(55\) THEN CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-7\) \- Int64\(28\)\) WHEN Int64\(\-66\) \+ Int64\(72\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \* Int64\(65\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col1" at position 1 and "Int64\(2\) \+ Int64\(\-89\) \* Int64\(47\) \* \(\- \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- \(\- CASE Int64\(\-14\) WHEN Int64\(\-58\) THEN NULL ELSE Int64\(27\) END\)\)\)\)\) \* Int64\(76\) \* Int64\(\-42\) \- \(\- Int64\(\-23\)\) \- Int64\(\-29\) \* \(\- CASE \(\- Int64\(19\)\) WHEN Int64\(90\) \- Int64\(55\) THEN CAST\(NULL AS Int64\) / count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-7\) \- Int64\(28\)\) WHEN Int64\(\-66\) \+ Int64\(72\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \* Int64\(65\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 * + ( + 14 ) AS col0, ( - + ( + 18 ) ) col1, 2 + - 89 * + 47 * - ( - NULLIF ( - - COUNT ( * ), - - CASE - 14 WHEN - 58 THEN NULL ELSE + 27 END ) ) * + 76 * + - 42 - - - 23 - - 29 * - CASE - + 19 WHEN 90 - 55 THEN CAST ( NULL AS INTEGER ) / COUNT ( * ) - - ( - 7 - 28 ) WHEN - 66 + 72 THEN COUNT ( * ) ELSE NULL END * + 65 AS col1 query I rowsort @@ -19289,7 +19289,7 @@ SELECT ALL + - COUNT ( * ) * - + 46 + + COUNT ( * ) * 92 + - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(\-59\) AS Int32\) AS col1" at position 0 and "Int64\(\-56\) \* CAST\(NULL AS Float64\) \+ Int64\(96\) \+ Int64\(99\) \* Int64\(\-98\) \* Int64\(95\) \* sum\(Int64\(\-1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(\-59\) AS Int64\) AS col1" at position 0 and "Int64\(\-56\) \* CAST\(NULL AS Float64\) \+ Int64\(96\) \+ Int64\(99\) \* Int64\(\-98\) \* Int64\(95\) \* sum\(Int64\(\-1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) / + CAST ( + - 59 AS INTEGER ) AS col1, - 56 * + CAST ( NULL AS FLOAT8 ) + 96 + 99 * + - 98 * 95 * + SUM ( - 1 ) AS col1 query I rowsort @@ -20567,7 +20567,7 @@ SELECT - COUNT ( * ) / + ( - 17 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "CAST\(Int64\(\-68\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "CAST\(Int64\(\-68\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 77 AS col1, + CAST ( - 68 AS INTEGER ) col1 query I rowsort label-3917 @@ -24150,7 +24150,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "\(\- CAST\(Int64\(99\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "\(\- CAST\(Int64\(99\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 51 col2, - CAST ( + ( 99 ) AS INTEGER ) AS col2 query I rowsort label-4601 @@ -24893,7 +24893,7 @@ SELECT + CASE 33 WHEN 10 * 44 THEN + AVG ( - ( - 32 ) ) * + 40 + + 51 * + 67 WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(4\) AS col0" at position 0 and "coalesce\(Int64\(99\), Int64\(\-74\)\) \+ \(\- Int64\(\-89\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(4\) AS col0" at position 0 and "coalesce\(Int64\(99\), Int64\(\-74\)\) \+ \(\- Int64\(\-89\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * + 4 AS col0, + COALESCE ( 99, - 74 ) + - - 89 + + 97 AS col0 query I rowsort @@ -27144,7 +27144,7 @@ SELECT DISTINCT 11 + - ( ( 4 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ count\(Int64\(\-10\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ count\(Int64\(\-10\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 70 + COUNT ( ALL - 10 ) AS col0, CAST ( NULL AS INTEGER ) * + 9 AS col0 query I rowsort label-5169 @@ -28543,7 +28543,7 @@ SELECT DISTINCT - 2 AS col0, COUNT ( * ) + + - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1350 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(27\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(27\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 50 * - + 27 / - - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) * - 72 AS col1 query I rowsort label-5437 @@ -29045,7 +29045,7 @@ SELECT + 35 AS col2, - 11 + + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- CAST\(NULL AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-96\)\) / Int64\(30\) AS col2" at position 0 and "Int64\(16\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- CAST\(NULL AS Int64\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-96\)\) / Int64\(30\) AS col2" at position 0 and "Int64\(16\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 30 - + CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) + - - 96 / + ( + 30 ) AS col2, 16 * 12 col2 query I rowsort @@ -32928,7 +32928,7 @@ SELECT - 55 * ( - COUNT ( * ) ) + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col1" at position 0 and "CASE CASE CASE Int64\(27\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(57\) \- Int64\(33\) \* Int64\(57\) END WHEN Int64\(\-6\) THEN min\(DISTINCT Int64\(35\)\) ELSE Int64\(42\) END WHEN Int64\(48\) / Int64\(59\) THEN Int64\(\-39\) \+ Int64\(\-31\) WHEN Int64\(78\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(8\) \+ Int64\(93\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col1" at position 0 and "CASE CASE CASE Int64\(27\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(57\) \- Int64\(33\) \* Int64\(57\) END WHEN Int64\(\-6\) THEN min\(DISTINCT Int64\(35\)\) ELSE Int64\(42\) END WHEN Int64\(48\) / Int64\(59\) THEN Int64\(\-39\) \+ Int64\(\-31\) WHEN Int64\(78\) THEN \(\- CAST\(NULL AS Int64\)\) \* Int64\(8\) \+ Int64\(93\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 60 AS col1, + CASE + + CASE CASE ( 27 ) WHEN - COUNT ( * ) THEN NULL ELSE 57 - 33 * + 57 END WHEN - 6 THEN + MIN ( DISTINCT + 35 ) ELSE 42 END WHEN + 48 / 59 THEN - 39 + - 31 WHEN 78 THEN - CAST ( NULL AS INTEGER ) * 8 + 93 ELSE 55 END AS col1 query I rowsort @@ -33555,7 +33555,7 @@ SELECT 36 + + 30 * 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(31\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(31\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 31 col1, 74 AS col1 query I rowsort label-6393 @@ -35261,7 +35261,7 @@ SELECT - 41 / ( + 16 ) + + 39 + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(7\)\)\) AS Int32\)\)\) \* \(\- Int64\(\-85\)\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(39\)\) AS col0" at position 0 and "\(\- Int64\(\-42\)\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(7\)\)\) AS Int64\)\)\) \* \(\- Int64\(\-85\)\) \+ CAST\(NULL AS Int64\) \* \(\- Int64\(39\)\) AS col0" at position 0 and "\(\- Int64\(\-42\)\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - CAST ( + - COUNT ( 7 ) AS INTEGER ) * - - 85 + + + CAST ( NULL AS INTEGER ) * - + 39 AS col0, - ( - 42 ) + - 0 AS col0 query I rowsort label-6718 @@ -35850,7 +35850,7 @@ SELECT DISTINCT MIN ( + 80 ), + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \- Int64\(2\) AS col1" at position 0 and "CAST\(Int64\(19\) AS Int32\) / Int64\(\-20\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \- Int64\(2\) AS col1" at position 0 and "CAST\(Int64\(19\) AS Int64\) / Int64\(\-20\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 97 - 2 col1, ( + + CAST ( + 19 AS INTEGER ) ) / - 20 + 18 AS col1 query I rowsort @@ -39560,7 +39560,7 @@ SELECT 42, CAST ( - 99 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \* \(\- CASE nullif\(Int64\(\-19\), Int64\(66\) \+ Int64\(96\)\) WHEN Int64\(\-13\) \* \(\- Int64\(\-42\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-58\)\) WHEN Int64\(77\) THEN \(\- Int64\(\-77\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(32\) \* \(\- CASE \(\- CAST\(Int64\(89\) AS Int32\)\) WHEN Int64\(\-20\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(70\) THEN NULL WHEN Int64\(20\) \- \(\- Int64\(65\)\) \- Int64\(\-54\) THEN Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(97\) / Int64\(36\) \+ nullif\(Int64\(\-61\), nullif\(Int64\(35\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(22\)\) \* Int64\(76\) THEN NULL END\) \* Int64\(90\) \* Int64\(77\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \* \(\- CASE nullif\(Int64\(\-19\), Int64\(66\) \+ Int64\(96\)\) WHEN Int64\(\-13\) \* \(\- Int64\(\-42\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-58\)\) WHEN Int64\(77\) THEN \(\- Int64\(\-77\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(32\) \* \(\- CASE \(\- CAST\(Int64\(89\) AS Int64\)\) WHEN Int64\(\-20\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(70\) THEN NULL WHEN Int64\(20\) \- \(\- Int64\(65\)\) \- Int64\(\-54\) THEN Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(97\) / Int64\(36\) \+ nullif\(Int64\(\-61\), nullif\(Int64\(35\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(22\)\) \* Int64\(76\) THEN NULL END\) \* Int64\(90\) \* Int64\(77\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 53 ) * - CASE NULLIF ( - 19, 66 + + 96 ) WHEN - 13 * - ( + - 42 ) THEN + COUNT ( * ) + - - 58 WHEN 77 THEN - ( - 77 ) WHEN - COUNT ( * ) * 32 * - CASE - CAST ( 89 AS INTEGER ) WHEN - 20 * - + COUNT ( * ) - 70 THEN NULL WHEN + + 20 - - + 65 - - 54 THEN 92 + + COUNT ( * ) END * + + 97 / 36 + NULLIF ( - 61, + NULLIF ( 35, COUNT ( * ) ) + 22 ) * 76 THEN NULL END * 90 * + 77 AS col0, - 62 AS col0 query I rowsort label-7537 @@ -43465,13 +43465,13 @@ SELECT ALL + MAX ( + 18 ) col0, - 81 * 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8961420 # Datafusion - Expected - -4008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \- Int64\(61\) \+ CAST\(Int64\(\-62\) AS Int32\) \* Int64\(\-66\) \* Int64\(30\) \* Int64\(73\) \+ \(\- Int64\(\-80\)\) AS col2" at position 0 and "Int64\(4\) \- \(\- Int64\(59\)\) \* Int64\(\-68\) \+ Int64\(\-17\) / Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \- Int64\(61\) \+ CAST\(Int64\(\-62\) AS Int64\) \* Int64\(\-66\) \* Int64\(30\) \* Int64\(73\) \+ \(\- Int64\(\-80\)\) AS col2" at position 0 and "Int64\(4\) \- \(\- Int64\(59\)\) \* Int64\(\-68\) \+ Int64\(\-17\) / Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 79 - + 61 + CAST ( - 62 AS INTEGER ) * - 66 * + 30 * + 73 + - - 80 AS col2, 4 - - + 59 * - 68 + - 17 / 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-18\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- nullif\(Int64\(\-46\), Int64\(65\)\)\) WHEN Int64\(\-18\) \* Int64\(65\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-71\)\) THEN Int64\(\-99\) WHEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ \(\- coalesce\(Int64\(\-83\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(88\)\)\) / CAST\(NULL AS Int32\) THEN Int64\(72\) \* Int64\(\-35\) ELSE Int64\(\-20\) END \+ Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-18\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- nullif\(Int64\(\-46\), Int64\(65\)\)\) WHEN Int64\(\-18\) \* Int64\(65\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-71\)\) THEN Int64\(\-99\) WHEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \+ \(\- coalesce\(Int64\(\-83\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(88\)\)\) / CAST\(NULL AS Int64\) THEN Int64\(72\) \* Int64\(\-35\) ELSE Int64\(\-20\) END \+ Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( DISTINCT - 18 ) AS col2, - COUNT ( * ) + CASE - NULLIF ( - 46, 65 ) WHEN - 18 * + + 65 / - + COUNT ( * ) + - - 71 THEN + - 99 WHEN + CAST ( COUNT ( * ) AS INTEGER ) + - COALESCE ( - 83, COUNT ( * ) * 88 ) / + CAST ( NULL AS INTEGER ) THEN 72 * - 35 ELSE - 20 END + ( - 66 ) AS col2 query I rowsort label-8282 @@ -45494,7 +45494,7 @@ SELECT - 98 + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-36\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-36\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, - 36 * + + 6 AS col2 query I rowsort label-8664 @@ -48576,7 +48576,7 @@ SELECT + 12 * - 35 * - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(48\)\)\) \+ Int64\(\-21\) \+ Int64\(1\) \* Int64\(19\) \+ \(\- CASE \(\- CAST\(CAST\(NULL AS Float64\) AS Int32\)\) WHEN Int64\(\-68\) / Int64\(\-97\) THEN Int64\(31\) ELSE NULL END\) \- Int64\(\-83\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(48\)\)\) \+ Int64\(\-21\) \+ Int64\(1\) \* Int64\(19\) \+ \(\- CASE \(\- CAST\(CAST\(NULL AS Float64\) AS Int64\)\) WHEN Int64\(\-68\) / Int64\(\-97\) THEN Int64\(31\) ELSE NULL END\) \- Int64\(\-83\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - AVG ( + 48 ) + - 21 + 1 * 19 + + - CASE - CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) WHEN - 68 / - 97 THEN 31 ELSE NULL END - - 83 AS col2, + 87 AS col2 query I rowsort @@ -50898,7 +50898,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 624 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(Int64\(26\) AS Int32\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(Int64\(26\) AS Int64\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 24 * CAST ( 26 AS INTEGER ) col2, + 47 AS col2 query I rowsort label-9691 @@ -51774,7 +51774,7 @@ SELECT DISTINCT - 9 * - 5 * + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(\-10\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE \(\- count\(Int64\(16\)\)\) WHEN Int64\(86\) \* Int64\(\-8\) / Int64\(90\) THEN Int64\(\-43\) \* Int64\(88\) WHEN max\(CAST\(NULL AS Int32\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(2\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(\-10\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE \(\- count\(Int64\(16\)\)\) WHEN Int64\(86\) \* Int64\(\-8\) / Int64\(90\) THEN Int64\(\-43\) \* Int64\(88\) WHEN max\(CAST\(NULL AS Int64\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(2\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 72 + + - 10 + - 83 AS col2, + 18 * - + CASE - COUNT ( + 16 ) WHEN + 86 * + - 8 / + 90 THEN - 43 * 88 WHEN MAX ( CAST ( NULL AS INTEGER ) ) THEN + COUNT ( * ) + 97 * + 2 END AS col2 query I rowsort @@ -52110,7 +52110,7 @@ SELECT 24 + - + 45 col0, 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2660 # Datafusion - Expected - 1056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(\-28\) AS col0" at position 0 and "max\(CAST\(Int64\(16\) AS Int32\)\) \* Int64\(66\) \+ Int64\(\-53\) / Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(\-28\) AS col0" at position 0 and "max\(CAST\(Int64\(16\) AS Int64\)\) \* Int64\(66\) \+ Int64\(\-53\) / Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 95 * - 28 AS col0, MAX ( ALL + CAST ( 16 AS INTEGER ) ) * + + 66 + + - 53 / 57 AS col0 query I rowsort label-9924 diff --git a/data/sqlite/random/expr/slt_good_7.slt b/data/sqlite/random/expr/slt_good_7.slt index d66d788..c5a2f15 100644 --- a/data/sqlite/random/expr/slt_good_7.slt +++ b/data/sqlite/random/expr/slt_good_7.slt @@ -2041,7 +2041,7 @@ SELECT + 7, 47 * COALESCE ( - CASE - 51 WHEN - COALESCE ( + 27, - 39 + + 15 ) TH # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \- CAST\(Int64\(57\) AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \- CAST\(Int64\(57\) AS Int64\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 35 - + CAST ( + ( + 57 ) AS INTEGER ) AS col2, + CAST ( NULL AS FLOAT8 ) AS col2 query I rowsort label-388 @@ -4363,7 +4363,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, - 36 AS col1 query I rowsort @@ -5337,7 +5337,7 @@ SELECT + NULLIF ( 58, + 25 * + 17 ) / COUNT ( * ) + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1569 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(44\) \+ Int64\(38\) \+ Int64\(48\) \* \(\- Int64\(\-31\)\) AS col0" at position 0 and "Int64\(\-80\) \* \(\- Int64\(\-7\)\) \* CAST\(NULL AS Float64\) \* \(\- \(\- nullif\(Int64\(84\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-90\)\) \* Int64\(\-79\) \* Int64\(32\) \+ Int64\(79\) \+ Int64\(89\)\)\)\) \- Int64\(\-42\) \+ Int64\(76\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(44\) \+ Int64\(38\) \+ Int64\(48\) \* \(\- Int64\(\-31\)\) AS col0" at position 0 and "Int64\(\-80\) \* \(\- Int64\(\-7\)\) \* CAST\(NULL AS Float64\) \* \(\- \(\- nullif\(Int64\(84\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-90\)\) \* Int64\(\-79\) \* Int64\(32\) \+ Int64\(79\) \+ Int64\(89\)\)\)\) \- Int64\(\-42\) \+ Int64\(76\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + + 44 + + 38 + + 48 * + ( - - 31 ) col0, - 80 * - ( + - 7 ) * + CAST ( NULL AS FLOAT8 ) * - - NULLIF ( 84, - COUNT ( * ) * - - 90 * - 79 * 32 + 79 + 89 ) - - 42 + 76 + + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -6864,7 +6864,7 @@ SELECT DISTINCT + MIN ( - - 88 ) * + COUNT ( * ) * - NULLIF ( + 21, 79 * - 96 + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(78\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(78\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 34 * 78 * + CAST ( NULL AS INTEGER ) AS col0, 9 col0 query I rowsort label-1303 @@ -12384,7 +12384,7 @@ SELECT DISTINCT - NULLIF ( - - COUNT ( * ), - 89 - + CAST ( + 2 AS INTEGER ) - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(99\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(99\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 col0, CAST ( NULL AS INTEGER ) * + 99 + + 34 AS col0 query I rowsort label-2354 @@ -12456,7 +12456,7 @@ SELECT - MIN ( DISTINCT + 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2564 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-78\) \+ Int64\(10\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-78\) \+ Int64\(10\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 33 * - 78 + + + 10 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col2 query II rowsort label-2368 @@ -13370,7 +13370,7 @@ SELECT 93 AS col2, ( - + 1 ) - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -1376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col1" at position 0 and "\(\- CAST\(min\(Int64\(\-16\)\) AS Int32\)\) \* Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col1" at position 0 and "\(\- CAST\(min\(Int64\(\-16\)\) AS Int64\)\) \* Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 64 AS col1, - CAST ( MIN ( - 16 ) AS INTEGER ) * - 86 AS col1 query I rowsort label-2541 @@ -13900,7 +13900,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(\-67\) AS Int32\) / CAST\(Int64\(97\) AS Int32\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(\-67\) AS Int64\) / CAST\(Int64\(97\) AS Int64\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col0, CAST ( + - 67 AS INTEGER ) / + CAST ( 97 AS INTEGER ) * + + ( 13 ) AS col0 query I rowsort label-2642 @@ -14503,7 +14503,7 @@ SELECT 57 + + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-26\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(max\(Int64\(82\)\), \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-26\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(max\(Int64\(82\)\), \(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 col1, COUNT ( * ) * + - 26 - COUNT ( * ) + - NULLIF ( MAX ( + ( 82 ) ), - CAST ( NULL AS INTEGER ) ) col1 # Datafusion - Types were automatically converted from: @@ -14544,7 +14544,7 @@ SELECT ALL - COUNT ( * ) + + + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- coalesce\(Int64\(\-58\), Int64\(\-78\)\)\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- coalesce\(Int64\(\-58\), Int64\(\-78\)\)\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + CAST ( - ( COALESCE ( + - 58, - 78 ) ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 # Datafusion - Types were automatically converted from: @@ -18767,7 +18767,7 @@ SELECT COUNT ( * ), + 52 / 19 + + + 29 col1 # Datafusion - Expected - -81 # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 1 and "\(\- Int64\(\-3\)\) / Int64\(\-56\) \* Int64\(88\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(74\) \+ Int64\(82\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 1 and "\(\- Int64\(\-3\)\) / Int64\(\-56\) \* Int64\(88\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \+ Int64\(74\) \+ Int64\(82\) \* CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81, ( + 88 ) col1, - - 3 / + - 56 * + 88 + ( CAST ( + COUNT ( * ) AS INTEGER ) + + 74 ) + + 82 * CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -23171,7 +23171,7 @@ SELECT + ( + - 80 ) / + COUNT ( * ) + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(avg\(Int64\(\-13\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "CAST\(avg\(Int64\(\-13\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + CAST ( + AVG ( ALL - 13 ) AS INTEGER ) AS col0 query I rowsort @@ -23507,7 +23507,7 @@ SELECT ALL + 95 / - 10 + - - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 40 AS col2, 4 * + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-4465 @@ -24724,7 +24724,7 @@ SELECT DISTINCT + COUNT ( * ) AS col0, 81 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 5006 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(3\)\)\) \- \(\- \(\- Int64\(76\)\)\) \* \(\- CAST\(Int64\(65\) AS Int32\)\) AS col1" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(3\)\)\) \- \(\- \(\- Int64\(76\)\)\) \* \(\- CAST\(Int64\(65\) AS Int64\)\) AS col1" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ), + 77 + + - 14 + - ( - + 3 ) - - ( - + 76 ) * + - CAST ( + + 65 AS INTEGER ) AS col1, + - ( COUNT ( * ) ) AS col1 query I rowsort @@ -25562,7 +25562,7 @@ SELECT DISTINCT - 32 AS col1, + 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(75\) WHEN Int64\(71\) THEN \(\- Int64\(\-16\)\) WHEN Int64\(32\) / \(\- CAST\(Int64\(47\) AS Int32\)\) \+ Int64\(96\) \+ \(\- Int64\(\-9\)\) \+ Int64\(83\) THEN \(\- count\(Int64\(\-12\)\)\) WHEN CASE Int64\(\-92\) WHEN Int64\(44\) \+ Int64\(76\) \+ \(\- Int64\(53\)\) THEN CAST\(NULL AS Int32\) \+ Int64\(12\) \- Int64\(13\) \+ Int64\(\-23\) / min\(Int64\(32\)\) WHEN Int64\(\-20\) THEN NULL END \- Int64\(\-22\) \+ coalesce\(Int64\(\-37\), Int64\(86\) \+ Int64\(71\) \* \(\- Int64\(\-26\)\)\) \+ Int64\(\-78\) / Int64\(36\) THEN NULL ELSE NULL END \+ Int64\(\-44\) \* Int64\(1\) / Int64\(\-28\) \+ Int64\(\-73\) AS col2" at position 0 and "sum\(Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(75\) WHEN Int64\(71\) THEN \(\- Int64\(\-16\)\) WHEN Int64\(32\) / \(\- CAST\(Int64\(47\) AS Int64\)\) \+ Int64\(96\) \+ \(\- Int64\(\-9\)\) \+ Int64\(83\) THEN \(\- count\(Int64\(\-12\)\)\) WHEN CASE Int64\(\-92\) WHEN Int64\(44\) \+ Int64\(76\) \+ \(\- Int64\(53\)\) THEN CAST\(NULL AS Int64\) \+ Int64\(12\) \- Int64\(13\) \+ Int64\(\-23\) / min\(Int64\(32\)\) WHEN Int64\(\-20\) THEN NULL END \- Int64\(\-22\) \+ coalesce\(Int64\(\-37\), Int64\(86\) \+ Int64\(71\) \* \(\- Int64\(\-26\)\)\) \+ Int64\(\-78\) / Int64\(36\) THEN NULL ELSE NULL END \+ Int64\(\-44\) \* Int64\(1\) / Int64\(\-28\) \+ Int64\(\-73\) AS col2" at position 0 and "sum\(Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + 75 WHEN ( 71 ) THEN - - 16 WHEN 32 / - + CAST ( 47 AS INTEGER ) + 96 + - - 9 + + 83 THEN - COUNT ( ALL - 12 ) WHEN CASE - 92 WHEN + 44 + + 76 + - + 53 THEN + CAST ( NULL AS INTEGER ) + 12 - + + 13 + - 23 / MIN ( 32 ) WHEN - 20 THEN NULL END - - 22 + COALESCE ( - 37, + + 86 + + 71 * - - 26 ) + + - 78 / 36 THEN NULL ELSE NULL END + - 44 * 1 / - 28 + - 73 col2, + SUM ( + 34 ) AS col2 # Datafusion - Types were automatically converted from: @@ -25650,7 +25650,7 @@ SELECT + + NULLIF ( 5, + CAST ( + 88 AS INTEGER ) ), + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(43\) \- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(41\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(43\) \- nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(41\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 AS col2, 43 - NULLIF ( + - CAST ( NULL AS INTEGER ), 41 * - - 94 + + - 40 ) AS col2 query I rowsort @@ -27169,7 +27169,7 @@ SELECT ALL 90, - 39 - - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-21\)\) AS col0" at position 0 and "Int64\(\-61\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(\-21\)\) AS col0" at position 0 and "Int64\(\-61\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) + - - 21 col0, ( - 61 ) + COUNT ( * ) AS col0 query I rowsort label-5165 @@ -30553,7 +30553,7 @@ SELECT 33 * - - 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "CAST\(Int64\(\-4\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "CAST\(Int64\(\-4\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 col2, CAST ( - 4 AS INTEGER ) AS col2 query I rowsort @@ -30600,7 +30600,7 @@ SELECT NULLIF ( 76, 86 ) * - + COUNT ( * ) * + 43 + + COUNT ( * ) / + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 AS col1, CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-5818 @@ -31537,7 +31537,7 @@ SELECT ALL + ( - + SUM ( + 95 ) ), COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57015 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(37\) \- Int64\(\-54\) \* CAST\(Int64\(\-25\) AS Int32\) \* max\(Int64\(41\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(37\) \- Int64\(\-54\) \* CAST\(Int64\(\-25\) AS Int64\) \* max\(Int64\(41\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 45 * + + 37 - - 54 * + CAST ( + - 25 AS INTEGER ) * + MAX ( ALL + 41 ) AS col1, 26 col1 query I rowsort label-5991 @@ -32977,7 +32977,7 @@ SELECT + COUNT ( * ) AS col0, 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4067 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int32\)\) \* Int64\(\-83\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int64\)\) \* Int64\(\-83\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( - 49 AS INTEGER ) * - 83 AS col2, - COUNT ( * ) AS col2 # Datafusion - Types were automatically converted from: @@ -37893,7 +37893,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(5\) / Int64\(\-63\) \* \(\- CAST\(Int64\(97\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(5\) / Int64\(\-63\) \* \(\- CAST\(Int64\(97\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) + - 11 AS col0, ( 5 ) / - 63 * - CAST ( + + 97 AS INTEGER ) AS col0 query II rowsort @@ -37905,7 +37905,7 @@ SELECT 37 + 62 AS col1, - 23 * - - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(74\) \+ \(\- Int64\(99\)\) \+ \(\- sum\(Int64\(99\)\)\) \+ Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(74\) \+ \(\- Int64\(99\)\) \+ \(\- sum\(Int64\(99\)\)\) \+ Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col2, + 74 + - ( 99 ) + - SUM ( + 99 ) + ( - 46 ) AS col2 query I rowsort label-7195 @@ -40209,7 +40209,7 @@ SELECT ALL - MAX ( 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ \(\- Int64\(\-27\)\) AS col1" at position 0 and "Int64\(\-83\) \+ CASE \(\- CASE Int64\(19\) WHEN \(\- Int64\(\-76\)\) \* \(\- CAST\(Int64\(69\) AS Int32\)\) THEN CASE Int64\(79\) WHEN \(\- Int64\(\-91\)\) THEN Int64\(\-50\) \* Int64\(\-31\) \+ \(\- Int64\(\-60\)\) \- Int64\(80\) / Int64\(62\) ELSE NULL END ELSE Int64\(\-17\) \+ Int64\(17\) END\) WHEN Int64\(48\) THEN NULL WHEN Int64\(\-37\) \+ Int64\(11\) THEN Int64\(\-34\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ \(\- Int64\(\-27\)\) AS col1" at position 0 and "Int64\(\-83\) \+ CASE \(\- CASE Int64\(19\) WHEN \(\- Int64\(\-76\)\) \* \(\- CAST\(Int64\(69\) AS Int64\)\) THEN CASE Int64\(79\) WHEN \(\- Int64\(\-91\)\) THEN Int64\(\-50\) \* Int64\(\-31\) \+ \(\- Int64\(\-60\)\) \- Int64\(80\) / Int64\(62\) ELSE NULL END ELSE Int64\(\-17\) \+ Int64\(17\) END\) WHEN Int64\(48\) THEN NULL WHEN Int64\(\-37\) \+ Int64\(11\) THEN Int64\(\-34\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 8 + - - 27 AS col1, - 83 + + CASE - CASE + 19 WHEN - - 76 * + ( - CAST ( + 69 AS INTEGER ) ) THEN + CASE 79 WHEN - ( - 91 ) THEN - 50 * - 31 + - - 60 - + + 80 / 62 ELSE NULL END ELSE + - 17 + + 17 END WHEN + 48 THEN NULL WHEN - 37 + + ( 11 ) THEN - 34 END AS col1 query I rowsort label-7634 @@ -45255,7 +45255,7 @@ SELECT ALL + 24 + - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 76 AS col1 query I rowsort @@ -48613,7 +48613,7 @@ SELECT ALL + - CAST ( + 99 AS INTEGER ) + + 6 * + 31 AS col0, 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-50\) AS col1" at position 0 and "Int64\(41\) \* \(\- Int64\(36\)\) \+ CAST\(NULL AS Int32\) \* Int64\(54\) \* Int64\(\-24\) \+ Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* Int64\(\-22\) \* Int64\(\-88\) \- Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-50\) AS col1" at position 0 and "Int64\(41\) \* \(\- Int64\(36\)\) \+ CAST\(NULL AS Int64\) \* Int64\(54\) \* Int64\(\-24\) \+ Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* Int64\(\-22\) \* Int64\(\-88\) \- Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 76 + - 50 AS col1, 41 * - + 36 + CAST ( NULL AS INTEGER ) * + ( 54 ) * + - 24 + - 40 + + + COUNT ( * ) * 29 * ( - 22 ) * - 88 - + - 72 col1 query I rowsort label-9239 @@ -48999,7 +48999,7 @@ SELECT + 88, 55 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 AS col0, CAST ( NULL AS INTEGER ) * - - 38 AS col0 query I rowsort label-9312 @@ -49957,7 +49957,7 @@ SELECT 72 * - 40 * 43 AS col0 # Datafusion - Expected - 1001 # Datafusion - Expected - 6264 # Datafusion - Expected - 2362 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- nullif\(Int64\(\-77\), CAST\(\(\- Int64\(\-81\)\) AS Int32\) \- avg\(Int64\(47\)\) \- Int64\(93\)\)\) AS col2" at position 0 and "Int64\(72\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- nullif\(Int64\(\-77\), CAST\(\(\- Int64\(\-81\)\) AS Int64\) \- avg\(Int64\(47\)\) \- Int64\(93\)\)\) AS col2" at position 0 and "Int64\(72\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 13 * - ( + NULLIF ( - 77, CAST ( - - 81 AS INTEGER ) - + AVG ( + 47 ) - + 93 ) ) AS col2, 72 * 87 AS col2, - 33 * - + ( 73 ) - 47 col0 query II rowsort label-9494 @@ -51264,7 +51264,7 @@ SELECT ALL + 97 - + 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8170 # Datafusion - Expected - 191 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(92\) \+ Int64\(65\) \+ coalesce\(\(\- Int64\(\-17\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(\(\- Int64\(15\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(92\) \+ Int64\(65\) \+ coalesce\(\(\- Int64\(\-17\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(\(\- Int64\(15\)\) AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 86 * + - 95 AS col1, + 92 + 65 + COALESCE ( - ( - 17 ), + COUNT ( * ), 98 + + COUNT ( * ) / + CAST ( - ( + 15 ) AS INTEGER ) + - COUNT ( * ) ) * 2 col1 query II rowsort label-9740 diff --git a/data/sqlite/random/expr/slt_good_70.slt b/data/sqlite/random/expr/slt_good_70.slt index 887e866..e27ac99 100644 --- a/data/sqlite/random/expr/slt_good_70.slt +++ b/data/sqlite/random/expr/slt_good_70.slt @@ -60,7 +60,7 @@ SELECT + COALESCE ( + - 65, - COUNT ( * ) + + COALESCE ( + + 88, + + 67 ) * - NU # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(52\) / \(\- Int64\(13\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(52\) / \(\- Int64\(13\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * 52 / - + ( 13 ) AS col1, COUNT ( * ) AS col1 query I rowsort @@ -1385,7 +1385,7 @@ SELECT + NULLIF ( + + 0, COALESCE ( + 75, COUNT ( * ) ) ) / - MIN ( DISTINCT - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- coalesce\(Int64\(\-65\), Int64\(\-40\) \+ Int64\(29\) \+ Int64\(\-25\) \+ Int64\(\-71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(78\) / Int64\(\-51\)\)\) \* Int64\(27\) \+ \(\- Int64\(\-72\)\)\) / CASE CASE \(\- Int64\(68\)\) WHEN Int64\(58\) \+ Int64\(57\) / Int64\(55\) / Int64\(36\) THEN CAST\(Int64\(34\) AS Int32\) WHEN \(\- coalesce\(Int64\(29\), Int64\(60\) \+ Int64\(66\)\)\) THEN NULL ELSE \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \* Int64\(\-56\) END WHEN avg\(Int64\(\-3\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(9\) THEN Int64\(61\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- coalesce\(Int64\(\-65\), Int64\(\-40\) \+ Int64\(29\) \+ Int64\(\-25\) \+ Int64\(\-71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(78\) / Int64\(\-51\)\)\) \* Int64\(27\) \+ \(\- Int64\(\-72\)\)\) / CASE CASE \(\- Int64\(68\)\) WHEN Int64\(58\) \+ Int64\(57\) / Int64\(55\) / Int64\(36\) THEN CAST\(Int64\(34\) AS Int64\) WHEN \(\- coalesce\(Int64\(29\), Int64\(60\) \+ Int64\(66\)\)\) THEN NULL ELSE \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) \* Int64\(\-56\) END WHEN avg\(Int64\(\-3\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(9\) THEN Int64\(61\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 AS col0, COALESCE ( - + COUNT ( * ), - COALESCE ( - 65, - 40 + 29 + + - 25 + - 71 * + - COUNT ( * ) / + 78 / - 51 ) * 27 + - - 72 ) / CASE + CASE - + 68 WHEN 58 + ( 57 ) / + 55 / 36 THEN + CAST ( 34 AS INTEGER ) WHEN - COALESCE ( 29, 60 + + 66 ) THEN NULL ELSE - CAST ( COUNT ( * ) AS INTEGER ) * - 56 END WHEN ( AVG ( - 3 ) ) THEN - COUNT ( * ) WHEN + 9 THEN 61 END AS col0 query II rowsort label-258 @@ -4307,7 +4307,7 @@ SELECT ALL 15 col1, 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(27\) / Int64\(\-66\) AS col0" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(\-96\)\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-87\) \* \(\- Int64\(52\)\) \* Int64\(57\) \+ \(\- min\(Int64\(\-9\)\)\) THEN Int64\(81\) WHEN Int64\(68\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END / Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(27\) / Int64\(\-66\) AS col0" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(\-96\)\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-87\) \* \(\- Int64\(52\)\) \* Int64\(57\) \+ \(\- min\(Int64\(\-9\)\)\) THEN Int64\(81\) WHEN Int64\(68\) THEN NULL ELSE \(\- CAST\(NULL AS Int64\)\) END / Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 + + 27 / - 66 col0, - 86 + - - 96 + + CASE - COUNT ( * ) WHEN - 87 * - + 52 * + 57 + + - MIN ( + - 9 ) THEN 81 WHEN 68 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END / - 94 AS col0 query I rowsort @@ -5520,7 +5520,7 @@ SELECT ALL - 44, + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-1\)\) / \(\- min\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-65\) \- \(\- CASE Int64\(17\) WHEN \(\- Int64\(\-54\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(43\), Int64\(\-92\) \* Int64\(\-46\) / Int64\(10\)\)\) THEN NULL ELSE Int64\(\-1\) \+ \(\- count\(DISTINCT Int64\(\-35\)\)\) \+ Int64\(25\) \* \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-89\) END\) / CAST\(NULL AS Int32\) \+ Int64\(50\) \+ \(\- \(\- Int64\(77\)\)\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-1\)\) / \(\- min\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-65\) \- \(\- CASE Int64\(17\) WHEN \(\- Int64\(\-54\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(43\), Int64\(\-92\) \* Int64\(\-46\) / Int64\(10\)\)\) THEN NULL ELSE Int64\(\-1\) \+ \(\- count\(DISTINCT Int64\(\-35\)\)\) \+ Int64\(25\) \* \(\- CAST\(Int64\(\-47\) AS Int64\)\) \+ Int64\(\-89\) END\) / CAST\(NULL AS Int64\) \+ Int64\(50\) \+ \(\- \(\- Int64\(77\)\)\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 40 + - COUNT ( * ) - - - 1 / - MIN ( DISTINCT - + ( + + 2 ) ) * - 65 - - CASE 17 WHEN - - 54 + COUNT ( * ) * - COALESCE ( + 43, - 92 * + - 46 / + 10 ) THEN NULL ELSE - 1 + - COUNT ( DISTINCT - 35 ) + + 25 * - CAST ( + - 47 AS INTEGER ) + - 89 END / + CAST ( NULL AS INTEGER ) + 50 + - ( - + 77 ) + 40 AS col2, 63 + - 45 col2 query I rowsort @@ -8700,7 +8700,7 @@ SELECT - 18 * - 3 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 92 + + - ( - CAST ( NULL AS INTEGER ) ) col1, - 89 AS col1 query II rowsort label-1650 @@ -10315,7 +10315,7 @@ SELECT + MIN ( DISTINCT + CAST ( - 72 AS INTEGER ) ) * + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(80\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(80\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 80 * + 5 AS col1 query I rowsort @@ -11320,7 +11320,7 @@ SELECT 75 + - CAST ( - 49 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -103428 # Datafusion - Expected - 520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(52\) AS Int32\) \* Int64\(\-51\) \* Int64\(39\) AS col0" at position 0 and "Int64\(20\) \* sum\(Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(52\) AS Int64\) \* Int64\(\-51\) \* Int64\(39\) AS col0" at position 0 and "Int64\(20\) \* sum\(Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 52 AS INTEGER ) * - 51 * 39 AS col0, 20 * ( SUM ( ALL 26 ) ) AS col0 query I rowsort label-2148 @@ -20402,7 +20402,7 @@ SELECT 14 * + ( - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2223 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* CAST\(Int64\(\-57\) AS Int32\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* CAST\(Int64\(\-57\) AS Int64\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 39 * + CAST ( - 57 AS INTEGER ) AS col0, + 34 AS col0 query I rowsort @@ -25163,7 +25163,7 @@ SELECT - ( - COUNT ( 92 ) ) / 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(32\) AS col1" at position 0 and "nullif\(\(\- CASE \(\- Int64\(\-78\)\) WHEN CAST\(\(\- Int64\(\-88\)\) AS Int32\) \* Int64\(64\) THEN NULL ELSE Int64\(\-20\) END\), Int64\(\-75\) \* nullif\(Int64\(32\), coalesce\(Int64\(55\), Int64\(\-87\) \* Int64\(53\), Int64\(\-10\)\) \+ Int64\(49\)\) \+ Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(32\) AS col1" at position 0 and "nullif\(\(\- CASE \(\- Int64\(\-78\)\) WHEN CAST\(\(\- Int64\(\-88\)\) AS Int64\) \* Int64\(64\) THEN NULL ELSE Int64\(\-20\) END\), Int64\(\-75\) \* nullif\(Int64\(32\), coalesce\(Int64\(55\), Int64\(\-87\) \* Int64\(53\), Int64\(\-10\)\) \+ Int64\(49\)\) \+ Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 60 + + + 32 AS col1, + NULLIF ( - CASE - - 78 WHEN + CAST ( - - 88 AS INTEGER ) * 64 THEN NULL ELSE - 20 END, - 75 * NULLIF ( 32, + COALESCE ( 55, - 87 * + 53, - 10 ) + 49 ) + + 14 ) AS col1 query II rowsort @@ -26158,7 +26158,7 @@ SELECT DISTINCT + 83 * - 89 * 32 AS col2, - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + - 22 ) AS col0, - CAST ( NULL AS INTEGER ) + + 42 AS col0 query II rowsort label-4971 @@ -28468,7 +28468,7 @@ SELECT - - NULLIF ( 71, + 48 / - 5 ) + + - 22 + + COUNT ( * ) AS col1, - 90 * ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -3825 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ CAST\(Int64\(15\) AS Int32\) \- Int64\(94\) \* Int64\(40\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) \* \(\- count\(DISTINCT Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ CAST\(Int64\(15\) AS Int64\) \- Int64\(94\) \* Int64\(40\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) \* \(\- count\(DISTINCT Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 80 + + CAST ( ( 15 ) AS INTEGER ) - + 94 * 40 col2, COUNT ( * ) * 23 * - COUNT ( DISTINCT + 27 ) AS col2 query I rowsort label-5412 @@ -30235,7 +30235,7 @@ SELECT - 45 * 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) / \(\- Int64\(\-43\)\) AS col1" at position 0 and "CAST\(Int64\(3\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) / \(\- Int64\(\-43\)\) AS col1" at position 0 and "CAST\(Int64\(3\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 66 / - - 43 col1, CAST ( + 3 AS INTEGER ) AS col1 query I rowsort label-5750 @@ -32306,7 +32306,7 @@ SELECT DISTINCT 34 * - 49 * ( + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) - + - COUNT ( * ) + + ( 58 ) AS col2 query I rowsort @@ -37025,7 +37025,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "CAST\(Int64\(\-78\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "CAST\(Int64\(\-78\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 61 AS col2, CAST ( + - 78 AS INTEGER ) AS col2 query I rowsort @@ -37395,7 +37395,7 @@ SELECT DISTINCT + ( + CAST ( - - 64 AS INTEGER ) ) col0 # Datafusion - Expected - -2570 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-37\)\) \* \(\- max\(Int64\(\-67\)\)\) \+ Int64\(\-91\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-37\)\) \* \(\- max\(Int64\(\-67\)\)\) \+ Int64\(\-91\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( - 37 ) * - MAX ( ALL - 67 ) + - 91 col2, - ( + CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) / - COUNT ( * ) AS col0 query I rowsort @@ -38463,7 +38463,7 @@ SELECT + 45 + + COUNT ( * ) AS col1, CAST ( + 64 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 84 AS col2 query I rowsort @@ -39722,7 +39722,7 @@ SELECT ALL + 59 * - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "coalesce\(Int64\(\-89\), CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "coalesce\(Int64\(\-89\), CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 42 AS col2, COALESCE ( - 89, ( CAST ( NULL AS INTEGER ) ) ) AS col2 query I rowsort label-7560 @@ -40393,7 +40393,7 @@ SELECT - - MAX ( DISTINCT - 53 ) / 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(\(\- Int64\(71\)\) AS Int32\) \* Int64\(60\) \+ \(\- avg\(\(\- CASE Int64\(9\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(\-89\) \+ Int64\(\-48\) ELSE NULL END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(\(\- Int64\(71\)\) AS Int64\) \* Int64\(60\) \+ \(\- avg\(\(\- CASE Int64\(9\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(\-89\) \+ Int64\(\-48\) ELSE NULL END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 AS col2, + CAST ( - ( + 71 ) AS INTEGER ) * + 60 + - AVG ( ALL - CASE + 9 WHEN - CAST ( NULL AS INTEGER ) THEN - 89 + - 48 ELSE NULL END ) AS col2 query I rowsort label-7689 @@ -43367,7 +43367,7 @@ SELECT ALL - 94 * 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(\(\- \(\- Int64\(16\)\)\) AS Int32\)\) / Int64\(\-64\) AS col1" at position 0 and "Int64\(59\) / \(\- Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(\(\- \(\- Int64\(16\)\)\) AS Int64\)\) / Int64\(\-64\) AS col1" at position 0 and "Int64\(59\) / \(\- Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL + CAST ( - - ( 16 ) AS INTEGER ) ) / + - 64 AS col1, 59 / - ( + 52 ) col1 query I rowsort label-8260 @@ -43650,7 +43650,7 @@ SELECT 41 AS col1, 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - -129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(75\) \+ Int64\(42\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-20\) \* Int64\(\-99\)\) \* \(\- Int64\(\-3\)\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ Int64\(75\) \+ Int64\(42\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-20\) \* Int64\(\-99\)\) \* \(\- Int64\(\-3\)\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + 75 + + 42 col1, COALESCE ( - - COUNT ( * ), - 20 * - 99 ) * - - 3 * - 43 AS col1 query I rowsort label-8312 @@ -45051,7 +45051,7 @@ SELECT - ( + 75 ) * - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) 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\. SELECT - 90 AS col0, + CAST ( NULL AS INTEGER ) col0 query I rowsort label-8577 @@ -46488,7 +46488,7 @@ SELECT SUM ( NULLIF ( + + 19, + 63 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(66\) \+ Int64\(77\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE \(\- CAST\(\(\- max\(Int64\(\-33\)\)\) AS Int32\)\) WHEN \(\- \(\- min\(Int64\(19\)\)\)\) THEN NULL WHEN Int64\(25\) THEN Int64\(50\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(66\) \+ Int64\(77\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE \(\- CAST\(\(\- max\(Int64\(\-33\)\)\) AS Int64\)\) WHEN \(\- \(\- min\(Int64\(19\)\)\)\) THEN NULL WHEN Int64\(25\) THEN Int64\(50\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 53 / + 66 + 77 AS col1, - COUNT ( * ) * - + CASE - + CAST ( - MAX ( + - 33 ) AS INTEGER ) WHEN - - MIN ( + 19 ) THEN NULL WHEN + 25 THEN + 50 ELSE NULL END col1 query I rowsort @@ -49164,7 +49164,7 @@ SELECT 47 + - - 71 col1, - 95 + - SUM ( + 33 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3441 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(37\) AS Int32\) \* Int64\(\-93\) AS col1" at position 0 and "max\(\(\- Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(37\) AS Int64\) \* Int64\(\-93\) AS col1" at position 0 and "max\(\(\- Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 37 AS INTEGER ) * - 93 AS col1, MAX ( - + 15 ) AS col1 query I rowsort label-9361 diff --git a/data/sqlite/random/expr/slt_good_71.slt b/data/sqlite/random/expr/slt_good_71.slt index d556bec..ce54568 100644 --- a/data/sqlite/random/expr/slt_good_71.slt +++ b/data/sqlite/random/expr/slt_good_71.slt @@ -8091,7 +8091,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-32\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-32\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 32 AS INTEGER ) col1, COUNT ( * ) + + 15 AS col1 query I rowsort label-1537 @@ -8785,7 +8785,7 @@ SELECT - + NULLIF ( + 53, + + 24 + - 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, + ( - - 75 ) AS col1 query I rowsort label-1670 @@ -9381,7 +9381,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- Int64\(1\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(15\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- Int64\(1\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(15\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 * - ( + 1 ) * - CAST ( NULL AS INTEGER ) + + 15 AS col1, + 67 AS col1 query I rowsort label-1785 @@ -13524,7 +13524,7 @@ SELECT DISTINCT - 87 + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(90\) AS col2" at position 0 and "\(\- count\(DISTINCT Int64\(71\)\)\) \* CAST\(\(\- Int64\(28\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(90\) AS col2" at position 0 and "\(\- count\(DISTINCT Int64\(71\)\)\) \* CAST\(\(\- Int64\(28\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 / + 90 AS col2, - COUNT ( DISTINCT 71 ) * + CAST ( - + 28 AS INTEGER ) AS col2 query I rowsort @@ -16864,7 +16864,7 @@ SELECT ALL + 7 + - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 62 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -18950,7 +18950,7 @@ SELECT ALL 30 * - - 3 * + - 68 / - COUNT ( ALL 96 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ \(\- Int64\(\-32\)\) AS col0" at position 0 and "Int64\(22\) / \(\- sum\(DISTINCT CAST\(Int64\(83\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ \(\- Int64\(\-32\)\) AS col0" at position 0 and "Int64\(22\) / \(\- sum\(DISTINCT CAST\(Int64\(83\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 41 + + ( - - 32 ) AS col0, 22 / - + SUM ( DISTINCT + CAST ( + ( + 83 ) AS INTEGER ) ) AS col0 query III rowsort label-3614 @@ -20887,7 +20887,7 @@ SELECT DISTINCT - 89 + - - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 34 + CAST ( NULL AS INTEGER ) AS col0, 68 AS col0 query I rowsort @@ -22391,7 +22391,7 @@ SELECT 50, 44 + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) \+ Int64\(32\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int64\) \+ Int64\(32\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 32 AS col2, 83 col2 query I rowsort label-4271 @@ -24224,7 +24224,7 @@ SELECT DISTINCT + 8 * + 52 * - 16 * 55 AS col0, - COALESCE ( - + 67, - 44 ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(92\), nullif\(CAST\(NULL AS Int32\), Int64\(56\) \* Int64\(\-78\)\)\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(92\), nullif\(CAST\(NULL AS Int64\), Int64\(56\) \* Int64\(\-78\)\)\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( + 92, + NULLIF ( CAST ( NULL AS INTEGER ), + 56 * - 78 ) ) AS col2, + 77 AS col2 query I rowsort label-4627 @@ -24391,7 +24391,7 @@ SELECT - CAST ( + + AVG ( - 38 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-11\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-11\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) - - 11 AS col1, CAST ( NULL AS INTEGER ) / - + 19 AS col1 query I rowsort label-4659 @@ -24921,7 +24921,7 @@ SELECT - 28 + - 82 + - COUNT ( - 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46410 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ Int64\(\-69\) \* Int64\(42\) \* CAST\(\(\- Int64\(\-16\)\) AS Int32\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ Int64\(\-69\) \* Int64\(42\) \* CAST\(\(\- Int64\(\-16\)\) AS Int64\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 42 + - 69 * + + 42 * CAST ( - - 16 AS INTEGER ) AS col1, 5 AS col1 query I rowsort label-4760 @@ -25356,7 +25356,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1070880 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* Int64\(\-97\) \* \(\- CAST\(coalesce\(Int64\(30\), Int64\(87\)\) AS Int32\)\) \* Int64\(4\) AS col0" at position 0 and "Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* Int64\(\-97\) \* \(\- CAST\(coalesce\(Int64\(30\), Int64\(87\)\) AS Int64\)\) \* Int64\(4\) AS col0" at position 0 and "Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 * - 97 * - CAST ( + ( COALESCE ( 30, + 87 ) ) AS INTEGER ) * + 4 AS col0, - 24 AS col0 query I rowsort label-4844 @@ -26252,7 +26252,7 @@ SELECT DISTINCT 60 * - 93 + + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54659 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(\(\- Int64\(23\)\) AS Int32\) \* \(\- Int64\(25\)\) \* Int64\(95\) \+ nullif\(Int64\(64\), Int64\(12\)\) \- \(\- Int64\(\-16\)\) \- Int64\(83\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(96\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(\(\- Int64\(23\)\) AS Int64\) \* \(\- Int64\(25\)\) \* Int64\(95\) \+ nullif\(Int64\(64\), Int64\(12\)\) \- \(\- Int64\(\-16\)\) \- Int64\(83\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(96\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) - + CAST ( + - ( + 23 ) AS INTEGER ) * - + 25 * + 95 + + NULLIF ( + 64, 12 ) - + ( + - ( - 16 ) ) - + 83 / ( COUNT ( * ) ) AS col0, 96 * COUNT ( * ) AS col0 query I rowsort @@ -27553,7 +27553,7 @@ SELECT DISTINCT - - ( COUNT ( * ) ) + - 40 + - + SUM ( + 19 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2784 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ Int64\(\-51\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(26\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(5\) \- Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ Int64\(\-51\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(26\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) / Int64\(5\) \- Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 21 + - 51 * - 55 AS col0, + 26 * - CAST ( - COUNT ( * ) AS INTEGER ) / + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 5 - - 43 AS col0 query I rowsort label-5262 @@ -27885,7 +27885,7 @@ SELECT DISTINCT - 59 * + - 2 + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- CAST\(NULL AS Int32\)\) WHEN min\(DISTINCT Int64\(36\)\) THEN NULL WHEN Int64\(47\) THEN \(\- Int64\(22\)\) END\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(35\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- CAST\(NULL AS Int64\)\) WHEN min\(DISTINCT Int64\(36\)\) THEN NULL WHEN Int64\(47\) THEN \(\- Int64\(22\)\) END\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(35\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - CASE - ( CAST ( NULL AS INTEGER ) ) WHEN + MIN ( DISTINCT + 36 ) THEN NULL WHEN + + 47 THEN - + 22 END ) + - 74 AS col2, ( + 35 ) + + + 93 col2 query I rowsort label-5323 @@ -28657,7 +28657,7 @@ SELECT - NULLIF ( - - 44, + 17 ) + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22910 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) \* \(\- max\(DISTINCT \(\- CAST\(Int64\(79\) AS Int32\)\)\)\) \* Int64\(10\) AS col1" at position 0 and "Int64\(72\) \+ \(\- Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) \* \(\- max\(DISTINCT \(\- CAST\(Int64\(79\) AS Int64\)\)\)\) \* Int64\(10\) AS col1" at position 0 and "Int64\(72\) \+ \(\- Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 29 ) * + - MAX ( DISTINCT - + CAST ( 79 AS INTEGER ) ) * 10 col1, + 72 + - - 56 AS col1 query I rowsort label-5469 @@ -32487,7 +32487,7 @@ SELECT - + 27 * + - 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT - COUNT ( * ) col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -35773,7 +35773,7 @@ SELECT 27 + - 44 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "sum\(\(\- Int64\(97\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "sum\(\(\- Int64\(97\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 50 + + + CAST ( NULL AS INTEGER ) AS col0, SUM ( - + 97 ) AS col0 query I rowsort label-6823 @@ -36222,7 +36222,7 @@ SELECT ALL + 23, + COALESCE ( + 10, - - 53 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(8\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(9\) \- Int64\(96\) / Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(8\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(9\) \- Int64\(96\) / Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) col1, 8 * + - CAST ( NULL AS INTEGER ) + 9 - + 96 / + + 45 col1 query I rowsort label-6907 @@ -37575,7 +37575,7 @@ SELECT DISTINCT - - COUNT ( + + 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(\-6\) \+ CAST\(Int64\(98\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(\-6\) \+ CAST\(Int64\(98\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 32 AS col0, - 6 + CAST ( 98 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: @@ -38914,7 +38914,7 @@ SELECT - 15, - 74 + + 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(68\) THEN coalesce\(Int64\(\-51\), \(\- CAST\(NULL AS Int32\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-26\)\) / \(\- Int64\(86\)\) ELSE NULL END / min\(Int64\(37\)\) AS col0" at position 0 and "min\(Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(68\) THEN coalesce\(Int64\(\-51\), \(\- CAST\(NULL AS Int64\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-26\)\) / \(\- Int64\(86\)\) ELSE NULL END / min\(Int64\(37\)\) AS col0" at position 0 and "min\(Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + COUNT ( * ) WHEN 68 THEN COALESCE ( - 51, + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) - + - 26 ) / - ( 86 ) ELSE NULL END / + MIN ( ( 37 ) ) AS col0, + MIN ( ALL - 93 ) AS col0 query I rowsort @@ -39961,7 +39961,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(33\) \* Int64\(\-54\) THEN NULL WHEN Int64\(39\) THEN Int64\(\-9\) END\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-67\) \* Int64\(46\) \- Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(33\) \* Int64\(\-54\) THEN NULL WHEN Int64\(39\) THEN Int64\(\-9\) END\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-67\) \* Int64\(46\) \- Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - CASE + 62 WHEN + + 33 * - 54 THEN NULL WHEN + 39 THEN - 9 END AS col1, CAST ( NULL AS INTEGER ) * + - 67 * 46 - + 76 AS col1 query I rowsort @@ -41140,7 +41140,7 @@ SELECT + - ( - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -12648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) AS col0" at position 0 and "CAST\(Int64\(51\) AS Int32\) \+ Int64\(\-63\) \+ Int64\(\-39\) \* Int64\(81\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) AS col0" at position 0 and "CAST\(Int64\(51\) AS Int64\) \+ Int64\(\-63\) \+ Int64\(\-39\) \* Int64\(81\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 88 col0, CAST ( 51 AS INTEGER ) + - 63 + - 39 * 81 * 4 AS col0 query I rowsort @@ -42334,7 +42334,7 @@ SELECT + 13 / - ( - ( 60 ) ) + 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(33\) AS Int32\)\) / nullif\(Int64\(\-45\), \(\- Int64\(\-28\)\)\) \- Int64\(\-60\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(33\) AS Int64\)\) / nullif\(Int64\(\-45\), \(\- Int64\(\-28\)\)\) \- Int64\(\-60\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + ( + 33 ) AS INTEGER ) / NULLIF ( - 45, - - 28 ) - - 60 col2, + 78 AS col2 query I rowsort @@ -43108,7 +43108,7 @@ SELECT ALL - MAX ( + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) / \(\- avg\(DISTINCT \(\- nullif\(\(\- Int64\(\-56\)\), Int64\(79\) \+ Int64\(\-68\)\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-12\)\) \* Int64\(10\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(17\)\) \- Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) / \(\- avg\(DISTINCT \(\- nullif\(\(\- Int64\(\-56\)\), Int64\(79\) \+ Int64\(\-68\)\)\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(\-12\)\) \* Int64\(10\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(17\)\) \- Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 / + - AVG ( DISTINCT - NULLIF ( - - 56, 79 + - 68 ) ) + - + CAST ( NULL AS INTEGER ) + - - 12 * + 10 AS col0, ( - CAST ( NULL AS INTEGER ) ) + ( - ( + 17 ) ) - - 26 AS col0 query I rowsort label-8217 @@ -44176,7 +44176,7 @@ SELECT + 5 * + + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 54 col1, CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 query I rowsort @@ -45105,7 +45105,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-57\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-57\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 col1, 61 * ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + - 57 + 43 AS col1 query I rowsort @@ -48495,7 +48495,7 @@ SELECT + ( ( - COUNT ( * ) ) ) AS col2, 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-52\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-61\) \+ Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-52\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-61\) \+ Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + MIN ( + - 52 ) AS col1, CAST ( NULL AS INTEGER ) + - 61 + 37 AS col1 query I rowsort label-9236 @@ -48809,7 +48809,7 @@ SELECT - 46 + + 79 * - - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6889 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \- Int64\(71\) \* Int64\(98\) \+ \(\- Int64\(\-64\)\) \+ \(\- Int64\(59\)\) AS col2" at position 0 and "Int64\(14\) \- Int64\(79\) \+ nullif\(\(\- Int64\(\-81\)\), \(\- Int64\(21\)\)\) \+ \(\- CAST\(\(\- Int64\(\-7\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \- Int64\(71\) \* Int64\(98\) \+ \(\- Int64\(\-64\)\) \+ \(\- Int64\(59\)\) AS col2" at position 0 and "Int64\(14\) \- Int64\(79\) \+ nullif\(\(\- Int64\(\-81\)\), \(\- Int64\(21\)\)\) \+ \(\- CAST\(\(\- Int64\(\-7\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 64 - + 71 * 98 + - - 64 + - + 59 AS col2, + 14 - 79 + + + NULLIF ( + ( - - 81 ), - ( + 21 ) ) + - CAST ( - - 7 AS INTEGER ) AS col2 query II rowsort label-9295 @@ -51465,7 +51465,7 @@ SELECT DISTINCT + + 42 * + + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- Int64\(14\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- Int64\(14\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 - + 14 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-9802 diff --git a/data/sqlite/random/expr/slt_good_72.slt b/data/sqlite/random/expr/slt_good_72.slt index 6fece06..1645398 100644 --- a/data/sqlite/random/expr/slt_good_72.slt +++ b/data/sqlite/random/expr/slt_good_72.slt @@ -1987,7 +1987,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- nullif\(Int64\(64\), Int64\(\-7\)\)\) / \(\- Int64\(13\)\) \+ Int64\(9\) \+ CAST\(NULL AS Int32\) \* Int64\(\-71\) / count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(\(\- Int64\(\-14\)\), sum\(Int64\(42\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- nullif\(Int64\(64\), Int64\(\-7\)\)\) / \(\- Int64\(13\)\) \+ Int64\(9\) \+ CAST\(NULL AS Int64\) \* Int64\(\-71\) / count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(\(\- Int64\(\-14\)\), sum\(Int64\(42\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 41 AS col2, + ( + CAST ( NULL AS INTEGER ) ) * - NULLIF ( + 64, - 7 ) / - + 13 + 9 + + + CAST ( NULL AS INTEGER ) * - 71 / ( + COUNT ( * ) ) + NULLIF ( - - 14, SUM ( + 42 ) ) AS col2 query I rowsort label-369 @@ -4588,7 +4588,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- \(\- Int64\(\-87\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- \(\- Int64\(\-87\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) AS col0, - ( - - 87 ) AS col0 query I rowsort label-861 @@ -7262,7 +7262,7 @@ SELECT ALL + - ( + + 83 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4480 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(\-80\) AS col1" at position 0 and "Int64\(\-84\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(\-80\) AS col1" at position 0 and "Int64\(\-84\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 56 * - 80 AS col1, - 84 * - + CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-1375 @@ -8354,7 +8354,7 @@ SELECT 56 * + 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 59 AS col1, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 query I rowsort @@ -10841,7 +10841,7 @@ SELECT ALL - COALESCE ( + MAX ( - 87 ), - COUNT ( * ), - + 60 ) + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(72\) \* \(\- Int64\(\-86\)\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(72\) \* \(\- Int64\(\-86\)\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 AS col2, 72 * - ( - 86 ) / COUNT ( * ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 29 AS col2 query I rowsort label-2050 @@ -12241,7 +12241,7 @@ SELECT DISTINCT 8 - - 18 + 51 + - 40 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 3276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(63\) \* CAST\(Int64\(52\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(63\) \* CAST\(Int64\(52\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 70 AS col2, 63 * + CAST ( + 52 AS INTEGER ) AS col2 query I rowsort @@ -12823,7 +12823,7 @@ SELECT - + 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(21\) \* Int64\(\-12\) \* Int64\(57\) \+ Int64\(57\) / \(\- Int64\(\-64\)\) \+ \(\- Int64\(\-40\)\) \+ CAST\(NULL AS Int32\) \+ nullif\(Int64\(14\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-64\)\)\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(21\) \* Int64\(\-12\) \* Int64\(57\) \+ Int64\(57\) / \(\- Int64\(\-64\)\) \+ \(\- Int64\(\-40\)\) \+ CAST\(NULL AS Int64\) \+ nullif\(Int64\(14\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-64\)\)\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + 21 * - 12 * 57 + + 57 / - - 64 + - - 40 + CAST ( NULL AS INTEGER ) + + + NULLIF ( 14, - COUNT ( * ) + - - 64 ) AS col2, + 75 AS col2 query I rowsort label-2426 @@ -16379,7 +16379,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(\-66\) AS col2" at position 0 and "\(\- coalesce\(Int64\(71\), \(\- max\(Int64\(3\)\)\)\)\) / CASE Int64\(70\) WHEN Int64\(\-13\) THEN Int64\(68\) \* Int64\(28\) \- Int64\(\-91\) \* CAST\(Int64\(15\) AS Int32\) WHEN min\(Int64\(21\)\) \* Int64\(\-68\) \+ Int64\(83\) THEN Int64\(60\) \* CASE avg\(Int64\(\-93\)\) WHEN Int64\(59\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(53\) THEN Int64\(57\) END \+ count\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(\-66\) AS col2" at position 0 and "\(\- coalesce\(Int64\(71\), \(\- max\(Int64\(3\)\)\)\)\) / CASE Int64\(70\) WHEN Int64\(\-13\) THEN Int64\(68\) \* Int64\(28\) \- Int64\(\-91\) \* CAST\(Int64\(15\) AS Int64\) WHEN min\(Int64\(21\)\) \* Int64\(\-68\) \+ Int64\(83\) THEN Int64\(60\) \* CASE avg\(Int64\(\-93\)\) WHEN Int64\(59\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(53\) THEN Int64\(57\) END \+ count\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 25 / - 66 AS col2, - COALESCE ( 71, + - MAX ( + 3 ) ) / CASE 70 WHEN + - 13 THEN + 68 * + 28 - + - 91 * + CAST ( 15 AS INTEGER ) WHEN + MIN ( 21 ) * - 68 + 83 THEN 60 * CASE AVG ( ( - 93 ) ) WHEN 59 THEN NULL WHEN - 80 + 53 THEN 57 END + COUNT ( * ) END col2 query I rowsort label-3108 @@ -17369,7 +17369,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) AS col1, + 54 AS col1 query I rowsort label-3297 @@ -17623,7 +17623,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 89 AS col2, CAST ( NULL AS INTEGER ) * + 64 AS col2 query I rowsort label-3346 @@ -17708,7 +17708,7 @@ SELECT - - 30, 33 / 1 + NULLIF ( - 20, 24 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -200 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(71\) \+ Int64\(\-46\) \+ Int64\(0\) \+ Int64\(\-85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(73\) AS col0" at position 0 and "Int64\(31\) / \(\- CAST\(Int64\(74\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(71\) \+ Int64\(\-46\) \+ Int64\(0\) \+ Int64\(\-85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(73\) AS col0" at position 0 and "Int64\(31\) / \(\- CAST\(Int64\(74\) AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 * + 71 + - 46 + - 0 + - 85 + + COUNT ( * ) * 73 AS col0, 31 / - CAST ( + 74 AS INTEGER ) + + COUNT ( * ) * - 51 AS col0 query I rowsort label-3362 @@ -18815,7 +18815,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(12\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(12\) AS Int64\)\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + 12 AS INTEGER ) AS col1, - 65 AS col1 query I rowsort @@ -19114,7 +19114,7 @@ SELECT + 22 / 9 / - 61 * - 54 * COUNT ( * ), + 0 + 82 - - 31 AS col1 # Datafusion - Expected - 70 # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) / Int64\(2\) AS col2" at position 1 and "max\(CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) / Int64\(2\) AS col2" at position 1 and "max\(CAST\(NULL AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 70 ), COUNT ( * ) + + 58 / + 2 AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-3631 @@ -20910,7 +20910,7 @@ SELECT - 98 * 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ CASE Int64\(\-90\) WHEN \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(83\)\)\) THEN NULL ELSE Int64\(77\) END AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ CASE Int64\(\-90\) WHEN \(\- coalesce\(CAST\(NULL AS Int64\), Int64\(83\)\)\) THEN NULL ELSE Int64\(77\) END AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 28 + CASE + - 90 WHEN - COALESCE ( CAST ( NULL AS INTEGER ), 83 ) THEN NULL ELSE + 77 END AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 85 AS col0 query II rowsort label-3974 @@ -21263,7 +21263,7 @@ SELECT ( + COUNT ( - + 11 ) ) * + + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(\-36\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(\-36\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 62 AS col2, ( - 36 ) * + + CAST ( + COUNT ( * ) AS INTEGER ) col2 query I rowsort @@ -27339,7 +27339,7 @@ SELECT 69 * - 77 * + - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2170 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ CASE Int64\(62\) WHEN Int64\(\-45\) THEN \(\- Int64\(\-33\)\) ELSE Int64\(\-60\) END \+ Int64\(22\) \* Int64\(98\) AS col2" at position 0 and "Int64\(\-49\) \+ CAST\(Int64\(36\) AS Int32\) \+ Int64\(\-76\) / Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ CASE Int64\(62\) WHEN Int64\(\-45\) THEN \(\- Int64\(\-33\)\) ELSE Int64\(\-60\) END \+ Int64\(22\) \* Int64\(98\) AS col2" at position 0 and "Int64\(\-49\) \+ CAST\(Int64\(36\) AS Int64\) \+ Int64\(\-76\) / Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 74 + CASE + 62 WHEN - 45 THEN - - 33 ELSE + ( - 60 ) END + 22 * 98 AS col2, - 49 + CAST ( + 36 AS INTEGER ) + - 76 / 12 AS col2 query I rowsort @@ -28935,7 +28935,7 @@ SELECT + 69 - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-1\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(89\) \* Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-1\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(89\) \* Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 75 * - 1 / CAST ( NULL AS INTEGER ) AS col2, 89 * - 47 AS col2 query I rowsort label-5513 @@ -30121,7 +30121,7 @@ SELECT - - 62 * - 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 5488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-79\) AS Int32\)\) AS col2" at position 0 and "Int64\(56\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-79\) AS Int64\)\) AS col2" at position 0 and "Int64\(56\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( - 79 AS INTEGER ) col2, 56 * 98 AS col2 query I rowsort label-5737 @@ -33653,7 +33653,7 @@ SELECT 54 * - - 36 AS col0, - 93 * + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(\(\- Int64\(56\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(\(\- Int64\(56\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 + + CAST ( NULL AS INTEGER ) col1, COUNT ( ALL - + ( 56 ) ) AS col1 query I rowsort @@ -34261,7 +34261,7 @@ SELECT COUNT ( * ) + + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 1836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "Int64\(34\) \* coalesce\(Int64\(54\), nullif\(\(\- CASE Int64\(\-17\) WHEN coalesce\(\(\- CASE \(\- \(\- Int64\(18\)\)\) WHEN \(\- nullif\(\(\- Int64\(22\)\), Int64\(81\)\)\) \+ max\(nullif\(Int64\(50\), Int64\(66\) \* nullif\(Int64\(12\), Int64\(\-73\)\)\)\) THEN NULL WHEN CAST\(NULL AS Int32\) / Int64\(14\) THEN Int64\(68\) \+ Int64\(48\) / Int64\(81\) END\), \(\- max\(Int64\(98\)\)\), Int64\(\-87\)\) \* Int64\(76\) \+ Int64\(62\) THEN Int64\(59\) / Int64\(53\) END\), Int64\(67\)\), Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "Int64\(34\) \* coalesce\(Int64\(54\), nullif\(\(\- CASE Int64\(\-17\) WHEN coalesce\(\(\- CASE \(\- \(\- Int64\(18\)\)\) WHEN \(\- nullif\(\(\- Int64\(22\)\), Int64\(81\)\)\) \+ max\(nullif\(Int64\(50\), Int64\(66\) \* nullif\(Int64\(12\), Int64\(\-73\)\)\)\) THEN NULL WHEN CAST\(NULL AS Int64\) / Int64\(14\) THEN Int64\(68\) \+ Int64\(48\) / Int64\(81\) END\), \(\- max\(Int64\(98\)\)\), Int64\(\-87\)\) \* Int64\(76\) \+ Int64\(62\) THEN Int64\(59\) / Int64\(53\) END\), Int64\(67\)\), Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 2 AS col1, 34 * + COALESCE ( + + 54, NULLIF ( - CASE - 17 WHEN + ( COALESCE ( - CASE - - ( + 18 ) WHEN - NULLIF ( + ( - + 22 ), + 81 ) + MAX ( ALL NULLIF ( 50, 66 * NULLIF ( + 12, - 73 ) ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) / 14 THEN 68 + + 48 / 81 END, - MAX ( 98 ), - 87 ) ) * 76 + + 62 THEN 59 / 53 END, + 67 ), 85 ) AS col1 query I rowsort label-6531 @@ -36086,7 +36086,7 @@ SELECT ALL 3 / 27 * - COUNT ( ALL 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- \(\- avg\(\(\- Int64\(5\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \- \(\- avg\(\(\- Int64\(5\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 51 AS col2, CAST ( NULL AS INTEGER ) - - + AVG ( - + 5 ) col2 query I rowsort label-6874 @@ -37348,7 +37348,7 @@ SELECT - ( + 58 ) + - MAX ( + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6902 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) / CAST\(\(\- Int64\(\-36\)\) AS Int32\) \* \(\- Int64\(0\)\) \- Int64\(79\) \* Int64\(88\) \- Int64\(\-50\) AS col2" at position 0 and "Int64\(51\) / \(\- Int64\(\-76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) / CAST\(\(\- Int64\(\-36\)\) AS Int64\) \* \(\- Int64\(0\)\) \- Int64\(79\) \* Int64\(88\) \- Int64\(\-50\) AS col2" at position 0 and "Int64\(51\) / \(\- Int64\(\-76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 / CAST ( - - 36 AS INTEGER ) * + - ( 0 ) - 79 * 88 - - 50 AS col2, + 51 / - - 76 AS col2 query I rowsort label-7110 @@ -38468,7 +38468,7 @@ SELECT ALL - 49 * + ( + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(38\) \+ Int64\(\-29\) \* Int64\(\-62\) \+ CAST\(\(\- CASE Int64\(69\) WHEN Int64\(\-9\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-58\) \* Int64\(\-19\) WHEN CAST\(NULL AS Int32\) \* Int64\(71\) \* Int64\(91\) THEN NULL ELSE NULL END\) AS Int32\) \- Int64\(\-69\) AS col2" at position 0 and "Int64\(64\) \+ sum\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(38\) \+ Int64\(\-29\) \* Int64\(\-62\) \+ CAST\(\(\- CASE Int64\(69\) WHEN Int64\(\-9\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) \- Int64\(\-58\) \* Int64\(\-19\) WHEN CAST\(NULL AS Int64\) \* Int64\(71\) \* Int64\(91\) THEN NULL ELSE NULL END\) AS Int64\) \- Int64\(\-69\) AS col2" at position 0 and "Int64\(64\) \+ sum\(CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 70 + 38 + - 29 * - 62 + CAST ( - CASE 69 WHEN - 9 THEN - + COUNT ( * ) + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) - - 58 * - 19 WHEN CAST ( NULL AS INTEGER ) * + 71 * 91 THEN NULL ELSE NULL END AS INTEGER ) - - 69 AS col2, + 64 + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-7323 @@ -39052,7 +39052,7 @@ SELECT ALL - 66 * 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(8\) AS Int32\) \+ Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(8\) AS Int64\) \+ Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + + 8 AS INTEGER ) + 98 AS col1, + COUNT ( * ) / - - 4 AS col1 query I rowsort @@ -39525,7 +39525,7 @@ SELECT 82 + - 27 * + 88 + - 84 - + - 96 * - 68 AS col0, COUNT ( * ) + COALESCE ( # Datafusion - Expected - -26 # Datafusion - Expected - 1 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(78\)\) AS col1" at position 1 and "\(\- CAST\(coalesce\(Int64\(\-71\), sum\(DISTINCT Int64\(97\)\) \+ \(\- Int64\(\-53\)\)\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(78\)\) AS col1" at position 1 and "\(\- CAST\(coalesce\(Int64\(\-71\), sum\(DISTINCT Int64\(97\)\) \+ \(\- Int64\(\-53\)\)\) AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 26, COUNT ( + 78 ) col1, + + ( - CAST ( COALESCE ( - 71, + SUM ( DISTINCT 97 ) + - - 53 ) AS INTEGER ) ) AS col1 query I rowsort label-7526 @@ -40388,7 +40388,7 @@ SELECT ALL + 91 * ( + 14 ) # Datafusion - Expected - 0 # Datafusion - Expected - 1607 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(37\) / Int64\(57\) / \(\- min\(Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(27\) \+ \(\- Int64\(72\)\) \* \(\- CASE WHEN NOT Int64\(71\) BETWEEN coalesce\(\(\- nullif\(Int64\(\-83\), Int64\(5\)\)\), Int64\(79\)\) AND CAST\(NULL AS Int32\) \+ Int64\(\-29\) THEN \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), nullif\(sum\(DISTINCT Int64\(\-51\)\), \(\- Int64\(\-8\)\) \* Int64\(31\)\) \+ Int64\(11\)\)\) WHEN NOT NULL IS NOT NULL THEN NULL END\) \+ Int64\(75\) \* Int64\(21\) \+ \(\- Int64\(\-78\)\) \+ Int64\(\-69\) / Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(37\) / Int64\(57\) / \(\- min\(Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(27\) \+ \(\- Int64\(72\)\) \* \(\- CASE WHEN NOT Int64\(71\) BETWEEN coalesce\(\(\- nullif\(Int64\(\-83\), Int64\(5\)\)\), Int64\(79\)\) AND CAST\(NULL AS Int64\) \+ Int64\(\-29\) THEN \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), nullif\(sum\(DISTINCT Int64\(\-51\)\), \(\- Int64\(\-8\)\) \* Int64\(31\)\) \+ Int64\(11\)\)\) WHEN NOT NULL IS NOT NULL THEN NULL END\) \+ Int64\(75\) \* Int64\(21\) \+ \(\- Int64\(\-78\)\) \+ Int64\(\-69\) / Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 * + 37 / 57 / - MIN ( ALL - 50 ) AS col0, + 27 + - + 72 * + - CASE WHEN NOT 71 BETWEEN + COALESCE ( - NULLIF ( - 83, ( 5 ) ), + 79 ) AND CAST ( NULL AS INTEGER ) + - 29 THEN + - COALESCE ( COUNT ( * ), + NULLIF ( SUM ( DISTINCT - 51 ), - - 8 * + 31 ) + + 11 ) WHEN NOT NULL IS NOT NULL THEN NULL END + 75 * + 21 + - - 78 + - 69 / + 35 col0, - 77 AS col1 query I rowsort label-7692 @@ -42002,7 +42002,7 @@ SELECT + COUNT ( - 40 ) * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-90\)\)\) / Int64\(\-26\) / CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-59\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-90\)\)\) / Int64\(\-26\) / CAST\(NULL AS Int64\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-59\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + SUM ( - 90 ) / - 26 / + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - 59 AS col0, - 66 AS col0 query I rowsort label-8003 @@ -42586,7 +42586,7 @@ SELECT - NULLIF ( ( + 39 ), - 71 + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-54\), Int64\(2\) / Int64\(70\)\) \- Int64\(18\) \+ \(\- \(\- count\(DISTINCT Int64\(88\)\)\)\) / \(\- min\(Int64\(22\)\)\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-54\), Int64\(2\) / Int64\(70\)\) \- Int64\(18\) \+ \(\- \(\- count\(DISTINCT Int64\(88\)\)\)\) / \(\- min\(Int64\(22\)\)\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( - 54, 2 / + 70 ) - + 18 + - - COUNT ( DISTINCT 88 ) / - MIN ( + 22 ) / CAST ( NULL AS INTEGER ) AS col1, + 14 AS col1 query I rowsort @@ -42603,7 +42603,7 @@ SELECT - 65 * - COUNT ( * ), - 82 * - MAX ( 33 ) + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5700 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(\-60\) AS col2" at position 0 and "coalesce\(\(\- Int64\(8\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\), Int64\(38\) \* CASE Int64\(54\) WHEN \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(39\)\)\) / Int64\(42\) THEN Int64\(\-40\) \* Int64\(\-44\) \+ Int64\(64\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(\-60\) AS col2" at position 0 and "coalesce\(\(\- Int64\(8\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\), Int64\(38\) \* CASE Int64\(54\) WHEN \(\- nullif\(\(\- CAST\(NULL AS Int64\)\), Int64\(39\)\)\) / Int64\(42\) THEN Int64\(\-40\) \* Int64\(\-44\) \+ Int64\(64\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 95 * - 60 AS col2, + COALESCE ( - ( 8 ), COUNT ( * ) * + 33, + 38 * + CASE + 54 WHEN + - NULLIF ( - CAST ( NULL AS INTEGER ), 39 ) / 42 THEN - 40 * - 44 + 64 ELSE NULL END ) AS col2 query II rowsort @@ -44823,7 +44823,7 @@ SELECT ALL COUNT ( + CAST ( - 47 AS INTEGER ) ) / - 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \- Int64\(58\) AS col1" at position 0 and "Int64\(37\) \* Int64\(68\) \* \(\- Int64\(67\)\) / CAST\(NULL AS Int32\) \* Int64\(\-8\) \- \(\- Int64\(80\)\) \+ \(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \- Int64\(58\) AS col1" at position 0 and "Int64\(37\) \* Int64\(68\) \* \(\- Int64\(67\)\) / CAST\(NULL AS Int64\) \* Int64\(\-8\) \- \(\- Int64\(80\)\) \+ \(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + 30 ) - 58 AS col1, + 37 * + 68 * - ( 67 ) / CAST ( NULL AS INTEGER ) * - 8 - - + 80 + - ( 45 ) AS col1 query I rowsort @@ -47154,7 +47154,7 @@ SELECT - + 26 + - - ( + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "\(\- CASE Int64\(\-13\) WHEN \(\- max\(DISTINCT Int64\(86\)\)\) \* \(\- Int64\(\-19\)\) \* Int64\(49\) \+ Int64\(59\) \+ Int64\(33\) THEN \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-29\)\) \+ Int64\(\-12\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-72\)\), Int64\(9\) \* Int64\(0\)\)\) \+ Int64\(\-40\) / Int64\(75\) \+ Int64\(80\) WHEN Int64\(\-10\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) \- count\(DISTINCT \(\- CAST\(Int64\(91\) AS Int32\)\)\) \+ Int64\(66\) THEN \(\- CAST\(Int64\(37\) AS Float64\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "\(\- CASE Int64\(\-13\) WHEN \(\- max\(DISTINCT Int64\(86\)\)\) \* \(\- Int64\(\-19\)\) \* Int64\(49\) \+ Int64\(59\) \+ Int64\(33\) THEN \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-29\)\) \+ Int64\(\-12\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-72\)\), Int64\(9\) \* Int64\(0\)\)\) \+ Int64\(\-40\) / Int64\(75\) \+ Int64\(80\) WHEN Int64\(\-10\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) \- count\(DISTINCT \(\- CAST\(Int64\(91\) AS Int64\)\)\) \+ Int64\(66\) THEN \(\- CAST\(Int64\(37\) AS Float64\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 50 AS col0, - CASE - 13 WHEN + - MAX ( DISTINCT + 86 ) * - ( - 19 ) * 49 + 59 + + 33 THEN - COALESCE ( + - COUNT ( * ), - - 29 + - 12 + COUNT ( * ) + - ( + + ( + - COUNT ( * ) ) ) * - - 72, + 9 * - 0 ) + - 40 / 75 + 80 WHEN - 10 * + - COUNT ( * ) * - 27 - COUNT ( DISTINCT - + CAST ( 91 AS INTEGER ) ) + 66 THEN - CAST ( 37 AS FLOAT8 ) END AS col0 query I rowsort @@ -47579,7 +47579,7 @@ SELECT NULLIF ( - 57, + 62 ) # Datafusion - Expected - 38 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 1 and "Int64\(89\) \+ CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 1 and "Int64\(89\) \+ CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 77 AS col2, 38 AS col1, + 89 + + CAST ( NULL AS INTEGER ) AS col1, + + 97 AS col1 query I rowsort label-9066 @@ -50778,7 +50778,7 @@ SELECT 38 + - - 45 * ( - + 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1603 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(\-94\) \* \(\- Int64\(16\)\) \- Int64\(\-97\) AS col0" at position 0 and "Int64\(66\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(\-94\) \* \(\- Int64\(16\)\) \- Int64\(\-97\) AS col0" at position 0 and "Int64\(66\) \- \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 2 + - 94 * - + 16 - - 97 AS col0, 66 - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -50831,7 +50831,7 @@ SELECT 20 * 23 + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(34\) \+ CAST\(CAST\(NULL AS Float64\) AS Int32\) \* min\(Int64\(\-92\)\) \+ \(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(34\) \+ CAST\(CAST\(NULL AS Float64\) AS Int64\) \* min\(Int64\(\-92\)\) \+ \(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 + + + 34 + CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) * MIN ( - 92 ) + - + 20 AS col2, 88 AS col2 query I rowsort label-9691 @@ -52192,7 +52192,7 @@ SELECT + 83 * - COUNT ( * ) * + - ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(46\) WHEN Int64\(56\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(96\) END AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(46\) WHEN Int64\(56\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(96\) END AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE 46 WHEN + 56 / - COUNT ( * ) + + 20 + COUNT ( * ) THEN NULL ELSE + 96 END AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-9950 diff --git a/data/sqlite/random/expr/slt_good_73.slt b/data/sqlite/random/expr/slt_good_73.slt index 711183e..0bb4fab 100644 --- a/data/sqlite/random/expr/slt_good_73.slt +++ b/data/sqlite/random/expr/slt_good_73.slt @@ -1322,7 +1322,7 @@ SELECT ALL ( COUNT ( * ) ) * - 97 + + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) / \(\- Int64\(89\)\) AS col2" at position 0 and "avg\(CASE CAST\(NULL AS Int32\) WHEN Int64\(73\) / \(\- Int64\(\-93\)\) \+ Int64\(38\) \* Int64\(28\) THEN Int64\(24\) \+ Int64\(\-64\) END\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) / \(\- Int64\(89\)\) AS col2" at position 0 and "avg\(CASE CAST\(NULL AS Int64\) WHEN Int64\(73\) / \(\- Int64\(\-93\)\) \+ Int64\(38\) \* Int64\(28\) THEN Int64\(24\) \+ Int64\(\-64\) END\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 11 / - + 89 AS col2, + AVG ( CASE + CAST ( NULL AS INTEGER ) WHEN 73 / - ( - 93 ) + 38 * + 28 THEN + 24 + - 64 END ) * + + 0 AS col2 # Datafusion - Datafusion expected results: @@ -1759,7 +1759,7 @@ SELECT + 62 * + CASE 89 WHEN + 67 THEN NULL ELSE 72 * - 57 END * 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- sum\(Int64\(\-39\)\)\) WHEN Int64\(\-84\) THEN Int64\(\-32\) WHEN Int64\(93\) THEN Int64\(6\) ELSE NULL END AS col2" at position 0 and "Int64\(18\) \- Int64\(43\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(77\) \+ Int64\(\-22\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- sum\(Int64\(\-39\)\)\) WHEN Int64\(\-84\) THEN Int64\(\-32\) WHEN Int64\(93\) THEN Int64\(6\) ELSE NULL END AS col2" at position 0 and "Int64\(18\) \- Int64\(43\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(77\) \+ Int64\(\-22\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - SUM ( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST ( NULL AS INTEGER ) * + 77 + - 22 + + 82 AS col2 query I rowsort label-328 @@ -2106,7 +2106,7 @@ SELECT - 43 * + - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "max\(\(\- nullif\(Int64\(29\), Int64\(\-84\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-93\) \* Int64\(25\) \* \(\- Int64\(9\)\) \* Int64\(\-10\) \* Int64\(\-68\) \+ \(\- Int64\(29\)\) \* Int64\(97\) \+ \(\- Int64\(19\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "max\(\(\- nullif\(Int64\(29\), Int64\(\-84\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-93\) \* Int64\(25\) \* \(\- Int64\(9\)\) \* Int64\(\-10\) \* Int64\(\-68\) \+ \(\- Int64\(29\)\) \* Int64\(97\) \+ \(\- Int64\(19\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 41 AS col0, MAX ( - NULLIF ( 29, - 84 + - CAST ( NULL AS INTEGER ) + - 93 * 25 * - + 9 * - 10 * - 68 + - + 29 * 97 + - + 19 ) ) AS col0 query I rowsort label-394 @@ -2174,7 +2174,7 @@ SELECT ALL - 62 * - 5 + - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- \(\- Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \- \(\- Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 82 col0, + CAST ( NULL AS INTEGER ) - - + 28 AS col0 query I rowsort label-407 @@ -3269,7 +3269,7 @@ SELECT ALL - 76 + - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 8 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-612 @@ -5329,7 +5329,7 @@ SELECT 49 * CAST ( - 29 AS INTEGER ) AS col2, - 56 + + + 88 * + - 51, - COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - 3638250 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* \(\- min\(Int64\(15\)\)\) \* Int64\(\-98\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(43\) \+ \(\- nullif\(Int64\(\-95\), nullif\(CAST\(NULL AS Int32\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* \(\- min\(Int64\(15\)\)\) \* Int64\(\-98\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(43\) \+ \(\- nullif\(Int64\(\-95\), nullif\(CAST\(NULL AS Int64\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) / Int64\(1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 33 * - MIN ( ALL + 15 ) * - 98 * - 75 AS col0, 43 + + - NULLIF ( - 95, NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / 1 ) ) AS col0 query I rowsort @@ -6075,7 +6075,7 @@ SELECT + 11 * - 10 + 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- nullif\(Int64\(91\), Int64\(\-29\) \- Int64\(97\) \* Int64\(9\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- \(\- nullif\(Int64\(91\), Int64\(\-29\) \- Int64\(97\) \* Int64\(9\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( - 39 ) AS col2, CAST ( NULL AS INTEGER ) * - - NULLIF ( 91, - 29 - 97 * 9 ) AS col2 query I rowsort @@ -8230,7 +8230,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -12366,7 +12366,7 @@ SELECT 63 * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6270 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(95\) AS col1" at position 0 and "CASE Int64\(\-82\) WHEN CAST\(Int64\(\-79\) AS Int32\) \+ Int64\(62\) \+ Int64\(8\) \+ Int64\(33\) \* Int64\(11\) THEN Int64\(67\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(95\) AS col1" at position 0 and "CASE Int64\(\-82\) WHEN CAST\(Int64\(\-79\) AS Int64\) \+ Int64\(62\) \+ Int64\(8\) \+ Int64\(33\) \* Int64\(11\) THEN Int64\(67\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST ( + - 79 AS INTEGER ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1 query I rowsort label-2345 @@ -12895,7 +12895,7 @@ SELECT ALL + - CASE COUNT ( * ) WHEN + 47 THEN NULL ELSE 29 END + - 14 + + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- CASE Int64\(44\) WHEN Int64\(89\) \* Int64\(8\) \* \(\- Int64\(\-77\)\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-35\) / Int64\(\-21\) \+ Int64\(\-71\) \* CAST\(min\(Int64\(50\)\) AS Int32\) \* Int64\(\-2\) \* Int64\(36\) THEN coalesce\(Int64\(\-40\), Int64\(10\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- CASE Int64\(44\) WHEN Int64\(89\) \* Int64\(8\) \* \(\- Int64\(\-77\)\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-35\) / Int64\(\-21\) \+ Int64\(\-71\) \* CAST\(min\(Int64\(50\)\) AS Int64\) \* Int64\(\-2\) \* Int64\(36\) THEN coalesce\(Int64\(\-40\), Int64\(10\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 AS col1, - CASE + 44 WHEN + 89 * + 8 * - ( - 77 ) THEN NULL WHEN COUNT ( * ) - + COUNT ( * ) * - 35 / - 21 + - 71 * + CAST ( MIN ( ALL + 50 ) AS INTEGER ) * - 2 * + 36 THEN + COALESCE ( - 40, 10 ) ELSE NULL END AS col1 query I rowsort @@ -13324,7 +13324,7 @@ SELECT - - 6 + - 74 * - COUNT ( * ) * - COALESCE ( 98, ( + 2 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 199148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "CASE Int64\(\-56\) WHEN \(\- Int64\(3\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \+ Int64\(32\) \* \(\- CAST\(Int64\(17\) AS Int32\)\) WHEN Int64\(90\) \* \(\- Int64\(\-13\)\) THEN \(\- min\(\(\- Int64\(36\)\)\)\) ELSE Int64\(61\) END \* Int64\(34\) \* \(\- Int64\(\-96\)\) \- Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "CASE Int64\(\-56\) WHEN \(\- Int64\(3\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \+ Int64\(32\) \* \(\- CAST\(Int64\(17\) AS Int64\)\) WHEN Int64\(90\) \* \(\- Int64\(\-13\)\) THEN \(\- min\(\(\- Int64\(36\)\)\)\) ELSE Int64\(61\) END \* Int64\(34\) \* \(\- Int64\(\-96\)\) \- Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 11 AS col2, CASE - 56 WHEN - + 3 THEN + - COUNT ( * ) * + 18 + 32 * + - CAST ( + 17 AS INTEGER ) WHEN + + 90 * - - 13 THEN - + MIN ( ALL - + 36 ) ELSE 61 END * 34 * - - 96 - - 44 AS col2 query I rowsort label-2528 @@ -13889,7 +13889,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-10\) \* Int64\(\-46\) / Int64\(\-91\) \* Int64\(71\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ \(\- CAST\(NULL AS Int64\)\) \- Int64\(\-10\) \* Int64\(\-46\) / Int64\(\-91\) \* Int64\(71\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 + - CAST ( NULL AS INTEGER ) - - 10 * - 46 / + - 91 * + 71 AS col0, + 59 col0 query I rowsort label-2634 @@ -17183,7 +17183,7 @@ SELECT - 74 + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(0\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(0\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 21 * ( - 0 ) AS col1, CAST ( NULL AS INTEGER ) col1 query I rowsort label-3265 @@ -19658,7 +19658,7 @@ SELECT + 73 AS col2, + 55 + + 9 * + + 8 + + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) / Int64\(58\) \- \(\- Int64\(72\)\) \+ \(\- Int64\(8\)\) \+ \(\- Int64\(54\)\) / Int64\(\-76\) \* CAST\(NULL AS Int32\) \* Int64\(\-44\) AS col1" at position 0 and "nullif\(Int64\(14\), Int64\(58\) \* Int64\(70\) \* \(\- Int64\(\-33\)\)\) \- \(\- \(\- sum\(Int64\(51\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) / Int64\(58\) \- \(\- Int64\(72\)\) \+ \(\- Int64\(8\)\) \+ \(\- Int64\(54\)\) / Int64\(\-76\) \* CAST\(NULL AS Int64\) \* Int64\(\-44\) AS col1" at position 0 and "nullif\(Int64\(14\), Int64\(58\) \* Int64\(70\) \* \(\- Int64\(\-33\)\)\) \- \(\- \(\- sum\(Int64\(51\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 52 / + 58 - - + 72 + - + 8 + - + 54 / - 76 * + + CAST ( NULL AS INTEGER ) * - 44 col1, NULLIF ( + 14, + + 58 * 70 * - ( - 33 ) ) - - - SUM ( + 51 ) AS col1 query I rowsort label-3735 @@ -23122,7 +23122,7 @@ SELECT 71 * - 22 col2, + 27 + + ( 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(49\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- CAST\(Int64\(52\) AS Float64\)\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(49\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- CAST\(Int64\(52\) AS Float64\)\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 42 + + 49 AS col2, CAST ( NULL AS INTEGER ) * + - CAST ( 52 AS FLOAT8 ) * - 16 AS col2 query I rowsort @@ -23635,7 +23635,7 @@ SELECT ALL - 13, - 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0, 20 col0 query I rowsort label-4495 @@ -25481,7 +25481,7 @@ SELECT + ( + + 90 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(35\) AS Int32\) AS col1" at position 0 and "Int64\(71\) \+ \(\- count\(\(\- CAST\(Int64\(62\) AS Float64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(35\) AS Int64\) AS col1" at position 0 and "Int64\(71\) \+ \(\- count\(\(\- CAST\(Int64\(62\) AS Float64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 35 AS INTEGER ) AS col1, 71 + - COUNT ( - CAST ( + 62 AS FLOAT8 ) ) AS col1 query I rowsort @@ -26582,7 +26582,7 @@ SELECT DISTINCT + ( 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-80\) \+ Int64\(90\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(\-80\) \+ Int64\(90\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, - 80 + 90 + - 18 col0 query I rowsort label-5052 @@ -26692,7 +26692,7 @@ SELECT - - 66 / - 67 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN CAST\(\(\- Int64\(\-84\)\) AS Int32\) \- Int64\(97\) THEN NULL WHEN nullif\(Int64\(\-48\), Int64\(82\)\) THEN NULL ELSE Int64\(46\) END AS col0" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-95\)\) \+ Int64\(79\) \+ Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN CAST\(\(\- Int64\(\-84\)\) AS Int64\) \- Int64\(97\) THEN NULL WHEN nullif\(Int64\(\-48\), Int64\(82\)\) THEN NULL ELSE Int64\(46\) END AS col0" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-95\)\) \+ Int64\(79\) \+ Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE 32 WHEN + + CAST ( - - 84 AS INTEGER ) - 97 THEN NULL WHEN NULLIF ( - 48, 82 ) THEN NULL ELSE 46 END AS col0, NULLIF ( + COUNT ( * ), - 95 ) + + 79 + + 19 AS col0 query I rowsort label-5073 @@ -27321,7 +27321,7 @@ SELECT DISTINCT 21 / + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) / CASE \(\- Int64\(1\)\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(77\) THEN NULL WHEN coalesce\(Int64\(\-35\), nullif\(\(\- Int64\(6\)\), CAST\(Int64\(\-50\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(75\) END AS col2" at position 0 and "Int64\(89\) \- \(\- \(\- \(\- nullif\(Int64\(12\), CAST\(NULL AS Int32\) \+ Int64\(2\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) / CASE \(\- Int64\(1\)\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(77\) THEN NULL WHEN coalesce\(Int64\(\-35\), nullif\(\(\- Int64\(6\)\), CAST\(Int64\(\-50\) AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(75\) END AS col2" at position 0 and "Int64\(89\) \- \(\- \(\- \(\- nullif\(Int64\(12\), CAST\(NULL AS Int64\) \+ Int64\(2\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( - + 6 ) / CASE - ( 1 ) WHEN - - 31 + 77 THEN NULL WHEN COALESCE ( + - 35, NULLIF ( - + 6, CAST ( - 50 AS INTEGER ) ) + + ( + + COUNT ( * ) ) ) THEN NULL ELSE + 75 END AS col2, 89 - - - ( - NULLIF ( + 12, + CAST ( NULL AS INTEGER ) + + 2 ) ) AS col2 query I rowsort @@ -28102,7 +28102,7 @@ SELECT - COUNT ( DISTINCT + - 94 ) + - 63 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int64\)\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col0, 61 AS col2, - + CAST ( NULL AS INTEGER ) + ( - CAST ( NULL AS FLOAT8 ) ) AS col2 query I rowsort label-5339 @@ -31112,7 +31112,7 @@ SELECT ALL - 47 * - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(26\) \* count\(Int64\(60\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(26\) \* count\(Int64\(60\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 74 * + CAST ( NULL AS INTEGER ) AS col1, + 26 * + COUNT ( + 60 ) AS col1 query I rowsort @@ -32094,7 +32094,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(38\) AS Int32\)\) / Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(38\) AS Int64\)\) / Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + COUNT ( * ) ) AS col0, - ( + CAST ( + 38 AS INTEGER ) ) / 26 AS col0 query I rowsort label-6109 @@ -34662,7 +34662,7 @@ SELECT DISTINCT - - 66 - 17 AS col1, + NULLIF ( + ( MIN ( DISTINCT + 57 ) ), 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int32\) AS col0" at position 0 and "CASE Int64\(\-51\) WHEN Int64\(25\) THEN Int64\(\-29\) WHEN Int64\(86\) THEN Int64\(50\) WHEN count\(Int64\(\-40\)\) \* Int64\(45\) THEN Int64\(94\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int64\) AS col0" at position 0 and "CASE Int64\(\-51\) WHEN Int64\(25\) THEN Int64\(\-29\) WHEN Int64\(86\) THEN Int64\(50\) WHEN count\(Int64\(\-40\)\) \* Int64\(45\) THEN Int64\(94\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col0, CASE + ( - 51 ) WHEN + 25 THEN + - 29 WHEN + 86 THEN 50 WHEN + COUNT ( + - 40 ) * 45 THEN + 94 ELSE NULL END AS col0 query I rowsort @@ -35259,7 +35259,7 @@ SELECT DISTINCT 11 / - 48 * - NULLIF ( 90, - + 52 * + + ( + - 74 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "\(\- sum\(CAST\(NULL AS Int32\)\)\) \* Int64\(\-77\) \- Int64\(49\) \* \(\- max\(Int64\(56\)\)\) \+ \(\- nullif\(Int64\(\-33\), \(\- count\(\(\- Int64\(\-88\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "\(\- sum\(CAST\(NULL AS Int64\)\)\) \* Int64\(\-77\) \- Int64\(49\) \* \(\- max\(Int64\(56\)\)\) \+ \(\- nullif\(Int64\(\-33\), \(\- count\(\(\- Int64\(\-88\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 22 AS col2, - SUM ( + + CAST ( NULL AS INTEGER ) ) * - 77 - + 49 * - MAX ( ALL + 56 ) + - + NULLIF ( - 33, - ( + COUNT ( ALL - - 88 ) ) ) AS col2 query I rowsort @@ -36084,7 +36084,7 @@ SELECT 32, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(3\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(3\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * - CAST ( + 3 AS INTEGER ) AS col2, - 22 col2 query I rowsort @@ -42959,7 +42959,7 @@ SELECT - NULLIF ( + - 56, + 65 * 39 ) - + 64 AS col0, 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(25\)\)\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(25\)\)\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - COUNT ( 25 ) * - 87 AS col2, + 7 AS col2 query I rowsort @@ -44187,7 +44187,7 @@ SELECT ALL + + 91 + - SUM ( - + 89 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 177072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-22\) \* sum\(DISTINCT CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(97\)\) \+ CASE \(\- Int64\(\-22\)\) WHEN \(\- Int64\(14\)\) THEN Int64\(18\) END\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(62\) \* Int64\(84\) \* \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-22\) \* sum\(DISTINCT CAST\(NULL AS Int64\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(97\)\) \+ CASE \(\- Int64\(\-22\)\) WHEN \(\- Int64\(14\)\) THEN Int64\(18\) END\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(62\) \* Int64\(84\) \* \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 22 * + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - ( - COUNT ( * ) ) * - ( + 97 ) + + ( + CASE - - 22 WHEN - + 14 THEN 18 END ) ) AS col2, COUNT ( * ) * + 62 * 84 * - - 34 col2 query I rowsort @@ -45253,7 +45253,7 @@ SELECT ALL + 9 * + 87 + - NULLIF ( + + COALESCE ( 29, NULLIF ( + 60, + 65 / 93 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), Int64\(73\), Int64\(43\)\) \* Int64\(84\) \+ coalesce\(Int64\(52\), \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(CAST\(Int64\(\-29\) AS Int32\)\)\) \* Int64\(\-41\), Int64\(\-79\) / CASE Int64\(34\) WHEN Int64\(34\) THEN Int64\(53\) \* Int64\(0\) WHEN Int64\(20\) THEN NULL WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN Int64\(98\) THEN NULL END \+ \(\- Int64\(\-97\)\), CAST\(NULL AS Int32\) \+ Int64\(41\) \+ Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), Int64\(73\), Int64\(43\)\) \* Int64\(84\) \+ coalesce\(Int64\(52\), \(\- CAST\(NULL AS Int64\)\) \* \(\- count\(CAST\(Int64\(\-29\) AS Int64\)\)\) \* Int64\(\-41\), Int64\(\-79\) / CASE Int64\(34\) WHEN Int64\(34\) THEN Int64\(53\) \* Int64\(0\) WHEN Int64\(20\) THEN NULL WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN Int64\(98\) THEN NULL END \+ \(\- Int64\(\-97\)\), CAST\(NULL AS Int64\) \+ Int64\(41\) \+ Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col0, + COALESCE ( + - 16, + + 73, 43 ) * 84 + COALESCE ( 52, - ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( ALL CAST ( + - 29 AS INTEGER ) ) * - 41, - 79 / + CASE + 34 WHEN + 34 THEN + 53 * - 0 WHEN + 20 THEN NULL WHEN - - ( + + ( COUNT ( * ) ) ) THEN NULL WHEN + + 98 THEN NULL END + - - 97, CAST ( NULL AS INTEGER ) + + 41 + + + 13 ) AS col0 query II rowsort @@ -46219,7 +46219,7 @@ SELECT DISTINCT + COUNT ( * ) / + 78 + - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) / CAST\(Int64\(86\) AS Int32\) \* Int64\(9\) \+ Int64\(83\) \- Int64\(0\) AS col2" at position 0 and "\(\- count\(Int64\(77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) / CAST\(Int64\(86\) AS Int64\) \* Int64\(9\) \+ Int64\(83\) \- Int64\(0\) AS col2" at position 0 and "\(\- count\(Int64\(77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 81 / CAST ( 86 AS INTEGER ) * 9 + + 83 - + + 0 AS col2, - COUNT ( + 77 ) AS col2 # Datafusion - Types were automatically converted from: @@ -50298,7 +50298,7 @@ SELECT ALL + 70 * 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- Int64\(34\)\)\) AS Int32\) AS col2" at position 0 and "min\(DISTINCT \(\- Int64\(0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- Int64\(34\)\)\) AS Int64\) AS col2" at position 0 and "min\(DISTINCT \(\- Int64\(0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - - ( 34 ) AS INTEGER ) AS col2, MIN ( DISTINCT - ( + 0 ) ) col2 query I rowsort label-9563 diff --git a/data/sqlite/random/expr/slt_good_74.slt b/data/sqlite/random/expr/slt_good_74.slt index 89f5754..981de00 100644 --- a/data/sqlite/random/expr/slt_good_74.slt +++ b/data/sqlite/random/expr/slt_good_74.slt @@ -622,7 +622,7 @@ SELECT DISTINCT - 49 + + + COUNT ( * ) + 40 AS col0 # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-46\) \- sum\(Int64\(86\)\) \* \(\- CAST\(Int64\(29\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* count\(Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-46\) \- sum\(Int64\(86\)\) \* \(\- CAST\(Int64\(29\) AS Int64\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \* count\(Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 19 AS col0, - 46 - + ( + SUM ( + 86 ) ) * ( - CAST ( 29 AS INTEGER ) ) * + - COUNT ( * ) * - 80 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( + 51 ) AS col0, + 45 AS col0 query I rowsort label-110 @@ -889,7 +889,7 @@ SELECT + 84 AS col2, 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(93\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-88\) / Int64\(24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(93\) AS Int64\)\) AS col1" at position 0 and "Int64\(\-88\) / Int64\(24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + ( 93 ) AS INTEGER ) AS col1, - 88 / 24 * + + ( - COUNT ( * ) ) AS col1 query I rowsort label-159 @@ -1469,7 +1469,7 @@ SELECT 16, + MAX ( - + 59 ) + + 40 + + 50 col2 # Datafusion - Expected - 513 # Datafusion - Expected - -79 # Datafusion - Expected - 1915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT \(\- \(\- CAST\(Int64\(19\) AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT \(\- \(\- CAST\(Int64\(19\) AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 27 * + ( - COUNT ( * ) ) * + MIN ( DISTINCT - - CAST ( + 19 AS INTEGER ) ) AS col1, - 79 AS col1, - 94 - + + ( 15 ) + - + ( + + 44 ) * - + 46 col0 query I rowsort label-269 @@ -2083,7 +2083,7 @@ SELECT ALL 69 + - 10 * 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -5477 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(64\) \* Int64\(\-85\) \+ Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(48\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(64\) \* Int64\(\-85\) \+ Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(48\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 19 AS col1, 64 * - 85 + 12 + + - COUNT ( * ) + - CAST ( + 48 AS INTEGER ) AS col1 query I rowsort label-385 @@ -3723,7 +3723,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-52\) \+ \(\- CASE Int64\(42\) WHEN Int64\(93\) THEN NULL WHEN Int64\(59\) \* Int64\(87\) \- \(\- Int64\(54\)\) THEN NULL ELSE Int64\(44\) END\) AS col2" at position 0 and "Int64\(75\) \+ \(\- coalesce\(Int64\(\-21\), Int64\(\-50\) / Int64\(51\) \+ \(\- CASE CAST\(Int64\(\-37\) AS Int32\) WHEN Int64\(81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- Int64\(1\)\), Int64\(67\) \+ Int64\(25\) \+ Int64\(\-72\), Int64\(0\)\)\) \* Int64\(\-46\) \* Int64\(\-36\) \+ Int64\(16\) \- \(\- avg\(DISTINCT Int64\(92\)\)\) \+ max\(DISTINCT Int64\(84\)\) \* Int64\(\-3\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) / Int64\(95\) \+ \(\- Int64\(\-81\)\) \+ Int64\(50\) \* min\(Int64\(74\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-52\) \+ \(\- CASE Int64\(42\) WHEN Int64\(93\) THEN NULL WHEN Int64\(59\) \* Int64\(87\) \- \(\- Int64\(54\)\) THEN NULL ELSE Int64\(44\) END\) AS col2" at position 0 and "Int64\(75\) \+ \(\- coalesce\(Int64\(\-21\), Int64\(\-50\) / Int64\(51\) \+ \(\- CASE CAST\(Int64\(\-37\) AS Int64\) WHEN Int64\(81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- Int64\(1\)\), Int64\(67\) \+ Int64\(25\) \+ Int64\(\-72\), Int64\(0\)\)\) \* Int64\(\-46\) \* Int64\(\-36\) \+ Int64\(16\) \- \(\- avg\(DISTINCT Int64\(92\)\)\) \+ max\(DISTINCT Int64\(84\)\) \* Int64\(\-3\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) / Int64\(95\) \+ \(\- Int64\(\-81\)\) \+ Int64\(50\) \* min\(Int64\(74\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - COUNT ( * ) * - 52 + - + CASE + 42 WHEN + 93 THEN NULL WHEN 59 * + + 87 - - + 54 THEN NULL ELSE 44 END AS col2, 75 + - COALESCE ( - 21, + - 50 / 51 + - CASE + CAST ( - 37 AS INTEGER ) WHEN 81 + - COUNT ( * ) * - + COALESCE ( - + 1, + 67 + + 25 + - 72, + 0 ) * - 46 * - 36 + + + 16 - - AVG ( DISTINCT 92 ) + + MAX ( DISTINCT + 84 ) * - 3 THEN COUNT ( * ) END / 95 + - - 81 + 50 * MIN ( + 74 ) ) AS col2 query I rowsort label-697 @@ -4073,7 +4073,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \- Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 99 col0, + CAST ( NULL AS INTEGER ) - 59 AS col0 query I rowsort @@ -9703,7 +9703,7 @@ SELECT - + COUNT ( * ) * + 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5585 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ \(\- Int64\(59\)\) \* \(\- Int64\(93\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ \(\- Int64\(59\)\) \* \(\- Int64\(93\)\) 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\. SELECT 98 + - + 59 * - + 93 AS col0, + CAST ( NULL AS INTEGER ) col0 query II rowsort label-1828 @@ -13276,7 +13276,7 @@ SELECT ALL ( - + 21 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 7885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(40\)\) \+ \(\- Int64\(\-37\)\) / Int64\(38\) AS col1" at position 0 and "nullif\(Int64\(95\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-24\)\) \* Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(40\)\) \+ \(\- Int64\(\-37\)\) / Int64\(38\) AS col1" at position 0 and "nullif\(Int64\(95\), \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-24\)\) \* Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + ( + 40 ) ) + - ( - 37 ) / + 38 AS col1, + NULLIF ( + 95, - CAST ( NULL AS INTEGER ) * + - 24 ) * + 83 AS col1 query I rowsort label-2507 @@ -14415,7 +14415,7 @@ SELECT - 51 * + + 73 + - 75 + - 56 + - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, 34 AS col2 query I rowsort label-2727 @@ -15186,7 +15186,7 @@ SELECT ALL + 23 col0, + 57 * - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- Int64\(37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- Int64\(37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col2, - ( 37 ) AS col2 query I rowsort label-2875 @@ -17977,7 +17977,7 @@ SELECT DISTINCT 4 * NULLIF ( - + 89, - + CAST ( - - 96 AS INTEGER ) * + 83 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6192 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(86\) AS col1" at position 0 and "min\(\(\- CAST\(Int64\(82\) AS Int32\)\)\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(86\) AS col1" at position 0 and "min\(\(\- CAST\(Int64\(82\) AS Int64\)\)\) / CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 72 * 86 AS col1, MIN ( + ( - CAST ( + 82 AS INTEGER ) ) ) / CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-3407 @@ -18181,7 +18181,7 @@ SELECT 85 / - SUM ( ALL 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(7\)\), Int64\(30\), Int64\(31\)\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(58\) \* \(\- Int64\(17\)\) \+ Int64\(\-27\) \+ Int64\(81\) \+ Int64\(50\) \* Int64\(\-39\) \* Int64\(\-87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(93\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(7\)\), Int64\(30\), Int64\(31\)\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(58\) \* \(\- Int64\(17\)\) \+ Int64\(\-27\) \+ Int64\(81\) \+ Int64\(50\) \* Int64\(\-39\) \* Int64\(\-87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(93\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( COUNT ( ALL + 7 ), + ( + ( 30 ) ), 31 ) + + 47 AS col2, 58 * - + 17 + - 27 + + 81 + + 50 * + - 39 * - 87 * - COUNT ( * ) * 93 + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -18832,7 +18832,7 @@ SELECT DISTINCT NULLIF ( 8, + CASE + - 83 WHEN - 90 * + - 57 THEN + 59 END ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(\(\- Int64\(10\)\) AS Int32\) \- Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* CAST\(\(\- Int64\(10\)\) AS Int64\) \- Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 80 AS col1, CAST ( NULL AS INTEGER ) * + CAST ( - + 10 AS INTEGER ) - 74 AS col1 query I rowsort @@ -23564,7 +23564,7 @@ SELECT - + 35 col1, - 88 + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "CAST\(Int64\(\-11\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "CAST\(Int64\(\-11\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 63 AS col2, + ( CAST ( - 11 AS INTEGER ) ) AS col2 # Datafusion - Types were automatically converted from: @@ -25343,7 +25343,7 @@ SELECT - CAST ( 39 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ Int64\(\-34\) / Int64\(\-64\) / CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ Int64\(\-34\) / Int64\(\-64\) / CAST\(NULL AS Int64\) \* Int64\(\-74\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 64 + - 34 / ( - 64 ) / CAST ( NULL AS INTEGER ) * - 74 AS col2, + 52 AS col2 query II rowsort @@ -25366,7 +25366,7 @@ SELECT 0 + - 17 / + 27 * - + 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 655 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ Int64\(67\) \+ Int64\(9\) \* Int64\(67\) \+ max\(\(\- coalesce\(Int64\(46\), Int64\(\-85\), Int64\(31\)\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ Int64\(67\) \+ Int64\(9\) \* Int64\(67\) \+ max\(\(\- coalesce\(Int64\(46\), Int64\(\-85\), Int64\(31\)\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 31 + + 67 + 9 * 67 + + MAX ( + - COALESCE ( 46, - 85, + 31 ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -25830,7 +25830,7 @@ SELECT 84 AS col1, 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- sum\(Int64\(33\)\)\) / Int64\(99\) \- Int64\(83\) \- coalesce\(Int64\(18\), Int64\(24\) \+ CASE Int64\(18\) WHEN CAST\(Int64\(\-13\) AS Int32\) THEN \(\- Int64\(18\)\) \* Int64\(32\) ELSE NULL END \+ Int64\(\-46\) \- Int64\(61\)\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- sum\(Int64\(33\)\)\) / Int64\(99\) \- Int64\(83\) \- coalesce\(Int64\(18\), Int64\(24\) \+ CASE Int64\(18\) WHEN CAST\(Int64\(\-13\) AS Int64\) THEN \(\- Int64\(18\)\) \* Int64\(32\) ELSE NULL END \+ Int64\(\-46\) \- Int64\(61\)\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 85 + - SUM ( ALL + 33 ) / 99 - 83 - + COALESCE ( + + 18, + 24 + + CASE + 18 WHEN + CAST ( - 13 AS INTEGER ) THEN - + 18 * + 32 ELSE NULL END + - 46 - + 61 ) AS col2, - 33 AS col2 # Datafusion - Datafusion expected results: @@ -26008,7 +26008,7 @@ SELECT ALL - 99 * MAX ( 75 ) * + 44 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, - 15 AS col2 query I rowsort label-4943 @@ -27297,7 +27297,7 @@ SELECT - - COUNT ( * ) * - SUM ( ALL - + 49 ) + + 34 * - COALESCE ( - 13, + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(78\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-39\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(78\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-39\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 - + 78 * + + CAST ( NULL AS INTEGER ) AS col2, - 39 * 5 col2 query I rowsort label-5189 @@ -29064,7 +29064,7 @@ SELECT 45 + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1392 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(72\)\)\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\)\)\) \* \(\- Int64\(15\)\) \* Int64\(88\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(0\) \+ Int64\(\-73\) \- Int64\(3\) \+ \(\- Int64\(\-20\)\) \* \(\- coalesce\(Int64\(\-50\), Int64\(7\), Int64\(60\)\)\) / CAST\(NULL AS Int32\) \* Int64\(6\) \* \(\- Int64\(21\)\) \- Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(72\)\)\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\)\)\) \* \(\- Int64\(15\)\) \* Int64\(88\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(0\) \+ Int64\(\-73\) \- Int64\(3\) \+ \(\- Int64\(\-20\)\) \* \(\- coalesce\(Int64\(\-50\), Int64\(7\), Int64\(60\)\)\) / CAST\(NULL AS Int64\) \* Int64\(6\) \* \(\- Int64\(21\)\) \- Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - + 72 ) + - COALESCE ( + COUNT ( * ), - 81 ) * - ( 15 ) * + 88 / + COUNT ( * ) AS col1, - 0 + - 73 - + 3 + - ( - 20 ) * - COALESCE ( + - 50, 7, + + 60 ) / + CAST ( NULL AS INTEGER ) * + 6 * - + 21 - - 63 col1 query I rowsort label-5521 @@ -29163,7 +29163,7 @@ SELECT + 14 AS col0, - COUNT ( * ) * + ( + 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(30\), \(\- Int64\(\-16\)\)\) AS col1" at position 0 and "avg\(nullif\(CAST\(NULL AS Int32\), \(\- Int64\(\-33\)\) \* Int64\(\-56\) \* Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(30\), \(\- Int64\(\-16\)\)\) AS col1" at position 0 and "avg\(nullif\(CAST\(NULL AS Int64\), \(\- Int64\(\-33\)\) \* Int64\(\-56\) \* Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( + + 30, - - 16 ) col1, AVG ( NULLIF ( CAST ( NULL AS INTEGER ), - - 33 * - 56 * + 91 ) ) AS col1 query I rowsort label-5540 @@ -31599,7 +31599,7 @@ SELECT ( - 75 ) * - + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 77 AS col1, + 4 * + CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -34354,7 +34354,7 @@ SELECT - COUNT ( ALL + 12 ) + + NULLIF ( 40, - 68 + 90 ) * + + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2872 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(55\) \* Int64\(\-51\) AS col1" at position 0 and "Int64\(\-30\) \* Int64\(\-42\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(55\) \* Int64\(\-51\) AS col1" at position 0 and "Int64\(\-30\) \* Int64\(\-42\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 67 + + 55 * - 51 AS col1, + ( - 30 ) * - 42 * - CAST ( NULL AS INTEGER ) * 34 AS col1 query I rowsort @@ -36596,7 +36596,7 @@ SELECT ALL + 68 * + COALESCE ( - 17, + 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE CAST\(Int64\(35\) AS Int32\) WHEN Int64\(44\) \* Int64\(\-33\) THEN \(\- nullif\(Int64\(\-63\), \(\- CAST\(\(\- Int64\(45\)\) AS Int32\)\) \* nullif\(Int64\(68\), Int64\(\-59\) \+ Int64\(\-38\)\) \+ Int64\(36\) \+ \(\- Int64\(\-62\)\) \* Int64\(\-48\)\)\) \+ Int64\(\-67\) END\)\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE CAST\(Int64\(35\) AS Int64\) WHEN Int64\(44\) \* Int64\(\-33\) THEN \(\- nullif\(Int64\(\-63\), \(\- CAST\(\(\- Int64\(45\)\) AS Int64\)\) \* nullif\(Int64\(68\), Int64\(\-59\) \+ Int64\(\-38\)\) \+ Int64\(36\) \+ \(\- Int64\(\-62\)\) \* Int64\(\-48\)\)\) \+ Int64\(\-67\) END\)\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( - CASE + + CAST ( 35 AS INTEGER ) WHEN 44 * + - 33 THEN - NULLIF ( - 63, - + CAST ( - + 45 AS INTEGER ) * + + NULLIF ( + 68, - 59 + - 38 ) + 36 + - - 62 * - 48 ) + - 67 END ) AS col2, - 39 AS col2 query II rowsort @@ -40644,7 +40644,7 @@ SELECT DISTINCT ( CAST ( + 52 AS INTEGER ) ) * + 59 + COALESCE ( - 76, NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(58\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(12\) \* Int64\(\-50\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(58\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(12\) \* Int64\(\-50\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, 58 + - - CAST ( NULL AS INTEGER ) + 12 * - 50 + - 46 AS col0 query I rowsort label-7729 @@ -41388,7 +41388,7 @@ SELECT 81 * MAX ( + + 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "\(\- CASE Int64\(\-98\) WHEN Int64\(\-15\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) / Int64\(59\) WHEN Int64\(\-72\) THEN Int64\(7\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "\(\- CASE Int64\(\-98\) WHEN Int64\(\-15\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) / Int64\(59\) WHEN Int64\(\-72\) THEN Int64\(7\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 3 AS col2, - CASE - 98 WHEN - 15 THEN - + CAST ( COUNT ( * ) AS INTEGER ) / + + 59 WHEN - 72 THEN + 7 ELSE NULL END AS col2 query I rowsort @@ -41536,7 +41536,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 891458700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(52\) \* Int64\(\-19\) \* \(\- count\(Int64\(\-28\)\)\) \* Int64\(\-98\) \* Int64\(\-93\) \* Int64\(99\) \- Int64\(77\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-31\) \* CASE Int64\(\-75\) WHEN Int64\(99\) / \(\- coalesce\(Int64\(83\) \* \(\- Int64\(\-65\) \* CAST\(NULL AS Int32\)\), Int64\(\-84\), Int64\(90\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- sum\(Int64\(77\)\)\) THEN Int64\(24\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(52\) \* Int64\(\-19\) \* \(\- count\(Int64\(\-28\)\)\) \* Int64\(\-98\) \* Int64\(\-93\) \* Int64\(99\) \- Int64\(77\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-31\) \* CASE Int64\(\-75\) WHEN Int64\(99\) / \(\- coalesce\(Int64\(83\) \* \(\- Int64\(\-65\) \* CAST\(NULL AS Int64\)\), Int64\(\-84\), Int64\(90\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- sum\(Int64\(77\)\)\) THEN Int64\(24\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 + + + 52 * - 19 * - COUNT ( - 28 ) * + - 98 * - 93 * 99 - + 77 / - COUNT ( * ) AS col2, - 31 * + CASE - 75 WHEN 99 / - COALESCE ( 83 * - ( - 65 * ( CAST ( NULL AS INTEGER ) ) ), - 84, + 90, + COUNT ( * ) ) + - SUM ( 77 ) THEN + 24 ELSE NULL END col2 query I rowsort @@ -43766,7 +43766,7 @@ SELECT + 28 - + - COUNT ( * ) - + + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2349 # Datafusion - Expected - 2772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-70\) \+ Int64\(47\) \+ Int64\(\-94\) / Int64\(12\) \+ Int64\(81\) \+ \(\- Int64\(\-39\)\) \* CAST\(Int64\(\-40\) AS Int32\) AS col1" at position 0 and "Int64\(28\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-70\) \+ Int64\(47\) \+ Int64\(\-94\) / Int64\(12\) \+ Int64\(81\) \+ \(\- Int64\(\-39\)\) \* CAST\(Int64\(\-40\) AS Int64\) AS col1" at position 0 and "Int64\(28\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 13 * - 70 + + ( 47 ) + - 94 / + 12 + 81 + - - 39 * + CAST ( + ( - 40 ) AS INTEGER ) AS col1, 28 * 99 AS col1 query I rowsort label-8322 @@ -44225,7 +44225,7 @@ SELECT 81 * + ( - ( 98 ) ) + - - COUNT ( * ) + + - 26 - + 1 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 61 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1, + 61, 88 AS col1 query I rowsort @@ -45952,7 +45952,7 @@ SELECT ALL + SUM ( + + ( - 7 ) ) - 86 * + 48 * 48 + + CAST ( 48 AS INTEGER ) + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7742 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* max\(Int64\(79\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-28\)\) AS Int32\) \+ Int64\(10\) \* \(\- sum\(DISTINCT Int64\(\-3\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* max\(Int64\(79\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-28\)\) AS Int64\) \+ Int64\(10\) \* \(\- sum\(DISTINCT Int64\(\-3\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 98 * MAX ( ALL + 79 ) AS col1, + CAST ( ( - - 28 ) AS INTEGER ) + 10 * - SUM ( DISTINCT - 3 ) AS col1 query I rowsort label-8737 @@ -49680,7 +49680,7 @@ SELECT ALL - + ( - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1344 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(84\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(3\), CASE Int64\(\-8\) WHEN max\(Int64\(22\)\) \+ Int64\(94\) THEN NULL WHEN Int64\(66\) \+ \(\- CAST\(Int64\(70\) \- Int64\(76\) AS Int32\)\) THEN NULL ELSE Int64\(40\) END \- Int64\(\-28\)\)\) \* avg\(Int64\(\-56\) \+ Int64\(\-69\)\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(84\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(3\), CASE Int64\(\-8\) WHEN max\(Int64\(22\)\) \+ Int64\(94\) THEN NULL WHEN Int64\(66\) \+ \(\- CAST\(Int64\(70\) \- Int64\(76\) AS Int64\)\) THEN NULL ELSE Int64\(40\) END \- Int64\(\-28\)\)\) \* avg\(Int64\(\-56\) \+ Int64\(\-69\)\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 * + 84 AS col1, + CAST ( NULL AS INTEGER ) + + ( - + COUNT ( * ) ) + - COALESCE ( 3, + + CASE - 8 WHEN MAX ( ALL 22 ) + + 94 THEN NULL WHEN 66 + - CAST ( ( + 70 ) - + 76 AS INTEGER ) THEN NULL ELSE 40 END - - 28 ) * + AVG ( - 56 + - 69 ) * 92 AS col1 query I rowsort label-9456 diff --git a/data/sqlite/random/expr/slt_good_75.slt b/data/sqlite/random/expr/slt_good_75.slt index cbdfcc4..9f79da0 100644 --- a/data/sqlite/random/expr/slt_good_75.slt +++ b/data/sqlite/random/expr/slt_good_75.slt @@ -2235,7 +2235,7 @@ SELECT + + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-1\)\)\) AS col1" at position 0 and "\(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(38\) \+ Int64\(\-76\)\)\) \* CAST\(Int64\(33\) AS Int32\) \+ \(\- nullif\(\(\- Int64\(1\)\), Int64\(71\) / nullif\(\(\- CAST\(\(\- Int64\(84\)\) AS Int32\)\), Int64\(40\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-1\)\)\) AS col1" at position 0 and "\(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(38\) \+ Int64\(\-76\)\)\) \* CAST\(Int64\(33\) AS Int64\) \+ \(\- nullif\(\(\- Int64\(1\)\), Int64\(71\) / nullif\(\(\- CAST\(\(\- Int64\(84\)\) AS Int64\)\), Int64\(40\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - SUM ( - 1 ) col1, - ( - + MIN ( - - 57 ) ) * - COALESCE ( + - COUNT ( * ), + 38 + - 76 ) * CAST ( + 33 AS INTEGER ) + - NULLIF ( - + 1, 71 / + NULLIF ( - CAST ( - + 84 AS INTEGER ), + 40 ) ) col1 query I rowsort @@ -3539,7 +3539,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(34\) AS col0" at position 0 and "Int64\(94\) \* \(\- nullif\(Int64\(0\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \* nullif\(Int64\(29\), min\(\(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- Int64\(33\)\)\)\) \+ Int64\(\-85\) \+ Int64\(\-13\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(34\) AS col0" at position 0 and "Int64\(94\) \* \(\- nullif\(Int64\(0\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \* nullif\(Int64\(29\), min\(\(\- CAST\(NULL AS Int64\)\)\)\) \* \(\- Int64\(33\)\)\)\) \+ Int64\(\-85\) \+ Int64\(\-13\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 + + 34 AS col0, 94 * - NULLIF ( 0, - COUNT ( * ) / 30 * NULLIF ( + + 29, + MIN ( - CAST ( NULL AS INTEGER ) ) ) * - + 33 ) + + - 85 + - 13 * - 0 AS col0 query I rowsort label-666 @@ -5374,7 +5374,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -5394 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(87\) \* CAST\(Int64\(\-62\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(87\) \* CAST\(Int64\(\-62\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 90 AS col1, 87 * + CAST ( - 62 AS INTEGER ) col1 query II rowsort @@ -7292,7 +7292,7 @@ SELECT + 57 * + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-14\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-14\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 AS col1, - CAST ( + - 14 AS INTEGER ) AS col1 query I rowsort @@ -9789,7 +9789,7 @@ SELECT ALL ( + ( - + 17 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-1855 @@ -11913,7 +11913,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(74\) \* Int64\(\-17\) \+ CASE Int64\(61\) WHEN Int64\(86\) THEN CAST\(Int64\(99\) AS Int32\) \* Int64\(\-15\) WHEN Int64\(77\) THEN NULL END \* Int64\(\-66\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(74\) \* Int64\(\-17\) \+ CASE Int64\(61\) WHEN Int64\(86\) THEN CAST\(Int64\(99\) AS Int64\) \* Int64\(\-15\) WHEN Int64\(77\) THEN NULL END \* Int64\(\-66\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 col1, + 74 * - 17 + + CASE 61 WHEN ( + 86 ) THEN + CAST ( 99 AS INTEGER ) * + - 15 WHEN 77 THEN NULL END * - 66 * - 56 AS col1 query I rowsort @@ -11970,7 +11970,7 @@ SELECT 41 + + 52 * SUM ( ALL - 66 ) * 48 * 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ CASE WHEN Int64\(28\) != Int64\(\-59\) \- \(\- sum\(Int64\(16\)\)\) OR NOT Int64\(\-58\) BETWEEN Int64\(42\) \+ \(\- Int64\(\-80\)\) AND Int64\(54\) THEN Int64\(2\) END AS col2" at position 0 and "nullif\(Int64\(\-5\), \(\- coalesce\(Int64\(62\), \(\- CAST\(CAST\(NULL AS Float64\) AS Int32\)\) \* \(\- Int64\(\-2\)\) \+ Int64\(73\), \(\- \(\- \(\- Int64\(\-9\)\)\)\)\)\) \* Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ CASE WHEN Int64\(28\) != Int64\(\-59\) \- \(\- sum\(Int64\(16\)\)\) OR NOT Int64\(\-58\) BETWEEN Int64\(42\) \+ \(\- Int64\(\-80\)\) AND Int64\(54\) THEN Int64\(2\) END AS col2" at position 0 and "nullif\(Int64\(\-5\), \(\- coalesce\(Int64\(62\), \(\- CAST\(CAST\(NULL AS Float64\) AS Int64\)\) \* \(\- Int64\(\-2\)\) \+ Int64\(73\), \(\- \(\- \(\- Int64\(\-9\)\)\)\)\)\) \* Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 86 + + + CASE WHEN + 28 <> - 59 - + - SUM ( + 16 ) OR NOT - 58 BETWEEN 42 + - - 80 AND + + 54 THEN 2 END AS col2, ( + NULLIF ( - 5, - + COALESCE ( + 62, - CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) * - - 2 + + + 73, - - ( - - 9 ) ) * + + 70 ) ) AS col2 query I rowsort label-2269 @@ -12293,7 +12293,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \- \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COUNT ( * ) + 27 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) - - - 99 col2 query I rowsort label-2330 @@ -16126,7 +16126,7 @@ SELECT + 39, 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-1\)\) \* \(\- coalesce\(Int64\(91\), Int64\(\-68\), Int64\(57\)\)\) \+ Int64\(\-13\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(41\) \+ Int64\(\-71\) \* Int64\(\-11\) \* Int64\(74\) AS col1" at position 0 and "Int64\(34\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-1\)\) \* \(\- coalesce\(Int64\(91\), Int64\(\-68\), Int64\(57\)\)\) \+ Int64\(\-13\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(41\) \+ Int64\(\-71\) \* Int64\(\-11\) \* Int64\(74\) AS col1" at position 0 and "Int64\(34\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 + + COUNT ( * ) + - - 1 * - + COALESCE ( 91, - 68, + 57 ) + - 13 * - CAST ( NULL AS INTEGER ) + 41 + - 71 * - 11 * 74 col1, 34 * + 27 AS col1 query II rowsort label-3063 @@ -17391,7 +17391,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -134 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* CAST\(\(\- max\(DISTINCT \(\- \(\- CAST\(Int64\(2\) AS Float64\)\)\)\)\) AS Int32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* CAST\(\(\- max\(DISTINCT \(\- \(\- CAST\(Int64\(2\) AS Float64\)\)\)\)\) AS Int64\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 67 * CAST ( + - MAX ( DISTINCT - - CAST ( + 2 AS FLOAT8 ) ) AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 65 AS col2 query I rowsort label-3304 @@ -18737,7 +18737,7 @@ SELECT - COUNT ( * ) + - + 85 + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / CAST\(NULL AS Int32\) \- Int64\(\-81\) \+ Int64\(\-23\) \* Int64\(69\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / CAST\(NULL AS Int64\) \- Int64\(\-81\) \+ Int64\(\-23\) \* Int64\(69\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 89 / CAST ( NULL AS INTEGER ) - - 81 + - 23 * 69 AS col1, 9 AS col1 query I rowsort @@ -20858,7 +20858,7 @@ SELECT - + 75 + COUNT ( * ) / - 44 + - ( MIN ( ALL CAST ( - 75 AS INTEGER ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(36\)\)\) / coalesce\(Int64\(58\), nullif\(\(\- nullif\(Int64\(36\), Int64\(60\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(26\)\)\) \* Int64\(27\) \+ Int64\(49\) \+ \(\- CAST\(avg\(Int64\(\-63\)\) AS Int32\)\) \+ Int64\(\-52\) \* Int64\(\-9\) \* Int64\(13\) \+ CASE Int64\(\-17\) WHEN Int64\(57\) THEN coalesce\(Int64\(\-50\), CASE \(\- \(\- CAST\(Int64\(79\) AS Int32\)\)\) WHEN Int64\(25\) \* Int64\(30\) / Int64\(\-46\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(34\) / Int64\(50\) \+ Int64\(\-11\) / Int64\(\-22\) THEN NULL WHEN CASE Int64\(\-15\) WHEN Int64\(4\) \* Int64\(\-86\) THEN Int64\(\-30\) \+ Int64\(98\) ELSE NULL END \* count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(20\), \(\- Int64\(\-35\)\)\) \- Int64\(30\) / CAST\(NULL AS Int32\) THEN Int64\(60\) \* Int64\(\-51\) ELSE NULL END, Int64\(\-41\) / Int64\(96\) \+ Int64\(30\) / Int64\(84\)\) WHEN Int64\(11\) THEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(\-18\) AS Int32\) \+ Int64\(74\)\) THEN NULL ELSE Int64\(72\) \+ Int64\(74\) \* Int64\(\-96\) END ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(36\)\)\) / coalesce\(Int64\(58\), nullif\(\(\- nullif\(Int64\(36\), Int64\(60\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(26\)\)\) \* Int64\(27\) \+ Int64\(49\) \+ \(\- CAST\(avg\(Int64\(\-63\)\) AS Int64\)\) \+ Int64\(\-52\) \* Int64\(\-9\) \* Int64\(13\) \+ CASE Int64\(\-17\) WHEN Int64\(57\) THEN coalesce\(Int64\(\-50\), CASE \(\- \(\- CAST\(Int64\(79\) AS Int64\)\)\) WHEN Int64\(25\) \* Int64\(30\) / Int64\(\-46\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(34\) / Int64\(50\) \+ Int64\(\-11\) / Int64\(\-22\) THEN NULL WHEN CASE Int64\(\-15\) WHEN Int64\(4\) \* Int64\(\-86\) THEN Int64\(\-30\) \+ Int64\(98\) ELSE NULL END \* count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(20\), \(\- Int64\(\-35\)\)\) \- Int64\(30\) / CAST\(NULL AS Int64\) THEN Int64\(60\) \* Int64\(\-51\) ELSE NULL END, Int64\(\-41\) / Int64\(96\) \+ Int64\(30\) / Int64\(84\)\) WHEN Int64\(11\) THEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(\-18\) AS Int64\) \+ Int64\(74\)\) THEN NULL ELSE Int64\(72\) \+ Int64\(74\) \* Int64\(\-96\) END ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 0 / + ( + + COUNT ( * ) ) AS col2, - COUNT ( 36 ) / + + COALESCE ( 58, NULLIF ( - NULLIF ( + 36, 60 + + COUNT ( * ) ), + 26 ) ) * 27 + 49 + - ( + CAST ( + + AVG ( - 63 ) AS INTEGER ) ) + - 52 * - 9 * 13 + CASE - 17 WHEN + 57 THEN COALESCE ( - 50, + CASE - - CAST ( 79 AS INTEGER ) WHEN 25 * + 30 / - 46 THEN + COUNT ( * ) WHEN 34 / + + 50 + + - 11 / + - 22 THEN NULL WHEN CASE - 15 WHEN 4 * - 86 THEN - 30 + + 98 ELSE NULL END * COUNT ( * ) * NULLIF ( + 20, - ( - 35 ) ) - 30 / CAST ( NULL AS INTEGER ) THEN 60 * - 51 ELSE NULL END, - 41 / 96 + 30 / + 84 ) WHEN 11 THEN CASE COUNT ( * ) WHEN - COUNT ( * ) + - ( CAST ( - 18 AS INTEGER ) + + 74 ) THEN NULL ELSE ( 72 ) + + 74 * - 96 END ELSE NULL END AS col2 query I rowsort label-3962 @@ -22378,7 +22378,7 @@ SELECT DISTINCT 18 + + + ( + 44 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(68\) \+ Int64\(21\) \- Int64\(\-97\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(68\) \+ Int64\(21\) \- Int64\(\-97\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 68 + + CAST ( NULL AS INTEGER ) AS col0, + 68 + 21 - - 97 * 21 AS col0 query I rowsort @@ -24200,7 +24200,7 @@ SELECT 40 - 69 - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(8\) \- nullif\(CAST\(Int64\(67\) AS Int32\), Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(8\) \- nullif\(CAST\(Int64\(67\) AS Int64\), Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 13 / COUNT ( * ) col0, 8 - + NULLIF ( + CAST ( + 67 AS INTEGER ), 32 ) AS col0 query I rowsort label-4600 @@ -24311,7 +24311,7 @@ SELECT ALL - 32 + - - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(53\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(53\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 + + 53 * + + CAST ( NULL AS INTEGER ) AS col0, + ( - 34 ) AS col0 query I rowsort @@ -26531,7 +26531,7 @@ SELECT - 53 / 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + 10 AS col0 query I rowsort @@ -27226,7 +27226,7 @@ SELECT DISTINCT 0 * + - 77 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 66 + ( CAST ( NULL AS INTEGER ) ) col2, COUNT ( * ) AS col2 query I rowsort label-5171 @@ -28607,7 +28607,7 @@ SELECT 93 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-93\) \* \(\- Int64\(\-40\)\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-88\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-93\) \* \(\- Int64\(\-40\)\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-88\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * - 93 * - - 40 / + + COUNT ( * ) - - 88 AS col1, 32 AS col1 query II rowsort @@ -28977,7 +28977,7 @@ SELECT ALL 95 * + 85 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) AS col0" at position 0 and "\(\- nullif\(Int64\(26\), CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) AS col0" at position 0 and "\(\- nullif\(Int64\(26\), CAST\(NULL AS Int64\) / count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + + COUNT ( * ) ) * + 91 AS col0, - NULLIF ( 26, CAST ( NULL AS INTEGER ) / COUNT ( * ) ) AS col0 query I rowsort label-5504 @@ -31373,7 +31373,7 @@ SELECT ALL 28 * + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(\-61\) \- Int64\(\-7\) \* Int64\(\-38\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(\-61\) \- Int64\(\-7\) \* Int64\(\-38\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 27 AS col1, - 61 - - 7 * - 38 + - + CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-5962 @@ -31869,7 +31869,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "nullif\(Int64\(8\), \(\- CAST\(Int64\(92\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "nullif\(Int64\(8\), \(\- CAST\(Int64\(92\) AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 81 AS col0, NULLIF ( + 8, - CAST ( + + 92 AS INTEGER ) ) AS col0 query I rowsort label-6058 @@ -32843,7 +32843,7 @@ SELECT - COUNT ( + - 51 ) AS col0, 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1593 # Datafusion - Expected - 1927 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(42\) AS Int32\) AS col1" at position 0 and "Int64\(47\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(42\) AS Int64\) AS col1" at position 0 and "Int64\(47\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 25 * + - 62 + COUNT ( * ) + + + CAST ( + 42 AS INTEGER ) AS col1, + 47 * + 41 AS col1 query I rowsort label-6241 @@ -34188,7 +34188,7 @@ SELECT ALL + 78 * - - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(CAST\(CASE Int64\(28\) WHEN Int64\(\-28\) THEN Int64\(\-81\) END AS Int32\) AS Float64\)\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(CAST\(CASE Int64\(28\) WHEN Int64\(\-28\) THEN Int64\(\-81\) END AS Int64\) AS Float64\)\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 20 AS col0, ( - COUNT ( * ) ) * - CAST ( + CAST ( CASE 28 WHEN - 28 THEN - 81 END AS INTEGER ) AS FLOAT8 ) + - 27 AS col0 query I rowsort label-6496 @@ -34980,7 +34980,7 @@ SELECT DISTINCT - 24 AS col2, + NULLIF ( - 83, + 84 * CASE 78 WHEN + 19 THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- sum\(Int64\(6\)\)\) AS col0" at position 0 and "Int64\(88\) \* Int64\(26\) \+ \(\- CASE avg\(DISTINCT Int64\(\-64\)\) WHEN sum\(Int64\(86\)\) / Int64\(60\) \* \(\- Int64\(\-20\)\) THEN NULL WHEN Int64\(83\) / Int64\(\-26\) \- Int64\(\-63\) THEN NULL ELSE \(\- Int64\(67\)\) / CASE Int64\(44\) WHEN \(\- Int64\(48\)\) \+ Int64\(39\) \+ \(\- Int64\(0\)\) THEN \(\- max\(DISTINCT Int64\(78\)\)\) / Int64\(\-4\) \+ Int64\(\-92\) WHEN Int64\(28\) / Int64\(32\) THEN NULL END \- Int64\(56\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- \(\- sum\(Int64\(6\)\)\) AS col0" at position 0 and "Int64\(88\) \* Int64\(26\) \+ \(\- CASE avg\(DISTINCT Int64\(\-64\)\) WHEN sum\(Int64\(86\)\) / Int64\(60\) \* \(\- Int64\(\-20\)\) THEN NULL WHEN Int64\(83\) / Int64\(\-26\) \- Int64\(\-63\) THEN NULL ELSE \(\- Int64\(67\)\) / CASE Int64\(44\) WHEN \(\- Int64\(48\)\) \+ Int64\(39\) \+ \(\- Int64\(0\)\) THEN \(\- max\(DISTINCT Int64\(78\)\)\) / Int64\(\-4\) \+ Int64\(\-92\) WHEN Int64\(28\) / Int64\(32\) THEN NULL END \- Int64\(56\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) - - + SUM ( ALL 6 ) AS col0, 88 * + 26 + - CASE ( AVG ( DISTINCT - 64 ) ) WHEN + SUM ( + 86 ) / 60 * - - 20 THEN NULL WHEN + + 83 / - 26 - - 63 THEN NULL ELSE - ( 67 ) / + CASE + 44 WHEN - + 48 + + 39 + - - 0 THEN + - MAX ( DISTINCT ( 78 ) ) / - 4 + - 92 WHEN 28 / 32 THEN NULL END - 56 END AS col0 query I rowsort @@ -35799,7 +35799,7 @@ SELECT + - 13 + + - COUNT ( ALL 79 ) # Datafusion - Expected - -66 # Datafusion - Expected - 47 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int32\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int64\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - 66 AS INTEGER ) AS col2, 47 AS col2, - 98 AS col2 query I rowsort @@ -44180,7 +44180,7 @@ SELECT + 47 AS col1, - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "CASE Int64\(24\) WHEN CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(\-47\)\) THEN Int64\(\-31\) WHEN Int64\(\-1\) THEN NULL ELSE NULL END / count\(Int64\(\-32\)\) THEN coalesce\(Int64\(\-31\), Int64\(70\), Int64\(91\)\) END \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "CASE Int64\(24\) WHEN CASE CAST\(NULL AS Int64\) WHEN \(\- Int64\(\-47\)\) THEN Int64\(\-31\) WHEN Int64\(\-1\) THEN NULL ELSE NULL END / count\(Int64\(\-32\)\) THEN coalesce\(Int64\(\-31\), Int64\(70\), Int64\(91\)\) END \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 col2, CASE 24 WHEN CASE CAST ( NULL AS INTEGER ) WHEN - - 47 THEN - 31 WHEN ( - 1 ) THEN NULL ELSE NULL END / + + COUNT ( - 32 ) THEN + COALESCE ( - 31, 70, + 91 ) END + + - 31 AS col2 query I rowsort label-8409 @@ -46372,7 +46372,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 340768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) / Int64\(\-10\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-41\)\) AS Int32\) \* nullif\(Int64\(84\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* max\(DISTINCT Int64\(99\)\) \- Int64\(92\) \- Int64\(48\) \- \(\- Int64\(\-84\)\) \- Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) / Int64\(\-10\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-41\)\) AS Int64\) \* nullif\(Int64\(84\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* max\(DISTINCT Int64\(99\)\) \- Int64\(92\) \- Int64\(48\) \- \(\- Int64\(\-84\)\) \- Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS FLOAT8 ) / - 10 AS col2, CAST ( - - 41 AS INTEGER ) * NULLIF ( 84, - - COUNT ( * ) ) * + + MAX ( DISTINCT 99 ) - + 92 - + 48 - - - 84 - + - 36 AS col2 query II rowsort label-8825 @@ -51635,7 +51635,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\)" at position 0 and "CAST\(NULL AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) query I rowsort label-9841 diff --git a/data/sqlite/random/expr/slt_good_76.slt b/data/sqlite/random/expr/slt_good_76.slt index 26d0ffb..d8b416f 100644 --- a/data/sqlite/random/expr/slt_good_76.slt +++ b/data/sqlite/random/expr/slt_good_76.slt @@ -8474,7 +8474,7 @@ SELECT DISTINCT - 42 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(7\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(7\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( + + 7 ) AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort label-1637 @@ -8916,7 +8916,7 @@ SELECT DISTINCT 35 - - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 38 AS col1 query I rowsort label-1722 @@ -10584,7 +10584,7 @@ SELECT ALL + CAST ( - - 46 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- nullif\(Int64\(41\), Int64\(87\)\)\)\) AS Int32\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- nullif\(Int64\(41\), Int64\(87\)\)\)\) AS Int64\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - NULLIF ( + 41, + 87 ) AS INTEGER ) AS col1, ( - ( 75 ) ) col1 query I rowsort @@ -12825,7 +12825,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\)" at position 0 and "\(\- CAST\(NULL AS Int64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) query I rowsort @@ -13334,7 +13334,7 @@ SELECT ALL + - SUM ( - 23 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) + + 11 AS col0 query I rowsort label-2571 @@ -15069,7 +15069,7 @@ SELECT ALL NULLIF ( + + 99, - + 67 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -15464,7 +15464,7 @@ SELECT - 4 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + 38 * + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2985 @@ -16272,7 +16272,7 @@ SELECT + - ( - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) AS col1 query I rowsort label-3142 @@ -19155,7 +19155,7 @@ SELECT DISTINCT + 29 + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(\(\- Int64\(94\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(\(\- Int64\(94\)\) AS Int64\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 55 + + - CAST ( - + 94 AS INTEGER ) col1, 63 AS col1 query I rowsort label-3701 @@ -20703,7 +20703,7 @@ SELECT ALL 58 * - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) 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\. SELECT - COUNT ( * ) * - 97 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -21586,7 +21586,7 @@ SELECT DISTINCT - 86 * - - 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) col0, - 80 AS col0 query I rowsort @@ -29078,7 +29078,7 @@ SELECT ALL ( 82 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int64\)\) AS Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -30911,7 +30911,7 @@ SELECT 1, + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(93\) \+ \(\- sum\(Int64\(\-48\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(93\) \+ \(\- sum\(Int64\(\-48\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 93 + - SUM ( + - 48 ) AS col0 query I rowsort @@ -38543,7 +38543,7 @@ SELECT 93 + - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 14 AS col1, + 61 + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-7451 @@ -40636,7 +40636,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-7856 @@ -41250,7 +41250,7 @@ SELECT DISTINCT MIN ( DISTINCT 69 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- CAST\(NULL AS Int64\)\)\) AS Int64\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) AS col0, - ( + COUNT ( * ) ) col0 query I rowsort label-7973 @@ -46260,7 +46260,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + 46 AS col2 query I rowsort label-8943 @@ -47180,7 +47180,7 @@ SELECT - SUM ( ALL + 71 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. SELECT COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-9120 @@ -48113,7 +48113,7 @@ SELECT ALL - 58 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- CAST\(Int64\(20\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- CAST\(Int64\(20\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 40 - + CAST ( 20 AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col0 query I rowsort @@ -48894,7 +48894,7 @@ SELECT - MAX ( ALL 84 ) / - ( + 59 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(71\) \+ Int64\(\-80\) AS col2" at position 0 and "Int64\(92\) \- \(\- \(\- CASE Int64\(72\) WHEN Int64\(\-27\) THEN Int64\(\-98\) WHEN CAST\(NULL AS Int32\) \+ \(\- nullif\(Int64\(93\), Int64\(\-11\) \* Int64\(\-62\)\)\) THEN NULL ELSE NULL END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(71\) \+ Int64\(\-80\) AS col2" at position 0 and "Int64\(92\) \- \(\- \(\- CASE Int64\(72\) WHEN Int64\(\-27\) THEN Int64\(\-98\) WHEN CAST\(NULL AS Int64\) \+ \(\- nullif\(Int64\(93\), Int64\(\-11\) \* Int64\(\-62\)\)\) THEN NULL ELSE NULL END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 53 / + 71 + - 80 AS col2, 92 - - - ( + CASE + 72 WHEN - 27 THEN - 98 WHEN CAST ( NULL AS INTEGER ) + + - NULLIF ( + 93, - 11 * - 62 ) THEN NULL ELSE NULL END ) AS col2 query I rowsort label-9447 @@ -49828,7 +49828,7 @@ SELECT DISTINCT + 31 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(33\), Int64\(75\) \* Int64\(1\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-53\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(33\), Int64\(75\) \* Int64\(1\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-53\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( 33, + 75 * 1 ) AS col1, - CAST ( - 53 AS INTEGER ) AS col1 query II rowsort @@ -51346,7 +51346,7 @@ SELECT DISTINCT COALESCE ( - COUNT ( * ), - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -485 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- Int64\(5\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- Int64\(5\)\) 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\. SELECT DISTINCT + 97 * - + 5 AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -51490,7 +51490,7 @@ SELECT ALL ( 41 ) * 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 32 AS col2, CAST ( NULL AS INTEGER ) * - + 75 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_77.slt b/data/sqlite/random/expr/slt_good_77.slt index 5c055d8..753f918 100644 --- a/data/sqlite/random/expr/slt_good_77.slt +++ b/data/sqlite/random/expr/slt_good_77.slt @@ -311,7 +311,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-52 @@ -2138,7 +2138,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -2281400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(84\) \+ \(\- max\(DISTINCT Int64\(52\)\)\) AS col0" at position 0 and "Int64\(\-50\) \* \(\- Int64\(\-61\)\) \* \(\- CAST\(\(\- max\(Int64\(17\)\)\) AS Int32\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(84\) \+ \(\- max\(DISTINCT Int64\(52\)\)\) AS col0" at position 0 and "Int64\(\-50\) \* \(\- Int64\(\-61\)\) \* \(\- CAST\(\(\- max\(Int64\(17\)\)\) AS Int64\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( * ) / + + 84 + - MAX ( DISTINCT 52 ) col0, - 50 * - - 61 * - CAST ( - MAX ( ALL + 17 ) AS INTEGER ) * + 44 AS col0 query I rowsort label-401 @@ -3333,7 +3333,7 @@ SELECT DISTINCT 57 * 10, 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- CASE Int64\(2\) WHEN Int64\(17\) THEN \(\- CAST\(\(\- Int64\(50\)\) AS Int32\)\) WHEN Int64\(\-76\) THEN \(\- \(\- Int64\(45\)\)\) ELSE Int64\(38\) END\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- CASE Int64\(2\) WHEN Int64\(17\) THEN \(\- CAST\(\(\- Int64\(50\)\) AS Int64\)\) WHEN Int64\(\-76\) THEN \(\- \(\- Int64\(45\)\)\) ELSE Int64\(38\) END\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 32 + - CASE + + 2 WHEN + + 17 THEN - CAST ( - + 50 AS INTEGER ) WHEN + - 76 THEN - ( - + 45 ) ELSE + 38 END AS col0, CAST ( + + 47 AS INTEGER ) col0 query II rowsort label-628 @@ -3497,7 +3497,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 185525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- nullif\(Int64\(31\), Int64\(37\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \* \(\- Int64\(49\)\) AS col1" at position 0 and "Int64\(70\) \* \(\- min\(Int64\(\-50\)\)\) \* Int64\(53\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- nullif\(Int64\(31\), Int64\(37\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int64\) \* \(\- Int64\(49\)\) AS col1" at position 0 and "Int64\(70\) \* \(\- min\(Int64\(\-50\)\)\) \* Int64\(53\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 36 * - NULLIF ( + 31, + ( 37 ) ) + + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - + 49 col1, 70 * - + MIN ( - 50 ) * + 53 + 25 AS col1 query II rowsort @@ -4972,7 +4972,7 @@ SELECT - 54 * MIN ( - 50 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2600 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(40\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-3\), Int64\(\-35\) / Int64\(4\), CAST\(Int64\(18\) AS Int32\) \+ Int64\(18\)\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(87\) THEN Int64\(44\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(40\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-3\), Int64\(\-35\) / Int64\(4\), CAST\(Int64\(18\) AS Int64\) \+ Int64\(18\)\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(87\) THEN Int64\(44\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 65 * - + 40 AS col2, - COALESCE ( + - 3, - 35 / + + 4, CAST ( + 18 AS INTEGER ) + 18 ) + - CASE COUNT ( * ) WHEN 87 THEN 44 END AS col2 query I rowsort label-941 @@ -6496,7 +6496,7 @@ SELECT + 49, 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(18\)\)\)\) AS col1" at position 0 and "Int64\(3\) \+ sum\(Int64\(\-95\)\) \* Int64\(\-67\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(18\)\)\)\) AS col1" at position 0 and "Int64\(3\) \+ sum\(Int64\(\-95\)\) \* Int64\(\-67\) \- CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( - + 18 ) AS col1, 3 + SUM ( ALL - 95 ) * - 67 - + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-1232 @@ -7523,7 +7523,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 17 AS col0 # Datafusion - Types were automatically converted from: @@ -10266,7 +10266,7 @@ SELECT ALL 79 + - ( - + ( 48 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- min\(DISTINCT Int64\(\-10\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-8\) \+ Int64\(\-27\) AS col1" at position 0 and "max\(Int64\(\-90\)\) \* Int64\(74\) \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ \(\- min\(DISTINCT Int64\(\-10\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-8\) \+ Int64\(\-27\) AS col1" at position 0 and "max\(Int64\(\-90\)\) \* Int64\(74\) \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( ( + CAST ( NULL AS INTEGER ) ) ) + - + ( + MIN ( DISTINCT - 10 ) ) + COUNT ( * ) + - 8 + - 27 AS col1, MAX ( - 90 ) * + 74 + + - 15 AS col1 query I rowsort label-1950 @@ -11332,7 +11332,7 @@ SELECT DISTINCT - - 2 * - COUNT ( * ) col2, COUNT ( * ) / - + 76 + - ( 54 ) # Datafusion - Expected - -770 # Datafusion - Expected - -387 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(55\), Int64\(8\) \* Int64\(\-14\)\)\) \* Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(55\), Int64\(8\) \* Int64\(\-14\)\)\) \* Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( 55, + 8 * - 14 ) * 14 AS col1, 9 * - 43, CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -13614,7 +13614,7 @@ SELECT CAST ( 60 AS INTEGER ) / 28 + - 65 + + 0 * 65 * - - 23 * + ( + 58 ) / - S # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-2590 @@ -15944,7 +15944,7 @@ SELECT ALL - 36 AS col2, 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-2\) \+ CAST\(Int64\(13\) AS Int32\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-2\) \+ CAST\(Int64\(13\) AS Int64\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 61 * - 2 + + + CAST ( + 13 AS INTEGER ) AS col0, + 26 AS col0 query I rowsort label-3032 @@ -17441,7 +17441,7 @@ SELECT DISTINCT 12 + + 14 / - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-61\) AS col1" at position 0 and "CAST\(Int64\(24\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-61\) AS col1" at position 0 and "CAST\(Int64\(24\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 77 + - 61 AS col1, CAST ( ( + + 24 ) AS INTEGER ) AS col1 query I rowsort label-3314 @@ -18261,7 +18261,7 @@ SELECT DISTINCT - 42 * + MIN ( - 44 ) * + - 3 * + 6 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -3001 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int32\) AS col1" at position 0 and "\(\- CASE Int64\(36\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(\-50\) THEN NULL ELSE Int64\(79\) \* Int64\(38\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(19\) \- Int64\(\-37\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int64\) AS col1" at position 0 and "\(\- CASE Int64\(36\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(\-50\) THEN NULL ELSE Int64\(79\) \* Int64\(38\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(19\) \- Int64\(\-37\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 38 AS INTEGER ) AS col1, - CASE 36 WHEN - - 31 + - 50 THEN NULL ELSE + + 79 * + + 38 + + + NULLIF ( - COUNT ( * ), 19 - - 37 ) END col1 query I rowsort label-3468 @@ -18716,7 +18716,7 @@ SELECT ALL - 0 * + 93, + 65 + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(Int64\(\-39\), Int64\(4\) \+ \(\- CASE Int64\(6\) WHEN Int64\(89\) \+ \(\- Int64\(\-84\)\) THEN \(\- Int64\(\-40\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-33\) \+ Int64\(\-51\) THEN Int64\(53\) \* Int64\(\-78\) \+ CAST\(\(\- Int64\(\-14\)\) AS Float64\) WHEN Int64\(33\) \- Int64\(\-3\) THEN NULL END \+ \(\- Int64\(59\)\) \* Int64\(57\) \* Int64\(26\) \* Int64\(5\) ELSE NULL END\)\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(Int64\(\-39\), Int64\(4\) \+ \(\- CASE Int64\(6\) WHEN Int64\(89\) \+ \(\- Int64\(\-84\)\) THEN \(\- Int64\(\-40\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-33\) \+ Int64\(\-51\) THEN Int64\(53\) \* Int64\(\-78\) \+ CAST\(\(\- Int64\(\-14\)\) AS Float64\) WHEN Int64\(33\) \- Int64\(\-3\) THEN NULL END \+ \(\- Int64\(59\)\) \* Int64\(57\) \* Int64\(26\) \* Int64\(5\) ELSE NULL END\)\)\) AS Int64\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( - CAST ( - NULLIF ( - 39, + 4 + - CASE 6 WHEN 89 + - - 84 THEN - - 40 * + COUNT ( * ) - CASE - COUNT ( * ) WHEN - 33 + - 51 THEN + 53 * - 78 + CAST ( - - 14 AS FLOAT8 ) WHEN 33 - - 3 THEN NULL END + - + 59 * + + 57 * + 26 * + + 5 ELSE NULL END ) AS INTEGER ) ) AS col2, 90 AS col2 query I rowsort @@ -21829,7 +21829,7 @@ SELECT SUM ( ALL + COALESCE ( - 46, + 5 * + 67 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-94\) AS col2" at position 0 and "Int64\(62\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / CASE Int64\(68\) WHEN Int64\(32\) \+ Int64\(92\) / Int64\(72\) THEN NULL WHEN Int64\(76\) THEN Int64\(4\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-94\) AS col2" at position 0 and "Int64\(62\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / CASE Int64\(68\) WHEN Int64\(32\) \+ Int64\(92\) / Int64\(72\) THEN NULL WHEN Int64\(76\) THEN Int64\(4\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) + - 94 col2, 62 / - - COUNT ( * ) / + CASE 68 WHEN + 32 + + 92 / + 72 THEN NULL WHEN + 76 THEN 4 END AS col2 query I rowsort @@ -21965,7 +21965,7 @@ SELECT - + COALESCE ( COUNT ( * ), + + 45 ) + + - SUM ( + 26 ) - ( 64 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(\(\- Int64\(\-68\)\)\)\) \- min\(CAST\(Int64\(82\) AS Int32\)\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(\(\- Int64\(\-68\)\)\)\) \- min\(CAST\(Int64\(82\) AS Int64\)\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 30 AS col2, + COUNT ( * ) / - MIN ( ALL - - 68 ) - + MIN ( + CAST ( 82 AS INTEGER ) ) + + 6 AS col2 query I rowsort @@ -22425,7 +22425,7 @@ SELECT 95 + 29 * + 22 + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(52\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(31\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(52\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(31\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( ALL 52 ) / COUNT ( * ) AS col0, ( + CAST ( + 31 AS INTEGER ) ) AS col0 query I rowsort @@ -23120,7 +23120,7 @@ SELECT - + NULLIF ( - - 46, - MIN ( ALL + + CAST ( - 66 AS INTEGER ) ) ), + 97 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(2\) AS Int32\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(2\) AS Int64\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( 2 AS INTEGER ) AS col1, + 73 AS col1 query II rowsort @@ -23853,7 +23853,7 @@ SELECT - 36 + + ( ( - + COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -4881638 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(51\) \+ CAST\(Int64\(\-88\) AS Int32\) \- Int64\(68\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(48\) \* Int64\(\-99\) \* Int64\(13\) \* Int64\(74\) \- count\(Int64\(17\)\) \* CAST\(\(\- \(\- nullif\(\(\- Int64\(\-57\)\), Int64\(\-13\)\)\)\) AS Int32\) \+ Int64\(78\) \* Int64\(\-53\) \* Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(51\) \+ CAST\(Int64\(\-88\) AS Int64\) \- Int64\(68\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(48\) \* Int64\(\-99\) \* Int64\(13\) \* Int64\(74\) \- count\(Int64\(17\)\) \* CAST\(\(\- \(\- nullif\(\(\- Int64\(\-57\)\), Int64\(\-13\)\)\)\) AS Int64\) \+ Int64\(78\) \* Int64\(\-53\) \* Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 40 ) AS col2, ( - COUNT ( * ) ) + 51 + + CAST ( - 88 AS INTEGER ) - 68 + + - COUNT ( * ) + + 48 * - 99 * + 13 * 74 - + COUNT ( 17 ) * CAST ( - - NULLIF ( - ( ( ( - 57 ) ) ), - 13 ) AS INTEGER ) + + 78 * - 53 * 75 * COUNT ( * ) AS col2 query I rowsort @@ -24165,7 +24165,7 @@ SELECT DISTINCT CAST ( - 84 AS INTEGER ) + MAX ( DISTINCT + 35 ), + ( - 22 ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 1999 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(51\) AS Int32\) \* nullif\(Int64\(38\), max\(DISTINCT Int64\(\-17\)\)\) \- Int64\(\-61\) AS col1" at position 0 and "Int64\(64\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(51\) AS Int64\) \* nullif\(Int64\(38\), max\(DISTINCT Int64\(\-17\)\)\) \- Int64\(\-61\) AS col1" at position 0 and "Int64\(64\) \+ \(\- CAST\(NULL AS Int64\)\) \- Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 51 AS INTEGER ) * NULLIF ( 38, MAX ( DISTINCT - 17 ) ) - - 61 col1, 64 + - CAST ( NULL AS INTEGER ) - + 30 AS col1 query I rowsort @@ -24878,7 +24878,7 @@ SELECT ALL 93 + + + 15 + + 71 AS col0, 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- CAST\(Int64\(\-66\) AS Int32\)\) \+ Int64\(\-3\) AS col0" at position 0 and "\(\- coalesce\(Int64\(\-61\), Int64\(\-60\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- CAST\(Int64\(\-66\) AS Int64\)\) \+ Int64\(\-3\) AS col0" at position 0 and "\(\- coalesce\(Int64\(\-61\), Int64\(\-60\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - CAST ( - 66 AS INTEGER ) + - 3 col0, - COALESCE ( ( - 61 ), - 60 ) AS col0 query I rowsort label-4739 @@ -26681,7 +26681,7 @@ SELECT DISTINCT + 72 - + - COALESCE ( - + 21, - 48 * - MIN ( ( + - 54 ) ) ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-88\) AS col0" at position 0 and "Int64\(90\) \+ Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / Int64\(\-88\) AS col0" at position 0 and "Int64\(90\) \+ Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) / - 88 col0, + 90 + + 93 AS col0 query I rowsort label-5081 @@ -34459,7 +34459,7 @@ SELECT - ( - 57 ) * + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2513785 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ coalesce\(Int64\(\-84\), Int64\(\-15\) \* CAST\(Int64\(\-64\) AS Int32\), \(\- Int64\(93\)\)\) \+ Int64\(\-18\) \* Int64\(31\) \* Int64\(85\) \* Int64\(\-53\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ coalesce\(Int64\(\-84\), Int64\(\-15\) \* CAST\(Int64\(\-64\) AS Int64\), \(\- Int64\(93\)\)\) \+ Int64\(\-18\) \* Int64\(31\) \* Int64\(85\) \* Int64\(\-53\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 79 + COALESCE ( - 84, + - 15 * + CAST ( - 64 AS INTEGER ), - + 93 ) + + ( - 18 ) * 31 * + 85 * - 53 AS col2, - 81 AS col2 query I rowsort label-6569 @@ -34716,7 +34716,7 @@ SELECT + 30, - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- CASE Int64\(42\) WHEN \(\- sum\(CAST\(NULL AS Int32\)\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- max\(Int64\(82\)\)\) END\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- CASE CAST\(Int64\(50\) AS Int32\) WHEN Int64\(45\) THEN NULL WHEN \(\- Int64\(\-6\)\) THEN Int64\(51\) WHEN Int64\(24\) \* Int64\(0\) THEN sum\(\(\- Int64\(\-71\)\)\) \* Int64\(19\) \+ Int64\(36\) \+ Int64\(40\) \+ Int64\(1\) \+ Int64\(\-72\) \+ Int64\(\-71\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- CASE Int64\(42\) WHEN \(\- sum\(CAST\(NULL AS Int64\)\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- max\(Int64\(82\)\)\) END\) / \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- CASE CAST\(Int64\(50\) AS Int64\) WHEN Int64\(45\) THEN NULL WHEN \(\- Int64\(\-6\)\) THEN Int64\(51\) WHEN Int64\(24\) \* Int64\(0\) THEN sum\(\(\- Int64\(\-71\)\)\) \* Int64\(19\) \+ Int64\(36\) \+ Int64\(40\) \+ Int64\(1\) \+ Int64\(\-72\) \+ Int64\(\-71\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 12 + - CASE 42 WHEN - + SUM ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - ( COUNT ( * ) ) THEN - MAX ( ALL + 82 ) END / - + CAST ( NULL AS INTEGER ) col0, - CASE + CAST ( + 50 AS INTEGER ) WHEN + 45 THEN NULL WHEN - ( + - 6 ) THEN 51 WHEN + 24 * 0 THEN SUM ( - - 71 ) * + 19 + + 36 + 40 + 1 + - 72 + - 71 END AS col0 query I rowsort label-6619 @@ -35171,7 +35171,7 @@ SELECT + 76 + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(55\) \- CAST\(Int64\(79\) AS Int32\) \+ max\(\(\- Int64\(0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(55\) \- CAST\(Int64\(79\) AS Int64\) \+ max\(\(\- Int64\(0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COUNT ( * ) col0, 55 - + + CAST ( + 79 AS INTEGER ) + + MAX ( ( - - 0 ) ) AS col0 # Datafusion - Types were automatically converted from: @@ -40697,7 +40697,7 @@ SELECT 30 + + 55 * - 96, CAST ( - COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-26\) AS Int32\) \+ Int64\(\-83\) \+ Int64\(63\) \- Int64\(\-35\) AS col2" at position 0 and "Int64\(24\) \+ Int64\(10\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-26\) AS Int64\) \+ Int64\(\-83\) \+ Int64\(63\) \- Int64\(\-35\) AS col2" at position 0 and "Int64\(24\) \+ Int64\(10\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 26 AS INTEGER ) + - 83 + + 63 - ( - 35 ) col2, ( + 24 ) + + 10 + CAST ( NULL AS INTEGER ) col2 query I rowsort label-7764 @@ -44459,7 +44459,7 @@ SELECT - 84 * 1 * + 6 + - 23 / COALESCE ( + ( + 33 ), 46 / - ( 83 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -6474 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(81\) AS col2" at position 0 and "CAST\(\(\- CASE \(\- Int64\(\-82\)\) WHEN \(\- Int64\(\-58\)\) THEN NULL WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN NULL ELSE Int64\(68\) \* avg\(Int64\(96\)\) \+ Int64\(12\) \+ Int64\(72\) / Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) END\) AS Int32\) \- Int64\(33\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(81\) AS col2" at position 0 and "CAST\(\(\- CASE \(\- Int64\(\-82\)\) WHEN \(\- Int64\(\-58\)\) THEN NULL WHEN \(\- \(\- CAST\(NULL AS Int64\)\)\) THEN NULL ELSE Int64\(68\) \* avg\(Int64\(96\)\) \+ Int64\(12\) \+ Int64\(72\) / Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) END\) AS Int64\) \- Int64\(33\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 81 AS col2, ( + CAST ( - CASE - - 82 WHEN - - 58 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 68 * + AVG ( + 96 ) + + + 12 + 72 / - 26 * + + COUNT ( * ) + + - 97 END AS INTEGER ) ) - + 33 / + COUNT ( * ) AS col2 query I rowsort label-8481 @@ -45095,7 +45095,7 @@ SELECT ALL 63 + + COUNT ( DISTINCT 58 ) * - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) 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\. SELECT 32 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8602 @@ -46004,7 +46004,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(65\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(65\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - MIN ( DISTINCT + 65 ) AS col1 # Datafusion - Types were automatically converted from: @@ -46411,7 +46411,7 @@ SELECT ALL NULLIF ( - COUNT ( + 94 ), - + MAX ( DISTINCT 26 ) ) * 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(\-44\)\)\) WHEN Int64\(63\) THEN Int64\(\-67\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN CAST\(NULL AS Int32\) \+ count\(Int64\(80\)\) THEN NULL END \* Int64\(59\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(\-44\)\)\) WHEN Int64\(63\) THEN Int64\(\-67\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN CAST\(NULL AS Int64\) \+ count\(Int64\(80\)\) THEN NULL END \* Int64\(59\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE - ( + COUNT ( ALL - 44 ) ) WHEN + ( 63 ) THEN - 67 WHEN + COUNT ( * ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) + + COUNT ( 80 ) THEN NULL END * + + 59 AS col1, + 29 AS col1 query I rowsort label-8851 @@ -47757,7 +47757,7 @@ SELECT 60 * - - 70 AS col0, 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(\-32\) \- count\(Int64\(45\)\) / Int64\(\-5\) / \(\- CAST\(CAST\(NULL AS Int32\) \* Int64\(\-34\) AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(\-32\) \- count\(Int64\(45\)\) / Int64\(\-5\) / \(\- CAST\(CAST\(NULL AS Int64\) \* Int64\(\-34\) AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 92 col2, - 32 - COUNT ( 45 ) / + + ( - 5 ) / - CAST ( CAST ( NULL AS INTEGER ) * - 34 AS FLOAT8 ) AS col2 # Datafusion - Data was automatically updated based on comparison db results @@ -51982,7 +51982,7 @@ SELECT 1 * + 16 * - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(8\), Int64\(61\), \(\- CAST\(Int64\(23\) AS Int32\)\) \+ Int64\(52\)\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(8\), Int64\(61\), \(\- CAST\(Int64\(23\) AS Int64\)\) \+ Int64\(52\)\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( 8, + 61, - CAST ( + + 23 AS INTEGER ) + 52 ) AS col2, 95 AS col2 query II rowsort @@ -52098,7 +52098,7 @@ SELECT ALL COUNT ( * ) * + 3 AS col0, + CAST ( + 2 AS INTEGER ) + 59 # Datafusion - Expected - -8446 # Datafusion - Expected - -462840 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-95\) \* Int64\(56\) AS col0" at position 1 and "CAST\(NULL AS Int32\) \- \(\- \(\- coalesce\(\(\- Int64\(\-5\)\), max\(Int64\(4\)\), Int64\(99\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-95\) \* Int64\(56\) AS col0" at position 1 and "CAST\(NULL AS Int64\) \- \(\- \(\- coalesce\(\(\- Int64\(\-5\)\), max\(Int64\(4\)\), Int64\(99\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 55 / + 85 + - - 55 - 82 * 26 * + 4 + - - 28 + + 69 / + - 65 * + COUNT ( + ( 74 ) ), 87 * - 95 * + 56 AS col0, + CAST ( NULL AS INTEGER ) - - - COALESCE ( - - 5, MAX ( ALL + + 4 ), + 99 ) AS col0 query I rowsort @@ -52210,7 +52210,7 @@ SELECT ALL - 55 / - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-84\), \(\- CAST\(Int64\(26\) AS Int32\)\)\)\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-84\), \(\- CAST\(Int64\(26\) AS Int64\)\)\)\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( + NULLIF ( - 84, - CAST ( + 26 AS INTEGER ) ) ) AS col2, + 21 col2 query I rowsort label-9960 @@ -52411,7 +52411,7 @@ SELECT + - ( 92 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) / max\(CAST\(Int64\(4\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-25\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) / max\(CAST\(Int64\(4\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-25\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 26 / MAX ( CAST ( 4 AS INTEGER ) ) AS col2, - 25 * + - 45 AS col2 query I rowsort label-9998 diff --git a/data/sqlite/random/expr/slt_good_78.slt b/data/sqlite/random/expr/slt_good_78.slt index f9c04c6..a0ef060 100644 --- a/data/sqlite/random/expr/slt_good_78.slt +++ b/data/sqlite/random/expr/slt_good_78.slt @@ -790,7 +790,7 @@ SELECT ALL + NULLIF ( - + 6, + - 90 + + 34 ) + + 66 * - 35 * + + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -110678 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(63\) \* Int64\(48\) \* CASE Int64\(63\) WHEN Int64\(48\) / \(\- nullif\(coalesce\(CASE nullif\(Int64\(39\), Int64\(\-69\)\) WHEN \(\- \(\- nullif\(CASE Int64\(58\) WHEN Int64\(\-4\) \* Int64\(\-22\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(\-87\) END, Int64\(36\) \+ Int64\(2\) \* Int64\(99\) \* Int64\(42\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-54\) \+ \(\- max\(Int64\(13\)\)\) THEN NULL END, Int64\(66\) \+ Int64\(78\) \+ Int64\(64\) \+ Int64\(38\) \* Int64\(37\)\), \(\- sum\(Int64\(\-81\)\)\) \- Int64\(\-4\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* min\(Int64\(73\)\) THEN Int64\(\-99\) WHEN CAST\(NULL AS Int32\) \+ Int64\(\-41\) THEN Int64\(72\) ELSE Int64\(\-37\) END \+ Int64\(55\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(63\) \* Int64\(48\) \* CASE Int64\(63\) WHEN Int64\(48\) / \(\- nullif\(coalesce\(CASE nullif\(Int64\(39\), Int64\(\-69\)\) WHEN \(\- \(\- nullif\(CASE Int64\(58\) WHEN Int64\(\-4\) \* Int64\(\-22\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(\-87\) END, Int64\(36\) \+ Int64\(2\) \* Int64\(99\) \* Int64\(42\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-54\) \+ \(\- max\(Int64\(13\)\)\) THEN NULL END, Int64\(66\) \+ Int64\(78\) \+ Int64\(64\) \+ Int64\(38\) \* Int64\(37\)\), \(\- sum\(Int64\(\-81\)\)\) \- Int64\(\-4\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* min\(Int64\(73\)\) THEN Int64\(\-99\) WHEN CAST\(NULL AS Int64\) \+ Int64\(\-41\) THEN Int64\(72\) ELSE Int64\(\-37\) END \+ Int64\(55\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 AS col2, + 63 * + 48 * + CASE 63 WHEN + 48 / - + NULLIF ( + + COALESCE ( CASE + + NULLIF ( + 39, - 69 ) WHEN - - NULLIF ( + CASE + 58 WHEN - 4 * - 22 + COUNT ( * ) THEN NULL ELSE - 87 END, + 36 + + ( 2 ) * 99 * + + 42 - - + COUNT ( * ) ) THEN - COUNT ( * ) WHEN - 54 + - MAX ( + 13 ) THEN NULL END, + 66 + + 78 + + 64 + + 38 * + 37 ), - SUM ( - 81 ) - - 4 + + COUNT ( * ) ) * + MIN ( ALL + ( 73 ) ) THEN - 99 WHEN + CAST ( NULL AS INTEGER ) + - 41 THEN + 72 ELSE - 37 END + 55 * 22 AS col2 query I rowsort @@ -2002,7 +2002,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -826 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- \(\- CAST\(Int64\(\-10\) AS Int32\)\)\) \+ \(\- \(\- nullif\(Int64\(65\), Int64\(\-16\)\)\)\) \- count\(Int64\(\-26\)\) AS col0" at position 0 and "Int64\(5\) / \(\- Int64\(27\)\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- \(\- CAST\(Int64\(\-10\) AS Int64\)\)\) \+ \(\- \(\- nullif\(Int64\(65\), Int64\(\-16\)\)\)\) \- count\(Int64\(\-26\)\) AS col0" at position 0 and "Int64\(5\) / \(\- Int64\(27\)\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 89 * - - CAST ( - 10 AS INTEGER ) + - - NULLIF ( + 65, - 16 ) - COUNT ( ALL - 26 ) AS col0, + 5 / - + 27 + - 2 AS col0 query I rowsort label-375 @@ -4159,7 +4159,7 @@ SELECT 27 + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(96\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / Int64\(50\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(96\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) / Int64\(50\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 AS col1, 96 * ( - CAST ( - COUNT ( * ) AS INTEGER ) ) / + + 50 + 91 AS col1 query I rowsort @@ -6458,7 +6458,7 @@ SELECT ALL + 2 * - 74 + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(58\) \+ coalesce\(Int64\(23\), Int64\(36\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(58\) \+ coalesce\(Int64\(23\), Int64\(36\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 58 + + COALESCE ( + 23, + 36 - - COUNT ( * ) + + + ( 57 ) ) AS col2 query I rowsort @@ -7378,7 +7378,7 @@ SELECT ( + ( + 70 ) ) * - + 84 AS col1, 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) / Int64\(39\) \* Int64\(24\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) / Int64\(39\) \* Int64\(24\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 90 / + 39 * 24 + + CAST ( NULL AS INTEGER ) AS col0, 54 AS col0 query I rowsort label-1402 @@ -8657,7 +8657,7 @@ SELECT DISTINCT + COUNT ( ALL - + 12 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5514 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \- Int64\(30\) \+ max\(Int64\(\-59\)\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \- Int64\(30\) \+ max\(Int64\(\-59\)\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 3 - + 30 + MAX ( + ( - 59 ) ) * - - 93 AS col2, + CAST ( + - COUNT ( * ) AS INTEGER ) + 49 AS col2 query I rowsort label-1643 @@ -10080,7 +10080,7 @@ SELECT 62 * 52 + - 61 + - 56 + + - CAST ( - - COUNT ( * ) AS INTEGER ) + + 55 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(1\) \* \(\- nullif\(CAST\(NULL AS Int32\), Int64\(\-31\) / Int64\(69\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(1\) \* \(\- nullif\(CAST\(NULL AS Int64\), Int64\(\-31\) / Int64\(69\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 92 col2, + 1 * - + NULLIF ( + CAST ( NULL AS INTEGER ), - 31 / + 69 ) AS col2 query I rowsort label-1916 @@ -10458,7 +10458,7 @@ SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) - + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8265 # Datafusion - Expected - 836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(87\) \* coalesce\(\(\- count\(Int64\(85\)\)\), Int64\(95\) \* \(\- Int64\(\-48\)\)\) AS col0" at position 0 and "Int64\(76\) \* \(\- \(\- Int64\(13\)\)\) \+ Int64\(18\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN CASE Int64\(42\) WHEN Int64\(34\) THEN Int64\(4\) \* Int64\(\-62\) \- sum\(CAST\(Int64\(56\) AS Int32\)\) END THEN NULL WHEN Int64\(13\) THEN Int64\(\-75\) ELSE Int64\(19\) \* Int64\(27\) \+ Int64\(\-58\) / Int64\(\-98\) END / Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(87\) \* coalesce\(\(\- count\(Int64\(85\)\)\), Int64\(95\) \* \(\- Int64\(\-48\)\)\) AS col0" at position 0 and "Int64\(76\) \* \(\- \(\- Int64\(13\)\)\) \+ Int64\(18\) \+ CASE \(\- CAST\(NULL AS Int64\)\) WHEN CASE Int64\(42\) WHEN Int64\(34\) THEN Int64\(4\) \* Int64\(\-62\) \- sum\(CAST\(Int64\(56\) AS Int64\)\) END THEN NULL WHEN Int64\(13\) THEN Int64\(\-75\) ELSE Int64\(19\) \* Int64\(27\) \+ Int64\(\-58\) / Int64\(\-98\) END / Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 95 * 87 * + + COALESCE ( - COUNT ( 85 ), 95 * - - 48 ) AS col0, + 76 * - - ( 13 ) + + 18 + CASE - CAST ( NULL AS INTEGER ) WHEN CASE + ( + 42 ) WHEN + + 34 THEN + 4 * ( - 62 ) - + SUM ( ALL CAST ( + 56 AS INTEGER ) ) END THEN NULL WHEN + 13 THEN - 75 ELSE 19 * + 27 + - 58 / - 98 END / - 3 * COUNT ( * ) + COUNT ( * ) AS col0 query I rowsort @@ -11128,7 +11128,7 @@ SELECT COUNT ( * ) + + ( + - COUNT ( * ) ) - - - ( + + 36 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CAST\(Int64\(1\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CAST\(Int64\(1\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 51 AS col2, ( + CAST ( 1 AS INTEGER ) ) AS col2 query II rowsort label-2112 @@ -12759,7 +12759,7 @@ SELECT ALL ( + - 18 ) * - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5841 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(99\) AS Int32\) \* Int64\(\-59\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(99\) AS Int64\) \* Int64\(\-59\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 99 AS INTEGER ) * - 59 AS col0, COUNT ( * ) col0 query I rowsort @@ -13012,7 +13012,7 @@ SELECT ALL 73 + - NULLIF ( + NULLIF ( - COUNT ( * ), - 70 - + - 91 - 62 * - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \* Int64\(47\) / Int64\(19\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) \* Int64\(47\) / Int64\(19\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * + 47 / + 19 AS col2, 84 AS col2 # Datafusion - Types were automatically converted from: @@ -13207,7 +13207,7 @@ SELECT ( - 29 ) + + CAST ( - COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 75 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2512 @@ -14171,7 +14171,7 @@ SELECT ALL + MAX ( ALL - - 84 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(8\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(68\)\)\) \* \(\- Int64\(\-66\)\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(8\) AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(68\)\)\) \* \(\- Int64\(\-66\)\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + 8 AS INTEGER ) AS col2, - COUNT ( ALL + 68 ) * - - 66 + + + 93 AS col2 query II rowsort @@ -15358,7 +15358,7 @@ SELECT + 49 * - + 15, 15 AS col2, - ( + SUM ( 79 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(5\) \- Int64\(\-61\) AS col2" at position 0 and "\(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-89\) THEN \(\- Int64\(\-14\)\) \* \(\- Int64\(\-25\)\) \+ \(\- coalesce\(Int64\(\-61\), Int64\(\-36\) \* Int64\(62\)\)\) \* \(\- CAST\(Int64\(31\) AS Int32\)\) \+ Int64\(15\) \* min\(Int64\(72\)\) WHEN Int64\(90\) THEN Int64\(40\) END\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(5\) \- Int64\(\-61\) AS col2" at position 0 and "\(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-89\) THEN \(\- Int64\(\-14\)\) \* \(\- Int64\(\-25\)\) \+ \(\- coalesce\(Int64\(\-61\), Int64\(\-36\) \* Int64\(62\)\)\) \* \(\- CAST\(Int64\(31\) AS Int64\)\) \+ Int64\(15\) \* min\(Int64\(72\)\) WHEN Int64\(90\) THEN Int64\(40\) END\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 54 + 5 - - 61 AS col2, - CASE - - COUNT ( * ) WHEN - 89 THEN - - 14 * - - 25 + - COALESCE ( + - 61, - 36 * + 62 ) * - CAST ( + + 31 AS INTEGER ) + 15 * + MIN ( + 72 ) WHEN 90 THEN + 40 END + 4 col2 # Datafusion - Types were automatically converted from: @@ -19201,7 +19201,7 @@ SELECT DISTINCT + - ( - - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(55\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- min\(Int64\(21\)\)\) \+ coalesce\(Int64\(22\), coalesce\(Int64\(\-81\), Int64\(99\)\) \+ Int64\(30\)\) \* Int64\(78\) \+ \(\- Int64\(28\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(\-10\) \* \(\- Int64\(\-88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(55\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- min\(Int64\(21\)\)\) \+ coalesce\(Int64\(22\), coalesce\(Int64\(\-81\), Int64\(99\)\) \+ Int64\(30\)\) \* Int64\(78\) \+ \(\- Int64\(28\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(\-10\) \* \(\- Int64\(\-88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 * 55 * - CAST ( NULL AS INTEGER ) * - MIN ( + 21 ) + + + COALESCE ( + 22, + COALESCE ( + - 81, 99 ) + 30 ) * 78 + - + 28 + + 59 AS col2, - 10 * - - 88 AS col2 query I rowsort label-3643 @@ -19396,7 +19396,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3021 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(53\)\)\) \* CAST\(sum\(DISTINCT Int64\(57\)\) AS Int32\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(53\)\)\) \* CAST\(sum\(DISTINCT Int64\(57\)\) AS Int64\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - MIN ( + 53 ) * + CAST ( + SUM ( DISTINCT + + 57 ) AS INTEGER ) AS col2, 61 AS col2 query I rowsort @@ -20111,7 +20111,7 @@ SELECT ALL COALESCE ( + 22, + 54 + - - 66, + - 27 + + 93 ) * 49 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \* Int64\(12\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \* Int64\(12\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + 65 * 12 AS col1, + 19 AS col1 query I rowsort @@ -22970,7 +22970,7 @@ SELECT DISTINCT - 55 - - + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5706 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ CAST\(Int64\(78\) AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(Int64\(77\)\)\) \* Int64\(72\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ CAST\(Int64\(78\) AS Int64\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(Int64\(77\)\)\) \* Int64\(72\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 85 + + CAST ( 78 AS INTEGER ) - + COUNT ( * ) + - MAX ( + 77 ) * 72 / - COUNT ( * ) AS col0, 93 AS col0 query II rowsort label-4365 @@ -23783,7 +23783,7 @@ SELECT 29 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3601 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(98\) \* \(\- CAST\(Int64\(\-37\) AS Int32\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(98\) \* \(\- CAST\(Int64\(\-37\) AS Int64\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 25 * + + COUNT ( * ) - + 98 * - CAST ( + - 37 AS INTEGER ) AS col1, 9 AS col1 query I rowsort label-4521 @@ -24129,7 +24129,7 @@ SELECT + - 15 * + + 99 * 35 * ( + 17 ) # Datafusion - Expected - -81 # Datafusion - Expected - NULL # Datafusion - Expected - 3040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) AS col2" at position 0 and "Int64\(38\) \- \(\- nullif\(CASE WHEN NOT Int64\(44\) != NULL THEN \(\- nullif\(\(\- CAST\(Int64\(\-1\) AS Int32\)\), Int64\(96\) \- Int64\(73\)\)\) ELSE NULL END, Int64\(38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) AS col2" at position 0 and "Int64\(38\) \- \(\- nullif\(CASE WHEN NOT Int64\(44\) != NULL THEN \(\- nullif\(\(\- CAST\(Int64\(\-1\) AS Int64\)\), Int64\(96\) \- Int64\(73\)\)\) ELSE NULL END, Int64\(38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 81 AS col2, 38 - - + NULLIF ( CASE WHEN NOT 44 <> NULL THEN - NULLIF ( - CAST ( + - 1 AS INTEGER ), 96 - 73 ) ELSE NULL END, + 38 ) AS col2, - - 38 * - - SUM ( ALL 80 ) AS col2 query II rowsort label-4586 @@ -28056,7 +28056,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( + 10 AS INTEGER ) AS col1, + ( COUNT ( * ) ) AS col1 query I rowsort @@ -28526,7 +28526,7 @@ SELECT - COUNT ( * ) * 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col0" at position 0 and "min\(DISTINCT \(\- \(\- CAST\(Int64\(14\) AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col0" at position 0 and "min\(DISTINCT \(\- \(\- CAST\(Int64\(14\) AS Int64\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + 21 ) AS col0, MIN ( DISTINCT + - ( - CAST ( + 14 AS INTEGER ) ) ) AS col0 query I rowsort label-5422 @@ -28593,7 +28593,7 @@ SELECT + 58 * 81 * + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / Int64\(30\) \+ Int64\(\-74\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(51\) \+ coalesce\(\(\- Int64\(14\)\), Int64\(\-9\) \* \(\- Int64\(95\)\) \- Int64\(60\) \* Int64\(\-11\) \* \(\- coalesce\(\(\- Int64\(27\)\), Int64\(\-67\) \* Int64\(64\) \- Int64\(77\) \+ Int64\(51\) \+ Int64\(\-47\) \- \(\- coalesce\(Int64\(11\), Int64\(18\) / \(\- nullif\(Int64\(59\), \(\- Int64\(67\)\) \+ Int64\(61\) \- CAST\(NULL AS Int32\)\)\), Int64\(\-97\)\)\) \* \(\- Int64\(34\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / Int64\(30\) \+ Int64\(\-74\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(51\) \+ coalesce\(\(\- Int64\(14\)\), Int64\(\-9\) \* \(\- Int64\(95\)\) \- Int64\(60\) \* Int64\(\-11\) \* \(\- coalesce\(\(\- Int64\(27\)\), Int64\(\-67\) \* Int64\(64\) \- Int64\(77\) \+ Int64\(51\) \+ Int64\(\-47\) \- \(\- coalesce\(Int64\(11\), Int64\(18\) / \(\- nullif\(Int64\(59\), \(\- Int64\(67\)\) \+ Int64\(61\) \- CAST\(NULL AS Int64\)\)\), Int64\(\-97\)\)\) \* \(\- Int64\(34\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 5 / + 30 + + - 74 AS col0, + 16 + 51 + COALESCE ( ( - + 14 ), - 9 * - ( + 95 ) - + 60 * + - 11 * - COALESCE ( - + 27, - 67 * + 64 - 77 + 51 + - 47 - - COALESCE ( + 11, + 18 / - NULLIF ( + 59, - + ( + 67 ) + + 61 - + CAST ( NULL AS INTEGER ) ), - 97 ) * - + 34 ) * COUNT ( * ) + + ( COUNT ( * ) ) ) AS col0 query I rowsort @@ -30284,7 +30284,7 @@ SELECT ALL + 89 / 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-87\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-87\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) * - CAST ( + 84 AS INTEGER ) AS col2, - 87 + + 88 AS col2 query I rowsort label-5763 @@ -30931,7 +30931,7 @@ SELECT + 70 + + MAX ( ALL CAST ( + 80 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- nullif\(Int64\(54\), Int64\(67\)\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ \(\- nullif\(Int64\(54\), Int64\(67\)\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - NULLIF ( + + 54, 67 ) AS col0, 97 col0 query II rowsort @@ -30996,7 +30996,7 @@ SELECT ALL 11 * 45 + 48 + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(21\) \+ CAST\(NULL AS Int32\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(21\) \+ CAST\(NULL AS Int64\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 29 AS col1, 21 + + CAST ( NULL AS INTEGER ) * + + 5 AS col1 query I rowsort @@ -33742,7 +33742,7 @@ SELECT ALL - 48 + + - 3 AS col0, + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 0 and "Int64\(72\) \* count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int64\) AS col2" at position 0 and "Int64\(72\) \* count\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + - 90 AS INTEGER ) AS col2, 72 * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-6422 @@ -34241,7 +34241,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(65\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \* Int64\(65\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) * + 65 AS col2, 76 AS col2 query I rowsort @@ -36466,7 +36466,7 @@ SELECT 44 / + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(81\), \(\- Int64\(22\)\), Int64\(\-91\) \- Int64\(20\) \* \(\- CASE \(\- Int64\(\-12\)\) WHEN Int64\(8\) THEN Int64\(46\) ELSE NULL END\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) \* Int64\(71\) \- \(\- Int64\(\-33\)\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-70\) AS Int32\) \+ \(\- CAST\(\(\- Int64\(\-19\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(81\), \(\- Int64\(22\)\), Int64\(\-91\) \- Int64\(20\) \* \(\- CASE \(\- Int64\(\-12\)\) WHEN Int64\(8\) THEN Int64\(46\) ELSE NULL END\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) \* Int64\(71\) \- \(\- Int64\(\-33\)\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-70\) AS Int64\) \+ \(\- CAST\(\(\- Int64\(\-19\)\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + 81, - + 22, - 91 - 20 * - CASE - - 12 WHEN 8 THEN + + 46 ELSE NULL END * + COUNT ( * ) * - + 10 * 71 - - - 33 ) AS col2, CAST ( + - 70 AS INTEGER ) + ( - CAST ( - ( ( + ( - 19 ) ) ) AS INTEGER ) ) col2 query I rowsort @@ -37270,7 +37270,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "CAST\(\(\- min\(Int64\(8\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "CAST\(\(\- min\(Int64\(8\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 58 AS col2, + CAST ( - MIN ( ALL + 8 ) AS INTEGER ) AS col2 query I rowsort @@ -38913,7 +38913,7 @@ SELECT ALL + - 76 * - 0 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 51 * CAST ( NULL AS INTEGER ) col0, - 7 AS col0 query I rowsort @@ -39588,7 +39588,7 @@ SELECT ALL 96 * - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(74\) \+ coalesce\(Int64\(\-13\), Int64\(64\) \* Int64\(\-30\), Int64\(17\) \+ Int64\(27\) \+ coalesce\(Int64\(69\), coalesce\(Int64\(99\), Int64\(\-35\) \* Int64\(18\) \+ Int64\(23\), Int64\(3\) \+ \(\- nullif\(Int64\(9\), Int64\(33\) \+ Int64\(6\)\)\) \* Int64\(\-95\)\), Int64\(17\) \* Int64\(5\) \- Int64\(91\), Int64\(43\)\) / Int64\(90\)\) / nullif\(CAST\(NULL AS Int32\) \* Int64\(\-29\) \+ Int64\(10\) \* Int64\(14\), Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(78\) \- Int64\(26\) AS Int32\) \* Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(74\) \+ coalesce\(Int64\(\-13\), Int64\(64\) \* Int64\(\-30\), Int64\(17\) \+ Int64\(27\) \+ coalesce\(Int64\(69\), coalesce\(Int64\(99\), Int64\(\-35\) \* Int64\(18\) \+ Int64\(23\), Int64\(3\) \+ \(\- nullif\(Int64\(9\), Int64\(33\) \+ Int64\(6\)\)\) \* Int64\(\-95\)\), Int64\(17\) \* Int64\(5\) \- Int64\(91\), Int64\(43\)\) / Int64\(90\)\) / nullif\(CAST\(NULL AS Int64\) \* Int64\(\-29\) \+ Int64\(10\) \* Int64\(14\), Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(78\) \- Int64\(26\) AS Int64\) \* Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + 96 AS col2, ( 74 ) + + COALESCE ( - 13, 64 * - 30, + 17 + + + 27 + + COALESCE ( + 69, COALESCE ( + 99, - 35 * 18 + 23, 3 + - NULLIF ( 9, 33 + 6 ) * - 95 ), 17 * 5 - 91, + 43 ) / 90 ) / NULLIF ( + CAST ( NULL AS INTEGER ) * - 29 + + 10 * 14, 48 * COUNT ( * ) + + CAST ( 78 - 26 AS INTEGER ) * 86 ) AS col2 query I rowsort label-7538 @@ -40111,7 +40111,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 821102 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(23\) \* nullif\(Int64\(51\), Int64\(14\) / \(\- Int64\(75\)\)\) \* \(\- Int64\(70\)\) \+ Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(88\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(23\) \* nullif\(Int64\(51\), Int64\(14\) / \(\- Int64\(75\)\)\) \* \(\- Int64\(70\)\) \+ Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(88\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 10 * + 23 * NULLIF ( + 51, + 14 / - ( 75 ) ) * - + 70 + + 1 + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) * + 88 + + - COUNT ( * ) AS col1 query II rowsort label-7637 @@ -40248,7 +40248,7 @@ SELECT ALL 6 * + - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51324 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(\-39\)\) \* Int64\(\-94\) \- Int64\(0\) AS col0" at position 0 and "Int64\(55\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(\-39\)\) \* Int64\(\-94\) \- Int64\(0\) AS col0" at position 0 and "Int64\(55\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 * - - 39 * - 94 - + 0 AS col0, + 55 + - CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -41447,7 +41447,7 @@ SELECT ALL 7 * + COUNT ( * ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 95 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / avg\(Int64\(89\)\) / coalesce\(nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(0\)\), Int64\(\-12\) \* Int64\(86\)\) / Int64\(\-22\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-71\) AS col1" at position 0 and "\(\- Int64\(\-95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / avg\(Int64\(89\)\) / coalesce\(nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(0\)\), Int64\(\-12\) \* Int64\(86\)\) / Int64\(\-22\) \+ \(\- CAST\(NULL AS Int64\)\) \- Int64\(\-71\) AS col1" at position 0 and "\(\- Int64\(\-95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 43 / + AVG ( + 89 ) / COALESCE ( NULLIF ( - + COUNT ( * ), + 0 ), + - 12 * + 86 ) / + - 22 + - CAST ( NULL AS INTEGER ) - + - 71 AS col1, - ( - 95 ) AS col1, + 46 - - 50 - + + 34 AS col0 query II rowsort label-7892 @@ -41502,7 +41502,7 @@ SELECT DISTINCT + + 58 AS col2, 0 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(\-32\)\) \+ \(\- CAST\(Int64\(\-51\) AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(99\) \* nullif\(Int64\(49\), Int64\(\-57\)\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(\-32\)\) \+ \(\- CAST\(Int64\(\-51\) AS Int64\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 0 and "Int64\(99\) \* nullif\(Int64\(49\), Int64\(\-57\)\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 32 + - + ( + - 32 ) + + - CAST ( - 51 AS INTEGER ) * - ( - + CAST ( NULL AS INTEGER ) ) AS col1, 99 * NULLIF ( + 49, - 57 ) + 46 AS col1 query I rowsort label-7902 @@ -44909,7 +44909,7 @@ SELECT ALL - - 21 AS col1, 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 7877 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(CAST\(\(\- sum\(\(\- Int64\(61\)\)\)\) AS Int32\), Int64\(3\), Int64\(\-8\) \- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-93\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(93\) THEN NULL ELSE \(\- count\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-97\) \* Int64\(82\) END \+ sum\(Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(CAST\(\(\- sum\(\(\- Int64\(61\)\)\)\) AS Int64\), Int64\(3\), Int64\(\-8\) \- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-93\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(93\) THEN NULL ELSE \(\- count\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-97\) \* Int64\(82\) END \+ sum\(Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + 95 AS col2, ( CASE COUNT ( * ) WHEN + COALESCE ( + CAST ( + ( - ( + + SUM ( - + 61 ) ) ) AS INTEGER ), 3, - 8 - + COUNT ( * ) ) THEN - COUNT ( * ) * - - 93 WHEN - - COUNT ( * ) + 93 THEN NULL ELSE + - COUNT ( DISTINCT - + 2 ) * + - 97 * + 82 END ) + + SUM ( - 77 ) AS col2 query I rowsort label-8552 @@ -45554,7 +45554,7 @@ SELECT COUNT ( * ), - 91 * + - 25 + - COUNT ( * ) * + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -47241,7 +47241,7 @@ SELECT + ( - - 2 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 474 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(6\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(6\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 6 * + + 79 AS col2, 99 query I rowsort label-8999 @@ -48683,7 +48683,7 @@ SELECT DISTINCT - + NULLIF ( - COUNT ( + - 3 ), + + MIN ( 49 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3773 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-76\) \+ Int64\(\-89\) \* Int64\(41\) \+ \(\- Int64\(49\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-76\) \+ Int64\(\-89\) \* Int64\(41\) \+ \(\- Int64\(49\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) + - 76 + - 89 * 41 + - ( + 49 ) AS col1, + COUNT ( * ) + - ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * ( - + COUNT ( * ) ) * COUNT ( * ) - + COUNT ( * ) * - 66 AS col1 query II rowsort label-9272 @@ -50735,7 +50735,7 @@ SELECT ALL - - COUNT ( * ) / - + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 782 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(36\) \- Int64\(83\) \+ count\(DISTINCT \(\- Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(38\) \* \(\- Int64\(1\)\) \- nullif\(\(\- Int64\(\-22\)\), CAST\(CAST\(NULL AS Float64\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(36\) \- Int64\(83\) \+ count\(DISTINCT \(\- Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(38\) \* \(\- Int64\(1\)\) \- nullif\(\(\- Int64\(\-22\)\), CAST\(CAST\(NULL AS Float64\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 24 * 36 - + 83 + COUNT ( DISTINCT - - 50 ) AS col0, 38 * - + 1 - NULLIF ( - - 22, + CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) ) AS col0 query I rowsort @@ -51568,7 +51568,7 @@ SELECT - 48 * + - 24 + - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(0\)\) AS Int32\)\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(0\)\) AS Int64\)\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - - 0 AS INTEGER ) * - 21 AS col2, + 24 AS col2 query I rowsort label-9818 @@ -51967,7 +51967,7 @@ SELECT - 39 * - + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(78\) AS col2" at position 0 and "Int64\(63\) \* Int64\(\-94\) \* CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(78\) AS col2" at position 0 and "Int64\(63\) \* Int64\(\-94\) \* CAST\(NULL AS Int64\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 48 / + + 78 AS col2, 63 * - 94 * CAST ( NULL AS INTEGER ) * - 74 AS col2 query I rowsort label-9893 @@ -51984,7 +51984,7 @@ SELECT + ( - + COUNT ( * ) ) AS col1, + COUNT ( * ) * 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2870 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-82\) AS col1" at position 0 and "\(\- max\(CAST\(Int64\(12\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-82\) AS col1" at position 0 and "\(\- max\(CAST\(Int64\(12\) AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 35 * - 82 col1, - MAX ( + CAST ( + 12 AS INTEGER ) ) AS col1 query I rowsort label-9896 diff --git a/data/sqlite/random/expr/slt_good_79.slt b/data/sqlite/random/expr/slt_good_79.slt index 3b6cd7a..86a7bce 100644 --- a/data/sqlite/random/expr/slt_good_79.slt +++ b/data/sqlite/random/expr/slt_good_79.slt @@ -508,7 +508,7 @@ SELECT + 1 * - ( + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2301 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(\(\- coalesce\(Int64\(51\), Int64\(\-29\)\)\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(\(\- coalesce\(Int64\(51\), Int64\(\-29\)\)\) AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( 28 ) * + - 84 * - COUNT ( * ) + CAST ( - + COALESCE ( 51, - 29 ) AS INTEGER ) AS col2, COUNT ( * ) + - 72 col2 query I rowsort @@ -815,7 +815,7 @@ SELECT ALL - MIN ( NULLIF ( + NULLIF ( + + 97, + 24 ), - 2 ) ) + COUNT ( ALL 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(3\) \- Int64\(\-3\) AS col0" at position 0 and "CAST\(\(\- \(\- max\(DISTINCT Int64\(51\)\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(3\) \- Int64\(\-3\) AS col0" at position 0 and "CAST\(\(\- \(\- max\(DISTINCT Int64\(51\)\)\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 10 + + 3 - - 3 AS col0, CAST ( - - MAX ( DISTINCT + 51 ) AS INTEGER ) col0 query I rowsort label-149 @@ -16701,7 +16701,7 @@ SELECT - COUNT ( * ) * - 36 * - COUNT ( * ) * 72 * 28 + - - 52 * + ( - 15 ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(38\) \+ Int64\(48\) \- Int64\(85\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(38\) \+ Int64\(48\) \- Int64\(85\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) / Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 16 col2, ( + 38 ) + + 48 - + 85 + - - CAST ( NULL AS INTEGER ) / + 77 AS col2 query I rowsort @@ -16795,7 +16795,7 @@ SELECT COUNT ( * ) - - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(68\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(68\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 + + + 68 AS col2, CAST ( NULL AS INTEGER ) col2 query II rowsort label-3208 @@ -20703,7 +20703,7 @@ SELECT ALL + 53, 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 84412 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(\-48\) \+ Int64\(68\) \* \(\- Int64\(\-17\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-73\)\) \+ Int64\(71\) \- CAST\(Int64\(90\) AS Int32\) / Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(\-48\) \+ Int64\(68\) \* \(\- Int64\(\-17\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-73\)\) \+ Int64\(71\) \- CAST\(Int64\(90\) AS Int64\) / Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 31 AS col1, - 48 + + 68 * - - 17 * COUNT ( * ) * - - 73 + 71 - + CAST ( 90 AS INTEGER ) / - 46 AS col1 query I rowsort label-3955 @@ -22159,7 +22159,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(21\) \* coalesce\(\(\- Int64\(63\)\), \(\- avg\(Int64\(\-75\)\)\)\) \+ Int64\(13\) \* CAST\(NULL AS Int32\) \+ Int64\(11\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(21\) \* coalesce\(\(\- Int64\(63\)\), \(\- avg\(Int64\(\-75\)\)\)\) \+ Int64\(13\) \* CAST\(NULL AS Int64\) \+ Int64\(11\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 10 * 21 * + COALESCE ( - + 63, - + AVG ( ALL - 75 ) ) + + 13 * + + CAST ( NULL AS INTEGER ) + 11 AS col2, + 10 AS col2 query II rowsort label-4232 @@ -22846,7 +22846,7 @@ SELECT DISTINCT 22 * + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ \(\- \(\- min\(DISTINCT Int64\(98\)\)\)\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(44\) \+ \(\- \(\- CASE Int64\(85\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(16\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(\-47\) THEN Int64\(\-18\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ \(\- \(\- min\(DISTINCT Int64\(98\)\)\)\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(44\) \+ \(\- \(\- CASE Int64\(85\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(16\) WHEN \(\- \(\- CAST\(NULL AS Int64\)\)\) / Int64\(\-47\) THEN Int64\(\-18\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 78 ) + - - MIN ( DISTINCT 98 ) + + 53 AS col1, 44 + - - CASE + 85 WHEN - COUNT ( * ) THEN + 16 WHEN - - CAST ( NULL AS INTEGER ) / - 47 THEN - 18 END AS col1 query I rowsort label-4361 @@ -27379,7 +27379,7 @@ SELECT DISTINCT + 7 + + 58 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- count\(Int64\(66\)\)\) \+ Int64\(38\) AS col2" at position 0 and "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- count\(Int64\(66\)\)\) \+ Int64\(38\) AS col2" at position 0 and "\(\- avg\(CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 85 * - COUNT ( + + 66 ) + 38 AS col2, - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 # Datafusion - Datafusion expected results: @@ -33014,7 +33014,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2574 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- CAST\(Int64\(99\) AS Int32\)\) AS col2" at position 0 and "Int64\(77\) / CAST\(NULL AS Int32\) \* Int64\(39\) \* \(\- count\(DISTINCT \(\- Int64\(\-28\)\)\)\) \* Int64\(\-12\) \+ Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- CAST\(Int64\(99\) AS Int64\)\) AS col2" at position 0 and "Int64\(77\) / CAST\(NULL AS Int64\) \* Int64\(39\) \* \(\- count\(DISTINCT \(\- Int64\(\-28\)\)\)\) \* Int64\(\-12\) \+ Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 * - CAST ( + 99 AS INTEGER ) AS col2, + 77 / CAST ( NULL AS INTEGER ) * 39 * - COUNT ( DISTINCT - - 28 ) * - 12 + - 27 AS col2 query I rowsort @@ -33195,7 +33195,7 @@ SELECT DISTINCT 31 * 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ avg\(DISTINCT CASE Int64\(\-19\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN CAST\(Int64\(\-39\) AS Float64\) / Int64\(36\) \+ \(\- Int64\(\-34\)\) END\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ avg\(DISTINCT CASE Int64\(\-19\) WHEN \(\- \(\- CAST\(NULL AS Int64\)\)\) THEN CAST\(Int64\(\-39\) AS Float64\) / Int64\(36\) \+ \(\- Int64\(\-34\)\) END\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 + AVG ( DISTINCT CASE + - 19 WHEN - - CAST ( NULL AS INTEGER ) THEN + CAST ( - 39 AS FLOAT8 ) / 36 + - - 34 END ) col2, 70 AS col2 query I rowsort @@ -33461,7 +33461,7 @@ SELECT DISTINCT 3 * + 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- sum\(\(\- CASE Int64\(\-42\) WHEN Int64\(42\) THEN nullif\(Int64\(\-26\), Int64\(42\) \+ Int64\(\-50\) \+ Int64\(46\) \* Int64\(\-99\)\) WHEN Int64\(\-69\) THEN Int64\(\-87\) END\)\)\) AS col2" at position 0 and "Int64\(98\) \* \(\- CAST\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-63\) THEN \(\- nullif\(Int64\(96\), \(\- Int64\(\-20\)\)\)\) \- Int64\(\-48\) END AS Int32\)\) \* Int64\(\-8\) \* \(\- Int64\(32\)\) \* Int64\(92\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- sum\(\(\- CASE Int64\(\-42\) WHEN Int64\(42\) THEN nullif\(Int64\(\-26\), Int64\(42\) \+ Int64\(\-50\) \+ Int64\(46\) \* Int64\(\-99\)\) WHEN Int64\(\-69\) THEN Int64\(\-87\) END\)\)\) AS col2" at position 0 and "Int64\(98\) \* \(\- CAST\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-63\) THEN \(\- nullif\(Int64\(96\), \(\- Int64\(\-20\)\)\)\) \- Int64\(\-48\) END AS Int64\)\) \* Int64\(\-8\) \* \(\- Int64\(32\)\) \* Int64\(92\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 61 * - SUM ( - + CASE - 42 WHEN + 42 THEN NULLIF ( + - 26, 42 + - 50 + 46 * + - 99 ) WHEN - 69 THEN + + ( - 87 ) END ) AS col2, 98 * - + CAST ( + CASE COUNT ( * ) WHEN + - 63 THEN - NULLIF ( 96, - - 20 ) - - 48 END AS INTEGER ) * + - 8 * - + 32 * 92 + + - COUNT ( * ) + - 38 col2 query I rowsort label-6378 @@ -33487,7 +33487,7 @@ SELECT ALL + COUNT ( - + 26 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-35\) \* count\(Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-35\) \* count\(Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + 81 + - 35 * COUNT ( + 13 ) AS col0 query II rowsort label-6383 @@ -45199,7 +45199,7 @@ SELECT DISTINCT 63 AS col0, + 94 * 4 * + - 89 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1653 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(\-97\)\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ CAST\(NULL AS Int64\) \+ \(\- Int64\(\-97\)\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 40 + + CAST ( NULL AS INTEGER ) + - - 97 AS col0, - 29 * + 57 col0 query I rowsort label-8620 @@ -47126,7 +47126,7 @@ SELECT + 79 * - - 95 - - 97 * 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-56\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-56\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) AS col0, - 56 * - 65 AS col0 query I rowsort label-8991 @@ -48852,7 +48852,7 @@ SELECT - 49, 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "nullif\(nullif\(Int64\(93\), \(\- Int64\(\-64\)\) \+ Int64\(17\) \- \(\- CAST\(Int64\(\-98\) AS Int32\)\) \+ Int64\(\-59\)\), Int64\(\-17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "nullif\(nullif\(Int64\(93\), \(\- Int64\(\-64\)\) \+ Int64\(17\) \- \(\- CAST\(Int64\(\-98\) AS Int64\)\) \+ Int64\(\-59\)\), Int64\(\-17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 76 AS col0, NULLIF ( NULLIF ( 93, - - 64 + + 17 - - CAST ( - 98 AS INTEGER ) + + - 59 ), - 17 ) AS col0 query I rowsort label-9316 @@ -49836,7 +49836,7 @@ SELECT - 46 * + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(10\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(10\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 10 * + 19 col1 query I rowsort label-9502 diff --git a/data/sqlite/random/expr/slt_good_8.slt b/data/sqlite/random/expr/slt_good_8.slt index 4e30958..6b52c87 100644 --- a/data/sqlite/random/expr/slt_good_8.slt +++ b/data/sqlite/random/expr/slt_good_8.slt @@ -3640,7 +3640,7 @@ SELECT + MIN ( - + 41 ) - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- CAST\(Int64\(39\) AS Int32\)\)\) WHEN \(\- avg\(Int64\(33\)\)\) \* Int64\(70\) THEN Int64\(6\) WHEN Int64\(\-88\) \+ Int64\(4\) THEN Int64\(\-69\) END AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- CAST\(Int64\(39\) AS Int64\)\)\) WHEN \(\- avg\(Int64\(33\)\)\) \* Int64\(70\) THEN Int64\(6\) WHEN Int64\(\-88\) \+ Int64\(4\) THEN Int64\(\-69\) END AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - ( - + CAST ( + + 39 AS INTEGER ) ) WHEN - AVG ( ( 33 ) ) * 70 THEN + 6 WHEN - 88 + + 4 THEN - 69 END AS col0, + COUNT ( * ) AS col0 query II rowsort @@ -4338,7 +4338,7 @@ SELECT - 5 * 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, + 68 AS col2 # Datafusion - Types were automatically converted from: @@ -4394,7 +4394,7 @@ SELECT ( + + 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(67\) WHEN Int64\(28\) THEN Int64\(34\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- CAST\(NULL AS Int32\) / Int64\(63\) ELSE NULL END AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(67\) WHEN Int64\(28\) THEN Int64\(34\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) \- CAST\(NULL AS Int64\) / Int64\(63\) ELSE NULL END AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE 67 WHEN + + 28 THEN + 34 * - - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) / 63 ELSE NULL END col2, 65 AS col2 query I rowsort @@ -4806,7 +4806,7 @@ SELECT DISTINCT 11 + - - 18 + 33 * + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(38\)\)\) AS col0" at position 0 and "Int64\(\-66\) \+ Int64\(33\) \+ Int64\(2\) \+ Int64\(30\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(38\)\)\) AS col0" at position 0 and "Int64\(\-66\) \+ Int64\(33\) \+ Int64\(2\) \+ Int64\(30\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( + - ( + 38 ) ) col0, - 66 + 33 + + 2 + + 30 + - + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-899 @@ -5736,7 +5736,7 @@ SELECT DISTINCT + 71 * + COALESCE ( - 57, - + MAX ( DISTINCT + CAST ( 22 AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66602 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Float64\)\) AS Int32\) AS col0" at position 0 and "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(22\)\) \* Int64\(\-60\) \- Int64\(69\) \+ \(\- \(\- coalesce\(\(\- \(\- Int64\(\-3\)\)\), Int64\(5\) \* Int64\(\-55\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* count\(Int64\(68\)\) \* \(\- Int64\(27\)\) \* Int64\(32\) \* Int64\(77\) \- sum\(DISTINCT Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Float64\)\) AS Int64\) AS col0" at position 0 and "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(22\)\) \* Int64\(\-60\) \- Int64\(69\) \+ \(\- \(\- coalesce\(\(\- \(\- Int64\(\-3\)\)\), Int64\(5\) \* Int64\(\-55\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* count\(Int64\(68\)\) \* \(\- Int64\(27\)\) \* Int64\(32\) \* Int64\(77\) \- sum\(DISTINCT Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + - CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col0, - NULLIF ( - + COUNT ( * ), - + 22 * - 60 - + 69 + - - COALESCE ( - ( - - 3 ), + 5 * - 55 ) + + - COUNT ( * ) ) * + COUNT ( + 68 ) * - + 27 * 32 * + 77 - + + ( SUM ( DISTINCT + 74 ) ) AS col0 query I rowsort @@ -7225,7 +7225,7 @@ SELECT DISTINCT + - MIN ( ALL + 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(93\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) / \(\- CAST\(NULL AS Int64\)\) \* Int64\(93\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 82 AS col1, COUNT ( * ) * + 57 / - CAST ( NULL AS INTEGER ) * 93 + + CAST ( + - COUNT ( * ) AS INTEGER ) col1 query I rowsort label-1360 @@ -9389,7 +9389,7 @@ SELECT ALL + CAST ( 14 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-5\) \+ Int64\(77\) AS col0" at position 0 and "Int64\(66\) \* \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-5\) \+ Int64\(77\) AS col0" at position 0 and "Int64\(66\) \* \(\- \(\- sum\(CAST\(NULL AS Int64\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 35 * - 5 + + 77 AS col0, 66 * - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 query II rowsort label-1778 @@ -9870,7 +9870,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ CAST\(Int64\(\-11\) AS Int32\) \+ Int64\(48\) / Int64\(98\) \+ min\(\(\- Int64\(94\)\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-10\)\) WHEN Int64\(\-94\) \+ Int64\(35\) THEN NULL WHEN Int64\(97\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Float64\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ CAST\(Int64\(\-11\) AS Int64\) \+ Int64\(48\) / Int64\(98\) \+ min\(\(\- Int64\(94\)\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-10\)\) WHEN Int64\(\-94\) \+ Int64\(35\) THEN NULL WHEN Int64\(97\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Float64\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 + CAST ( - 11 AS INTEGER ) + 48 / 98 + + MIN ( ALL - + 94 ) AS col0, CASE + - ( - 10 ) WHEN - 94 + + + 35 THEN NULL WHEN 97 THEN NULL ELSE - COUNT ( * ) * + CAST ( NULL AS FLOAT8 ) END AS col0 query I rowsort label-1869 @@ -14056,7 +14056,7 @@ SELECT + - 99 * - 42 * + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "\(\- CAST\(Int64\(4\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "\(\- CAST\(Int64\(4\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 AS col0, - CAST ( 4 AS INTEGER ) AS col0 query I rowsort @@ -14828,7 +14828,7 @@ SELECT ALL 8 + + + 13 + COUNT ( * ) * ( - - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 4628 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / Int64\(52\) \+ \(\- min\(Int64\(\-74\)\)\) AS col1" at position 0 and "Int64\(52\) \* \(\- \(\- nullif\(Int64\(89\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- nullif\(Int64\(16\), Int64\(26\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / Int64\(52\) \+ \(\- min\(Int64\(\-74\)\)\) AS col1" at position 0 and "Int64\(52\) \* \(\- \(\- nullif\(Int64\(89\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \+ Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- nullif\(Int64\(16\), Int64\(26\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 / + 52 + - MIN ( ALL - 74 ) col1, 52 * + - ( - + NULLIF ( + 89, COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 3 * + COUNT ( * ) - - + NULLIF ( 16, + 26 ) ) ) col1 query I rowsort @@ -15026,7 +15026,7 @@ SELECT + 18 - - + COUNT ( * ) + - + 0 * + COUNT ( * ) * - + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(92\), \(\- CAST\(Int64\(58\) AS Int32\)\), \(\- Int64\(17\)\) \- count\(nullif\(Int64\(60\), CASE Int64\(\-44\) WHEN Int64\(6\) / Int64\(73\) THEN Int64\(66\) END \* \(\- Int64\(\-83\)\) \* Int64\(25\)\)\) \* Int64\(55\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(92\), \(\- CAST\(Int64\(58\) AS Int64\)\), \(\- Int64\(17\)\) \- count\(nullif\(Int64\(60\), CASE Int64\(\-44\) WHEN Int64\(6\) / Int64\(73\) THEN Int64\(66\) END \* \(\- Int64\(\-83\)\) \* Int64\(25\)\)\) \* Int64\(55\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + + 92, - CAST ( + 58 AS INTEGER ), - + 17 - COUNT ( + + NULLIF ( + 60, + CASE - 44 WHEN + + 6 / + 73 THEN + + 66 END * - - 83 * + 25 ) ) * + + 55 ) AS col1, 74 AS col1 query I rowsort label-2852 @@ -15239,7 +15239,7 @@ SELECT + COUNT ( * ) * - 55 * + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-90\), Int64\(\-33\) \* Int64\(\-60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-85\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- \(\- Int64\(6\)\) \* Int64\(\-16\), sum\(DISTINCT CAST\(Int64\(7\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(52\) \+ CAST\(\(\- max\(CAST\(Int64\(73\) AS Int32\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-90\), Int64\(\-33\) \* Int64\(\-60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-85\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- \(\- Int64\(6\)\) \* Int64\(\-16\), sum\(DISTINCT CAST\(Int64\(7\) AS Int64\)\)\) AS col2" at position 0 and "Int64\(52\) \+ CAST\(\(\- max\(CAST\(Int64\(73\) AS Int64\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - 90, - 33 * - 60 * - COUNT ( * ) * + - 85 - + COUNT ( * ) + 64 - ( - + 6 ) * - 16, + SUM ( DISTINCT + CAST ( + 7 AS INTEGER ) ) ) AS col2, ( 52 ) + + CAST ( - MAX ( + CAST ( + 73 AS INTEGER ) ) AS INTEGER ) AS col2 query I rowsort @@ -17775,7 +17775,7 @@ SELECT + 10 / 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(10\) AS Int32\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) ELSE NULL END AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(10\) AS Int64\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) ELSE NULL END AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 16 / CASE - COUNT ( * ) WHEN + - CAST ( 10 AS INTEGER ) THEN - - COUNT ( * ) ELSE NULL END AS col1, 83 AS col1 query I rowsort label-3378 @@ -18508,7 +18508,7 @@ SELECT + + SUM ( DISTINCT - 93 ) + - 66 * + + 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) AS col1" at position 0 and "CASE Int64\(45\) WHEN Int64\(57\) / \(\- Int64\(66\)\) / \(\- Int64\(\-23\)\) \+ Int64\(\-89\) \+ Int64\(62\) \* \(\- Int64\(8\)\) THEN Int64\(56\) \* \(\- CASE nullif\(Int64\(\-74\), \(\- CAST\(Int64\(22\) AS Int32\)\) / \(\- avg\(CAST\(NULL AS Float64\) \- Int64\(78\)\)\) \+ Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(48\) WHEN Int64\(\-22\) \+ Int64\(\-53\) \* Int64\(23\) \* sum\(Int64\(99\)\) THEN Int64\(\-18\) ELSE Int64\(\-34\) END\) \+ Int64\(\-65\) \* Int64\(58\) WHEN Int64\(7\) \* Int64\(\-77\) THEN NULL WHEN Int64\(\-16\) THEN Int64\(67\) ELSE \(\- CAST\(\(\- max\(DISTINCT Int64\(0\)\)\) AS Int32\)\) \* Int64\(\-46\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) AS col1" at position 0 and "CASE Int64\(45\) WHEN Int64\(57\) / \(\- Int64\(66\)\) / \(\- Int64\(\-23\)\) \+ Int64\(\-89\) \+ Int64\(62\) \* \(\- Int64\(8\)\) THEN Int64\(56\) \* \(\- CASE nullif\(Int64\(\-74\), \(\- CAST\(Int64\(22\) AS Int64\)\) / \(\- avg\(CAST\(NULL AS Float64\) \- Int64\(78\)\)\) \+ Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(48\) WHEN Int64\(\-22\) \+ Int64\(\-53\) \* Int64\(23\) \* sum\(Int64\(99\)\) THEN Int64\(\-18\) ELSE Int64\(\-34\) END\) \+ Int64\(\-65\) \* Int64\(58\) WHEN Int64\(7\) \* Int64\(\-77\) THEN NULL WHEN Int64\(\-16\) THEN Int64\(67\) ELSE \(\- CAST\(\(\- max\(DISTINCT Int64\(0\)\)\) AS Int64\)\) \* Int64\(\-46\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 13 ) AS col1, CASE + 45 WHEN 57 / - + ( + 66 ) / - - 23 + - 89 + + 62 * - + 8 THEN + 56 * - CASE NULLIF ( - 74, - CAST ( 22 AS INTEGER ) / - AVG ( ALL CAST ( NULL AS FLOAT8 ) - 78 ) + 13 * + COUNT ( * ) ) * 48 WHEN - 22 + - 53 * + ( 23 * SUM ( ALL + 99 ) ) THEN - 18 ELSE - 34 END + - 65 * + 58 WHEN 7 * - 77 THEN NULL WHEN - 16 THEN + 67 ELSE - CAST ( - MAX ( DISTINCT 0 ) AS INTEGER ) * - 46 END AS col1 query I rowsort label-3513 @@ -19416,7 +19416,7 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 8 # Datafusion - Expected - 229 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 1 and "Int64\(87\) \+ Int64\(65\) \* \(\- max\(\(\- Int64\(3\)\)\)\) \+ coalesce\(Int64\(\-53\), \(\- coalesce\(Int64\(85\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-90\)\)\) \+ \(\- \(\- max\(Int64\(75\)\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 1 and "Int64\(87\) \+ Int64\(65\) \* \(\- max\(\(\- Int64\(3\)\)\)\) \+ coalesce\(Int64\(\-53\), \(\- coalesce\(Int64\(85\), \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-90\)\)\) \+ \(\- \(\- max\(Int64\(75\)\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 - - 38, 8 AS col1, + ( + 87 ) + 65 * - MAX ( - + 3 ) + COALESCE ( - 53, - COALESCE ( 85, - ( + CAST ( NULL AS INTEGER ) ) * - 90 ) + - - ( + MAX ( + 75 ) ) ) AS col1 # Datafusion - Types were automatically converted from: @@ -19431,7 +19431,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-70\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-70\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + - 70 AS col0, - 8 AS col0 query II rowsort label-3688 @@ -20215,7 +20215,7 @@ SELECT DISTINCT ( + 55 ) / + COUNT ( DISTINCT - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ Int64\(\-94\) \+ Int64\(0\) \* \(\- CAST\(Int64\(\-22\) AS Int32\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ Int64\(\-94\) \+ Int64\(0\) \* \(\- CAST\(Int64\(\-22\) AS Int64\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) + - 94 + - 0 * - CAST ( - 22 AS INTEGER ) AS col1, 60 AS col1 query I rowsort label-3836 @@ -20639,7 +20639,7 @@ SELECT + - 80 / - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(51\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-28\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(51\) \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-28\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 75 + 51 - - + CAST ( NULL AS INTEGER ) * + - 28 AS col2, - 49 AS col2 query I rowsort label-3917 @@ -22673,7 +22673,7 @@ SELECT DISTINCT + MIN ( DISTINCT - 54 ) / - + 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 626270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "\(\- Int64\(93\)\) \* Int64\(74\) \* Int64\(\-91\) \+ CAST\(Int64\(7\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "\(\- Int64\(93\)\) \* Int64\(74\) \* Int64\(\-91\) \+ CAST\(Int64\(7\) AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 35 AS col0, - ( 93 ) * 74 * - 91 + CAST ( 7 AS INTEGER ) + + + COUNT ( * ) AS col0 query II rowsort label-4304 @@ -27078,7 +27078,7 @@ SELECT 51 + 56, + 81 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1303 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int32\)\) \+ Int64\(\-83\) \* \(\- \(\- Int64\(15\)\)\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int64\)\) \+ Int64\(\-83\) \* \(\- \(\- Int64\(15\)\)\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + 58 AS INTEGER ) + - 83 * - - ( 15 ) AS col0, 73 AS col0 query I rowsort label-5138 @@ -27489,7 +27489,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(73\) \* Int64\(55\) \+ nullif\(Int64\(15\), Int64\(58\) / Int64\(60\) \+ Int64\(80\)\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(\-25\) \* Int64\(82\) / \(\- CAST\(nullif\(Int64\(\-21\), Int64\(12\) \+ Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(73\) \* Int64\(55\) \+ nullif\(Int64\(15\), Int64\(58\) / Int64\(60\) \+ Int64\(80\)\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(\-25\) \* Int64\(82\) / \(\- CAST\(nullif\(Int64\(\-21\), Int64\(12\) \+ Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 39 / + 73 * 55 + + NULLIF ( 15, 58 / + 60 + 80 ) * - 15 AS col0, - 25 * 82 / - CAST ( NULLIF ( - 21, 12 + + 46 * + COUNT ( * ) ) AS INTEGER ) AS col0 query II rowsort label-5216 @@ -28742,7 +28742,7 @@ SELECT DISTINCT ( 16 ) AS col0, - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- nullif\(Int64\(\-35\), \(\- min\(Int64\(11\)\)\)\)\) AS Int32\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- nullif\(Int64\(\-35\), \(\- min\(Int64\(11\)\)\)\)\) AS Int64\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - NULLIF ( + - 35, - MIN ( + 11 ) ) AS INTEGER ) AS col0, + 31 AS col0 query II rowsort label-5453 @@ -33077,7 +33077,7 @@ SELECT ALL 30 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -55936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-32\) \* Int64\(92\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- avg\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col1" at position 0 and "Int64\(\-32\) \* Int64\(92\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 36 * - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1, - 32 * 92 * + ( + 19 ) AS col1 query I rowsort @@ -34603,7 +34603,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-35\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-91\) \* \(\- Int64\(\-63\)\) \* avg\(nullif\(Int64\(8\), Int64\(13\)\)\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-35\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-91\) \* \(\- Int64\(\-63\)\) \* avg\(nullif\(Int64\(8\), Int64\(13\)\)\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) AS col1, - 35 * - CAST ( NULL AS INTEGER ) * - 91 * - - 63 * AVG ( + NULLIF ( 8, 13 ) ) + + 12 AS col1 query I rowsort label-6567 @@ -35569,7 +35569,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-40\)\) \+ Int64\(\-34\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-40\)\) \+ Int64\(\-34\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL MAX ( ALL - 40 ) + - 34 * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, 79 AS col0 query I rowsort @@ -35751,7 +35751,7 @@ SELECT - - COUNT ( + CAST ( + + 28 AS FLOAT8 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(91\), Int64\(\-95\), max\(\(\- CAST\(Int64\(\-36\) AS Int32\)\)\)\)\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(91\), Int64\(\-95\), max\(\(\- CAST\(Int64\(\-36\) AS Int64\)\)\)\)\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - COALESCE ( 91, - 95, + MAX ( - CAST ( - 36 AS INTEGER ) ) ) AS col0, - 80 AS col0 query I rowsort label-6785 @@ -37678,7 +37678,7 @@ SELECT DISTINCT - NULLIF ( - ( + 10 ), + + 41 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 236 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- Int64\(\-56\)\) \* Int64\(5\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- Int64\(\-56\)\) \* Int64\(5\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 44 + - - 56 * 5 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -39375,7 +39375,7 @@ SELECT ALL - 72 * - 66 * - + 75 * 8 AS col1 # Datafusion - Expected - 89 # Datafusion - Expected - 91 # Datafusion - Expected - -1672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 1 and "\(\- max\(DISTINCT Int64\(\-9\)\)\) \* Int64\(90\) \+ Int64\(48\) \+ CAST\(min\(Int64\(75\)\) AS Int32\) \+ Int64\(84\) \* \(\- max\(Int64\(31\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 1 and "\(\- max\(DISTINCT Int64\(\-9\)\)\) \* Int64\(90\) \+ Int64\(48\) \+ CAST\(min\(Int64\(75\)\) AS Int64\) \+ Int64\(84\) \* \(\- max\(Int64\(31\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 89, + 91 AS col1, - + MAX ( DISTINCT - 9 ) * + 90 + 48 + + CAST ( + MIN ( 75 ) AS INTEGER ) + 84 * - MAX ( + 31 ) + + - COUNT ( * ) AS col1 query I rowsort label-7474 @@ -39858,7 +39858,7 @@ SELECT ALL + + 68 AS col1, 61 + - - 27 + + 42 # Datafusion - Expected - 69 # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 69 AS col2, CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COUNT ( * ) AS col2, 45 * COUNT ( * ) query I rowsort @@ -40662,7 +40662,7 @@ SELECT DISTINCT - ( - COUNT ( * ) ) / 37 + + NULLIF ( + + MIN ( DISTINCT - 87 ), # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) / Int64\(\-95\) \* nullif\(Int64\(85\), Int64\(54\) \+ Int64\(40\)\) \+ nullif\(\(\- Int64\(29\)\), avg\(Int64\(32\)\) \* Int64\(56\) \* \(\- Int64\(\-47\)\) \* \(\- Int64\(41\)\) \+ Int64\(14\) \* Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- nullif\(Int64\(\-10\), \(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-76\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-40\)\)\)\) \+ Int64\(79\) \+ Int64\(\-39\) \- Int64\(20\) \- Int64\(3\) \- Int64\(69\) \* Int64\(\-2\)\)\) \+ Int64\(\-5\) \+ Int64\(3\) \+ Int64\(75\)\) \- max\(Int64\(\-23\)\) / Int64\(\-52\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) / Int64\(\-95\) \* nullif\(Int64\(85\), Int64\(54\) \+ Int64\(40\)\) \+ nullif\(\(\- Int64\(29\)\), avg\(Int64\(32\)\) \* Int64\(56\) \* \(\- Int64\(\-47\)\) \* \(\- Int64\(41\)\) \+ Int64\(14\) \* Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- nullif\(Int64\(\-10\), \(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int64\)\)\), Int64\(\-76\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-40\)\)\)\) \+ Int64\(79\) \+ Int64\(\-39\) \- Int64\(20\) \- Int64\(3\) \- Int64\(69\) \* Int64\(\-2\)\)\) \+ Int64\(\-5\) \+ Int64\(3\) \+ Int64\(75\)\) \- max\(Int64\(\-23\)\) / Int64\(\-52\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 84 / - 95 * + NULLIF ( + 85, 54 + 40 ) + + NULLIF ( - + 29, AVG ( ALL 32 ) * 56 * - - 47 * - + 41 + + + 14 * + 87 + - COUNT ( * ) + + - NULLIF ( - 10, - - COALESCE ( - - CAST ( NULL AS INTEGER ), + - 76 + - COUNT ( * ) * - 40 ) + 79 + - 39 - 20 - + 3 - 69 * - 2 ) + - 5 + + 3 + + 75 ) - + MAX ( + - 23 ) / - 52 AS col2, 85 AS col2 query I rowsort @@ -41215,7 +41215,7 @@ SELECT 52 AS col0, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(68\) \+ Int64\(\-60\) AS col2" at position 0 and "nullif\(count\(Int64\(\-12\)\), Int64\(\-44\) \* coalesce\(Int64\(50\), Int64\(\-49\) \* \(\- CAST\(Int64\(35\) AS Int32\)\), Int64\(20\) \- \(\- Int64\(64\)\) \+ \(\- avg\(DISTINCT Int64\(\-31\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(68\) \+ Int64\(\-60\) AS col2" at position 0 and "nullif\(count\(Int64\(\-12\)\), Int64\(\-44\) \* coalesce\(Int64\(50\), Int64\(\-49\) \* \(\- CAST\(Int64\(35\) AS Int64\)\), Int64\(20\) \- \(\- Int64\(64\)\) \+ \(\- avg\(DISTINCT Int64\(\-31\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 5 + + ( 68 ) + - 60 AS col2, NULLIF ( COUNT ( ALL + - 12 ), - 44 * COALESCE ( 50, - 49 * - CAST ( ( + 35 ) AS INTEGER ), 20 - - + 64 + - AVG ( DISTINCT - 31 ) ) ) * + COUNT ( * ) AS col2 query I rowsort label-7823 @@ -41907,7 +41907,7 @@ SELECT ALL + MAX ( - 59 ) * + - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3186 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \* Int64\(59\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \* Int64\(59\) 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\. SELECT DISTINCT - ( + + 54 ) * 59 AS col0, + CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -43244,7 +43244,7 @@ SELECT ALL + 45 / + - 83 * - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(77\) \+ CASE WHEN Int64\(3\) BETWEEN Int64\(1\) \+ Int64\(\-21\) \- Int64\(\-32\) \* Int64\(\-43\) \* Int64\(15\) AND Int64\(90\) \+ avg\(CAST\(NULL AS Int32\)\) \* Int64\(25\) THEN Int64\(\-12\) / Int64\(\-17\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(77\) \+ CASE WHEN Int64\(3\) BETWEEN Int64\(1\) \+ Int64\(\-21\) \- Int64\(\-32\) \* Int64\(\-43\) \* Int64\(15\) AND Int64\(90\) \+ avg\(CAST\(NULL AS Int64\)\) \* Int64\(25\) THEN Int64\(\-12\) / Int64\(\-17\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 0 AS col0, 77 + CASE WHEN ( 3 ) BETWEEN 1 + + - 21 - + ( - 32 ) * - 43 * 15 AND + 90 + AVG ( + CAST ( NULL AS INTEGER ) ) * 25 THEN - 12 / - 17 ELSE NULL END AS col0 query I rowsort @@ -44616,7 +44616,7 @@ SELECT 29 * 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "CAST\(Int64\(\-88\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "CAST\(Int64\(\-88\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 AS col2, + CAST ( - 88 AS INTEGER ) AS col2 # Datafusion - Types were automatically converted from: @@ -46298,7 +46298,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(69\)\) AS col2" at position 0 and "CASE CAST\(NULL AS Int32\) WHEN Int64\(\-50\) \+ Int64\(\-81\) THEN \(\- Int64\(22\)\) END \* Int64\(\-42\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(69\)\) AS col2" at position 0 and "CASE CAST\(NULL AS Int64\) WHEN Int64\(\-50\) \+ Int64\(\-81\) THEN \(\- Int64\(22\)\) END \* Int64\(\-42\) \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( + 69 ) AS col2, CASE + + CAST ( NULL AS INTEGER ) WHEN - 50 + - 81 THEN - + 22 END * - 42 - - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -46447,7 +46447,7 @@ SELECT ALL 78 * - COALESCE ( 42, - 13 ) + - 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(59\) \+ Int64\(64\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(59\) \+ Int64\(64\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 98 + 59 + 64 col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -47799,7 +47799,7 @@ SELECT ALL 85 * - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 92 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9073 @@ -48153,7 +48153,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1911 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-39\) AS Int32\) \* Int64\(49\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-39\) AS Int64\) \* Int64\(49\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + - 39 AS INTEGER ) * + 49 AS col0, 51 AS col0 query I rowsort @@ -48670,7 +48670,7 @@ SELECT DISTINCT + 24 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(7\) AS Int32\)\) \+ Int64\(4\) \* sum\(\(\- Int64\(17\)\)\) AS col0" at position 0 and "Int64\(65\) / Int64\(74\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(7\) AS Int64\)\) \+ Int64\(4\) \* sum\(\(\- Int64\(17\)\)\) AS col0" at position 0 and "Int64\(65\) / Int64\(74\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + 7 AS INTEGER ) + 4 * SUM ( ALL - + 17 ) AS col0, 65 / 74 * ( 35 ) AS col0 query II rowsort @@ -48767,7 +48767,7 @@ SELECT DISTINCT + 20 * 73 # Datafusion - Expected - -1 # Datafusion - Expected - -3910 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-85\) AS col2" at position 1 and "\(\- CASE CAST\(Int64\(68\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(\-12\)\) THEN NULL WHEN \(\- Int64\(65\)\) THEN Int64\(\-14\) \* \(\- Int64\(\-10\)\) \* Int64\(8\) \- Int64\(84\) END\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-85\) AS col2" at position 1 and "\(\- CASE CAST\(Int64\(68\) AS Int64\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(\-12\)\) THEN NULL WHEN \(\- Int64\(65\)\) THEN Int64\(\-14\) \* \(\- Int64\(\-10\)\) \* Int64\(8\) \- Int64\(84\) END\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ), + 46 * - 85 AS col2, - CASE CAST ( + 68 AS INTEGER ) WHEN + COUNT ( * ) * + MIN ( - 12 ) THEN NULL WHEN - + 65 THEN ( + - 14 ) * - - 10 * + 8 - 84 END col2 query I rowsort label-9256 @@ -49048,7 +49048,7 @@ SELECT ALL - + 37 AS col1, - 96 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-73\)\)\)\) \+ \(\- \(\- Int64\(80\)\)\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-73\)\)\)\) \+ \(\- \(\- Int64\(80\)\)\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + MIN ( - - 73 ) + - + ( - + 80 ) AS col0, + CAST ( + 7 AS INTEGER ) AS col0 # Datafusion - Types were automatically converted from: @@ -52322,7 +52322,7 @@ SELECT COUNT ( * ) + - - 6 # Datafusion - Expected - 2 # Datafusion - Expected - 34 # Datafusion - Expected - -136803 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 1 and "Int64\(\-49\) \+ Int64\(\-2\) \+ \(\- \(\- Int64\(21\)\)\) \* \(\- nullif\(CAST\(Int64\(74\) AS Int32\), \(\- sum\(Int64\(22\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(coalesce\(Int64\(40\), Int64\(54\) \+ Int64\(\-30\)\) \+ Int64\(17\) AS Int32\) \* Int64\(\-46\)\)\) \* Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 1 and "Int64\(\-49\) \+ Int64\(\-2\) \+ \(\- \(\- Int64\(21\)\)\) \* \(\- nullif\(CAST\(Int64\(74\) AS Int64\), \(\- sum\(Int64\(22\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(coalesce\(Int64\(40\), Int64\(54\) \+ Int64\(\-30\)\) \+ Int64\(17\) AS Int64\) \* Int64\(\-46\)\)\) \* Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 2 AS col2, + 34 AS col1, - 49 + - 2 + + - ( - + 21 ) * - NULLIF ( + CAST ( 74 AS INTEGER ), - SUM ( 22 ) * - COUNT ( * ) + CAST ( ( COALESCE ( + 40, 54 + - 30 ) ) + + 17 AS INTEGER ) * - 46 ) * 88 col1 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_80.slt b/data/sqlite/random/expr/slt_good_80.slt index 5cfea3e..429c3c3 100644 --- a/data/sqlite/random/expr/slt_good_80.slt +++ b/data/sqlite/random/expr/slt_good_80.slt @@ -3152,7 +3152,7 @@ SELECT + SUM ( + - 11 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "Int64\(\-3\) \* Int64\(\-63\) \+ CAST\(CAST\(Int64\(83\) AS Float64\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "Int64\(\-3\) \* Int64\(\-63\) \+ CAST\(CAST\(Int64\(83\) AS Float64\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 37 AS col0, - 3 * + - 63 + + CAST ( + CAST ( 83 AS FLOAT8 ) AS INTEGER ) AS col0 query I rowsort label-604 @@ -3958,7 +3958,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77616 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(36\) \* Int64\(22\) AS col1" at position 0 and "min\(CAST\(Int64\(\-25\) AS Int32\)\) \+ Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(36\) \* Int64\(22\) AS col1" at position 0 and "min\(CAST\(Int64\(\-25\) AS Int64\)\) \+ Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 * 36 * + 22 col1, MIN ( + CAST ( - 25 AS INTEGER ) ) + - 16 AS col1 query I rowsort label-758 @@ -5905,7 +5905,7 @@ SELECT ALL - SUM ( - + 19 ) + - 79 + + - 91 + + CASE ( - + 33 ) WHEN - 0 THEN 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 63 AS col1, ( CAST ( NULL AS INTEGER ) ) col1 query I rowsort label-1128 @@ -6320,7 +6320,7 @@ SELECT DISTINCT - COUNT ( * ) * - 15 * + + 20 * - - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(57\) \* nullif\(Int64\(32\), Int64\(96\) \+ CAST\(NULL AS Float64\)\) \* \(\- CASE \(\- Int64\(35\)\) WHEN max\(Int64\(\-41\)\) THEN min\(CAST\(CAST\(Int64\(\-14\) AS Int32\) AS Int32\)\) \* Int64\(57\) \+ Int64\(\-68\) WHEN Int64\(\-42\) THEN Int64\(\-56\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(57\) \* nullif\(Int64\(32\), Int64\(96\) \+ CAST\(NULL AS Float64\)\) \* \(\- CASE \(\- Int64\(35\)\) WHEN max\(Int64\(\-41\)\) THEN min\(CAST\(CAST\(Int64\(\-14\) AS Int64\) AS Int64\)\) \* Int64\(57\) \+ Int64\(\-68\) WHEN Int64\(\-42\) THEN Int64\(\-56\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 79 AS col0, + 57 * NULLIF ( + 32, + + 96 + + CAST ( NULL AS FLOAT8 ) ) * - CASE - + 35 WHEN MAX ( ALL - 41 ) THEN MIN ( ALL + CAST ( + CAST ( + - 14 AS INTEGER ) AS INTEGER ) ) * + 57 + + - 68 WHEN + - 42 THEN - 56 END col0 query I rowsort @@ -6840,7 +6840,7 @@ SELECT + COUNT ( * ) + - - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(5\)\) \+ Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "count\(Int64\(5\)\) \+ Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( 5 ) + 86 AS col1 query I rowsort label-1307 @@ -7345,7 +7345,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-99\) AS col1" at position 0 and "coalesce\(Int64\(47\), Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int64\) \+ Int64\(\-99\) AS col1" at position 0 and "coalesce\(Int64\(47\), Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 / 21 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + - 99 AS col1, COALESCE ( + 47, 61 ) AS col1 query I rowsort @@ -8295,7 +8295,7 @@ SELECT + + 93 + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(Int64\(27\)\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(Int64\(27\)\)\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - - ( CAST ( + - MAX ( + 27 ) AS INTEGER ) ) ) AS col1, 22 AS col1 query I rowsort label-1581 @@ -8749,7 +8749,7 @@ SELECT + - 34 + - 22 / - ( - - 14 ) # Datafusion - Expected - 51 # Datafusion - Expected - 1 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), CASE CAST\(NULL AS Int32\) WHEN Int64\(9\) \* Int64\(82\) \+ \(\- Int64\(14\)\) THEN Int64\(\-91\) END\) AS col1" at position 1 and "Int64\(61\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), CASE CAST\(NULL AS Int64\) WHEN Int64\(9\) \* Int64\(82\) \+ \(\- Int64\(14\)\) THEN Int64\(\-91\) END\) AS col1" at position 1 and "Int64\(61\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 51 AS col0, NULLIF ( + COUNT ( * ), + CASE CAST ( NULL AS INTEGER ) WHEN + ( 9 ) * 82 + ( - + 14 ) THEN - 91 END ) AS col1, + 61 AS col1 query II rowsort @@ -13815,7 +13815,7 @@ SELECT 9 col2, - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \- Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \- Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 48 AS col2, - CAST ( NULL AS INTEGER ) - - 25 AS col2 query II rowsort @@ -14523,7 +14523,7 @@ SELECT DISTINCT + 14 + + + 53 + + COALESCE ( - 43, CAST ( NULL AS INTEGER ), - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-65\)\) AS Int32\)\) \+ \(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-65\)\) AS Int64\)\) \+ \(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - - 65 AS INTEGER ) + - ( + ( 91 ) ) AS col0, + 12 AS col0 query I rowsort @@ -15819,7 +15819,7 @@ SELECT ( 0 ) + - + 21 - COUNT ( * ) / 2 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(70\) AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE WHEN NULL != Int64\(49\) THEN NULL ELSE Int64\(\-46\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(70\) AS Int64\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE WHEN NULL != Int64\(49\) THEN NULL ELSE Int64\(\-46\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - CAST ( 70 AS INTEGER ) AS col0, COUNT ( * ) * CASE WHEN NULL <> 49 THEN NULL ELSE - 46 END AS col0 # Datafusion - Datafusion expected results: @@ -15920,7 +15920,7 @@ SELECT ALL 17 + - - 66 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(83\) AS Int32\) / Int64\(\-53\) \+ Int64\(\-10\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(83\) AS Int64\) / Int64\(\-53\) \+ Int64\(\-10\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + + 83 AS INTEGER ) / + - 53 + - 10 col0, + 37 AS col0 query I rowsort label-3031 @@ -20618,7 +20618,7 @@ SELECT ALL 71 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1362 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-23\) \+ Int64\(18\) AS col0" at position 0 and "\(\- sum\(CAST\(NULL AS Int32\)\)\) \* min\(\(\- Int64\(76\)\)\) \- Int64\(72\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-23\) \+ Int64\(18\) AS col0" at position 0 and "\(\- sum\(CAST\(NULL AS Int64\)\)\) \* min\(\(\- Int64\(76\)\)\) \- Int64\(72\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 60 * - 23 + 18 AS col0, - SUM ( ALL CAST ( NULL AS INTEGER ) ) * MIN ( - + ( 76 ) ) - + 72 + - 46 AS col0 query I rowsort label-3930 @@ -21589,7 +21589,7 @@ SELECT 83 * - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / \(\- Int64\(23\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / \(\- Int64\(23\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 89 / - + 23 AS col1, CAST ( NULL AS INTEGER ) + ( - ( - 6 ) ) AS col1 query II rowsort @@ -21787,7 +21787,7 @@ SELECT + ( - + ( - - 63 ) ) + + - 7 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 414 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(46\) AS col1" at position 0 and "coalesce\(CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- coalesce\(Int64\(54\), Int64\(43\) \- \(\- Int64\(62\)\) \* Int64\(\-72\)\)\)\) WHEN Int64\(31\) \* \(\- Int64\(4\)\) \* \(\- Int64\(17\)\) \* CAST\(NULL AS Int32\) \+ Int64\(12\) THEN Int64\(\-14\) \+ Int64\(4\) END, Int64\(\-27\)\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(46\) AS col1" at position 0 and "coalesce\(CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- coalesce\(Int64\(54\), Int64\(43\) \- \(\- Int64\(62\)\) \* Int64\(\-72\)\)\)\) WHEN Int64\(31\) \* \(\- Int64\(4\)\) \* \(\- Int64\(17\)\) \* CAST\(NULL AS Int64\) \+ Int64\(12\) THEN Int64\(\-14\) \+ Int64\(4\) END, Int64\(\-27\)\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 9 * 46 col1, + COALESCE ( CASE + - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + - ( - + COALESCE ( + 54, + 43 - - + 62 * - 72 ) ) WHEN 31 * + - ( + + 4 ) * - + 17 * + CAST ( NULL AS INTEGER ) + 12 THEN - 14 + 4 END, - 27 ) + ( 22 ) AS col1 query I rowsort label-4152 @@ -21969,7 +21969,7 @@ SELECT ALL + 44 col1, 11 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6097 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(17\) \- Int64\(64\) \* \(\- Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(17\) \- Int64\(64\) \* \(\- Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 17 - + 64 * - + 95 AS col1 query I rowsort label-4186 @@ -29374,7 +29374,7 @@ SELECT DISTINCT 90 / - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(56\) \* Int64\(44\) THEN Int64\(\-46\) END\) \* \(\- Int64\(70\)\) AS col2" at position 0 and "CAST\(\(\- \(\- nullif\(Int64\(4\), CAST\(NULL AS Float64\)\)\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(56\) \* Int64\(44\) THEN Int64\(\-46\) END\) \* \(\- Int64\(70\)\) AS col2" at position 0 and "CAST\(\(\- \(\- nullif\(Int64\(4\), CAST\(NULL AS Float64\)\)\)\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE + COUNT ( * ) WHEN 56 * + 44 THEN - 46 END * - + 70 AS col2, CAST ( - ( - + NULLIF ( + 4, CAST ( NULL AS FLOAT8 ) ) ) AS INTEGER ) * - COUNT ( * ) AS col2 query I rowsort label-5592 @@ -30496,7 +30496,7 @@ SELECT COUNT ( * ) - - 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1137 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(53\) AS Int32\) \+ \(\- Int64\(\-84\)\) \+ Int64\(\-98\) \* nullif\(Int64\(13\), \(\- Int64\(81\)\) \* Int64\(76\) \- Int64\(86\) \* Int64\(\-19\) / Int64\(\-85\) / Int64\(50\)\) AS col0" at position 0 and "Int64\(94\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(53\) AS Int64\) \+ \(\- Int64\(\-84\)\) \+ Int64\(\-98\) \* nullif\(Int64\(13\), \(\- Int64\(81\)\) \* Int64\(76\) \- Int64\(86\) \* Int64\(\-19\) / Int64\(\-85\) / Int64\(50\)\) AS col0" at position 0 and "Int64\(94\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( 53 AS INTEGER ) + - - 84 + + - 98 * + NULLIF ( 13, - + 81 * 76 - 86 * - 19 / - 85 / + 50 ) AS col0, 94 + + - 71 AS col0 query II rowsort @@ -32151,7 +32151,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -55671300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-76\) WHEN Int64\(24\) THEN Int64\(71\) \+ Int64\(\-36\) \* Int64\(83\) WHEN CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) THEN NULL END \- Int64\(\-97\) \* Int64\(\-43\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(29\) \* Int64\(79\) \* Int64\(6\) \* \(\- Int64\(54\)\) \* \(\- \(\- nullif\(Int64\(75\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(18\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-76\) WHEN Int64\(24\) THEN Int64\(71\) \+ Int64\(\-36\) \* Int64\(83\) WHEN CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\) THEN NULL END \- Int64\(\-97\) \* Int64\(\-43\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(29\) \* Int64\(79\) \* Int64\(6\) \* \(\- Int64\(54\)\) \* \(\- \(\- nullif\(Int64\(75\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(18\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE - 76 WHEN 24 THEN + 71 + - 36 * + 83 WHEN CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN NULL END - - 97 * - 43 + - + 74 AS col0, 29 * + + 79 * 6 * - + 54 * - - NULLIF ( 75, - COUNT ( * ) + + + 18 ) col0 query I rowsort label-6118 @@ -34107,7 +34107,7 @@ SELECT - 19 - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "coalesce\(Int64\(\-54\), \(\- Int64\(\-81\)\), Int64\(30\)\) \* Int64\(0\) \* \(\- Int64\(\-46\)\) \+ \(\- Int64\(88\)\) \+ Int64\(95\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "coalesce\(Int64\(\-54\), \(\- Int64\(\-81\)\), Int64\(30\)\) \* Int64\(0\) \* \(\- Int64\(\-46\)\) \+ \(\- Int64\(88\)\) \+ Int64\(95\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 25 * CAST ( NULL AS INTEGER ) AS col0, + COALESCE ( - 54, ( - ( - 81 ) ), 30 ) * + 0 * - - 46 + - + 88 + + 95 + + + 70 AS col0 query I rowsort label-6490 @@ -34726,7 +34726,7 @@ SELECT DISTINCT 4 / + - COUNT ( * ) * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(57\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(57\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 40 * 57 col1, + CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -35698,7 +35698,7 @@ SELECT ALL - 33, 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-79\) \* Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-79\) \* Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 30 * ( 76 ) AS col1, CAST ( NULL AS INTEGER ) * + - 79 * + 62 * + - COUNT ( * ) AS col1 query I rowsort label-6794 @@ -36070,7 +36070,7 @@ SELECT + NULLIF ( 41, + - 52 * 52 * COUNT ( * ) * + + 7 * - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / min\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / min\(DISTINCT CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) / MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2, 24 AS col2 query I rowsort @@ -38684,7 +38684,7 @@ SELECT ALL - + COUNT ( DISTINCT - ( + - 96 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4214 # Datafusion - Expected - 4194 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(50\) \+ Int64\(\-64\) AS col2" at position 0 and "Int64\(43\) \* Int64\(98\) \+ \(\- CAST\(Int64\(20\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(50\) \+ Int64\(\-64\) AS col2" at position 0 and "Int64\(43\) \* Int64\(98\) \+ \(\- CAST\(Int64\(20\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 83 * + 50 + - 64 AS col2, + 43 * + 98 + + + ( + - CAST ( + 20 AS INTEGER ) ) AS col2 query I rowsort @@ -38695,7 +38695,7 @@ SELECT ALL + 7 * + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "\(\- CAST\(avg\(DISTINCT CAST\(Int64\(92\) AS Int32\)\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(93\)\) \+ Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(83\) \* \(\- Int64\(15\)\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "\(\- CAST\(avg\(DISTINCT CAST\(Int64\(92\) AS Int64\)\) AS Int64\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(93\)\) \+ Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(83\) \* \(\- Int64\(15\)\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 58 AS col0, - CAST ( AVG ( DISTINCT + CAST ( + + 92 AS INTEGER ) ) AS INTEGER ) * - COUNT ( * ) / - + 93 + 99 + + COUNT ( * ) / 83 * - ( 15 ) * 77 AS col0 query I rowsort label-7371 @@ -40734,7 +40734,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3906 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-98\) WHEN sum\(Int64\(92\)\) \* CAST\(CAST\(Int64\(\-25\) AS Int32\) AS Int32\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-36\) THEN NULL END \+ Int64\(45\) \* Int64\(\-79\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-98\) WHEN sum\(Int64\(92\)\) \* CAST\(CAST\(Int64\(\-25\) AS Int64\) AS Int64\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-36\) THEN NULL END \+ Int64\(45\) \* Int64\(\-79\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CASE - 98 WHEN SUM ( ALL + 92 ) * + CAST ( + CAST ( - 25 AS INTEGER ) AS INTEGER ) THEN COUNT ( * ) WHEN - 36 THEN NULL END + + 45 * - 79 AS col0, - 93 * + 42 col0 query I rowsort @@ -41707,7 +41707,7 @@ SELECT ALL ( 33 ) * - 49 + - 20 + + 56 / 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) \+ Int64\(\-52\) \- \(\- Int64\(\-28\)\) \+ Int64\(65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) \+ Int64\(\-52\) \- \(\- Int64\(\-28\)\) \+ Int64\(65\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * 44 + + - 52 - - - 28 + + 65 AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-7941 @@ -42890,7 +42890,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ nullif\(\(\- CAST\(NULL AS Int32\)\), max\(\(\- Int64\(\-1\)\)\) \* Int64\(68\)\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ nullif\(\(\- CAST\(NULL AS Int64\)\), max\(\(\- Int64\(\-1\)\)\) \* Int64\(68\)\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 + + NULLIF ( - + CAST ( NULL AS INTEGER ), MAX ( ALL - - 1 ) * 68 ) AS col1, + 82 AS col1 query I rowsort label-8167 @@ -43616,7 +43616,7 @@ SELECT 35 / + CAST ( - MIN ( ( - 10 ) ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 179359 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(73\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(83\)\) \+ Int64\(22\) \* Int64\(32\) \* \(\- CAST\(Int64\(22\) AS Int32\)\)\)\) \* Int64\(\-39\) \* Int64\(63\) \+ Int64\(63\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(73\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(83\)\) \+ Int64\(22\) \* Int64\(32\) \* \(\- CAST\(Int64\(22\) AS Int64\)\)\)\) \* Int64\(\-39\) \* Int64\(63\) \+ Int64\(63\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 65 * COUNT ( * ) + - COALESCE ( + 73, + COUNT ( * ) + - + 83 + + 22 * + 32 * + - CAST ( 22 AS INTEGER ) ) * - 39 * 63 + + 63 AS col1, - COUNT ( * ) * + 69 col1 query I rowsort label-8306 @@ -47310,7 +47310,7 @@ SELECT - 97 * + CAST ( + + 82 AS INTEGER ) * 0 + - 62 + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-88\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-88\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) * - 88 AS col0, + 58 col0 query I rowsort label-9016 diff --git a/data/sqlite/random/expr/slt_good_81.slt b/data/sqlite/random/expr/slt_good_81.slt index 572efdf..e0598ff 100644 --- a/data/sqlite/random/expr/slt_good_81.slt +++ b/data/sqlite/random/expr/slt_good_81.slt @@ -312,7 +312,7 @@ SELECT 75 * - + COUNT ( * ) + - - 76 / + ( - + 84 ) + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / Int64\(\-55\) AS col2" at position 0 and "Int64\(\-56\) \* \(\- CASE Int64\(59\) WHEN Int64\(71\) / \(\- sum\(DISTINCT Int64\(\-15\)\)\) \+ \(\- Int64\(\-39\)\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \- avg\(DISTINCT \(\- Int64\(\-58\)\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / Int64\(\-55\) AS col2" at position 0 and "Int64\(\-56\) \* \(\- CASE Int64\(59\) WHEN Int64\(71\) / \(\- sum\(DISTINCT Int64\(\-15\)\)\) \+ \(\- Int64\(\-39\)\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) \- avg\(DISTINCT \(\- Int64\(\-58\)\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 11 / - 55 AS col2, - 56 * - CASE + 59 WHEN 71 / - SUM ( DISTINCT + - 15 ) + - - 39 THEN - ( CAST ( + COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) - + + ( + AVG ( DISTINCT - - 58 ) ) END AS col2 query I rowsort @@ -1650,7 +1650,7 @@ SELECT - 67 + COALESCE ( - 97, 65 * - 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-34\) AS Int32\)\) \* \(\- Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-34\) AS Int64\)\) \* \(\- Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + + 32 ) col2, - CAST ( - 34 AS INTEGER ) * + + ( - - 89 ) AS col2 query I rowsort @@ -2432,7 +2432,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-53\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-53\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + ( ( - 53 ) ) + ( - 63 ) AS col1 query I rowsort label-464 @@ -2877,7 +2877,7 @@ SELECT + ( - + NULLIF ( - 17, - 97 * - 67 / - + 22 + - + COALESCE ( 6, + 22 ) + # Datafusion - Expected - -73 # Datafusion - Expected - -17 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-17\) \+ \(\- count\(CAST\(Int64\(\-57\) AS Int32\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-17\) \+ \(\- count\(CAST\(Int64\(\-57\) AS Int64\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 73 * - COUNT ( * ) AS col0, - 17 + + - COUNT ( ALL + CAST ( - 57 AS INTEGER ) ) + COUNT ( * ) AS col0, + 80 query I rowsort label-549 @@ -3489,7 +3489,7 @@ SELECT - NULLIF ( + 14, - SUM ( ALL 74 ) ) + + - 82, 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(32\)\) / max\(CAST\(NULL AS Float64\)\) \- nullif\(\(\- CAST\(\(\- Int64\(98\)\) AS Int32\)\), Int64\(8\) / \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(32\)\) / max\(CAST\(NULL AS Float64\)\) \- nullif\(\(\- CAST\(\(\- Int64\(98\)\) AS Int64\)\), Int64\(8\) / \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + COUNT ( * ) ) AS col2, COUNT ( + 32 ) / + MAX ( CAST ( NULL AS FLOAT8 ) ) - + NULLIF ( - CAST ( - + 98 AS INTEGER ), + 8 / - CAST ( NULL AS FLOAT8 ) ) + - - 59 AS col2 query I rowsort label-666 @@ -4217,7 +4217,7 @@ SELECT ALL + 40 + + CAST ( + COUNT ( * ) AS INTEGER ) + ( - - 14 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-78\) AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-78\) AS Int64\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + + ( - 78 ) AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -4600,7 +4600,7 @@ SELECT DISTINCT MAX ( DISTINCT - + 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / Int64\(\-75\) AS col2" at position 0 and "CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(26\) THEN Int64\(12\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / Int64\(\-75\) AS col2" at position 0 and "CASE \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(26\) THEN Int64\(12\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 7 / - 75 AS col2, CASE + - CAST ( NULL AS INTEGER ) WHEN 26 THEN + 12 END AS col2 query II rowsort label-878 @@ -5721,7 +5721,7 @@ SELECT DISTINCT 87 AS col0, - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(CAST\(Int64\(\-50\) AS Int32\), \(\- Int64\(36\)\) \* Int64\(41\) \- \(\- Int64\(43\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(CAST\(Int64\(\-50\) AS Int64\), \(\- Int64\(36\)\) \* Int64\(41\) \- \(\- Int64\(43\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col0, COUNT ( * ) + - + NULLIF ( CAST ( - 50 AS INTEGER ), - ( 36 ) * + 41 - - + 43 ) AS col0 query I rowsort @@ -8106,7 +8106,7 @@ SELECT + 40 * - + 16 - + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 224840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(70\) \* Int64\(\-44\) \* \(\- nullif\(Int64\(73\), \(\- CAST\(Int64\(59\) AS Int32\)\) / Int64\(23\) \- Int64\(\-73\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(70\) \* Int64\(\-44\) \* \(\- nullif\(Int64\(73\), \(\- CAST\(Int64\(59\) AS Int64\)\) / Int64\(23\) \- Int64\(\-73\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 97 AS col2, 70 * - 44 * + - NULLIF ( 73, - CAST ( + 59 AS INTEGER ) / 23 - - 73 ) AS col2 query I rowsort label-1545 @@ -10970,7 +10970,7 @@ SELECT ALL 15, 38 + CAST ( CASE + + 91 WHEN + COUNT ( * ) + - 81 THEN NULL ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(min\(Int64\(14\)\), Int64\(\-65\) \- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(min\(Int64\(14\)\), Int64\(\-65\) \- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 55 AS col2, + COALESCE ( MIN ( + 14 ), - 65 - + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -11360,7 +11360,7 @@ SELECT DISTINCT + COUNT ( DISTINCT ( - 21 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2192 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-58\) \+ Int64\(29\) \* \(\- CAST\(Int64\(47\) AS Int32\)\) \- Int64\(98\) / Int64\(51\) \+ Int64\(18\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \- \(\- Int64\(69\)\) \* Int64\(75\) \* Int64\(\-54\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-58\) \+ Int64\(29\) \* \(\- CAST\(Int64\(47\) AS Int64\)\) \- Int64\(98\) / Int64\(51\) \+ Int64\(18\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \- \(\- Int64\(69\)\) \* Int64\(75\) \* Int64\(\-54\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 61 * - 58 + + 29 * - CAST ( + 47 AS INTEGER ) - 98 / 51 + + 18 AS col1, CAST ( NULL AS INTEGER ) - - + 69 * + 75 * - 54 * - 94 AS col1 query I rowsort label-2169 @@ -13030,7 +13030,7 @@ SELECT + 99 * - 41 AS col0, + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CASE Int64\(53\) WHEN \(\- Int64\(96\)\) \* Int64\(\-57\) \+ Int64\(56\) \+ \(\- Int64\(66\)\) THEN Int64\(6\) ELSE NULL END \+ \(\- Int64\(\-63\)\) \- Int64\(84\) \* coalesce\(Int64\(\-69\), sum\(Int64\(50\)\) \* Int64\(18\) \* coalesce\(Int64\(19\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-47\) \* Int64\(99\)\) \* Int64\(18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CASE Int64\(53\) WHEN \(\- Int64\(96\)\) \* Int64\(\-57\) \+ Int64\(56\) \+ \(\- Int64\(66\)\) THEN Int64\(6\) ELSE NULL END \+ \(\- Int64\(\-63\)\) \- Int64\(84\) \* coalesce\(Int64\(\-69\), sum\(Int64\(50\)\) \* Int64\(18\) \* coalesce\(Int64\(19\), \(\- CAST\(NULL AS Int64\)\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-47\) \* Int64\(99\)\) \* Int64\(18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 51 AS col2, CASE + + 53 WHEN - + 96 * - 57 + + + 56 + - ( 66 ) THEN + 6 ELSE NULL END + - - 63 - 84 * COALESCE ( - 69, SUM ( ALL + 50 ) * + ( 18 ) * COALESCE ( 19, + - CAST ( NULL AS INTEGER ) * 23 + COUNT ( * ) - - 47 * + 99 ) * + 18 ) + - COUNT ( * ) AS col2 query I rowsort label-2487 @@ -14783,7 +14783,7 @@ SELECT DISTINCT + ( + 97 ) + - - 47 AS col1, CAST ( + 3 AS INTEGER ) * 96 + + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(35\)\)\) \+ Int64\(\-19\) \* CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(35\)\)\) \+ Int64\(\-19\) \* CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - AVG ( ALL + 35 ) + - 19 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1, 71 AS col1 query I rowsort label-2819 @@ -15876,7 +15876,7 @@ SELECT - 11 * + 84 + + ( - ( - - 99 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68309 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(15\) WHEN Int64\(22\) \+ \(\- Int64\(\-69\)\) THEN CAST\(NULL AS Int32\) \* \(\- CAST\(Int64\(\-32\) AS Int32\)\) \* Int64\(42\) \+ Int64\(\-70\) \* Int64\(57\) WHEN Int64\(86\) / Int64\(\-43\) \+ Int64\(59\) \- \(\- Int64\(\-11\)\) / Int64\(46\) \- Int64\(91\) \+ Int64\(\-59\) \+ Int64\(62\) \* Int64\(11\) THEN NULL END AS col2" at position 0 and "Int64\(30\) \+ Int64\(50\) \+ Int64\(63\) \* Int64\(57\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(15\) WHEN Int64\(22\) \+ \(\- Int64\(\-69\)\) THEN CAST\(NULL AS Int64\) \* \(\- CAST\(Int64\(\-32\) AS Int64\)\) \* Int64\(42\) \+ Int64\(\-70\) \* Int64\(57\) WHEN Int64\(86\) / Int64\(\-43\) \+ Int64\(59\) \- \(\- Int64\(\-11\)\) / Int64\(46\) \- Int64\(91\) \+ Int64\(\-59\) \+ Int64\(62\) \* Int64\(11\) THEN NULL END AS col2" at position 0 and "Int64\(30\) \+ Int64\(50\) \+ Int64\(63\) \* Int64\(57\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + + 15 WHEN + + ( + 22 ) + - ( - 69 ) THEN CAST ( NULL AS INTEGER ) * - CAST ( - 32 AS INTEGER ) * + 42 + - 70 * 57 WHEN 86 / - 43 + + 59 - - - 11 / + + 46 - 91 + - 59 + + 62 * + 11 THEN NULL END AS col2, + 30 + + 50 + 63 * + 57 * + 19 AS col2 query I rowsort label-3026 @@ -16605,7 +16605,7 @@ SELECT DISTINCT ( - 28 ) * 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2792 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-51\) AS Int32\) \* Int64\(\-54\) \+ Int64\(38\) AS col2" at position 0 and "Int64\(\-53\) \+ Int64\(\-84\) \+ Int64\(34\) \- Int64\(\-58\) \* Int64\(96\) / Int64\(58\) \* Int64\(97\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-51\) AS Int64\) \* Int64\(\-54\) \+ Int64\(38\) AS col2" at position 0 and "Int64\(\-53\) \+ Int64\(\-84\) \+ Int64\(34\) \- Int64\(\-58\) \* Int64\(96\) / Int64\(58\) \* Int64\(97\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - 51 AS INTEGER ) * - 54 + 38 col2, - 53 + - 84 + + 34 - - 58 * + 96 / + 58 * 97 / - - CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-3164 @@ -19066,7 +19066,7 @@ SELECT + 61 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-34\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(\-34\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, - 34 / 78 col1 query I rowsort @@ -19098,7 +19098,7 @@ SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / - 74 + + 70 * - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 985 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(62\) \+ Int64\(13\) \* Int64\(71\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(62\) \+ Int64\(13\) \* Int64\(71\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 94 + - CAST ( NULL AS INTEGER ) AS col0, + 62 + 13 * + 71 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-3646 @@ -19436,7 +19436,7 @@ SELECT + NULLIF ( + 74, + + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \+ Int64\(\-66\) AS col1" at position 0 and "CASE \(\- Int64\(4\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \+ Int64\(33\) / CAST\(NULL AS Int32\) \+ Int64\(24\) THEN Int64\(\-25\) \* Int64\(\-65\) WHEN Int64\(33\) THEN NULL END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \+ Int64\(\-66\) AS col1" at position 0 and "CASE \(\- Int64\(4\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int64\) \+ Int64\(33\) / CAST\(NULL AS Int64\) \+ Int64\(24\) THEN Int64\(\-25\) \* Int64\(\-65\) WHEN Int64\(33\) THEN NULL END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 + - 66 AS col1, ( + CASE - ( + 4 ) WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) + 33 / CAST ( NULL AS INTEGER ) + 24 THEN - 25 * - 65 WHEN 33 THEN NULL END ) * - COUNT ( * ) AS col1 query I rowsort @@ -19638,7 +19638,7 @@ SELECT ALL + CAST ( + ( 76 ) AS INTEGER ) - + 91 + + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3000 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) \* Int64\(60\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) \* Int64\(60\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 50 * + + ( 60 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-3748 @@ -20956,7 +20956,7 @@ SELECT - MIN ( ALL - - 0 ) * - 52 / + ( - ( - 31 ) ) AS col2 # Datafusion - Expected - 69 # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-45\), Int64\(83\)\)\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-45\), Int64\(83\)\)\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MIN ( ALL - 20 ) + + 89 AS col1, - COALESCE ( + - 45, + 83 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-4000 @@ -21199,7 +21199,7 @@ SELECT + SUM ( ALL - 19 ) + - - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(CASE Int64\(40\) WHEN Int64\(19\) \+ Int64\(27\) THEN Int64\(24\) ELSE NULL END AS Int32\)\), Int64\(59\)\) \- Int64\(\-44\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(CASE Int64\(40\) WHEN Int64\(19\) \+ Int64\(27\) THEN Int64\(24\) ELSE NULL END AS Int64\)\), Int64\(59\)\) \- Int64\(\-44\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( - CAST ( ( + CASE + 40 WHEN + + 19 + 27 THEN + 24 ELSE NULL END ) AS INTEGER ), 59 ) - - 44 AS col2, + 56 AS col2 query I rowsort @@ -21403,7 +21403,7 @@ SELECT DISTINCT + COUNT ( * ) - - + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 90 col2 query I rowsort label-4083 @@ -34011,7 +34011,7 @@ SELECT + 17 + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-87\) AS Int32\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(41\) \* \(\- CASE Int64\(\-7\) WHEN \(\- Int64\(43\)\) \+ max\(Int64\(\-67\)\) \+ Int64\(91\) \* Int64\(32\) THEN Int64\(64\) \* Int64\(12\) \+ Int64\(64\) / CAST\(NULL AS Int32\) \+ Int64\(79\) \* Int64\(69\) / Int64\(\-93\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-87\) AS Int64\)\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(41\) \* \(\- CASE Int64\(\-7\) WHEN \(\- Int64\(43\)\) \+ max\(Int64\(\-67\)\) \+ Int64\(91\) \* Int64\(32\) THEN Int64\(64\) \* Int64\(12\) \+ Int64\(64\) / CAST\(NULL AS Int64\) \+ Int64\(79\) \* Int64\(69\) / Int64\(\-93\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - 87 AS INTEGER ) * CAST ( NULL AS INTEGER ) col1, 41 * - CASE - 7 WHEN - ( 43 ) + MAX ( - 67 ) + 91 * + 32 THEN + + 64 * 12 + 64 / CAST ( NULL AS INTEGER ) + + 79 * + 69 / - 93 END AS col1 query II rowsort label-6483 @@ -35865,7 +35865,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(23\) \+ \(\- coalesce\(Int64\(85\), Int64\(24\), Int64\(50\) \+ Int64\(73\), Int64\(\-76\)\)\) \+ CAST\(NULL AS Int32\) / Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(23\) \+ \(\- coalesce\(Int64\(85\), Int64\(24\), Int64\(50\) \+ Int64\(73\), Int64\(\-76\)\)\) \+ CAST\(NULL AS Int64\) / Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 87 AS col2, 23 + - COALESCE ( 85, 24, + 50 + 73, - 76 ) + CAST ( NULL AS INTEGER ) / - 67 AS col2 query I rowsort label-6841 @@ -36783,7 +36783,7 @@ SELECT + ( - COALESCE ( + 92, - 31 ) ) / COUNT ( * ) + MAX ( ALL - 49 ) * - 14 * # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- Int64\(94\)\)\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- \(\- Int64\(94\)\)\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - - ( + 94 ) col0, - 93 AS col0 query I rowsort label-7018 @@ -38638,7 +38638,7 @@ SELECT - 52 * - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \- CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 64 - + CAST ( NULL AS INTEGER ) AS col2, 66 * - + COUNT ( * ) AS col2 query I rowsort @@ -39101,7 +39101,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\)\)\) AS col1" at position 0 and "CASE Int64\(19\) WHEN \(\- Int64\(91\)\) THEN NULL WHEN Int64\(11\) THEN \(\- Int64\(\-88\)\) \+ Int64\(89\) \* \(\- CAST\(Int64\(73\) AS Int32\)\) WHEN \(\- nullif\(Int64\(10\), \(\- Int64\(\-82\)\) \- \(\- \(\- CASE Int64\(11\) WHEN \(\- Int64\(74\)\) \* Int64\(44\) THEN Int64\(66\) \* Int64\(41\) WHEN Int64\(51\) THEN Int64\(8\) ELSE NULL END\)\)\)\) THEN NULL ELSE Int64\(60\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\)\)\) AS col1" at position 0 and "CASE Int64\(19\) WHEN \(\- Int64\(91\)\) THEN NULL WHEN Int64\(11\) THEN \(\- Int64\(\-88\)\) \+ Int64\(89\) \* \(\- CAST\(Int64\(73\) AS Int64\)\) WHEN \(\- nullif\(Int64\(10\), \(\- Int64\(\-82\)\) \- \(\- \(\- CASE Int64\(11\) WHEN \(\- Int64\(74\)\) \* Int64\(44\) THEN Int64\(66\) \* Int64\(41\) WHEN Int64\(51\) THEN Int64\(8\) ELSE NULL END\)\)\)\) THEN NULL ELSE Int64\(60\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - NULLIF ( 93, - COUNT ( * ) * - 37 ) AS col1, CASE 19 WHEN - + 91 THEN NULL WHEN 11 THEN ( - - 88 ) + + 89 * - + CAST ( + 73 AS INTEGER ) WHEN + - NULLIF ( ( + 10 ), - - 82 - - - CASE 11 WHEN - + ( + 74 ) * 44 THEN 66 * 41 WHEN 51 THEN + 8 ELSE NULL END ) THEN NULL ELSE 60 END AS col1 query I rowsort @@ -39242,7 +39242,7 @@ SELECT DISTINCT 44 + + + 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(11\) AS Int32\)\) AS col0" at position 0 and "CAST\(\(\- \(\- CASE Int64\(52\) WHEN Int64\(84\) THEN Int64\(\-56\) END\)\) AS Float64\) \* Int64\(78\) \+ Int64\(35\) \* min\(Int64\(62\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(11\) AS Int64\)\) AS col0" at position 0 and "CAST\(\(\- \(\- CASE Int64\(52\) WHEN Int64\(84\) THEN Int64\(\-56\) END\)\) AS Float64\) \* Int64\(78\) \+ Int64\(35\) \* min\(Int64\(62\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( CAST ( + + 11 AS INTEGER ) ) AS col0, CAST ( - - CASE + 52 WHEN 84 THEN - 56 END AS FLOAT8 ) * + 78 + + + 35 * + MIN ( ALL 62 ) - + COUNT ( * ) AS col0 query I rowsort label-7486 @@ -39784,7 +39784,7 @@ SELECT - 67 + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "avg\(Int64\(\-63\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "avg\(Int64\(\-63\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 58 AS col0, AVG ( ALL - 63 ) * - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-7589 @@ -42248,7 +42248,7 @@ SELECT DISTINCT - COUNT ( * ) / - CAST ( + COALESCE ( - 53, - 90 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- sum\(Int64\(28\)\) AS col0" at position 0 and "CAST\(\(\- CASE Int64\(70\) WHEN Int64\(56\) THEN Int64\(94\) / Int64\(\-59\) ELSE Int64\(14\) END\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- sum\(Int64\(28\)\) AS col0" at position 0 and "CAST\(\(\- CASE Int64\(70\) WHEN Int64\(56\) THEN Int64\(94\) / Int64\(\-59\) ELSE Int64\(14\) END\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 88 - ( + + SUM ( + 28 ) ) AS col0, CAST ( + - CASE + 70 WHEN + 56 THEN 94 / - 59 ELSE 14 END AS INTEGER ) AS col0 query I rowsort label-8056 @@ -43359,7 +43359,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \+ Int64\(31\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(68\) / \(\- nullif\(CAST\(NULL AS Float64\), \(\- coalesce\(\(\- Int64\(74\)\), CAST\(Int64\(\-87\) AS Int32\) \* count\(DISTINCT Int64\(77\)\) \+ Int64\(42\) \+ Int64\(80\) \+ Int64\(\-75\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(92\)\) \* Int64\(14\) \+ \(\- nullif\(\(\- sum\(Int64\(\-18\)\)\), Int64\(85\)\)\) \- Int64\(27\) \* Int64\(85\) \* Int64\(10\), Int64\(75\) \+ Int64\(98\) \* Int64\(\-40\) \* \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(64\) \+ Int64\(\-80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \+ Int64\(31\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(68\) / \(\- nullif\(CAST\(NULL AS Float64\), \(\- coalesce\(\(\- Int64\(74\)\), CAST\(Int64\(\-87\) AS Int64\) \* count\(DISTINCT Int64\(77\)\) \+ Int64\(42\) \+ Int64\(80\) \+ Int64\(\-75\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(92\)\) \* Int64\(14\) \+ \(\- nullif\(\(\- sum\(Int64\(\-18\)\)\), Int64\(85\)\)\) \- Int64\(27\) \* Int64\(85\) \* Int64\(10\), Int64\(75\) \+ Int64\(98\) \* Int64\(\-40\) \* \(\- CAST\(NULL AS Int64\)\)\)\) \* Int64\(64\) \+ Int64\(\-80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * 48 + + 31 + + 62 AS col2, 68 / - NULLIF ( + CAST ( NULL AS FLOAT8 ), + - COALESCE ( ( - + 74 ), CAST ( - 87 AS INTEGER ) * COUNT ( DISTINCT + 77 ) + 42 + + 80 + - 75 / + COUNT ( * ) * - + 92 * + 14 + - NULLIF ( - SUM ( - 18 ), 85 ) - 27 * + 85 * + + 10, ( 75 ) + + 98 * - 40 * - + CAST ( NULL AS INTEGER ) ) * + 64 + - 80 ) AS col2 query I rowsort @@ -48220,7 +48220,7 @@ SELECT ALL + ( MAX ( DISTINCT + 52 ) ) - + - 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 58 AS col0 query I rowsort label-9196 @@ -48278,7 +48278,7 @@ SELECT + COUNT ( * ) + - + 80 + + - 12 - - - MAX ( ALL COALESCE ( 14, 35 ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int64\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 70 AS INTEGER ) AS col2, + 1 AS col2 query I rowsort @@ -48309,7 +48309,7 @@ SELECT + 66 * - - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\)" at position 0 and "Int64\(84\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int64\)" at position 0 and "Int64\(84\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 84 AS INTEGER ), + 84 query I rowsort label-9213 diff --git a/data/sqlite/random/expr/slt_good_82.slt b/data/sqlite/random/expr/slt_good_82.slt index 90133e9..5acb411 100644 --- a/data/sqlite/random/expr/slt_good_82.slt +++ b/data/sqlite/random/expr/slt_good_82.slt @@ -2636,7 +2636,7 @@ SELECT DISTINCT + 57 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(99\) \+ \(\- \(\- sum\(\(\- Int64\(\-85\)\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(99\) \+ \(\- \(\- sum\(\(\- Int64\(\-85\)\)\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 73 AS col0, + 99 + - - SUM ( ALL - - 85 ) + - CAST ( NULL AS INTEGER ) * + + 19 AS col0 query I rowsort label-503 @@ -4691,7 +4691,7 @@ SELECT - 46 / - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) / \(\- Int64\(24\)\) \+ Int64\(96\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) / \(\- Int64\(24\)\) \+ Int64\(96\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 / - + 24 + + + 96 * + + CAST ( NULL AS INTEGER ) AS col1, + 23 + - 58 AS col1 query I rowsort label-897 @@ -7016,7 +7016,7 @@ SELECT ALL - ( - COUNT ( * ) ) - - NULLIF ( - + 6, + COUNT ( * ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1848 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-88\) AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(19\)\)\) \* coalesce\(Int64\(14\), Int64\(\-44\) / Int64\(20\), Int64\(\-52\) / Int64\(7\) \- \(\- Int64\(12\)\)\) \* Int64\(25\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-88\) AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(19\)\)\) \* coalesce\(Int64\(14\), Int64\(\-44\) / Int64\(20\), Int64\(\-52\) / Int64\(7\) \- \(\- Int64\(12\)\)\) \* Int64\(25\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 21 * - 88 AS col1, - MAX ( DISTINCT + + 19 ) * + COALESCE ( + 14, - 44 / + + 20, - 52 / 7 - - + 12 ) * 25 * CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -8427,7 +8427,7 @@ SELECT + 11 + + + COUNT ( * ) + - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6930 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \* Int64\(90\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int64\) \* Int64\(90\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 77 AS INTEGER ) * 90 AS col0, + 91 col0 query I rowsort @@ -11585,7 +11585,7 @@ SELECT DISTINCT - COUNT ( * ) col0, + 52 * - - MIN ( ALL + + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(27\)\) AS Int32\) \+ CAST\(\(\- sum\(DISTINCT Int64\(\-29\)\)\) AS Int32\) AS col1" at position 0 and "Int64\(20\) \- Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(27\)\) AS Int64\) \+ CAST\(\(\- sum\(DISTINCT Int64\(\-29\)\)\) AS Int64\) AS col1" at position 0 and "Int64\(20\) \- Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - + 27 AS INTEGER ) + + CAST ( - SUM ( DISTINCT - 29 ) AS INTEGER ) col1, 20 - + ( + - 85 ) AS col1 query I rowsort @@ -12270,7 +12270,7 @@ SELECT 16 + 12 + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(36\) WHEN Int64\(\-74\) \* Int64\(\-72\) THEN NULL ELSE min\(DISTINCT CASE Int64\(47\) WHEN Int64\(92\) \* Int64\(\-91\) THEN NULL ELSE CAST\(NULL AS Int32\) END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(36\) WHEN Int64\(\-74\) \* Int64\(\-72\) THEN NULL ELSE min\(DISTINCT CASE Int64\(47\) WHEN Int64\(92\) \* Int64\(\-91\) THEN NULL ELSE CAST\(NULL AS Int64\) END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CASE 36 WHEN - 74 * - 72 THEN NULL ELSE MIN ( DISTINCT + + CASE + + 47 WHEN 92 * - 91 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) + ( - COUNT ( * ) ) END AS col1, - 0 col1 # Datafusion - Types were automatically converted from: @@ -14136,7 +14136,7 @@ SELECT DISTINCT - + 13 - + + 89 - - - 28 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1000 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(50\) AS col2" at position 0 and "CAST\(Int64\(\-2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(50\) AS col2" at position 0 and "CAST\(Int64\(\-2\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 20 * + 50 col2, CAST ( - 2 AS INTEGER ) AS col2 query I rowsort label-2692 @@ -15809,7 +15809,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / \(\- \(\- Int64\(\-27\)\)\) AS col2" at position 0 and "\(\- nullif\(Int64\(17\), CAST\(NULL AS Int32\) \* Int64\(75\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / \(\- \(\- Int64\(\-27\)\)\) AS col2" at position 0 and "\(\- nullif\(Int64\(17\), CAST\(NULL AS Int64\) \* Int64\(75\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 29 / - - ( + - 27 ) AS col2, + ( - NULLIF ( + 17, CAST ( NULL AS INTEGER ) * 75 ) ) AS col2 query I rowsort @@ -15965,7 +15965,7 @@ SELECT + 58 * - COUNT ( * ) * + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78623 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(78\) \* Int64\(\-24\) \* Int64\(42\) AS col0" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(78\) \* Int64\(\-24\) \* Int64\(42\) AS col0" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) + + 78 * - 24 * + 42 AS col0, 29 - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3040 @@ -18688,7 +18688,7 @@ SELECT COUNT ( * ) * + CAST ( + 83 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-45\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-45\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 * - 45 * - + CAST ( NULL AS INTEGER ) AS col0, 52 AS col0 query I rowsort @@ -20873,7 +20873,7 @@ SELECT ALL 91 * + + 57 AS col1, - 76 * + 85 * - 19 - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3513 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* CAST\(Int64\(\-56\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* CAST\(Int64\(\-56\) AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 61 * + + CAST ( + - 56 AS INTEGER ) * + COUNT ( * ) + + + 97 AS col0, + 1 AS col0 query I rowsort label-3982 @@ -21776,7 +21776,7 @@ SELECT DISTINCT + 76 + - 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CAST\(CASE Int64\(17\) WHEN \(\- avg\(Int64\(\-33\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(5\) THEN \(\- CASE Int64\(2\) WHEN \(\- Int64\(\-34\)\) \* Int64\(21\) \* \(\- count\(Int64\(54\)\)\) THEN NULL ELSE Int64\(35\) \+ Int64\(50\) END\) / Int64\(74\) \+ count\(Int64\(\-60\)\) / Int64\(62\) WHEN Int64\(15\) \* Int64\(3\) \* Int64\(20\) \+ Int64\(16\) \* avg\(CAST\(Int64\(92\) AS Int32\)\) THEN NULL END AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CAST\(CASE Int64\(17\) WHEN \(\- avg\(Int64\(\-33\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(5\) THEN \(\- CASE Int64\(2\) WHEN \(\- Int64\(\-34\)\) \* Int64\(21\) \* \(\- count\(Int64\(54\)\)\) THEN NULL ELSE Int64\(35\) \+ Int64\(50\) END\) / Int64\(74\) \+ count\(Int64\(\-60\)\) / Int64\(62\) WHEN Int64\(15\) \* Int64\(3\) \* Int64\(20\) \+ Int64\(16\) \* avg\(CAST\(Int64\(92\) AS Int64\)\) THEN NULL END AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 25 AS col1, CAST ( + CASE 17 WHEN - + AVG ( + - 33 ) * + COUNT ( * ) + 5 THEN - CASE + ( 2 ) WHEN - - 34 * + 21 * - COUNT ( ALL + + 54 ) THEN NULL ELSE + 35 + 50 END / + 74 + + COUNT ( ALL - 60 ) / + + 62 WHEN + + 15 * + 3 * + 20 + 16 * AVG ( CAST ( 92 AS INTEGER ) ) THEN NULL END AS INTEGER ) AS col1 query I rowsort @@ -22773,7 +22773,7 @@ SELECT ALL 92 col2, MIN ( ALL - 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-32\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(92\), Int64\(\-20\) \* \(\- Int64\(8\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(90\) / nullif\(\(\- Int64\(11\)\), \(\- \(\- max\(Int64\(54\)\)\)\) / Int64\(\-30\)\) \+ Int64\(40\)\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-32\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(92\), Int64\(\-20\) \* \(\- Int64\(8\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(90\) / nullif\(\(\- Int64\(11\)\), \(\- \(\- max\(Int64\(54\)\)\)\) / Int64\(\-30\)\) \+ Int64\(40\)\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( - 32 ) * + COALESCE ( + COUNT ( * ), + 92, - 20 * - + 8 + COUNT ( * ) + + 90 / + NULLIF ( ( - + 11 ), - - MAX ( 54 ) / - 30 ) + + + 40 ) AS col0, CAST ( 18 AS INTEGER ) AS col0 query I rowsort label-4343 @@ -23187,7 +23187,7 @@ SELECT MIN ( DISTINCT + 48 ) + + SUM ( DISTINCT + + 33 ) + - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(33\) \+ max\(Int64\(44\)\) \+ \(\- \(\- coalesce\(Int64\(49\), Int64\(39\), \(\- \(\- CAST\(\(\- avg\(DISTINCT Int64\(87\)\)\) AS Int32\)\)\)\)\)\) \+ Int64\(22\) \* count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \* Int64\(66\) \* nullif\(Int64\(\-96\), Int64\(35\)\) \- \(\- CAST\(Int64\(\-63\) AS Int32\)\) \+ Int64\(19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(92\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \+ Int64\(0\) \+ Int64\(\-47\) \+ Int64\(\-67\) / Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(33\) \+ max\(Int64\(44\)\) \+ \(\- \(\- coalesce\(Int64\(49\), Int64\(39\), \(\- \(\- CAST\(\(\- avg\(DISTINCT Int64\(87\)\)\) AS Int64\)\)\)\)\)\) \+ Int64\(22\) \* count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int64\) \* Int64\(66\) \* nullif\(Int64\(\-96\), Int64\(35\)\) \- \(\- CAST\(Int64\(\-63\) AS Int64\)\) \+ Int64\(19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(92\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \+ Int64\(0\) \+ Int64\(\-47\) \+ Int64\(\-67\) / Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 24 + + 33 + + MAX ( + 44 ) + - - COALESCE ( + 49, + 39, - ( - CAST ( + - AVG ( DISTINCT 87 ) AS INTEGER ) ) ) + + + 22 * + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 66 * + NULLIF ( - 96, + 35 ) - - CAST ( + - 63 AS INTEGER ) + + 19 AS col0, - COUNT ( * ) - - + 92 + + COUNT ( * ) * 91 + 0 + - 47 + - 67 / - 85 AS col0 query I rowsort label-4422 @@ -24112,7 +24112,7 @@ SELECT + 56 + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - -8846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(32\) \+ Int64\(12\) AS col0" at position 0 and "\(\- max\(Int64\(83\)\)\) \* Int64\(33\) \* Int64\(3\) \- Int64\(21\) \+ CAST\(avg\(Int64\(\-12\)\) AS Int32\) \* Int64\(50\) \- \(\- \(\- min\(Int64\(8\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(32\) \+ Int64\(12\) AS col0" at position 0 and "\(\- max\(Int64\(83\)\)\) \* Int64\(33\) \* Int64\(3\) \- Int64\(21\) \+ CAST\(avg\(Int64\(\-12\)\) AS Int64\) \* Int64\(50\) \- \(\- \(\- min\(Int64\(8\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 83 + 32 + 12 AS col0, - MAX ( ALL 83 ) * 33 * + + 3 - + 21 + + CAST ( + AVG ( ALL - 12 ) AS INTEGER ) * + 50 - - ( + - MIN ( + 8 ) ) AS col0 query I rowsort label-4595 @@ -29683,7 +29683,7 @@ SELECT ALL + 97 * - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- Int64\(\-98\)\) AS col2" at position 0 and "CAST\(Int64\(74\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- Int64\(\-98\)\) AS col2" at position 0 and "CAST\(Int64\(74\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 52 + - - 98 AS col2, CAST ( + + 74 AS INTEGER ) col2 query II rowsort label-5661 @@ -31946,7 +31946,7 @@ SELECT - 69 + - 9 AS col0, COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0, ( + + 94 ) AS col0 query I rowsort label-6092 @@ -32802,7 +32802,7 @@ SELECT DISTINCT - 73 * + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(72\) AS Int32\) \+ Int64\(53\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(2\) \* Int64\(73\) / \(\- Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(72\) AS Int64\) \+ Int64\(53\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(2\) \* Int64\(73\) / \(\- Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( CAST ( + + 72 AS INTEGER ) ) + + + 53 * - + CAST ( NULL AS INTEGER ) col1, 2 * + 73 / + + ( - - 18 ) AS col1 query I rowsort @@ -32992,7 +32992,7 @@ SELECT ALL 44 * NULLIF ( + CAST ( 89 AS INTEGER ), + COUNT ( * ) ) / - + 19 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(55\) \+ coalesce\(\(\- max\(\(\- CAST\(Int64\(28\) AS Int32\)\)\)\), \(\- Int64\(\-76\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(55\) \+ coalesce\(\(\- max\(\(\- CAST\(Int64\(28\) AS Int64\)\)\)\), \(\- Int64\(\-76\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 6 AS col2, 55 + + COALESCE ( + - MAX ( - CAST ( 28 AS INTEGER ) ), - - 76 ) AS col2 query II rowsort @@ -33766,7 +33766,7 @@ SELECT - + 61 + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 16156830 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-64\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(30\) \+ Int64\(10\) \* Int64\(18\) \* Int64\(51\) \* Int64\(55\) \* \(\- Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-64\)\) AS Int64\)\) AS col0" at position 0 and "Int64\(30\) \+ Int64\(10\) \* Int64\(18\) \* Int64\(51\) \* Int64\(55\) \* \(\- Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - - 64 AS INTEGER ) AS col0, 30 + 10 * 18 * + 51 * + + 55 * - - 32 AS col0 query I rowsort @@ -34758,7 +34758,7 @@ SELECT DISTINCT + 72 + - ( 86 ) + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -964320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "CASE nullif\(\(\- avg\(DISTINCT Int64\(\-61\)\)\), Int64\(23\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(72\) \+ \(\- Int64\(38\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-80\)\) THEN \(\- Int64\(\-52\)\) \+ Int64\(2\) \+ avg\(DISTINCT nullif\(Int64\(33\), Int64\(45\)\)\) \* \(\- nullif\(Int64\(95\), Int64\(\-83\)\)\) ELSE Int64\(10\) \* Int64\(\-41\) \* Int64\(\-49\) \* \(\- Int64\(48\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "CASE nullif\(\(\- avg\(DISTINCT Int64\(\-61\)\)\), Int64\(23\) / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(72\) \+ \(\- Int64\(38\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-80\)\) THEN \(\- Int64\(\-52\)\) \+ Int64\(2\) \+ avg\(DISTINCT nullif\(Int64\(33\), Int64\(45\)\)\) \* \(\- nullif\(Int64\(95\), Int64\(\-83\)\)\) ELSE Int64\(10\) \* Int64\(\-41\) \* Int64\(\-49\) \* \(\- Int64\(48\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 34 AS col2, + CASE NULLIF ( - + AVG ( DISTINCT - 61 ), + 23 / - + CAST ( NULL AS INTEGER ) + + 72 + - + 38 ) WHEN COUNT ( * ) * - - 80 THEN - - 52 + + 2 + + AVG ( DISTINCT NULLIF ( + 33, + 45 ) ) * - NULLIF ( + 95, - 83 ) ELSE + 10 * + ( + - 41 ) * - 49 * ( - + 48 ) END AS col2 query I rowsort label-6624 @@ -37510,7 +37510,7 @@ SELECT + 65 * + - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(Int64\(92\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(Int64\(92\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - CAST ( 92 AS INTEGER ) AS col2 query I rowsort label-7150 @@ -40358,7 +40358,7 @@ SELECT ALL + 6 + + 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(84\) / Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(84\) / Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 84 / 78 AS col2 query I rowsort @@ -41766,7 +41766,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-58\) AS Int32\) \+ Int64\(1\) \+ Int64\(\-45\) \* \(\- Int64\(\-42\)\) \* nullif\(Int64\(\-68\), Int64\(\-26\) \- Int64\(19\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\)\) \+ CAST\(NULL AS Float64\) \* Int64\(\-20\) AS col0" at position 0 and "coalesce\(Int64\(77\), \(\- Int64\(44\)\) / Int64\(\-8\) \- Int64\(54\) \+ Int64\(70\), Int64\(\-11\) \* Int64\(5\) \+ Int64\(\-84\) / Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-58\) AS Int64\) \+ Int64\(1\) \+ Int64\(\-45\) \* \(\- Int64\(\-42\)\) \* nullif\(Int64\(\-68\), Int64\(\-26\) \- Int64\(19\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\)\) \+ CAST\(NULL AS Float64\) \* Int64\(\-20\) AS col0" at position 0 and "coalesce\(Int64\(77\), \(\- Int64\(44\)\) / Int64\(\-8\) \- Int64\(54\) \+ Int64\(70\), Int64\(\-11\) \* Int64\(5\) \+ Int64\(\-84\) / Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - 58 AS INTEGER ) + 1 + - 45 * - - 42 * + ( + NULLIF ( - 68, ( + - 26 ) - 19 * COUNT ( * ) * + 85 ) ) + + CAST ( NULL AS FLOAT8 ) * - 20 AS col0, COALESCE ( + 77, - ( + + 44 ) / + - 8 - 54 + + 70, - 11 * + 5 + - 84 / + - 69 ) AS col0 query I rowsort @@ -42505,7 +42505,7 @@ SELECT DISTINCT - - 29, - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "count\(CAST\(Int64\(88\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "count\(CAST\(Int64\(88\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 15 AS col1, COUNT ( + CAST ( + 88 AS INTEGER ) ) AS col1 query I rowsort label-8095 @@ -50558,7 +50558,7 @@ SELECT 57 + 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -690 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-23\) AS Int32\) \* Int64\(30\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-23\) AS Int64\) \* Int64\(30\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - 23 AS INTEGER ) * 30 AS col2, - 95 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_83.slt b/data/sqlite/random/expr/slt_good_83.slt index ecb9242..5d8d916 100644 --- a/data/sqlite/random/expr/slt_good_83.slt +++ b/data/sqlite/random/expr/slt_good_83.slt @@ -1547,7 +1547,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* CAST\(Int64\(\-72\) AS Int32\) AS col1" at position 0 and "CASE Int64\(\-17\) WHEN \(\- Int64\(40\)\) THEN NULL ELSE Int64\(96\) END \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* CAST\(Int64\(\-72\) AS Int64\) AS col1" at position 0 and "CASE Int64\(\-17\) WHEN \(\- Int64\(40\)\) THEN NULL ELSE Int64\(96\) END \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 10 * + CAST ( - 72 AS INTEGER ) AS col1, CASE - 17 WHEN - + 40 THEN NULL ELSE + + 96 END - - COUNT ( * ) * + 86 AS col1 query I rowsort label-292 @@ -2903,7 +2903,7 @@ SELECT - 44 * + 34 * 53 * 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-81\)\) AS col2" at position 0 and "Int64\(53\) \+ \(\- \(\- coalesce\(\(\- nullif\(Int64\(21\), Int64\(3\) \+ Int64\(66\)\)\), Int64\(34\), CAST\(NULL AS Int32\), \(\- count\(\(\- coalesce\(Int64\(\-66\), Int64\(\-20\), Int64\(80\)\)\)\)\) \+ Int64\(53\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-81\)\) AS col2" at position 0 and "Int64\(53\) \+ \(\- \(\- coalesce\(\(\- nullif\(Int64\(21\), Int64\(3\) \+ Int64\(66\)\)\), Int64\(34\), CAST\(NULL AS Int64\), \(\- count\(\(\- coalesce\(Int64\(\-66\), Int64\(\-20\), Int64\(80\)\)\)\)\) \+ Int64\(53\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MIN ( ALL - 81 ) AS col2, 53 + - - COALESCE ( - NULLIF ( + 21, + + 3 + 66 ), + 34, + CAST ( NULL AS INTEGER ), - COUNT ( - COALESCE ( + - 66, - 20, 80 ) ) + 53 ) AS col2 query I rowsort label-549 @@ -5741,7 +5741,7 @@ SELECT ALL ( + - COUNT ( * ) ) + - 19 * 58, + 18 * + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(68\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(68\) \+ CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 56 AS col0, 57 + - COUNT ( * ) * ( 68 ) + + + CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-1090 @@ -6340,7 +6340,7 @@ SELECT ALL + 35 * COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-53\) \* Int64\(20\)\) \* \(\- Int64\(52\)\) AS col2" at position 0 and "Int64\(52\) \* \(\- Int64\(43\)\) \+ \(\- Int64\(\-27\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-53\) \* Int64\(20\)\) \* \(\- Int64\(52\)\) AS col2" at position 0 and "Int64\(52\) \* \(\- Int64\(43\)\) \+ \(\- Int64\(\-27\)\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COALESCE ( - COUNT ( * ), - 53 * 20 ) * - + 52 AS col2, 52 * - + 43 + - - 27 + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -7537,7 +7537,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- \(\- min\(\(\- Int64\(49\)\)\)\)\) WHEN \(\- CASE Int64\(\-36\) WHEN Int64\(21\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(97\) END\) \* Int64\(44\) THEN Int64\(\-78\) \* Int64\(\-18\) \* Int64\(78\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \+ Int64\(\-38\) \* Int64\(34\) THEN NULL END\) \* Int64\(\-26\) \+ Int64\(61\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- \(\- min\(\(\- Int64\(49\)\)\)\)\) WHEN \(\- CASE Int64\(\-36\) WHEN Int64\(21\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(97\) END\) \* Int64\(44\) THEN Int64\(\-78\) \* Int64\(\-18\) \* Int64\(78\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-33\) \+ Int64\(\-38\) \* Int64\(34\) THEN NULL END\) \* Int64\(\-26\) \+ Int64\(61\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE - - MIN ( - + 49 ) WHEN - + CASE - 36 WHEN + 21 * - - COUNT ( * ) + + COUNT ( * ) THEN 97 END * + 44 THEN - 78 * + - 18 * 78 + + 80 * COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + - 33 + + - 38 * 34 THEN NULL END * - 26 + 61 AS col2, - 9 AS col2 query I rowsort label-1431 @@ -7558,7 +7558,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -226 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ Int64\(\-27\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \* \(\- CAST\(Int64\(2\) AS Int32\)\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ Int64\(\-27\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \* \(\- CAST\(Int64\(2\) AS Int64\)\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 23 + - 27 - + + COUNT ( * ) + + COUNT ( * ) + 88 * - + CAST ( + 2 AS INTEGER ) AS col1, + 36 AS col1 query I rowsort @@ -10856,7 +10856,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ Int64\(\-96\) / Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int64\) \+ Int64\(\-96\) / Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 98 AS col0, COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - 96 / 41 AS col0 query I rowsort label-2071 @@ -17327,7 +17327,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 7080768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(22\) \+ \(\- count\(DISTINCT Int64\(17\)\)\) \+ Int64\(\-32\) \* coalesce\(Int64\(\-60\), \(\- Int64\(\-2\)\)\)\) \* Int64\(\-96\) \* Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(22\) \+ \(\- count\(DISTINCT Int64\(17\)\)\) \+ Int64\(\-32\) \* coalesce\(Int64\(\-60\), \(\- Int64\(\-2\)\)\)\) \* Int64\(\-96\) \* Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 98 AS col2, + COALESCE ( - CAST ( NULL AS INTEGER ), 22 + - COUNT ( DISTINCT 17 ) + + - 32 * COALESCE ( - 60, - - 2 ) ) * - 96 * - 38 col2 query I rowsort @@ -19569,7 +19569,7 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \+ Int64\(\-30\) \* \(\- Int64\(\-67\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-33\) \+ Int64\(\-30\) \* \(\- Int64\(\-67\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) AS col1, + 81 AS col0, + + ( - CAST ( NULL AS INTEGER ) ) + + + ( + - 33 ) + - 30 * - ( + - 67 ) * + - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -21519,7 +21519,7 @@ SELECT - ( + NULLIF ( + 64, - 43 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(40\) AS Int32\)\) \+ Int64\(15\) AS col2" at position 0 and "\(\- nullif\(Int64\(35\), Int64\(73\) \+ Int64\(60\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(40\) AS Int64\)\) \+ Int64\(15\) AS col2" at position 0 and "\(\- nullif\(Int64\(35\), Int64\(73\) \+ Int64\(60\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( 40 AS INTEGER ) + 15 col2, - NULLIF ( + + 35, + 73 + 60 ) AS col2 query I rowsort @@ -22142,7 +22142,7 @@ SELECT DISTINCT - 31 * + - 7 + + 84 + - MAX ( - 35 ) / + 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS Int32\) \* \(\- Int64\(28\)\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\)\) AS Int64\) \* \(\- Int64\(28\)\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - COUNT ( * ) AS col0, CAST ( - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + 28 + 12 AS col0 query I rowsort label-4224 @@ -22458,7 +22458,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2 query I rowsort @@ -23646,7 +23646,7 @@ SELECT ALL + 91 + + + 88 + 50 / - 88 + + 69 col1, - COUNT ( * ) * + 20 AS col2, # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ \(\- Int64\(8\)\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(84\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ \(\- Int64\(8\)\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(84\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 10 + - ( + 8 ) + + CAST ( NULL AS INTEGER ) AS col0, 84 * 14 AS col0 query I rowsort @@ -24881,7 +24881,7 @@ SELECT + 23 * - 56 AS col1, + 62 * - - CASE 16 WHEN - 24 THEN 68 WHEN COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "nullif\(Int64\(46\), Int64\(\-79\) \* Int64\(4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "nullif\(Int64\(46\), Int64\(\-79\) \* Int64\(4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, NULLIF ( + 46, - 79 * 4 ) AS col1 query I rowsort @@ -26173,7 +26173,7 @@ SELECT DISTINCT - 50 * 5 * ( 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3052 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(39\) AS Int32\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(53\) \- \(\- Int64\(\-91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(39\) AS Int64\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(53\) \- \(\- Int64\(\-91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 78 * + CAST ( 39 AS INTEGER ) + + + 10 AS col1, 53 - - - 91 AS col1 query I rowsort @@ -27372,7 +27372,7 @@ SELECT ALL MIN ( ALL + ( + + 68 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-93\)\) AS Int32\) \+ Int64\(\-86\) AS col0" at position 0 and "Int64\(86\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-93\)\) AS Int64\) \+ Int64\(\-86\) AS col0" at position 0 and "Int64\(86\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - - 93 AS INTEGER ) + + - 86 AS col0, 86 + + 61 AS col0 query I rowsort label-5217 @@ -31826,7 +31826,7 @@ SELECT + 38 + + 50 - - 7 / + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 1211 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- coalesce\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "min\(Int64\(22\)\) \* nullif\(Int64\(59\), \(\- Int64\(\-11\)\) \* Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* Int64\(\-25\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(87\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- coalesce\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "min\(Int64\(22\)\) \* nullif\(Int64\(59\), \(\- Int64\(\-11\)\) \* Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* Int64\(\-25\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(87\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 7 - + + COALESCE ( 34, - COUNT ( * ), - + COUNT ( * ) ) AS col0, + MIN ( ( + + 22 ) ) * NULLIF ( 59, - - 11 * 37 * - COUNT ( * ) * 43 * - 25 + 77 + COUNT ( * ) ) + - CAST ( 87 AS INTEGER ) AS col0 query I rowsort @@ -32022,7 +32022,7 @@ SELECT 66 / COUNT ( * ) - - - 8 + - - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-31\) AS Int32\) AS col0" at position 0 and "nullif\(nullif\(Int64\(\-98\), Int64\(30\)\), Int64\(24\)\) \* Int64\(96\) \+ \(\- Int64\(1\)\) \* CASE Int64\(\-32\) WHEN Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-8\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-98\) \* Int64\(34\) \+ Int64\(18\) \+ Int64\(\-51\) / Int64\(64\) \* \(\- avg\(Int64\(3\)\)\)\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-65\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-31\) AS Int64\) AS col0" at position 0 and "nullif\(nullif\(Int64\(\-98\), Int64\(30\)\), Int64\(24\)\) \* Int64\(96\) \+ \(\- Int64\(1\)\) \* CASE Int64\(\-32\) WHEN Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-8\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-98\) \* Int64\(34\) \+ Int64\(18\) \+ Int64\(\-51\) / Int64\(64\) \* \(\- avg\(Int64\(3\)\)\)\) \* CAST\(NULL AS Int64\) \* \(\- Int64\(\-65\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 31 AS INTEGER ) AS col0, NULLIF ( NULLIF ( - 98, + + 30 ), + 24 ) * + 96 + + - ( + 1 ) * + CASE - 32 WHEN 50 * + ( + COUNT ( * ) ) THEN NULL WHEN - 8 THEN - COUNT ( * ) - + COALESCE ( - COUNT ( * ), + - 98 * + 34 + 18 + - 51 / 64 * ( - AVG ( + 3 ) ) ) * + + CAST ( NULL AS INTEGER ) * - - 65 END AS col0 query II rowsort label-6098 @@ -33057,7 +33057,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 col2, - CAST ( NULL AS INTEGER ) col2 query I rowsort label-6297 @@ -33540,7 +33540,7 @@ SELECT DISTINCT 97 AS col1, 25 / 99 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 167 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-98\)\) AS col2" at position 0 and "CAST\(Int64\(\-78\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-98\)\) AS col2" at position 0 and "CAST\(Int64\(\-78\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 + - - 98 AS col2, + CAST ( - 78 AS INTEGER ) AS col2 query I rowsort @@ -35944,7 +35944,7 @@ SELECT 59 + 43 * 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-6854 @@ -38446,7 +38446,7 @@ SELECT ALL 89 * - 99 * + ( SUM ( ALL - 29 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 635 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \- Int64\(71\) \- \(\- nullif\(Int64\(50\), Int64\(68\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-28\)\)\) \* \(\- \(\- min\(Int64\(14\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \- Int64\(71\) \- \(\- nullif\(Int64\(50\), Int64\(68\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(\-28\)\)\) \* \(\- \(\- min\(Int64\(14\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 6 - 71 - - NULLIF ( + + 50, + + 68 + CAST ( + COUNT ( * ) AS INTEGER ) * + - 28 ) * - - MIN ( + + 14 ) col1, COUNT ( * ) * 55 col1 query I rowsort @@ -40364,7 +40364,7 @@ SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col2, CASE 78 WHEN 98 THEN + 71 ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 41 AS col1, CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-7698 @@ -42448,7 +42448,7 @@ SELECT 61 + - 46 # Datafusion - Expected - -324 # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-5\) \* Int64\(80\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-5\) \* Int64\(80\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 76 + + - 5 * 80 col1, 10 / - + 74 * - 43, CAST ( NULL AS INTEGER ) col1 query II rowsort label-8091 @@ -46014,7 +46014,7 @@ SELECT DISTINCT COUNT ( * ) * 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7861 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* CAST\(\(\- Int64\(\-94\)\) AS Int32\) \+ Int64\(35\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* CAST\(\(\- Int64\(\-94\)\) AS Int64\) \+ Int64\(35\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 84 * + CAST ( - ( - 94 ) AS INTEGER ) + 35 AS col2, 75 AS col2 query II rowsort @@ -50025,7 +50025,7 @@ SELECT - 78 * + 51 + - ( 60 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -4070 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) \* \(\- CAST\(Int64\(59\) AS Int32\)\) \+ Int64\(76\) \+ Int64\(\-89\) / Int64\(50\) \* Int64\(58\) AS col1" at position 0 and "Int64\(60\) \* Int64\(\-68\) \+ Int64\(\-83\) \+ Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) \* \(\- CAST\(Int64\(59\) AS Int64\)\) \+ Int64\(76\) \+ Int64\(\-89\) / Int64\(50\) \* Int64\(58\) AS col1" at position 0 and "Int64\(60\) \* Int64\(\-68\) \+ Int64\(\-83\) \+ Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + + 1 ) * - + CAST ( 59 AS INTEGER ) + 76 + - 89 / 50 * 58 col1, 60 * + - 68 + - 83 + 94 - COUNT ( * ) AS col1 query I rowsort label-9530 diff --git a/data/sqlite/random/expr/slt_good_84.slt b/data/sqlite/random/expr/slt_good_84.slt index c2c42cc..1e06329 100644 --- a/data/sqlite/random/expr/slt_good_84.slt +++ b/data/sqlite/random/expr/slt_good_84.slt @@ -119,7 +119,7 @@ SELECT ALL COALESCE ( - COUNT ( * ), - + COALESCE ( - COUNT ( * ), - 98 ) + 9 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(26\) \+ nullif\(Int64\(\-16\), CAST\(Int64\(\-12\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(26\) \+ nullif\(Int64\(\-16\), CAST\(Int64\(\-12\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + 26 + + NULLIF ( - 16, CAST ( - 12 AS INTEGER ) ) AS col0 query I rowsort label-16 @@ -4149,7 +4149,7 @@ SELECT ALL 28 col0, - ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- \(\- CAST\(CAST\(Int64\(1\) AS Int32\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- \(\- CAST\(CAST\(Int64\(1\) AS Int64\) AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 1 - - CAST ( + CAST ( 1 AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) col1 query I rowsort label-785 @@ -5304,7 +5304,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 38 ) col0, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -13753,7 +13753,7 @@ SELECT DISTINCT ( - - 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(\-12\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(87\)\)\) \- \(\- Int64\(16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(\-12\) \+ \(\- CAST\(NULL AS Int64\)\) \+ \(\- count\(Int64\(87\)\)\) \- \(\- Int64\(16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 22 AS col1, - 12 + - CAST ( NULL AS INTEGER ) + + - COUNT ( ALL + 87 ) - ( - + 16 ) AS col1 query I rowsort label-2613 @@ -13801,7 +13801,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2701 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- CAST\(Int64\(\-73\) AS Int32\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(70\), Int64\(\-21\) \+ Int64\(\-86\)\)\) \+ Int64\(15\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- CAST\(Int64\(\-73\) AS Int64\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(70\), Int64\(\-21\) \+ Int64\(\-86\)\)\) \+ Int64\(15\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 37 * - CAST ( - 73 AS INTEGER ) AS col1, - ( + NULLIF ( + 70, - 21 + - 86 ) ) + 15 + + 13 AS col1 query I rowsort @@ -14351,7 +14351,7 @@ SELECT COALESCE ( + 6, + 85 ) AS col0, SUM ( DISTINCT - + 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(3\), Int64\(16\)\)\) \* CAST\(NULL AS Int32\) \* avg\(DISTINCT \(\- Int64\(30\)\)\) \- Int64\(24\) / Int64\(16\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(3\), Int64\(16\)\)\) \* CAST\(NULL AS Int64\) \* avg\(DISTINCT \(\- Int64\(30\)\)\) \- Int64\(24\) / Int64\(16\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( 3, 16 ) * + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - + 30 ) - + 24 / + + 16 AS col1, 49 col1 query I rowsort @@ -20456,7 +20456,7 @@ SELECT 88 / + 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(85\)\) \* Int64\(9\) \- Int64\(15\) \- CAST\(Int64\(30\) AS Int32\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(85\)\) \* Int64\(9\) \- Int64\(15\) \- CAST\(Int64\(30\) AS Int64\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( 85 ) * + 9 - 15 - + + CAST ( 30 AS INTEGER ) AS col1, - 60 AS col1 query I rowsort @@ -22643,7 +22643,7 @@ SELECT DISTINCT COUNT ( * ) * + 33, - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 33 * - + CAST ( NULL AS INTEGER ) AS col1, 86 AS col1 query I rowsort @@ -22915,7 +22915,7 @@ SELECT ALL 34 / 13 AS col0, - 73 + - + 28 + ( 25 ) + - 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13798437 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(80\) \* Int64\(\-44\) \* CAST\(\(\- CAST\(Int64\(98\) AS Int32\)\) AS Int32\) \* Int64\(40\) \- \(\- min\(Int64\(\-3\)\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(80\) \* Int64\(\-44\) \* CAST\(\(\- CAST\(Int64\(98\) AS Int64\)\) AS Int64\) \* Int64\(40\) \- \(\- min\(Int64\(\-3\)\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 40 + 80 * - 44 * + CAST ( - CAST ( 98 AS INTEGER ) AS INTEGER ) * 40 - - MIN ( ALL - 3 ) AS col2, 42 AS col2 query I rowsort @@ -23617,7 +23617,7 @@ SELECT + 96 * 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- Int64\(24\) AS col0" at position 0 and "\(\- CAST\(Int64\(39\) AS Int32\)\) \+ Int64\(27\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \- Int64\(24\) AS col0" at position 0 and "\(\- CAST\(Int64\(39\) AS Int64\)\) \+ Int64\(27\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) - + + 24 AS col0, - CAST ( 39 AS INTEGER ) + + 27 + + 29 AS col0 query I rowsort label-4485 @@ -24014,7 +24014,7 @@ SELECT - - NULLIF ( - 74, 90 ) + + 91 * - + 85 + + 38 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(7\) \* CASE Int64\(32\) WHEN Int64\(\-26\) \+ Int64\(90\) \+ Int64\(59\) \+ Int64\(\-49\) THEN NULL ELSE CAST\(Int64\(41\) AS Int32\) / Int64\(\-84\) END \* Int64\(\-45\) / Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(7\) \* CASE Int64\(32\) WHEN Int64\(\-26\) \+ Int64\(90\) \+ Int64\(59\) \+ Int64\(\-49\) THEN NULL ELSE CAST\(Int64\(41\) AS Int64\) / Int64\(\-84\) END \* Int64\(\-45\) / Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 54 col2, 7 * CASE 32 WHEN + - 26 + + + 90 + + 59 + - 49 THEN NULL ELSE CAST ( 41 AS INTEGER ) / - 84 END * - 45 / 41 AS col2 query I rowsort @@ -24152,7 +24152,7 @@ SELECT + COUNT ( * ) + + - 30 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, ( CAST ( NULL AS FLOAT8 ) ) AS col2 query II rowsort label-4587 @@ -25106,7 +25106,7 @@ SELECT + CAST ( - ( - 0 ) AS INTEGER ) * + 87 - 15 + + COALESCE ( + - 44, - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(10\) AS col1" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(10\) AS col1" at position 0 and "max\(CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 53 / 10 AS col1, MAX ( + CAST ( NULL AS INTEGER ) ) col1 query I rowsort label-4766 @@ -25502,7 +25502,7 @@ SELECT + 67 + 72 + - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 655 # Datafusion - Expected - -3455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(81\) \+ Int64\(\-74\) AS col1" at position 0 and "Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-79\) AS Int32\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(81\) \+ Int64\(\-74\) AS col1" at position 0 and "Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-79\) AS Int64\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 9 * + ( + 81 ) + - 74 AS col1, + 20 + + COUNT ( * ) + + CAST ( - 79 AS INTEGER ) * + ( 44 ) AS col1 query I rowsort label-4840 @@ -28350,7 +28350,7 @@ SELECT - 8 / - 46 * + ( - 54 ) * + 88 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-74\) AS Int32\) / Int64\(\-31\) \+ Int64\(\-2\) \* Int64\(6\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-74\) AS Int64\) / Int64\(\-31\) \+ Int64\(\-2\) \* Int64\(6\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + - 74 AS INTEGER ) / - 31 + + - 2 * + 6 AS col2, 88 AS col2 # Datafusion - Types were automatically converted from: @@ -32068,7 +32068,7 @@ SELECT DISTINCT - NULLIF ( MIN ( + - ( - - 81 ) ), - 86 * NULLIF ( 90, + - 50 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(NULL AS Int32\), Int64\(1\)\)\) AS col0" at position 0 and "\(\- Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(NULL AS Int64\), Int64\(1\)\)\) AS col0" at position 0 and "\(\- Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), + 1 ) AS col0, - ( + - 39 ) AS col0 query II rowsort @@ -33661,7 +33661,7 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 0 and "Int64\(\-60\) \+ Int64\(37\) \+ CAST\(NULL AS Int32\) \- Int64\(82\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(58\)\)\) \* \(\- Int64\(\-28\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 0 and "Int64\(\-60\) \+ Int64\(37\) \+ CAST\(NULL AS Int64\) \- Int64\(82\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(58\)\)\) \* \(\- Int64\(\-28\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 19 AS col0, - 60 + + + 37 + + CAST ( NULL AS INTEGER ) - + 82 / ( - COUNT ( * ) ) * - MIN ( 58 ) * - - 28 AS col2 query I rowsort @@ -36310,7 +36310,7 @@ SELECT 70, 39 + 59 + + 53 / 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3772 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(\-41\) AS col2" at position 0 and "Int64\(\-97\) \* max\(CAST\(NULL AS Int32\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(\-41\) AS col2" at position 0 and "Int64\(\-97\) \* max\(CAST\(NULL AS Int64\)\) \+ CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 92 ) * + - 41 AS col2, - 97 * ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-6901 @@ -39837,7 +39837,7 @@ SELECT ALL 78 + 0 * + 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-31\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(69\) THEN count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(89\)\) \+ Int64\(83\) END\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ \(\- Int64\(\-31\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(69\) THEN count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(89\)\) \+ Int64\(83\) END\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) + - - 31 AS col1, - COUNT ( * ) * - CASE - 84 WHEN + 69 THEN + COUNT ( * ) - + - ( + 89 ) + 83 END + 79 AS col1 query I rowsort label-7572 @@ -40907,7 +40907,7 @@ SELECT DISTINCT + 81 + - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "avg\(Int64\(\-57\)\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(59\) THEN NULL WHEN Int64\(80\) THEN NULL WHEN Int64\(\-82\) \* Int64\(\-90\) \- \(\- Int64\(\-1\)\) THEN CAST\(NULL AS Int32\) END \- Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "avg\(Int64\(\-57\)\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(59\) THEN NULL WHEN Int64\(80\) THEN NULL WHEN Int64\(\-82\) \* Int64\(\-90\) \- \(\- Int64\(\-1\)\) THEN CAST\(NULL AS Int64\) END \- Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 43 AS col1, + AVG ( ALL - 57 ) * CASE + + COUNT ( * ) WHEN + 59 THEN NULL WHEN 80 THEN NULL WHEN - 82 * - 90 - - - 1 THEN + CAST ( NULL AS INTEGER ) END - 61 AS col1 query I rowsort label-7774 @@ -44871,7 +44871,7 @@ SELECT ALL + ( + - 1 ) / - 1 + 78 + - - 48 / ( COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3112 # Datafusion - Expected - -204288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(count\(Int64\(0\)\) AS Int32\) AS Int32\)\) \- Int64\(37\) \* Int64\(84\) \- Int64\(3\) AS col2" at position 0 and "Int64\(64\) \* Int64\(76\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(count\(Int64\(0\)\) AS Int64\) AS Int64\)\) \- Int64\(37\) \* Int64\(84\) \- Int64\(3\) AS col2" at position 0 and "Int64\(64\) \* Int64\(76\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( CAST ( COUNT ( ALL - 0 ) AS INTEGER ) AS INTEGER ) - 37 * + 84 - 3 AS col2, 64 * ( + 76 ) * - 42 AS col2 query II rowsort label-8532 @@ -46224,7 +46224,7 @@ SELECT ALL 44 / 88 - + - MIN ( DISTINCT - 14 ) AS col1, + 17 * - - 94 + 68 * - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(avg\(CAST\(NULL AS Int32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(avg\(CAST\(NULL AS Int64\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 56 AS col0, CAST ( AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 query I rowsort @@ -46884,7 +46884,7 @@ SELECT - 30 * - COUNT ( * ) + - 42 * - 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-79\) AS Int32\) / Int64\(\-95\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-79\) AS Int64\) / Int64\(\-95\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 79 AS INTEGER ) / - 95 AS col0, + 38 AS col0 query I rowsort label-8915 @@ -47389,7 +47389,7 @@ SELECT DISTINCT + + 26 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1132 # Datafusion - Expected - -2325 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- avg\(Int64\(\-13\)\)\)\) AS Int32\) \* Int64\(\-87\) \- \(\- count\(Int64\(3\)\)\) AS col1" at position 0 and "Int64\(93\) \* Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- avg\(Int64\(\-13\)\)\)\) AS Int64\) \* Int64\(\-87\) \- \(\- count\(Int64\(3\)\)\) AS col1" at position 0 and "Int64\(93\) \* Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - - AVG ( - 13 ) AS INTEGER ) * - 87 - - COUNT ( + 3 ) col1, 93 * - 25 AS col1 query I rowsort label-9011 @@ -47920,7 +47920,7 @@ SELECT DISTINCT + 58 * + 93 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(51\) AS Int32\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(51\) AS Int64\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 51 AS INTEGER ) AS col1, + 64 AS col1 query I rowsort label-9113 @@ -49022,7 +49022,7 @@ SELECT DISTINCT 25 AS col1, 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(\-35\) \* \(\- Int64\(\-95\)\) \+ CASE Int64\(85\) WHEN nullif\(Int64\(26\), Int64\(48\) / Int64\(45\) \- Int64\(\-4\) / Int64\(48\)\) \+ Int64\(47\) \* CASE Int64\(95\) WHEN Int64\(22\) \+ Int64\(\-21\) THEN \(\- Int64\(29\)\) END THEN Int64\(99\) \+ CAST\(NULL AS Int32\) \* Int64\(\-20\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(57\) \* \(\- Int64\(16\)\) \* Int64\(27\) AS col0" at position 0 and "nullif\(min\(\(\- Int64\(60\)\)\), Int64\(25\) / \(\- Int64\(88\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(\-35\) \* \(\- Int64\(\-95\)\) \+ CASE Int64\(85\) WHEN nullif\(Int64\(26\), Int64\(48\) / Int64\(45\) \- Int64\(\-4\) / Int64\(48\)\) \+ Int64\(47\) \* CASE Int64\(95\) WHEN Int64\(22\) \+ Int64\(\-21\) THEN \(\- Int64\(29\)\) END THEN Int64\(99\) \+ CAST\(NULL AS Int64\) \* Int64\(\-20\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(57\) \* \(\- Int64\(16\)\) \* Int64\(27\) AS col0" at position 0 and "nullif\(min\(\(\- Int64\(60\)\)\), Int64\(25\) / \(\- Int64\(88\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 46 / - 35 * - - 95 + + + CASE 85 WHEN + + NULLIF ( + 26, 48 / 45 - - 4 / + + 48 ) + 47 * CASE + 95 WHEN + 22 + + ( - 21 ) THEN - + 29 END THEN 99 + CAST ( NULL AS INTEGER ) * - 20 + COUNT ( * ) END + 57 * - ( 16 ) * 27 col0, + NULLIF ( + MIN ( ALL - + 60 ), 25 / - ( + 88 ) ) AS col0 query I rowsort @@ -50025,7 +50025,7 @@ SELECT + 39 + + 51 * ( - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int32\)\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int64\)\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + 41 AS INTEGER ) AS col0, 9 AS col0 query I rowsort label-9511 diff --git a/data/sqlite/random/expr/slt_good_85.slt b/data/sqlite/random/expr/slt_good_85.slt index b2a0708..df9bd36 100644 --- a/data/sqlite/random/expr/slt_good_85.slt +++ b/data/sqlite/random/expr/slt_good_85.slt @@ -1817,7 +1817,7 @@ SELECT DISTINCT + + ( 56 ) AS col2, 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) \* \(\- Int64\(5\)\) AS col1" at position 0 and "\(\- Int64\(\-25\)\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) \* \(\- Int64\(5\)\) AS col1" at position 0 and "\(\- Int64\(\-25\)\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 48 * + - COUNT ( * ) + 29 * - + 5 AS col1, - ( - 25 ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 query I rowsort label-340 @@ -3010,7 +3010,7 @@ SELECT - + 99 * - + 43 # Datafusion - Expected - 141 # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-19\) WHEN Int64\(\-67\) \* \(\- Int64\(29\)\) \- Int64\(49\) THEN Int64\(28\) \* \(\- Int64\(57\)\) \+ CAST\(Int64\(\-88\) AS Float64\) WHEN Int64\(79\) \+ count\(Int64\(24\)\) / \(\- CAST\(Int64\(54\) AS Int32\)\) \- Int64\(52\) THEN Int64\(\-82\) ELSE NULL END AS col2" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) \- Int64\(59\) / \(\- Int64\(52\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-19\) WHEN Int64\(\-67\) \* \(\- Int64\(29\)\) \- Int64\(49\) THEN Int64\(28\) \* \(\- Int64\(57\)\) \+ CAST\(Int64\(\-88\) AS Float64\) WHEN Int64\(79\) \+ count\(Int64\(24\)\) / \(\- CAST\(Int64\(54\) AS Int64\)\) \- Int64\(52\) THEN Int64\(\-82\) ELSE NULL END AS col2" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) \- Int64\(59\) / \(\- Int64\(52\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 98 + 43 AS col0, CASE + - 19 WHEN - 67 * - + 29 - + + 49 THEN 28 * - ( 57 ) + + CAST ( + - 88 AS FLOAT8 ) WHEN + 79 + + COUNT ( + + 24 ) / - CAST ( 54 AS INTEGER ) - + + 52 THEN - 82 ELSE NULL END AS col2, - COUNT ( * ) * + - 7 - + 59 / - + 52 col2 query II rowsort label-567 @@ -6211,7 +6211,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1105 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* CASE Int64\(\-4\) WHEN Int64\(72\) THEN \(\- \(\- count\(Int64\(6\)\)\)\) WHEN Int64\(27\) \- Int64\(6\) THEN \(\- Int64\(19\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-2\) AS Int32\) END \+ Int64\(\-7\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) \* Int64\(56\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* CASE Int64\(\-4\) WHEN Int64\(72\) THEN \(\- \(\- count\(Int64\(6\)\)\)\) WHEN Int64\(27\) \- Int64\(6\) THEN \(\- Int64\(19\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-2\) AS Int64\) END \+ Int64\(\-7\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) \* Int64\(56\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 39 * + CASE + - 4 WHEN 72 THEN - - COUNT ( + 6 ) WHEN + 27 - 6 THEN - + 19 ELSE COUNT ( * ) * + CAST ( ( - 2 ) AS INTEGER ) END + + - 7 + + COUNT ( * ) * ( - 21 ) * + 56 col2, 99 AS col2 query I rowsort label-1181 @@ -10593,7 +10593,7 @@ SELECT DISTINCT 7, - 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \- CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 96 - CAST ( NULL AS INTEGER ) AS col0, 73 AS col0 query I rowsort label-2019 @@ -13889,7 +13889,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -915 # Datafusion - Expected - -28276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-61\), Int64\(17\) \* Int64\(21\), \(\- count\(Int64\(21\)\)\) \* Int64\(31\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \+ Int64\(\-82\) \* Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(\-68\) WHEN Int64\(\-94\) \* \(\- CAST\(Int64\(\-22\) AS Int32\)\) THEN NULL ELSE Int64\(32\) END\)\)\) \* CAST\(Int64\(\-15\) AS Int32\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(70\) \* Int64\(\-5\) \* \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-61\), Int64\(17\) \* Int64\(21\), \(\- count\(Int64\(21\)\)\) \* Int64\(31\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \+ Int64\(\-82\) \* Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(\-68\) WHEN Int64\(\-94\) \* \(\- CAST\(Int64\(\-22\) AS Int64\)\) THEN NULL ELSE Int64\(32\) END\)\)\) \* CAST\(Int64\(\-15\) AS Int64\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(70\) \* Int64\(\-5\) \* \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( - 61, + 17 * 21, - + COUNT ( + 21 ) * 31 + - - COUNT ( * ), + COUNT ( * ) + + 72 + - 82 * + 33 * + COUNT ( * ) * - CASE - 68 WHEN - 94 * - + ( CAST ( - 22 AS INTEGER ) ) THEN NULL ELSE + 32 END ) * + + CAST ( - 15 AS INTEGER ) AS col0, 74 + 70 * - 5 * - - 81 AS col0 query II rowsort label-2646 @@ -13961,7 +13961,7 @@ SELECT + MAX ( + ( + 70 ) ) + - 61 * + - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \- Int64\(\-41\) AS col1" at position 0 and "\(\- CAST\(\(\- CASE Int64\(19\) WHEN \(\- nullif\(\(\- Int64\(50\)\), CAST\(Int64\(\-13\) AS Int32\) / Int64\(56\) \* Int64\(\-90\) \* Int64\(1\) \+ \(\- Int64\(\-81\)\) \* Int64\(29\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \+ Int64\(\-82\) \* Int64\(37\) \+ Int64\(83\) THEN Int64\(6\) END\) AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \- Int64\(\-41\) AS col1" at position 0 and "\(\- CAST\(\(\- CASE Int64\(19\) WHEN \(\- nullif\(\(\- Int64\(50\)\), CAST\(Int64\(\-13\) AS Int64\) / Int64\(56\) \* Int64\(\-90\) \* Int64\(1\) \+ \(\- Int64\(\-81\)\) \* Int64\(29\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \+ Int64\(\-82\) \* Int64\(37\) \+ Int64\(83\) THEN Int64\(6\) END\) AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + + 67 ) - - 41 AS col1, - ( + CAST ( + - CASE + 19 WHEN - NULLIF ( - + 50, + CAST ( - 13 AS INTEGER ) / 56 * - 90 * + 1 + - - 81 * + 29 * COUNT ( * ) ) * COUNT ( * ) * 31 + ( - 82 ) * 37 + + 83 THEN + ( + 6 ) END AS FLOAT8 ) ) AS col1 query I rowsort @@ -14555,7 +14555,7 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - 2706 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-67\)\) AS col1" at position 0 and "Int64\(53\) \* CAST\(Int64\(87\) AS Int32\) \* Int64\(0\) \+ CAST\(NULL AS Int32\) \- \(\- Int64\(\-92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-67\)\) AS col1" at position 0 and "Int64\(53\) \* CAST\(Int64\(87\) AS Int64\) \* Int64\(0\) \+ CAST\(NULL AS Int64\) \- \(\- Int64\(\-92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( ALL - 67 ) AS col1, 53 * + + CAST ( 87 AS INTEGER ) * + 0 + + CAST ( NULL AS INTEGER ) - - - 92 AS col1, 82 * + 33 query I rowsort label-2773 @@ -17867,7 +17867,7 @@ SELECT + COUNT ( ALL + - 54 ) + + ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -561792 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(33\) \* \(\- \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-43\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(76\) \* Int64\(\-28\) END\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(33\) \* \(\- \(\- CASE CAST\(NULL AS Int64\) WHEN Int64\(\-43\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(76\) \* Int64\(\-28\) END\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 8 * 33 * - - CASE CAST ( NULL AS INTEGER ) WHEN + - 43 THEN NULL WHEN + ( ( - COUNT ( * ) ) ) THEN NULL ELSE 76 * - 28 END col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -18978,7 +18978,7 @@ SELECT DISTINCT COUNT ( * ) * + + 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "CAST\(Int64\(22\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "CAST\(Int64\(22\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 93 col2, CAST ( 22 AS INTEGER ) AS col2 query II rowsort label-3615 @@ -19326,7 +19326,7 @@ SELECT ALL - 93 * - - 97 + - - 64 - 74 * - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "\(\- \(\- coalesce\(\(\- CAST\(Int64\(87\) AS Int32\)\), Int64\(60\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "\(\- \(\- coalesce\(\(\- CAST\(Int64\(87\) AS Int64\)\), Int64\(60\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 29 AS col1, + ( - - COALESCE ( - CAST ( + + 87 AS INTEGER ), + 60 ) ) AS col1 query I rowsort label-3680 @@ -19807,7 +19807,7 @@ SELECT - 56 / 79 AS col1, MAX ( ALL - 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(89\) \+ \(\- CASE CAST\(CAST\(NULL AS Int32\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-27\) ELSE NULL END\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(89\) \+ \(\- CASE CAST\(CAST\(NULL AS Int64\) AS Int64\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-27\) ELSE NULL END\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 65 * 89 + - CASE + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + COUNT ( * ) THEN - 27 ELSE NULL END col2, 94 AS col2 # Datafusion - Types were automatically converted from: @@ -20505,7 +20505,7 @@ SELECT - - COALESCE ( + 14, + + ( 56 ) ) + + + 51 - - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-7\)\)\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(58\) \- Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-7\)\)\) \- \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(58\) \- Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( - 7 ) - - CAST ( NULL AS INTEGER ) AS col0, 58 - + 68 AS col0 query I rowsort label-3901 @@ -21751,7 +21751,7 @@ SELECT 42 * 78 * - 6 - + 60 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(\-75\) AS col2" at position 0 and "sum\(CAST\(NULL AS Int32\)\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(\-75\) AS col2" at position 0 and "sum\(CAST\(NULL AS Int64\)\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 0 / + - 75 AS col2, SUM ( ALL + CAST ( NULL AS INTEGER ) ) + 96 AS col2 query I rowsort @@ -22074,7 +22074,7 @@ SELECT NULLIF ( - + 52, + ( + 97 ) ) / 87 * + - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 6 + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 query I rowsort label-4201 @@ -22457,7 +22457,7 @@ SELECT - + 65 + - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "sum\(nullif\(Int64\(\-66\), Int64\(64\) \* Int64\(\-57\) \+ Int64\(\-59\) \+ Int64\(\-91\) \* Int64\(76\) / Int64\(99\)\)\) \* Int64\(\-58\) \+ Int64\(\-87\) \* Int64\(4\) \* CAST\(NULL AS Int32\) \* CAST\(Int64\(78\) AS Int32\) \+ Int64\(1\) \* Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "sum\(nullif\(Int64\(\-66\), Int64\(64\) \* Int64\(\-57\) \+ Int64\(\-59\) \+ Int64\(\-91\) \* Int64\(76\) / Int64\(99\)\)\) \* Int64\(\-58\) \+ Int64\(\-87\) \* Int64\(4\) \* CAST\(NULL AS Int64\) \* CAST\(Int64\(78\) AS Int64\) \+ Int64\(1\) \* Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 28 AS col2, SUM ( + NULLIF ( - 66, 64 * - 57 + - 59 + - 91 * + 76 / 99 ) ) * - 58 + + - 87 * + 4 * + CAST ( NULL AS INTEGER ) * CAST ( 78 AS INTEGER ) + 1 * + + 59 * COUNT ( * ) AS col2 query I rowsort label-4273 @@ -23407,7 +23407,7 @@ SELECT ALL 41 * 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) / Int64\(\-82\) \* \(\- coalesce\(\(\- Int64\(\-37\)\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-49\)\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) / Int64\(\-82\) \* \(\- coalesce\(\(\- Int64\(\-37\)\), \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-49\)\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 28 / - 82 * + - COALESCE ( - - 37, - CAST ( NULL AS INTEGER ) * - 49 ) AS col2, 12 AS col2 query II rowsort @@ -25386,7 +25386,7 @@ SELECT ALL MAX ( - + 97 ) + - 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-50\) \* \(\- nullif\(\(\- Int64\(\-92\)\), \(\- Int64\(66\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ CAST\(NULL AS Int64\) \+ Int64\(\-50\) \* \(\- nullif\(\(\- Int64\(\-92\)\), \(\- Int64\(66\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 15 + + CAST ( NULL AS INTEGER ) + - 50 * - + NULLIF ( - - 92, - ( + 66 ) ) AS col0, COUNT ( * ) AS col0 query II rowsort label-4835 @@ -25674,7 +25674,7 @@ SELECT + - MIN ( ( - 39 ) ) + - - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(0\) AS Int32\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(0\) AS Int64\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + COUNT ( * ) * CAST ( 0 AS INTEGER ) AS col0, - 60 AS col0 query I rowsort label-4890 @@ -26670,7 +26670,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(min\(CAST\(NULL AS Int32\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(min\(CAST\(NULL AS Int64\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, + COALESCE ( MIN ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) AS col1 query I rowsort label-5078 @@ -27592,7 +27592,7 @@ SELECT + 79 + 20 / + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CASE Int64\(73\) WHEN Int64\(\-98\) \+ Int64\(78\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-56\) \* \(\- Int64\(\-49\)\) \* Int64\(\-67\) \+ Int64\(79\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(\-77\) \* Int64\(29\) THEN Int64\(\-36\) END\)\) AS col2" at position 0 and "Int64\(8\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CASE Int64\(73\) WHEN Int64\(\-98\) \+ Int64\(78\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-56\) \* \(\- Int64\(\-49\)\) \* Int64\(\-67\) \+ Int64\(79\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(\-77\) \* Int64\(29\) THEN Int64\(\-36\) END\)\) AS col2" at position 0 and "Int64\(8\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 80 * + COUNT ( * ) * - - CASE + 73 WHEN - 98 + 78 / + + COUNT ( * ) + - 19 * + COUNT ( * ) THEN NULL WHEN - 56 * - - 49 * - 67 + 79 THEN NULL WHEN - 80 + - 77 * + 29 THEN - 36 END AS col2, + 8 + - CAST ( NULL AS INTEGER ) col2 query I rowsort label-5254 @@ -30777,7 +30777,7 @@ SELECT - 95 - 79 + NULLIF ( + - 96, + NULLIF ( + 40, - 97 ) ) / 59, 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- sum\(\(\- \(\- CAST\(Int64\(\-68\) AS Int32\)\)\)\)\) \+ Int64\(30\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- sum\(\(\- \(\- CAST\(Int64\(\-68\) AS Int64\)\)\)\)\) \+ Int64\(30\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - SUM ( - ( - CAST ( + ( - 68 ) AS INTEGER ) ) ) + 30 + + 30 AS col2 query I rowsort @@ -31364,7 +31364,7 @@ SELECT DISTINCT + COUNT ( * ) AS col2, - ( - 51 ) + 71 / 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) / Int64\(93\) \- CAST\(NULL AS Int32\) \- \(\- avg\(Int64\(\-28\)\)\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) / Int64\(93\) \- CAST\(NULL AS Int64\) \- \(\- avg\(Int64\(\-28\)\)\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 87 / 93 - CAST ( NULL AS INTEGER ) - - AVG ( ALL - 28 ) + 41 AS col1, + 24 AS col1 query I rowsort @@ -32298,7 +32298,7 @@ SELECT DISTINCT - ( + 69 ) col0, ( + NULLIF ( + - NULLIF ( - 23, + ( + 15 ) + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \+ Int64\(61\) AS col1" at position 0 and "Int64\(\-90\) / Int64\(43\) \* \(\- Int64\(87\)\) \+ CAST\(Int64\(\-61\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \+ Int64\(61\) AS col1" at position 0 and "Int64\(\-90\) / Int64\(43\) \* \(\- Int64\(87\)\) \+ CAST\(Int64\(\-61\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 19 + + 61 AS col1, - 90 / 43 * - ( 87 ) + CAST ( ( - 61 ) AS INTEGER ) AS col1 query I rowsort label-6148 @@ -33296,7 +33296,7 @@ SELECT - 29 * 85 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(\-3\) \* CASE CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) WHEN Int64\(50\) / Int64\(\-32\) THEN Int64\(88\) \* Int64\(\-42\) WHEN Int64\(75\) THEN NULL ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(\-3\) \* CASE CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\) WHEN Int64\(50\) / Int64\(\-32\) THEN Int64\(88\) \* Int64\(\-42\) WHEN Int64\(75\) THEN NULL ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( + 43 ) AS col2, - 3 * + + CASE CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN 50 / - 32 THEN 88 * - 42 WHEN 75 THEN NULL ELSE NULL END col2 query II rowsort @@ -34500,7 +34500,7 @@ SELECT DISTINCT - 13 / + + MAX ( DISTINCT + 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(60\) \* Int64\(19\)\)\)\) \* \(\- Int64\(4\)\) \- Int64\(24\) AS col0" at position 0 and "\(\- min\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(60\) \* Int64\(19\)\)\)\) \* \(\- Int64\(4\)\) \- Int64\(24\) AS col0" at position 0 and "\(\- min\(CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - NULLIF ( COUNT ( * ), + 60 * + 19 ) * - + 4 - 24 col0, ( - MIN ( CAST ( NULL AS INTEGER ) ) ) col0 query I rowsort @@ -37507,7 +37507,7 @@ SELECT COUNT ( * ) + 33 * - - 61 / COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7313670 # Datafusion - Expected - -1360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(47\) AS Int32\) \* \(\- Int64\(\-90\)\) \* Int64\(19\) \* \(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(85\) \* Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(47\) AS Int64\) \* \(\- Int64\(\-90\)\) \* Int64\(19\) \* \(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(85\) \* Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( + 47 AS INTEGER ) * - - 90 * 19 * - + 91 col0, + 85 * - 16 AS col0 query I rowsort label-7138 @@ -37546,7 +37546,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 441 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* CAST\(Int64\(6\) AS Int32\) \+ \(\- Int64\(87\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* CAST\(Int64\(6\) AS Int64\) \+ \(\- Int64\(87\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 88 * + + CAST ( 6 AS INTEGER ) + - + 87 AS col2, + 3 AS col2 query I rowsort label-7145 @@ -42420,7 +42420,7 @@ SELECT - ( 35 ) * COUNT ( * ) - - - 1 + - + ( + - 11 ) - 19 + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-8071 @@ -47534,7 +47534,7 @@ SELECT + 91 * 68 # Datafusion - Expected - NULL # Datafusion - Expected - 89 # Datafusion - Expected - -600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(37\) \* Int64\(\-87\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\) \+ \(\- CASE sum\(Int64\(86\)\) WHEN CAST\(NULL AS Int32\) \+ \(\- CASE Int64\(\-78\) WHEN Int64\(0\) \+ \(\- Int64\(\-99\)\) THEN NULL ELSE \(\- Int64\(\-85\)\) END\) THEN sum\(DISTINCT Int64\(\-51\)\) / Int64\(\-8\) END\) \+ Int64\(85\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(37\) \* Int64\(\-87\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\) \+ \(\- CASE sum\(Int64\(86\)\) WHEN CAST\(NULL AS Int64\) \+ \(\- CASE Int64\(\-78\) WHEN Int64\(0\) \+ \(\- Int64\(\-99\)\) THEN NULL ELSE \(\- Int64\(\-85\)\) END\) THEN sum\(DISTINCT Int64\(\-51\)\) / Int64\(\-8\) END\) \+ Int64\(85\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 42 * ( 37 ) * - 87 + + COUNT ( * ) * 76 + - CASE SUM ( + ( 86 ) ) WHEN CAST ( NULL AS INTEGER ) + + - CASE - 78 WHEN + 0 + - - 99 THEN NULL ELSE - - 85 END THEN + SUM ( DISTINCT - 51 ) / + - 8 END + + 85 AS col0, 89 AS col0, + - 10 * 60 query I rowsort @@ -51514,7 +51514,7 @@ SELECT - + 95 / 2 + + + 34 + - NULLIF ( - 26, + + 52 * + - 16 + - - 11 * + - CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -95950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "Int64\(77\) / Int64\(\-26\) \- Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(\-40\)\) \* max\(DISTINCT \(\- \(\- CAST\(Int64\(32\) AS Int32\)\)\)\) \* max\(Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "Int64\(77\) / Int64\(\-26\) \- Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(\-40\)\) \* max\(DISTINCT \(\- \(\- CAST\(Int64\(32\) AS Int64\)\)\)\) \* max\(Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( + - 4 ) AS col1, + 77 / - 26 - + - 52 + COUNT ( * ) * + MIN ( - 40 ) * MAX ( DISTINCT - - CAST ( + + 32 AS INTEGER ) ) * MAX ( 75 ) AS col1 query I rowsort label-9807 @@ -51978,7 +51978,7 @@ SELECT - COALESCE ( - 13, + 87 / - COUNT ( * ), MAX ( ALL + 82 ) * - + 73 * - AV # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / Int64\(62\) \* Int64\(59\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / Int64\(62\) \* Int64\(59\) 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\. SELECT ALL - 91 / 62 * + 59 AS col0, - CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -52457,7 +52457,7 @@ SELECT MIN ( + - 4 ) AS col2, MAX ( + 13 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-52\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-52\) AS Int64\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 52 AS INTEGER ) AS col2, - COUNT ( * ) * - 37 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_86.slt b/data/sqlite/random/expr/slt_good_86.slt index 00c22d1..2829d89 100644 --- a/data/sqlite/random/expr/slt_good_86.slt +++ b/data/sqlite/random/expr/slt_good_86.slt @@ -2638,7 +2638,7 @@ SELECT DISTINCT - 92 * + - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(89\) \+ Int64\(\-85\) \+ \(\- Int64\(20\)\) / \(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- Int64\(\-14\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(89\) \+ Int64\(\-85\) \+ \(\- Int64\(20\)\) / \(\- sum\(\(\- CAST\(NULL AS Int64\)\)\)\) \+ \(\- Int64\(\-14\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 27 * + 89 + - 85 + - + 20 / - SUM ( - CAST ( NULL AS INTEGER ) ) + - - 14 * - COUNT ( * ) + + COUNT ( * ) + 51 AS col0, - 52 AS col0 query II rowsort label-492 @@ -3100,7 +3100,7 @@ SELECT ALL - 51 + SUM ( ALL - + 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(34\) \* CASE \(\- nullif\(avg\(\(\- nullif\(Int64\(\-42\), Int64\(81\)\)\)\), Int64\(34\)\)\) WHEN \(\- max\(Int64\(\-71\)\)\) THEN \(\- coalesce\(Int64\(88\), \(\- Int64\(\-51\)\) \* CAST\(Int64\(\-9\) AS Int32\), Int64\(70\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(34\) \* CASE \(\- nullif\(avg\(\(\- nullif\(Int64\(\-42\), Int64\(81\)\)\)\), Int64\(34\)\)\) WHEN \(\- max\(Int64\(\-71\)\)\) THEN \(\- coalesce\(Int64\(88\), \(\- Int64\(\-51\)\) \* CAST\(Int64\(\-9\) AS Int64\), Int64\(70\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 17 * + + 34 * + CASE - NULLIF ( + AVG ( - NULLIF ( + - 42, 81 ) ), 34 ) WHEN - MAX ( ALL + - 71 ) THEN + - COALESCE ( + 88, - - 51 * + CAST ( - 9 AS INTEGER ), + + 70 ) + - COUNT ( * ) END + - COUNT ( * ) * - - 84 AS col0, 88 col0 query I rowsort @@ -3462,7 +3462,7 @@ SELECT ALL 5 * - 25 * CAST ( 61 AS INTEGER ) * 52 + - - 34 + - + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(78\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(62\)\) \+ Int64\(21\) \+ \(\- Int64\(99\)\) \* \(\- min\(DISTINCT Int64\(10\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(78\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(62\)\) \+ Int64\(21\) \+ \(\- Int64\(99\)\) \* \(\- min\(DISTINCT Int64\(10\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 78 ) AS col0, + ( + - CAST ( NULL AS INTEGER ) ) + - + 62 + 21 + - + 99 * - MIN ( DISTINCT + 10 ) AS col0 query I rowsort label-649 @@ -4308,7 +4308,7 @@ SELECT 66 * - - 87 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 2381 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(87\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(34\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-7\) \+ Int64\(\-58\) \+ Int64\(\-44\), Int64\(30\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\) \+ Int64\(\-35\) \* Int64\(89\)\) \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(87\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(34\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-7\) \+ Int64\(\-58\) \+ Int64\(\-44\), Int64\(30\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int64\) \+ Int64\(\-35\) \* Int64\(89\)\) \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 30 + 87 AS col0, COUNT ( * ) + - + 34 * COALESCE ( COUNT ( * ), + - 7 + - 58 + - 44, 30, - ( - COUNT ( * ) ) / + COUNT ( * ), + + CAST ( NULL AS INTEGER ) + - 35 * + 89 ) * - 70 col0 query I rowsort label-809 @@ -5204,7 +5204,7 @@ SELECT - - 96 * + + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* CAST\(NULL AS Int32\) \+ Int64\(\-29\) \- Int64\(87\) AS col1" at position 0 and "\(\- sum\(\(\- Int64\(89\)\)\)\) / Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* CAST\(NULL AS Int64\) \+ Int64\(\-29\) \- Int64\(87\) AS col1" at position 0 and "\(\- sum\(\(\- Int64\(89\)\)\)\) / Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 1 * CAST ( NULL AS INTEGER ) + - 29 - 87 AS col1, - SUM ( - + 89 ) / 93 AS col1 query I rowsort @@ -5857,7 +5857,7 @@ SELECT - 40 * + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -1258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(\-8\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(94\) \- Int64\(96\) \* Int64\(14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(\-8\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(94\) \- Int64\(96\) \* Int64\(14\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 87 AS col2, - 8 * + ( COUNT ( * ) ) + + CAST ( + 94 - 96 * 14 AS INTEGER ) AS col2 query I rowsort label-1105 @@ -6314,7 +6314,7 @@ SELECT COALESCE ( + + 56, - + ( - 75 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6478 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(79\), CAST\(NULL AS Int32\)\) \* Int64\(\-82\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(79\), CAST\(NULL AS Int64\)\) \* Int64\(\-82\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( + 79, + CAST ( NULL AS INTEGER ) ) * - 82 AS col2, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: @@ -6708,7 +6708,7 @@ SELECT ( - COUNT ( ALL - 33 ) ) / + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2109 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ CAST\(Int64\(\-52\) AS Int32\) \* Int64\(\-40\) AS col0" at position 0 and "CAST\(\(\- Int64\(50\)\) AS Int32\) \- Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ CAST\(Int64\(\-52\) AS Int64\) \* Int64\(\-40\) AS col0" at position 0 and "CAST\(\(\- Int64\(50\)\) AS Int64\) \- Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 29 + + CAST ( - 52 AS INTEGER ) * - 40 AS col0, + CAST ( - + 50 AS INTEGER ) - 26 AS col0 query I rowsort label-1268 @@ -7932,7 +7932,7 @@ SELECT - - CASE - 30 WHEN + 73 THEN 51 * - 48 + + 37 ELSE 81 END + - 17 * + + MA # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 476 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / \(\- Int64\(\-32\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-24\) AS col2" at position 0 and "Int64\(68\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / \(\- Int64\(\-32\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-24\) AS col2" at position 0 and "Int64\(68\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + - 56 / - - 32 * + - CAST ( NULL AS INTEGER ) + + - 24 AS col2, + 68 * + 7 AS col2 query I rowsort @@ -9412,7 +9412,7 @@ SELECT 39 + + 70 + COUNT ( - NULLIF ( - 17, + + 71 * + 13 * + 97 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5133 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-87\)\) \* Int64\(59\) AS col1" at position 0 and "Int64\(54\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-87\)\) \* Int64\(59\) AS col1" at position 0 and "Int64\(54\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MAX ( - 87 ) * 59 col1, 54 * - CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-1778 @@ -15912,7 +15912,7 @@ SELECT - MIN ( ALL + + ( 34 ) ) col0, NULLIF ( 88, - - 79 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CASE Int64\(49\) WHEN Int64\(90\) THEN NULL ELSE Int64\(\-16\) END\)\) AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CASE Int64\(49\) WHEN Int64\(90\) THEN NULL ELSE Int64\(\-16\) END\)\) AS Int64\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - - CASE + 49 WHEN 90 THEN NULL ELSE - 16 END AS INTEGER ) col1, - COUNT ( * ) AS col1 query I rowsort @@ -17016,7 +17016,7 @@ SELECT ALL + - 0 * + + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2206 # Datafusion - Expected - 7172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(40\)\) \* \(\- CAST\(\(\- Int64\(\-55\)\) AS Int32\)\) \+ Int64\(63\) / nullif\(\(\- sum\(Int64\(69\)\)\), Int64\(51\) \+ Int64\(78\)\) \+ Int64\(\-6\) AS col0" at position 0 and "Int64\(29\) \+ coalesce\(Int64\(9\), count\(DISTINCT Int64\(78\)\)\) \+ \(\- Int64\(82\)\) \* \(\- Int64\(87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(40\)\) \* \(\- CAST\(\(\- Int64\(\-55\)\) AS Int64\)\) \+ Int64\(63\) / nullif\(\(\- sum\(Int64\(69\)\)\), Int64\(51\) \+ Int64\(78\)\) \+ Int64\(\-6\) AS col0" at position 0 and "Int64\(29\) \+ coalesce\(Int64\(9\), count\(DISTINCT Int64\(78\)\)\) \+ \(\- Int64\(82\)\) \* \(\- Int64\(87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + MAX ( DISTINCT + 40 ) * - CAST ( - - 55 AS INTEGER ) + 63 / NULLIF ( - SUM ( ALL + 69 ), + 51 + 78 ) + - 6 col0, 29 + COALESCE ( ( + 9 ), COUNT ( DISTINCT 78 ) ) + - ( 82 ) * - ( 87 ) AS col0 # Datafusion - Datafusion expected results: @@ -18525,7 +18525,7 @@ SELECT - ( - 61 ) * + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 712 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(89\) AS col0" at position 0 and "CAST\(Int64\(74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(89\) AS col0" at position 0 and "CAST\(Int64\(74\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 8 * 89 AS col0, + CAST ( 74 AS INTEGER ) AS col0 query I rowsort label-3523 @@ -18697,7 +18697,7 @@ SELECT DISTINCT 25 * - + NULLIF ( + + MIN ( - + 21 ), + 14 * - 30 - 77 * + 3 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-7\) AS Int32\) AS col1" at position 0 and "Int64\(\-13\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-7\) AS Int64\) AS col1" at position 0 and "Int64\(\-13\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - 7 AS INTEGER ) AS col1, - 13 + + COUNT ( * ) AS col1 query II rowsort label-3556 @@ -21228,7 +21228,7 @@ SELECT - 8 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-4037 @@ -21507,7 +21507,7 @@ SELECT 57 * - 33 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(19\)\) \* \(\- sum\(Int64\(\-91\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(19\)\) \* \(\- sum\(Int64\(\-91\)\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 60 * - COUNT ( * ) AS col0, - ( 19 ) * - SUM ( - 91 ) + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -21826,7 +21826,7 @@ SELECT DISTINCT MAX ( - 17 ) AS col0, NULLIF ( 5, + COALESCE ( + NULLIF ( 23, - # Datafusion - Datafusion expected results: # Datafusion - Expected - -2014 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(2\) \- Int64\(\-78\) \* Int64\(\-27\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(2\) \- Int64\(\-78\) \* Int64\(\-27\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 90 + + 2 - + - 78 * + - 27 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query II rowsort @@ -23300,7 +23300,7 @@ SELECT COUNT ( * ) + 64 * + CAST ( + - 91 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-35\) AS Int32\)\) \+ Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-35\) AS Int64\)\) \+ Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 15 col2, - CAST ( - 35 AS INTEGER ) + + 61 AS col2 query I rowsort label-4436 @@ -23579,7 +23579,7 @@ SELECT DISTINCT + 10 AS col1, - 4 * 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(39\) \* \(\- Int64\(90\)\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(39\) \* \(\- Int64\(90\)\) / \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 13 col1, + 39 * - ( + 90 ) / + - CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -24987,7 +24987,7 @@ SELECT ALL + MAX ( - + 16 ) * 70 * + 58 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 59 ) col1, - CAST ( - COUNT ( * ) AS INTEGER ) * 88 AS col1 query I rowsort @@ -27045,7 +27045,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) AS col0" at position 0 and "\(\- CAST\(Int64\(21\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) AS col0" at position 0 and "\(\- CAST\(Int64\(21\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 21 * - COUNT ( * ) * - 7 AS col0, - CAST ( + 21 AS INTEGER ) col0 query I rowsort label-5152 @@ -27722,7 +27722,7 @@ SELECT ALL COUNT ( * ), MIN ( - + 11 ) * - 69 + - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1204 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-86\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \- Int64\(45\) \* Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-86\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \- Int64\(45\) \* Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 14 * - 86 AS col1, - CAST ( NULL AS INTEGER ) - + 45 * - 80 col1 query I rowsort label-5282 @@ -30770,7 +30770,7 @@ SELECT 11 * 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(94\) \* CASE Int64\(\-2\) WHEN Int64\(35\) THEN CAST\(\(\- nullif\(Int64\(\-96\), CASE Int64\(21\) WHEN \(\- Int64\(2\)\) THEN \(\- Int64\(\-46\)\) \- Int64\(\-6\) WHEN Int64\(\-25\) THEN Int64\(66\) \* \(\- \(\- CAST\(Int64\(68\) AS Int32\)\)\) \* CAST\(CASE Int64\(\-35\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(42\) END AS Int32\) \- Int64\(41\) ELSE Int64\(\-50\) END \+ Int64\(\-54\) / Int64\(\-86\) \* Int64\(\-17\) \* Int64\(8\) \* sum\(DISTINCT nullif\(Int64\(\-94\), Int64\(\-25\) \- Int64\(\-18\)\)\) \- \(\- Int64\(21\)\)\)\) AS Int32\) ELSE Int64\(80\) END \* Int64\(40\) / Int64\(43\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \+ Int64\(62\) \+ sum\(Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(94\) \* CASE Int64\(\-2\) WHEN Int64\(35\) THEN CAST\(\(\- nullif\(Int64\(\-96\), CASE Int64\(21\) WHEN \(\- Int64\(2\)\) THEN \(\- Int64\(\-46\)\) \- Int64\(\-6\) WHEN Int64\(\-25\) THEN Int64\(66\) \* \(\- \(\- CAST\(Int64\(68\) AS Int64\)\)\) \* CAST\(CASE Int64\(\-35\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(42\) END AS Int64\) \- Int64\(41\) ELSE Int64\(\-50\) END \+ Int64\(\-54\) / Int64\(\-86\) \* Int64\(\-17\) \* Int64\(8\) \* sum\(DISTINCT nullif\(Int64\(\-94\), Int64\(\-25\) \- Int64\(\-18\)\)\) \- \(\- Int64\(21\)\)\)\) AS Int64\) ELSE Int64\(80\) END \* Int64\(40\) / Int64\(43\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int64\) \+ Int64\(62\) \+ sum\(Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 60 AS col1, 94 * + CASE - 2 WHEN + 35 THEN CAST ( - NULLIF ( + - 96, + + CASE 21 WHEN - + 2 THEN - ( - 46 ) - + - 6 WHEN - 25 THEN + 66 * - - CAST ( + 68 AS INTEGER ) * + CAST ( CASE - 35 WHEN + COUNT ( * ) THEN 42 END AS INTEGER ) - 41 ELSE - 50 END + - 54 / - 86 * - 17 * + 8 * SUM ( DISTINCT NULLIF ( - 94, - 25 - + - 18 ) ) - - + 21 ) AS INTEGER ) ELSE 80 END * 40 / + ( 43 ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 62 + SUM ( + 32 ) AS col1 query I rowsort label-5860 @@ -32203,7 +32203,7 @@ SELECT CAST ( + 98 AS INTEGER ) - MIN ( NULLIF ( 25, + + 44 + - 57 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(39\) \* Int64\(\-34\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(39\) \* Int64\(\-34\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col1, 39 * - 34 * + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-6137 @@ -33854,7 +33854,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 23 AS col1 # Datafusion - Types were automatically converted from: @@ -34395,7 +34395,7 @@ SELECT DISTINCT + 67 * + MIN ( - + 50 ) * + COUNT ( * ) * + - 66 + + 89 * - ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - -23317 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- coalesce\(Int64\(\-27\), Int64\(88\) \- Int64\(5\) \* \(\- \(\- CAST\(\(\- Int64\(15\)\) AS Int32\)\)\)\)\) \* Int64\(28\) \+ Int64\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(40\) \+ min\(Int64\(83\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- coalesce\(Int64\(\-27\), Int64\(88\) \- Int64\(5\) \* \(\- \(\- CAST\(\(\- Int64\(15\)\) AS Int64\)\)\)\)\) \* Int64\(28\) \+ Int64\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(40\) \+ min\(Int64\(83\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 31 * - COALESCE ( - 27, 88 - + + 5 * - + ( + - CAST ( - + 15 AS INTEGER ) ) ) * 28 + - 5 + COUNT ( * ) + + 40 + MIN ( 83 ) AS col0, 18 AS col0 query I rowsort label-6550 @@ -35387,7 +35387,7 @@ SELECT ALL 46 * 47 * + + SUM ( DISTINCT - 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70899 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / \(\- CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\)\) AS col1" at position 0 and "max\(Int64\(58\)\) \* Int64\(51\) \* Int64\(24\) \+ max\(Int64\(\-53\)\) \+ \(\- Int64\(40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / \(\- CAST\(\(\- \(\- CAST\(NULL AS Int64\)\)\) AS Int64\)\) AS col1" at position 0 and "max\(Int64\(58\)\) \* Int64\(51\) \* Int64\(24\) \+ max\(Int64\(\-53\)\) \+ \(\- Int64\(40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 57 / - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, MAX ( + 58 ) * + 51 * + 24 + MAX ( + - 53 ) + - + 40 col1 query I rowsort label-6740 @@ -36450,7 +36450,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(Int64\(52\), Int64\(67\)\) AS Int32\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(Int64\(52\), Int64\(67\)\) AS Int64\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULLIF ( + 52, + 67 ) AS INTEGER ) AS col1, 86 col1 query I rowsort label-6943 @@ -36533,7 +36533,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 1558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-88\)\), Int64\(\-70\) \* Int64\(86\)\)\) \+ Int64\(96\) \+ CAST\(\(\- CASE \(\- Int64\(68\)\) WHEN Int64\(42\) / sum\(DISTINCT Int64\(92\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN nullif\(Int64\(62\), Int64\(\-60\) \+ \(\- \(\- min\(Int64\(77\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-4\)\) \* Int64\(51\) ELSE Int64\(34\) END\) AS Int32\) AS col0" at position 0 and "Int64\(82\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-88\)\), Int64\(\-70\) \* Int64\(86\)\)\) \+ Int64\(96\) \+ CAST\(\(\- CASE \(\- Int64\(68\)\) WHEN Int64\(42\) / sum\(DISTINCT Int64\(92\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN nullif\(Int64\(62\), Int64\(\-60\) \+ \(\- \(\- min\(Int64\(77\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-4\)\) \* Int64\(51\) ELSE Int64\(34\) END\) AS Int64\) AS col0" at position 0 and "Int64\(82\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - NULLIF ( - - 88, - 70 * + 86 ) + 96 + CAST ( - CASE - + 68 WHEN + + 42 / + SUM ( DISTINCT + 92 ) / + COUNT ( * ) THEN NULLIF ( 62, - 60 + - - MIN ( ALL 77 ) + + + COUNT ( * ) * - 4 ) * 51 ELSE ( 34 ) END AS INTEGER ) AS col0, 82 * 19 AS col0 query I rowsort label-6958 @@ -36740,7 +36740,7 @@ SELECT ALL COUNT ( * ) * - ( - 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-75\) \- Int64\(\-95\) \- Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-75\) \- Int64\(\-95\) \- Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, - 75 - - 95 - 11 AS col1 query I rowsort label-6998 @@ -37617,7 +37617,7 @@ SELECT + COUNT ( ALL - 43 ) * 5 * + 34 * 21 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-31\), Int64\(\-13\) \* \(\- CASE \(\- Int64\(\-84\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(45\)\) \* \(\- \(\- max\(DISTINCT Int64\(54\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(37\) THEN \(\- Int64\(\-16\)\) END\) \- \(\- \(\- Int64\(2\)\)\) \+ Int64\(35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- nullif\(Int64\(\-7\), Int64\(\-55\) / Int64\(10\) \* \(\- Int64\(\-49\)\)\)\) \+ Int64\(22\)\) \* \(\- Int64\(48\)\) \* CAST\(NULL AS Int32\) \* Int64\(14\) \+ Int64\(62\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-31\), Int64\(\-13\) \* \(\- CASE \(\- Int64\(\-84\)\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN \(\- Int64\(45\)\) \* \(\- \(\- max\(DISTINCT Int64\(54\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(37\) THEN \(\- Int64\(\-16\)\) END\) \- \(\- \(\- Int64\(2\)\)\) \+ Int64\(35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- nullif\(Int64\(\-7\), Int64\(\-55\) / Int64\(10\) \* \(\- Int64\(\-49\)\)\)\) \+ Int64\(22\)\) \* \(\- Int64\(48\)\) \* CAST\(NULL AS Int64\) \* Int64\(14\) \+ Int64\(62\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + ( + ( - 31 ) ), - 13 * + - CASE - - 84 WHEN - CAST ( NULL AS INTEGER ) THEN - + 45 * - - MAX ( DISTINCT + 54 ) + COUNT ( * ) WHEN 37 THEN - - 16 END - - - ( + 2 ) + 35 + + NULLIF ( + COUNT ( * ), - NULLIF ( - 7, - 55 / 10 * - - 49 ) + + 22 ) * - + 48 * + CAST ( NULL AS INTEGER ) * + 14 + + 62 ) AS col1, ( - + COUNT ( * ) ) AS col1 query I rowsort label-7163 @@ -38288,7 +38288,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(2\) \* \(\- min\(Int64\(\-77\)\)\) / Int64\(\-53\) / Int64\(25\) \+ Int64\(\-25\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(2\) \* \(\- min\(Int64\(\-77\)\)\) / Int64\(\-53\) / Int64\(25\) \+ Int64\(\-25\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) / 2 * - + MIN ( - 77 ) / - 53 / + 25 + - 25 AS col1, 93 AS col1 query I rowsort @@ -39015,7 +39015,7 @@ SELECT ALL - 19 + - 4, - 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(96\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(96\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CAST ( 96 AS INTEGER ) AS col2, - 19 AS col2 query II rowsort label-7430 @@ -40498,7 +40498,7 @@ SELECT - 93 + + ( 34 ) * - 66 col0 # Datafusion - Expected - 18 # Datafusion - Expected - 0 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 1 and "Int64\(\-46\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT CAST\(NULL AS Int64\)\) AS col1" at position 1 and "Int64\(\-46\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 18 AS col2, + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1, - 46 AS col1 query I rowsort @@ -44786,7 +44786,7 @@ SELECT ALL + - 6 * - + 67 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ CAST\(Int64\(31\) AS Int32\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ CAST\(Int64\(31\) AS Int64\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 45 + + CAST ( 31 AS INTEGER ) col1, 77 AS col1 query I rowsort @@ -45185,7 +45185,7 @@ SELECT + - COUNT ( * ) * 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-42\) \+ Int64\(\-24\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) / Int64\(67\) \+ Int64\(\-21\) AS col1" at position 0 and "count\(Int64\(\-2\)\) \+ \(\- sum\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-42\) \+ Int64\(\-24\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) / Int64\(67\) \+ Int64\(\-21\) AS col1" at position 0 and "count\(Int64\(\-2\)\) \+ \(\- sum\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( NULL AS INTEGER ) + + - 42 + - 24 * + + COUNT ( * ) * + 17 / + 67 + - 21 AS col1, COUNT ( + - 2 ) + ( - + SUM ( 89 ) ) AS col1 query I rowsort label-8609 @@ -48030,7 +48030,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4002 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(87\) AS Int32\) \* Int64\(46\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(87\) AS Int64\) \* Int64\(46\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + 87 AS INTEGER ) * 46 AS col0, 97 AS col0 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_87.slt b/data/sqlite/random/expr/slt_good_87.slt index 6381b51..45d40ef 100644 --- a/data/sqlite/random/expr/slt_good_87.slt +++ b/data/sqlite/random/expr/slt_good_87.slt @@ -5845,7 +5845,7 @@ SELECT ALL + MIN ( ALL + 95 ) # Datafusion - Expected - -2570 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-37\)\) \* \(\- max\(Int64\(\-67\)\)\) \+ Int64\(\-91\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-37\)\) \* \(\- max\(Int64\(\-67\)\)\) \+ Int64\(\-91\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL SUM ( - 37 ) * - MAX ( ALL - 67 ) + - 91 col2, - ( + CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) / - COUNT ( * ) AS col0 query I rowsort @@ -6072,7 +6072,7 @@ SELECT ALL + 59 * - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "coalesce\(Int64\(\-89\), CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "coalesce\(Int64\(\-89\), CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 42 AS col2, COALESCE ( - 89, ( CAST ( NULL AS INTEGER ) ) ) AS col2 query I rowsort @@ -8625,7 +8625,7 @@ SELECT 75 + - CAST ( + 41 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col1, + ( - - 75 ) AS col1 query I rowsort label-1665 @@ -11658,7 +11658,7 @@ SELECT - 88 AS col2, - COUNT ( * ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) 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\. SELECT - COUNT ( * ) col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -13080,7 +13080,7 @@ SELECT ALL SUM ( - 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 54 col1, CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 query I rowsort label-2533 @@ -15099,7 +15099,7 @@ SELECT DISTINCT 1 AS col2, - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int64\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 59 AS col1, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 query I rowsort @@ -21749,7 +21749,7 @@ SELECT ALL - 75 - - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) AS col2 # Datafusion - Types were automatically converted from: @@ -28894,7 +28894,7 @@ SELECT DISTINCT + + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col2, 34 AS col2 query I rowsort label-5594 @@ -30233,7 +30233,7 @@ SELECT DISTINCT - - 41 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, - 15 AS col2 query I rowsort label-5854 @@ -34767,7 +34767,7 @@ SELECT - - MAX ( DISTINCT + - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -36832,7 +36832,7 @@ SELECT DISTINCT - 90 * 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + 10 AS col0 query I rowsort @@ -36956,7 +36956,7 @@ SELECT DISTINCT ( - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 66 + ( CAST ( NULL AS INTEGER ) ) col2, COUNT ( * ) AS col2 query I rowsort label-7157 @@ -40160,7 +40160,7 @@ SELECT - + MIN ( 98 ) * - SUM ( ALL + + 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -41712,7 +41712,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8078 @@ -45448,7 +45448,7 @@ SELECT CAST ( 10 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) 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\. SELECT 32 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-8806 @@ -47933,7 +47933,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 169 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-13\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-13\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) * - - 13 * 13 AS col0 query I rowsort @@ -48841,7 +48841,7 @@ SELECT ALL - 75 / + COALESCE ( - ( COUNT ( * ) ), - 99 + - + 44 * + 72 * + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(77\) AS col0" at position 0 and "\(\- CASE Int64\(\-59\) WHEN Int64\(81\) THEN \(\- Int64\(\-47\)\) \+ coalesce\(Int64\(76\), Int64\(\-97\)\) WHEN Int64\(\-3\) THEN CAST\(Int64\(92\) AS Int32\) \+ Int64\(59\) WHEN Int64\(61\) THEN NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(77\) AS col0" at position 0 and "\(\- CASE Int64\(\-59\) WHEN Int64\(81\) THEN \(\- Int64\(\-47\)\) \+ coalesce\(Int64\(76\), Int64\(\-97\)\) WHEN Int64\(\-3\) THEN CAST\(Int64\(92\) AS Int64\) \+ Int64\(59\) WHEN Int64\(61\) THEN NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 94 * COUNT ( * ) / + 77 AS col0, - CASE + - 59 WHEN + 81 THEN - - 47 + COALESCE ( 76, - 97 ) WHEN - 3 THEN CAST ( 92 AS INTEGER ) + 59 WHEN + 61 THEN NULL END AS col0 query I rowsort @@ -49242,7 +49242,7 @@ SELECT ALL - 40 * 98 * + - 46 * - 88 * + + NULLIF ( - COUNT ( * ), + 71 - - CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( 51 ) AS col1, CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -50135,7 +50135,7 @@ SELECT + 44 AS col1, + 17 * + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "nullif\(avg\(\(\- CAST\(NULL AS Int32\)\)\), Int64\(90\)\) / Int64\(\-80\) \- Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "nullif\(avg\(\(\- CAST\(NULL AS Int64\)\)\), Int64\(90\)\) / Int64\(\-80\) \- Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 98 AS col2, + NULLIF ( AVG ( ALL - CAST ( NULL AS INTEGER ) ), + 90 ) / - 80 - 96 AS col2 query I rowsort @@ -50934,7 +50934,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ coalesce\(Int64\(90\), Int64\(1\) \+ \(\- sum\(Int64\(\-53\)\)\) \+ Int64\(76\)\) / Int64\(\-85\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ coalesce\(Int64\(90\), Int64\(1\) \+ \(\- sum\(Int64\(\-53\)\)\) \+ Int64\(76\)\) / Int64\(\-85\) 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\. SELECT 56 + COALESCE ( + 90, + 1 + - SUM ( + ( - 53 ) ) + 76 ) / + - 85 AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -51167,7 +51167,7 @@ SELECT + 36 + - 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* CASE Int64\(83\) WHEN Int64\(89\) \+ Int64\(\-7\) \+ \(\- Int64\(23\)\) \+ CAST\(Int64\(10\) AS Int32\) \+ Int64\(37\) \* Int64\(53\) \* Int64\(\-15\) THEN Int64\(3\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(77\) WHEN Int64\(\-16\) \+ \(\- Int64\(38\)\) THEN NULL END AS col0" at position 0 and "CASE \(\- \(\- avg\(DISTINCT Int64\(57\)\)\)\) WHEN Int64\(88\) \+ Int64\(14\) THEN NULL WHEN Int64\(\-36\) \* avg\(Int64\(\-86\)\) THEN Int64\(70\) \* sum\(DISTINCT Int64\(\-26\)\) \+ Int64\(\-72\) \* Int64\(32\) ELSE NULL END \* avg\(DISTINCT Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* CASE Int64\(83\) WHEN Int64\(89\) \+ Int64\(\-7\) \+ \(\- Int64\(23\)\) \+ CAST\(Int64\(10\) AS Int64\) \+ Int64\(37\) \* Int64\(53\) \* Int64\(\-15\) THEN Int64\(3\) \+ \(\- CAST\(NULL AS Int64\)\) \- Int64\(77\) WHEN Int64\(\-16\) \+ \(\- Int64\(38\)\) THEN NULL END AS col0" at position 0 and "CASE \(\- \(\- avg\(DISTINCT Int64\(57\)\)\)\) WHEN Int64\(88\) \+ Int64\(14\) THEN NULL WHEN Int64\(\-36\) \* avg\(Int64\(\-86\)\) THEN Int64\(70\) \* sum\(DISTINCT Int64\(\-26\)\) \+ Int64\(\-72\) \* Int64\(32\) ELSE NULL END \* avg\(DISTINCT Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 65 * + CASE + 83 WHEN + 89 + + - 7 + - + 23 + CAST ( + 10 AS INTEGER ) + 37 * 53 * - 15 THEN + + 3 + - CAST ( NULL AS INTEGER ) - 77 WHEN - 16 + - + 38 THEN NULL END AS col0, + CASE - - AVG ( DISTINCT 57 ) WHEN 88 + + 14 THEN NULL WHEN + ( - 36 ) * + AVG ( - 86 ) THEN + 70 * + SUM ( DISTINCT ( - 26 ) ) + - 72 * 32 ELSE NULL END * + AVG ( DISTINCT - 77 ) AS col0 query I rowsort label-9906 diff --git a/data/sqlite/random/expr/slt_good_88.slt b/data/sqlite/random/expr/slt_good_88.slt index d45a76d..cb54574 100644 --- a/data/sqlite/random/expr/slt_good_88.slt +++ b/data/sqlite/random/expr/slt_good_88.slt @@ -363,7 +363,7 @@ SELECT ALL - 30 * + 5 + + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* CASE Int64\(36\) WHEN Int64\(95\) THEN Int64\(65\) ELSE CAST\(NULL AS Int32\) END \+ Int64\(85\) \* Int64\(98\) AS col1" at position 0 and "Int64\(\-49\) / Int64\(2\) \+ Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* CASE Int64\(36\) WHEN Int64\(95\) THEN Int64\(65\) ELSE CAST\(NULL AS Int64\) END \+ Int64\(85\) \* Int64\(98\) AS col1" at position 0 and "Int64\(\-49\) / Int64\(2\) \+ Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 9 * CASE + + 36 WHEN 95 THEN + + 65 ELSE + CAST ( NULL AS INTEGER ) END + 85 * + 98 AS col1, - 49 / + 2 + - 48 AS col1 query I rowsort label-63 @@ -561,7 +561,7 @@ SELECT ( - 1 ) * + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- \(\- sum\(Int64\(76\)\)\)\), Int64\(42\) \+ Int64\(45\) \+ \(\- CAST\(Int64\(11\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- \(\- sum\(Int64\(76\)\)\)\), Int64\(42\) \+ Int64\(45\) \+ \(\- CAST\(Int64\(11\) AS Int64\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - NULLIF ( - - SUM ( + 76 ), 42 + + 45 + - + CAST ( + 11 AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 query I rowsort label-101 @@ -1476,7 +1476,7 @@ SELECT ALL - - 60 * + 24 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \- Int64\(\-5\) \- Int64\(30\) \+ Int64\(\-73\) AS col2" at position 0 and "max\(\(\- CAST\(NULL AS Int32\)\)\) \- Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \- Int64\(\-5\) \- Int64\(30\) \+ Int64\(\-73\) AS col2" at position 0 and "max\(\(\- CAST\(NULL AS Int64\)\)\) \- Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 52 - - 5 - 30 + + ( + - 73 ) col2, MAX ( - CAST ( NULL AS INTEGER ) ) - 27 AS col2 query I rowsort label-276 @@ -3169,7 +3169,7 @@ SELECT DISTINCT 93 * - COUNT ( * ) + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6417 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(93\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(93\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 69 * + 93 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -6460,7 +6460,7 @@ SELECT ALL + COUNT ( * ) * - 42 + + 94 - + 4 + 74 * - + 71 + - - 31 / COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -1549 # Datafusion - Expected - -4710 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(62\)\) \+ count\(\(\- Int64\(\-75\)\)\) AS col0" at position 0 and "Int64\(50\) \+ CAST\(Int64\(17\) AS Int32\) \* \(\- Int64\(10\)\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(62\)\) \+ count\(\(\- Int64\(\-75\)\)\) AS col0" at position 0 and "Int64\(50\) \+ CAST\(Int64\(17\) AS Int64\) \* \(\- Int64\(10\)\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 25 * - + 62 + + COUNT ( - - 75 ) AS col0, 50 + CAST ( + 17 AS INTEGER ) * - + 10 * 28 col0 query I rowsort label-1223 @@ -6661,7 +6661,7 @@ NULL # Datafusion - Expected - -72 # Datafusion - Expected - -32 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "CAST\(Int64\(\-32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "CAST\(Int64\(\-32\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 72 col2, CAST ( + - 32 AS INTEGER ) AS col2, + 18 col1 query I rowsort label-1261 @@ -7012,7 +7012,7 @@ NULL # Datafusion - Expected - 851620 # Datafusion - Expected - 34 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-79\) \* \(\- Int64\(77\)\) \* Int64\(\-28\) AS col1" at position 0 and "\(\- Int64\(6\)\) \+ \(\- CAST\(Int64\(\-76\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-79\) \* \(\- Int64\(77\)\) \* Int64\(\-28\) AS col1" at position 0 and "\(\- Int64\(6\)\) \+ \(\- CAST\(Int64\(\-76\) AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 5 * + COUNT ( * ) * - 79 * - + 77 * - 28 AS col1, 51 + - - 88 + + - 61 + ( - 44 ) AS col2, - + 6 + + - CAST ( - 76 AS INTEGER ) AS col1 query I rowsort @@ -7767,7 +7767,7 @@ SELECT ALL ( 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- min\(\(\- \(\- CAST\(Int64\(19\) AS Int32\)\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- min\(\(\- \(\- CAST\(Int64\(19\) AS Int64\)\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 4 AS col1, - MIN ( ALL - - CAST ( 19 AS INTEGER ) ) + + COUNT ( * ) + + COUNT ( * ) AS col1 query I rowsort label-1469 @@ -9583,7 +9583,7 @@ SELECT ALL - ( - - 26 ) * - + MIN ( + 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(17\)\) AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(95\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(17\)\) AS Int64\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(95\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - ( 17 ) AS INTEGER ) - - COUNT ( * ) * 95 AS col1, 10 AS col1 query I rowsort label-1812 @@ -10821,7 +10821,7 @@ SELECT ALL NULLIF ( ( NULLIF ( COUNT ( * ), + 0 ) ), - 58 / - - COUNT ( * ) ), + # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(\-85\) AS col0" at position 0 and "Int64\(\-59\) \* Int64\(59\) \+ Int64\(97\) / \(\- Int64\(\-43\)\) \+ CASE \(\- sum\(Int64\(91\)\)\) WHEN CAST\(NULL AS Int32\) \+ Int64\(83\) \+ Int64\(\-37\) THEN Int64\(\-51\) WHEN Int64\(7\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(\-85\) AS col0" at position 0 and "Int64\(\-59\) \* Int64\(59\) \+ Int64\(97\) / \(\- Int64\(\-43\)\) \+ CASE \(\- sum\(Int64\(91\)\)\) WHEN CAST\(NULL AS Int64\) \+ Int64\(83\) \+ Int64\(\-37\) THEN Int64\(\-51\) WHEN Int64\(7\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 17 - - 85 col0, ( - 59 ) * + + 59 + + 97 / - - 43 + + CASE - SUM ( 91 ) WHEN CAST ( NULL AS INTEGER ) + 83 + - 37 THEN - 51 WHEN + 7 THEN NULL ELSE NULL END AS col0 query I rowsort label-2044 @@ -15733,7 +15733,7 @@ SELECT ALL MAX ( DISTINCT 98 ) AS col1, 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4606 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int32\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int64\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) AS col0, CAST ( + 47 AS INTEGER ) * 98 AS col0 query I rowsort label-2983 @@ -17464,7 +17464,7 @@ SELECT ALL + MIN ( ALL + 8 ) * + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "CAST\(\(\- \(\- Int64\(\-36\)\)\) AS Int32\) \+ \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "CAST\(\(\- \(\- Int64\(\-36\)\)\) AS Int64\) \+ \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 3 AS col1, + CAST ( - ( - - 36 ) AS INTEGER ) + - + 65 AS col1 query I rowsort @@ -17924,7 +17924,7 @@ SELECT 72 * ( 75 ) / + + ( 96 ) + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-53\) AS Int32\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-53\) AS Int64\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 53 AS INTEGER ) AS col2, + 6 AS col2 query I rowsort label-3398 @@ -18828,7 +18828,7 @@ SELECT + 79 * + 72 # Datafusion - Expected - 56 # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(\-51\) \* CAST\(NULL AS Int32\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(\-51\) \* CAST\(NULL AS Int64\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 56 AS col0, - ( 17 ), + - 51 * + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-3570 @@ -20496,7 +20496,7 @@ SELECT ALL + - 93 * + + 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- Int64\(52\)\) \+ Int64\(70\) \+ Int64\(83\) AS col0" at position 0 and "Int64\(\-20\) \+ max\(Int64\(\-37\)\) \- Int64\(79\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(12\) / Int64\(\-28\) THEN Int64\(68\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- \(\- Int64\(52\)\) \+ Int64\(70\) \+ Int64\(83\) AS col0" at position 0 and "Int64\(\-20\) \+ max\(Int64\(\-37\)\) \- Int64\(79\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(12\) / Int64\(\-28\) THEN Int64\(68\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) - - + 52 + 70 + 83 AS col0, - 20 + + ( + + MAX ( + - 37 ) ) - + 79 + + CASE + COUNT ( * ) WHEN + 12 / - 28 THEN + 68 END AS col0 query I rowsort label-3881 @@ -20966,7 +20966,7 @@ SELECT 57 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -967 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(Int64\(47\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-81\) AS col2" at position 0 and "nullif\(Int64\(13\), Int64\(\-10\) \+ Int64\(\-79\) \+ CAST\(NULL AS Int32\) \- Int64\(69\) \* Int64\(37\) \* Int64\(99\) \+ \(\- coalesce\(Int64\(8\), Int64\(\-19\)\)\)\) \* Int64\(\-67\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(Int64\(47\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-81\) AS col2" at position 0 and "nullif\(Int64\(13\), Int64\(\-10\) \+ Int64\(\-79\) \+ CAST\(NULL AS Int64\) \- Int64\(69\) \* Int64\(37\) \* Int64\(99\) \+ \(\- coalesce\(Int64\(8\), Int64\(\-19\)\)\)\) \* Int64\(\-67\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 93 + MIN ( + 47 ) + COUNT ( * ) * - 81 AS col2, + NULLIF ( 13, - 10 + - 79 + + CAST ( NULL AS INTEGER ) - + + 69 * + 37 * 99 + - + COALESCE ( + 8, - 19 ) ) * - 67 + COUNT ( * ) / COUNT ( * ) * - 96 AS col2 query I rowsort @@ -22889,7 +22889,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(95\) / \(\- CASE Int64\(3\) WHEN Int64\(8\) \* Int64\(88\) \* Int64\(\-10\) THEN Int64\(60\) \+ \(\- CAST\(Int64\(57\) AS Int32\)\) ELSE NULL END\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(95\) / \(\- CASE Int64\(3\) WHEN Int64\(8\) \* Int64\(88\) \* Int64\(\-10\) THEN Int64\(60\) \+ \(\- CAST\(Int64\(57\) AS Int64\)\) ELSE NULL END\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 col0, + 95 / - + CASE + 3 WHEN + 8 * + 88 * - 10 THEN + 60 + - CAST ( 57 AS INTEGER ) ELSE NULL END + - 38 AS col0 query I rowsort label-4341 @@ -23587,7 +23587,7 @@ SELECT ALL 54 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(16\)\)\)\) AS col0" at position 0 and "CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(13\) \- Int64\(43\)\) WHEN nullif\(\(\- nullif\(Int64\(\-10\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\), Int64\(\-82\)\) THEN Int64\(41\) WHEN Int64\(7\) \* \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(16\)\)\)\) AS col0" at position 0 and "CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(13\) \- Int64\(43\)\) WHEN nullif\(\(\- nullif\(Int64\(\-10\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\), Int64\(\-82\)\) THEN Int64\(41\) WHEN Int64\(7\) \* \(\- CAST\(NULL AS Int64\)\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - SUM ( ALL - + 16 ) AS col0, CASE NULLIF ( - COUNT ( * ), 13 - + 43 ) WHEN NULLIF ( - + NULLIF ( - 10, - COUNT ( * ) ), - 82 ) THEN 41 WHEN 7 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END col0 query II rowsort label-4474 @@ -23646,7 +23646,7 @@ SELECT ALL 66 + - + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5040 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-60\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(\-18\) \* Int64\(11\) \* Int64\(\-73\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-60\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(\-18\) \* Int64\(11\) \* Int64\(\-73\) / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 84 * - 60 AS col0, 3 + + - 18 * 11 * - 73 / + CAST ( NULL AS INTEGER ) col0 query I rowsort @@ -23765,7 +23765,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 109 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-47\), Int64\(\-37\)\) \+ \(\- Int64\(\-96\)\) \- Int64\(\-37\) / Int64\(30\) \+ Int64\(59\) AS col1" at position 0 and "max\(CAST\(Int64\(17\) AS Int32\)\) / Int64\(28\) \+ coalesce\(CASE CAST\(Int64\(\-92\) AS Float64\) WHEN Int64\(81\) THEN Int64\(\-77\) ELSE count\(Int64\(1\)\) AS count\(\*\) END, Int64\(25\), Int64\(84\) \+ Int64\(39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-47\), Int64\(\-37\)\) \+ \(\- Int64\(\-96\)\) \- Int64\(\-37\) / Int64\(30\) \+ Int64\(59\) AS col1" at position 0 and "max\(CAST\(Int64\(17\) AS Int64\)\) / Int64\(28\) \+ coalesce\(CASE CAST\(Int64\(\-92\) AS Float64\) WHEN Int64\(81\) THEN Int64\(\-77\) ELSE count\(Int64\(1\)\) AS count\(\*\) END, Int64\(25\), Int64\(84\) \+ Int64\(39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + ( + NULLIF ( - 47, - 37 ) ) + - - 96 - - 37 / 30 + 59 AS col1, MAX ( + CAST ( + 17 AS INTEGER ) ) / + + 28 + + COALESCE ( CASE CAST ( - 92 AS FLOAT8 ) WHEN 81 THEN - 77 ELSE ( COUNT ( * ) ) END, 25, + 84 + 39 ) AS col1 query I rowsort @@ -24334,7 +24334,7 @@ SELECT DISTINCT 5 + - 82 / - + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "CAST\(Int64\(88\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "CAST\(Int64\(88\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 col2, CAST ( 88 AS INTEGER ) AS col2 # Datafusion - Types were automatically converted from: @@ -25319,7 +25319,7 @@ SELECT - 76 / COUNT ( * ) * + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-47\)\) AS Int32\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-47\)\) AS Int64\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - - 47 AS INTEGER ) col0, + 33 AS col0 query I rowsort @@ -25521,7 +25521,7 @@ SELECT + 34 * + 8 # Datafusion - Expected - 20 # Datafusion - Expected - -1505 # Datafusion - Expected - -2176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(66\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(48\) \+ \(\- Int64\(30\)\) \* nullif\(Int64\(54\), Int64\(50\) \- \(\- count\(Int64\(\-6\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(66\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) \+ Int64\(48\) \+ \(\- Int64\(30\)\) \* nullif\(Int64\(54\), Int64\(50\) \- \(\- count\(Int64\(\-6\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 20 col0, 66 + - CAST ( - COUNT ( * ) AS INTEGER ) + 48 + - + 30 * + NULLIF ( 54, 50 - - COUNT ( + - 6 ) ) AS col0, 34 * - 64 query I rowsort @@ -25973,7 +25973,7 @@ SELECT 34 + - + 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, 18 AS col2 query I rowsort @@ -27454,7 +27454,7 @@ SELECT 26 * - 97 - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 965 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-59\) / Int64\(\-15\) \- sum\(Int64\(37\)\) \+ Int64\(63\)\) \* CAST\(Int64\(20\) AS Int32\) \+ Int64\(\-44\) \- Int64\(52\) \* Int64\(\-7\) \+ Int64\(65\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int64\)\)\), Int64\(\-59\) / Int64\(\-15\) \- sum\(Int64\(37\)\) \+ Int64\(63\)\) \* CAST\(Int64\(20\) AS Int64\) \+ Int64\(\-44\) \- Int64\(52\) \* Int64\(\-7\) \+ Int64\(65\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( - - ( + CAST ( NULL AS INTEGER ) ), - 59 / + - 15 - + SUM ( + 37 ) + + 63 ) * + CAST ( 20 AS INTEGER ) + + - 44 - + 52 * - 7 + + 65 AS col2, - COUNT ( * ) AS col2 query I rowsort label-5209 @@ -28167,7 +28167,7 @@ SELECT - 63 + - ( + 42 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) \+ \(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) \+ \(\- max\(\(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL ( - ( 9 ) ) + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, 19 AS col2 query I rowsort @@ -29259,7 +29259,7 @@ SELECT ALL + + 25 - - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-70\) \* \(\- nullif\(Int64\(\-21\), Int64\(54\) \* Int64\(48\) \+ Int64\(72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-70\) \* \(\- nullif\(Int64\(\-21\), Int64\(54\) \* Int64\(48\) \+ Int64\(72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 20 AS col1, COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 70 * + - NULLIF ( + - 21, 54 * 48 + 72 ) AS col1 query II rowsort label-5552 @@ -32681,7 +32681,7 @@ SELECT MIN ( + 44 ) + + + 85 + + NULLIF ( + NULLIF ( + 37, - 90 ), - AVG ( DISTI # Datafusion - Datafusion expected results: # Datafusion - Expected - -191 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-2\)\) AS Int32\) \* Int64\(\-96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-2\)\) AS Int64\) \* Int64\(\-96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + ( - ( + - 2 ) ) AS INTEGER ) * - 96 + COUNT ( * ) AS col0, 92 AS col0 query I rowsort label-6205 @@ -32877,7 +32877,7 @@ SELECT ALL + 61 / NULLIF ( - 29, 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 49 AS col0, CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 query I rowsort @@ -37826,7 +37826,7 @@ SELECT ALL + 94 AS col0, + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CAST\(NULL AS Int32\) / \(\- Int64\(\-33\)\) \* \(\- Int64\(\-32\)\) \+ Int64\(27\) \* \(\- Int64\(88\)\) THEN nullif\(Int64\(85\), Int64\(\-49\)\) \+ \(\- min\(Int64\(61\)\)\) WHEN Int64\(87\) THEN Int64\(68\) ELSE NULL END AS col2" at position 0 and "Int64\(14\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CAST\(NULL AS Int64\) / \(\- Int64\(\-33\)\) \* \(\- Int64\(\-32\)\) \+ Int64\(27\) \* \(\- Int64\(88\)\) THEN nullif\(Int64\(85\), Int64\(\-49\)\) \+ \(\- min\(Int64\(61\)\)\) WHEN Int64\(87\) THEN Int64\(68\) ELSE NULL END AS col2" at position 0 and "Int64\(14\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE + - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) / - - 33 * - - 32 + + 27 * - + 88 THEN NULLIF ( 85, - 49 ) + - MIN ( ALL 61 ) WHEN 87 THEN + + 68 ELSE NULL END AS col2, 14 + - 95 AS col2 query I rowsort @@ -37863,7 +37863,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(28\) \+ Int64\(46\) \+ Int64\(38\) \+ Int64\(76\) / Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(28\) \+ Int64\(46\) \+ Int64\(38\) \+ Int64\(76\) / Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 28 + + + 46 + 38 + + ( + + 76 ) / 1 col0 query I rowsort label-7187 @@ -39606,7 +39606,7 @@ SELECT + COUNT ( - ( + - ( - + 60 ) ) ) + - COALESCE ( 11, 82, + 19 ) * - 1 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 2529 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) \* \(\- Int64\(\-50\)\) \+ Int64\(\-21\) AS col1" at position 0 and "nullif\(Int64\(\-53\), CAST\(NULL AS Int32\) \+ \(\- Int64\(\-11\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) \* \(\- Int64\(\-50\)\) \+ Int64\(\-21\) AS col1" at position 0 and "nullif\(Int64\(\-53\), CAST\(NULL AS Int64\) \+ \(\- Int64\(\-11\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 51 * - - 50 + - 21 AS col1, NULLIF ( - 53, CAST ( NULL AS INTEGER ) + - ( - 11 ) ) AS col1 query I rowsort @@ -41005,7 +41005,7 @@ SELECT - 85 + - + 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86824 # Datafusion - Expected - -8554 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(\-41\) \* Int64\(46\) \+ Int64\(67\) \+ Int64\(47\) \* \(\- CAST\(Int64\(43\) AS Int32\)\) AS col0" at position 0 and "Int64\(91\) \* Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(\-41\) \* Int64\(46\) \+ Int64\(67\) \+ Int64\(47\) \* \(\- CAST\(Int64\(43\) AS Int64\)\) AS col0" at position 0 and "Int64\(91\) \* Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 45 * - 41 * 46 + + + 67 + + 47 * - CAST ( + 43 AS INTEGER ) AS col0, 91 * - 94 AS col0 query I rowsort @@ -41321,7 +41321,7 @@ SELECT - 58 * 94 + + - 18 * + 57 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66666 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-93\) \* Int64\(11\) \+ Int64\(81\) AS col1" at position 0 and "avg\(DISTINCT CAST\(NULL AS Int32\)\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-93\) \* Int64\(11\) \+ Int64\(81\) AS col1" at position 0 and "avg\(DISTINCT CAST\(NULL AS Int64\)\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 90 + - 65 * + COUNT ( * ) * - 93 * 11 + + 81 AS col1, + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 0 AS col1 query I rowsort @@ -41591,7 +41591,7 @@ SELECT - 31 + + 54, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(61\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(14\) \+ \(\- Int64\(\-81\)\) AS col1" at position 0 and "CAST\(Int64\(85\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(61\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(14\) \+ \(\- Int64\(\-81\)\) AS col1" at position 0 and "CAST\(Int64\(85\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 98 * + 61 / - - CAST ( NULL AS INTEGER ) + 14 + - - 81 AS col1, CAST ( + 85 AS INTEGER ) col1 query I rowsort label-7893 @@ -42528,7 +42528,7 @@ SELECT 24 + - 20 # Datafusion - Expected - 23 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 23 AS col1, 92 + + 55 / ( - CAST ( - 87 AS INTEGER ) ) col0, - CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -44568,7 +44568,7 @@ SELECT + 52 + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 118 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) \+ \(\- CAST\(Int64\(76\) AS Int32\)\) \+ Int64\(78\) \- Int64\(\-94\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) \+ \(\- CAST\(Int64\(76\) AS Int64\)\) \+ Int64\(78\) \- Int64\(\-94\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 22 + - CAST ( + 76 AS INTEGER ) + 78 - - 94 AS col0, + 90 AS col0 query I rowsort @@ -46093,7 +46093,7 @@ SELECT ALL + COUNT ( * ) / - 61 * - CAST ( + 59 AS INTEGER ) * + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(66\) AS Int32\)\) \+ Int64\(75\) AS col1" at position 0 and "coalesce\(Int64\(55\), Int64\(33\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(66\) AS Int64\)\) \+ Int64\(75\) AS col1" at position 0 and "coalesce\(Int64\(55\), Int64\(33\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( + 66 AS INTEGER ) + + 75 AS col1, COALESCE ( + 55, + 33 ) + + 77 AS col1 query I rowsort label-8743 @@ -46763,7 +46763,7 @@ SELECT DISTINCT + 0 + - COALESCE ( 35, - 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 1274 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-71\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(13\) \* Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-71\) AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(13\) \* Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - 71 AS INTEGER ) + COUNT ( * ) AS col1, + 13 * + 98 AS col1 query I rowsort label-8870 @@ -46795,7 +46795,7 @@ SELECT + 51 AS col1, 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(13\), Int64\(11\) \* Int64\(83\)\) \+ Int64\(16\) \- Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(13\), Int64\(11\) \* Int64\(83\)\) \+ Int64\(16\) \- Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + 13, 11 * 83 ) + + 16 - + 20 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -48021,7 +48021,7 @@ SELECT ALL 88 + ( - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) \- Int64\(\-15\) / Int64\(59\) AS col2" at position 0 and "min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) \- Int64\(\-15\) / Int64\(59\) AS col2" at position 0 and "min\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 45 - - 15 / + 59 AS col2, MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-9116 @@ -48280,7 +48280,7 @@ SELECT DISTINCT 1 - + - 26 * + + COUNT ( * ) - + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 55154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(50\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(92\) \+ Int64\(\-42\) \* Int64\(69\) \* nullif\(Int64\(\-19\), Int64\(61\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(50\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(92\) \+ Int64\(\-42\) \* Int64\(69\) \* nullif\(Int64\(\-19\), Int64\(61\) \* CAST\(CAST\(NULL AS Int64\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 96 / 50 + - 39 AS col2, 92 + - 42 * + + 69 * + + NULLIF ( - 19, 61 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 query I rowsort @@ -49573,7 +49573,7 @@ SELECT COUNT ( * ) + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* coalesce\(Int64\(15\), Int64\(\-57\)\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-38\) \+ max\(Int64\(53\)\) AS col0" at position 0 and "Int64\(11\) / Int64\(74\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* coalesce\(Int64\(15\), Int64\(\-57\)\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\) \* Int64\(\-38\) \+ max\(Int64\(53\)\) AS col0" at position 0 and "Int64\(11\) / Int64\(74\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 80 * ( COALESCE ( + 15, - 57 ) ) * - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 38 + MAX ( 53 ) AS col0, 11 / 74 + + + 43 AS col0 query I rowsort @@ -52091,7 +52091,7 @@ SELECT - 47 - + 89 * + CAST ( 29 AS INTEGER ) - NULLIF ( + 89, 12 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(CASE Int64\(76\) WHEN Int64\(\-75\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-79\) \* Int64\(45\) / coalesce\(Int64\(19\), Int64\(46\) / Int64\(\-62\) \+ Int64\(62\) \* Int64\(35\) \+ Int64\(16\)\) \* Int64\(54\) \* Int64\(67\) \- Int64\(36\) / Int64\(\-18\) THEN Int64\(17\) END\) AS col2" at position 0 and "Int64\(\-62\) \* Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(CASE Int64\(76\) WHEN Int64\(\-75\) / \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-79\) \* Int64\(45\) / coalesce\(Int64\(19\), Int64\(46\) / Int64\(\-62\) \+ Int64\(62\) \* Int64\(35\) \+ Int64\(16\)\) \* Int64\(54\) \* Int64\(67\) \- Int64\(36\) / Int64\(\-18\) THEN Int64\(17\) END\) AS col2" at position 0 and "Int64\(\-62\) \* Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + AVG ( ALL + CASE + + 76 WHEN - 75 / - CAST ( NULL AS INTEGER ) + - 79 * 45 / COALESCE ( 19, + 46 / + - 62 + 62 * 35 + + + 16 ) * 54 * + 67 - + 36 / - 18 THEN + 17 END ) AS col2, - 62 * - 85 AS col2 query I rowsort diff --git a/data/sqlite/random/expr/slt_good_89.slt b/data/sqlite/random/expr/slt_good_89.slt index 3804ea4..9d904e0 100644 --- a/data/sqlite/random/expr/slt_good_89.slt +++ b/data/sqlite/random/expr/slt_good_89.slt @@ -2406,7 +2406,7 @@ SELECT ALL - 98 - + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 37 col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -2554,7 +2554,7 @@ SELECT NULLIF ( - - 79, - - ( - 73 ) * - 22 * - ( + 53 ) + + COUNT ( * ) ) * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2926 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- Int64\(\-77\)\) AS col2" at position 0 and "Int64\(62\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- Int64\(\-77\)\) AS col2" at position 0 and "Int64\(62\) / \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 38 * - - 77 AS col2, + 62 / + - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -6227,7 +6227,7 @@ SELECT + 96 AS col2, - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7543 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \- \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(13\) AS Int32\) \* Int64\(41\) \* Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \- \(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(13\) AS Int64\) \* Int64\(41\) \* Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 - - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, CAST ( + 13 AS INTEGER ) * 41 * + + 14 + COUNT ( * ) + 80 AS col0 query I rowsort label-1184 @@ -9540,7 +9540,7 @@ SELECT DISTINCT + 34 + + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -8253504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-4\) \* Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(63\)\) \* CASE Int64\(67\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN CASE \(\- min\(Int64\(\-7\)\)\) WHEN \(\- \(\- CASE \(\- Int64\(85\)\) WHEN \(\- Int64\(68\)\) THEN Int64\(15\) END\)\) THEN max\(Int64\(\-56\)\) / \(\- Int64\(94\)\) WHEN Int64\(8\) THEN NULL ELSE Int64\(74\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \+ \(\- Int64\(\-49\)\) \+ Int64\(50\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(86\) \* CASE Int64\(\-11\) WHEN Int64\(49\) THEN Int64\(\-95\) \+ Int64\(64\) \* Int64\(67\) END \+ Int64\(\-21\) END THEN NULL ELSE max\(Int64\(46\)\) \* Int64\(89\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-4\) \* Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(63\)\) \* CASE Int64\(67\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN CASE \(\- min\(Int64\(\-7\)\)\) WHEN \(\- \(\- CASE \(\- Int64\(85\)\) WHEN \(\- Int64\(68\)\) THEN Int64\(15\) END\)\) THEN max\(Int64\(\-56\)\) / \(\- Int64\(94\)\) WHEN Int64\(8\) THEN NULL ELSE Int64\(74\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \+ \(\- Int64\(\-49\)\) \+ Int64\(50\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(\(\- CAST\(NULL AS Int64\)\)\)\) \* Int64\(86\) \* CASE Int64\(\-11\) WHEN Int64\(49\) THEN Int64\(\-95\) \+ Int64\(64\) \* Int64\(67\) END \+ Int64\(\-21\) END THEN NULL ELSE max\(Int64\(46\)\) \* Int64\(89\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 20 AS col1, - 4 * + 8 * - + COUNT ( * ) * - + 63 * + + CASE 67 WHEN - - COUNT ( * ) THEN NULL WHEN CASE - MIN ( ALL - 7 ) WHEN - ( - + CASE - + 85 WHEN - + 68 THEN + 15 END ) THEN + MAX ( - 56 ) / - + 94 WHEN + 8 THEN NULL ELSE + 74 * - COUNT ( * ) + + - 54 + - - 49 + 50 - COUNT ( * ) + - COUNT ( - CAST ( NULL AS INTEGER ) ) * + 86 * CASE - 11 WHEN + 49 THEN - 95 + 64 * + 67 END + + - 21 END THEN NULL ELSE MAX ( + + 46 ) * 89 END col1 query I rowsort label-1814 @@ -10091,7 +10091,7 @@ SELECT ALL + 22 - - 87 # Datafusion - Expected - 74 # Datafusion - Expected - NULL # Datafusion - Expected - -268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "sum\(\(\- Int64\(\-57\)\)\) \+ Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(50\) WHEN Int64\(\-8\) \* Int64\(\-78\) \+ Int64\(85\) \* \(\- CASE Int64\(99\) WHEN Int64\(\-90\) THEN Int64\(5\) END\) THEN CAST\(NULL AS Int32\) ELSE NULL END\) \- Int64\(61\) \* Int64\(\-79\) \* Int64\(30\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "sum\(\(\- Int64\(\-57\)\)\) \+ Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(50\) WHEN Int64\(\-8\) \* Int64\(\-78\) \+ Int64\(85\) \* \(\- CASE Int64\(99\) WHEN Int64\(\-90\) THEN Int64\(5\) END\) THEN CAST\(NULL AS Int64\) ELSE NULL END\) \- Int64\(61\) \* Int64\(\-79\) \* Int64\(30\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 AS col1, SUM ( ALL - - 57 ) + + + 89 * COUNT ( * ) + - CASE + 50 WHEN - 8 * - 78 + 85 * - CASE + 99 WHEN - 90 THEN 5 END THEN + CAST ( NULL AS INTEGER ) ELSE NULL END - + + 61 * - 79 * 30 * 51 AS col1, - + 4 * NULLIF ( 77, - 13 ) + + 40 query I rowsort @@ -14361,7 +14361,7 @@ SELECT ALL - 39 * COUNT ( * ) + + 98 - - + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) / Int64\(\-35\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) / Int64\(\-35\) \- CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 / + - 35 - + CAST ( NULL AS INTEGER ) AS col2, 37 AS col2 query I rowsort label-2736 @@ -15747,7 +15747,7 @@ SELECT 79 * + + NULLIF ( - 99, - + 14 * + CAST ( NULL AS INTEGER ) ) * + 99 * 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) \* \(\- Int64\(\-18\)\) / Int64\(18\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-1\)\) \+ \(\- Int64\(30\)\) \- Int64\(27\) \+ Int64\(76\) \* Int64\(43\) / Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) \* \(\- Int64\(\-18\)\) / Int64\(18\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(\-1\)\) \+ \(\- Int64\(30\)\) \- Int64\(27\) \+ Int64\(76\) \* Int64\(43\) / Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - 70 * - - 18 / 18 AS col2, CAST ( NULL AS INTEGER ) + - - 1 + - + 30 - 27 + + + 76 * + + 43 / 11 AS col2 query I rowsort @@ -22968,7 +22968,7 @@ SELECT ALL + ( + CASE - 87 WHEN - COALESCE ( + + COUNT ( DISTINCT 1 ), - 26 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(64\)\) AS Int32\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(64\)\) AS Int64\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( - + 64 AS INTEGER ) AS col1, + 2 AS col1 query I rowsort @@ -23661,7 +23661,7 @@ SELECT + + 48 AS col1, 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(29\) \+ \(\- CAST\(Int64\(88\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(29\) \+ \(\- CAST\(Int64\(88\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 AS col0, 81 + + 29 + - CAST ( 88 AS INTEGER ) col0 query I rowsort @@ -25450,7 +25450,7 @@ SELECT - 22 AS col2, - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* CASE Int64\(28\) WHEN Int64\(66\) THEN NULL WHEN \(\- CAST\(CASE \(\- sum\(DISTINCT Int64\(5\)\)\) WHEN Int64\(10\) \* Int64\(90\) \+ Int64\(39\) \* Int64\(58\) \+ Int64\(\-18\) THEN NULL WHEN CAST\(NULL AS Float64\) THEN \(\- count\(Int64\(20\)\)\) ELSE Int64\(3\) \* \(\- max\(Int64\(\-93\)\)\) \+ Int64\(95\) END AS Int32\)\) \* Int64\(\-51\) \- Int64\(\-12\) THEN \(\- Int64\(95\)\) \+ Int64\(59\) \+ \(\- Int64\(42\)\) ELSE NULL END AS col0" at position 0 and "Int64\(88\) \+ min\(Int64\(20\)\) \* Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* CASE Int64\(28\) WHEN Int64\(66\) THEN NULL WHEN \(\- CAST\(CASE \(\- sum\(DISTINCT Int64\(5\)\)\) WHEN Int64\(10\) \* Int64\(90\) \+ Int64\(39\) \* Int64\(58\) \+ Int64\(\-18\) THEN NULL WHEN CAST\(NULL AS Float64\) THEN \(\- count\(Int64\(20\)\)\) ELSE Int64\(3\) \* \(\- max\(Int64\(\-93\)\)\) \+ Int64\(95\) END AS Int64\)\) \* Int64\(\-51\) \- Int64\(\-12\) THEN \(\- Int64\(95\)\) \+ Int64\(59\) \+ \(\- Int64\(42\)\) ELSE NULL END AS col0" at position 0 and "Int64\(88\) \+ min\(Int64\(20\)\) \* Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 82 * + CASE 28 WHEN + 66 THEN NULL WHEN - CAST ( + + CASE ( + - SUM ( DISTINCT 5 ) ) WHEN 10 * + 90 + 39 * + 58 + - 18 THEN NULL WHEN + CAST ( NULL AS FLOAT8 ) THEN - COUNT ( ALL 20 ) ELSE + 3 * - MAX ( - 93 ) + + 95 END AS INTEGER ) * - 51 - - 12 THEN - + 95 + 59 + - + 42 ELSE NULL END AS col0, 88 + + ( MIN ( 20 ) ) * - 32 AS col0 query I rowsort label-4849 @@ -26199,7 +26199,7 @@ SELECT 53 + MIN ( 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) 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\. SELECT DISTINCT 10 col0, - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -26337,7 +26337,7 @@ SELECT DISTINCT - COUNT ( + + 76 ) * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( 55 ) AS col2, - ( - CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-5018 @@ -28227,7 +28227,7 @@ SELECT + - 23 * + 0 * - 89 AS col0 # Datafusion - Expected - 19 # Datafusion - Expected - 37 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(19\) AS Int32\) AS col2" at position 0 and "Int64\(\-53\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(19\) AS Int64\) AS col2" at position 0 and "Int64\(\-53\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + ( CAST ( + 19 AS INTEGER ) ) AS col2, - 53 + + 90 AS col2, - + ( + - 27 ) + ( COALESCE ( 25, - + COUNT ( ALL + 82 ), + 23 / COUNT ( * ) + + + ( + 62 ) * - MIN ( DISTINCT 70 ) / + 88 ) ) + + 97 AS col0 query I rowsort label-5377 @@ -32724,7 +32724,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / \(\- \(\- Int64\(76\)\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / \(\- \(\- Int64\(76\)\)\) 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\. SELECT + 25 / - ( - + 76 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-6239 @@ -33043,7 +33043,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) \- CAST\(NULL AS Int32\) \* Int64\(\-55\) \* Int64\(39\) AS col1" at position 0 and "Int64\(28\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) \- CAST\(NULL AS Int64\) \* Int64\(\-55\) \* Int64\(39\) AS col1" at position 0 and "Int64\(28\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) + 6 - + CAST ( NULL AS INTEGER ) * - 55 * 39 AS col1, 28 * + 80 AS col1 query I rowsort label-6300 @@ -33084,7 +33084,7 @@ SELECT ALL + 59 / + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(\-1\)\) WHEN Int64\(49\) THEN Int64\(19\) END AS Int32\) \+ Int64\(29\) AS col1" at position 0 and "coalesce\(Int64\(31\), \(\- CASE Int64\(42\) WHEN Int64\(26\) THEN Int64\(0\) WHEN Int64\(\-46\) \* \(\- CAST\(Int64\(\-61\) AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-55\) \+ Int64\(\-86\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(\-1\)\) WHEN Int64\(49\) THEN Int64\(19\) END AS Int64\) \+ Int64\(29\) AS col1" at position 0 and "coalesce\(Int64\(31\), \(\- CASE Int64\(42\) WHEN Int64\(26\) THEN Int64\(0\) WHEN Int64\(\-46\) \* \(\- CAST\(Int64\(\-61\) AS Int64\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-55\) \+ Int64\(\-86\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( CASE - - 1 WHEN + 49 THEN + 19 END AS INTEGER ) + 29 col1, + COALESCE ( 31, - CASE 42 WHEN 26 THEN 0 WHEN + - 46 * - CAST ( - 61 AS INTEGER ) THEN + ( - COUNT ( * ) ) * - 55 + - 86 ELSE NULL END ) AS col1 query I rowsort @@ -35480,7 +35480,7 @@ SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 389068 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-18\), Int64\(51\)\) \* Int64\(\-3\) \+ CAST\(Int64\(89\) AS Int32\) \+ count\(DISTINCT Int64\(81\)\) \* Int64\(75\) \* Int64\(85\) \* Int64\(61\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(50\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-18\), Int64\(51\)\) \* Int64\(\-3\) \+ CAST\(Int64\(89\) AS Int64\) \+ count\(DISTINCT Int64\(81\)\) \* Int64\(75\) \* Int64\(85\) \* Int64\(61\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(50\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + - 18, + + 51 ) * - 3 + + ( CAST ( + 89 AS INTEGER ) ) + + COUNT ( DISTINCT + ( 81 ) ) * + 75 * 85 * + 61 * + COUNT ( * ) + + 50 AS col2, COUNT ( * ) AS col2 query I rowsort @@ -36877,7 +36877,7 @@ SELECT DISTINCT + 59 * + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \- \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- \(\- Int64\(14\)\)\) \+ Int64\(32\) \+ Int64\(\-88\) WHEN Int64\(\-44\) \* Int64\(56\) \* Int64\(80\) / Int64\(36\) THEN NULL END\) \+ Int64\(\-80\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \- \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- \(\- Int64\(14\)\)\) \+ Int64\(32\) \+ Int64\(\-88\) WHEN Int64\(\-44\) \* Int64\(56\) \* Int64\(80\) / Int64\(36\) THEN NULL END\) \+ Int64\(\-80\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - 81 - - CASE + COUNT ( * ) WHEN 62 * - + COUNT ( * ) THEN - ( - + 14 ) + 32 + + - 88 WHEN - 44 * ( 56 ) * + 80 / 36 THEN NULL END + - 80 + + CAST ( COUNT ( * ) AS INTEGER ) AS col0, + 85 AS col0 # Datafusion - Types were automatically converted from: @@ -36953,7 +36953,7 @@ SELECT - 90 col0, 77 + - 20 AS col2 # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\) \* Int64\(\-72\) \+ Int64\(1\)\) \+ Int64\(66\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int64\) \* Int64\(\-72\) \+ Int64\(1\)\) \+ Int64\(66\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 72 + + 1 ) + 66 AS col0, + 2 / MAX ( 24 ) AS col2, - 18 col0 query I rowsort label-7045 @@ -37962,7 +37962,7 @@ SELECT - - 75 * 76 + - 20 + - 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) 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\. SELECT - + 27 AS col0, + CAST ( NULL AS INTEGER ) col0 # Datafusion - Types were automatically converted from: @@ -38611,7 +38611,7 @@ SELECT DISTINCT ( + 82 ) AS col0, + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(0\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(0\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 73 + + 0 + CAST ( NULL AS INTEGER ) AS col2, - 63 AS col2 query I rowsort @@ -39705,7 +39705,7 @@ SELECT ALL - 22 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 612108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-87\) \* min\(Int64\(\-47\)\) THEN NULL ELSE \(\- \(\- Int64\(60\)\)\) \+ \(\- Int64\(\-73\)\) \* CAST\(Int64\(\-99\) AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-87\) \* min\(Int64\(\-47\)\) THEN NULL ELSE \(\- \(\- Int64\(60\)\)\) \+ \(\- Int64\(\-73\)\) \* CAST\(Int64\(\-99\) AS Int64\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, - CASE + - COUNT ( * ) WHEN ( - 87 ) * MIN ( ALL - 47 ) THEN NULL ELSE - ( - + 60 ) + - ( + - 73 ) * + CAST ( + - 99 AS INTEGER ) / - COUNT ( * ) END * - 84 AS col0 query I rowsort @@ -42054,7 +42054,7 @@ SELECT - 52 + 66 - + 54 / - 42 + + - ( 73 ) + 77 # Datafusion - Expected - -1131 # Datafusion - Expected - NULL # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ CAST\(NULL AS Int32\) \+ Int64\(74\) \* CAST\(NULL AS Int32\) AS col0" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(42\) \+ Int64\(\-44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ CAST\(NULL AS Int64\) \+ Int64\(74\) \* CAST\(NULL AS Int64\) AS col0" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(42\) \+ Int64\(\-44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 85 * - + 13 + - 26, 2 + CAST ( NULL AS INTEGER ) + ( 74 ) * CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) / + 42 + - 44 AS col0 query I rowsort @@ -42223,7 +42223,7 @@ SELECT ALL - 89 * - + NULLIF ( - ( COUNT ( * ) ), + + 56 / - - COALESCE ( + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CASE Int64\(\-36\) WHEN Int64\(64\) \+ Int64\(66\) \+ \(\- \(\- coalesce\(Int64\(80\), Int64\(\-64\) / Int64\(22\) \+ CAST\(Int64\(91\) AS Int32\)\)\)\) \- Int64\(\-91\) \* Int64\(\-72\) THEN Int64\(32\) \* CASE Int64\(98\) WHEN Int64\(34\) THEN Int64\(\-55\) END WHEN Int64\(82\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-94\) \+ Int64\(7\) END\) \- Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CASE Int64\(\-36\) WHEN Int64\(64\) \+ Int64\(66\) \+ \(\- \(\- coalesce\(Int64\(80\), Int64\(\-64\) / Int64\(22\) \+ CAST\(Int64\(91\) AS Int64\)\)\)\) \- Int64\(\-91\) \* Int64\(\-72\) THEN Int64\(32\) \* CASE Int64\(98\) WHEN Int64\(34\) THEN Int64\(\-55\) END WHEN Int64\(82\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-94\) \+ Int64\(7\) END\) \- Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + COUNT ( * ) AS col1, - CASE + - 36 WHEN + 64 + + 66 + - - COALESCE ( + 80, - 64 / + + 22 + CAST ( 91 AS INTEGER ) ) - - 91 * + - 72 THEN + 32 * CASE + 98 WHEN + + 34 THEN - 55 END WHEN 82 THEN NULL ELSE - COUNT ( * ) * - 94 + + 7 END - ( 79 ) AS col1 # Datafusion - Types were automatically converted from: @@ -47285,7 +47285,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 2849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) / Int64\(\-59\) \+ Int64\(70\) AS col0" at position 0 and "CASE Int64\(\-61\) WHEN Int64\(\-79\) THEN NULL WHEN CASE Int64\(18\) WHEN Int64\(37\) \+ Int64\(\-6\) / Int64\(89\) THEN Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(82\)\) \* CAST\(Int64\(\-43\) AS Int32\) ELSE Int64\(77\) END \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) / Int64\(\-59\) \+ Int64\(70\) AS col0" at position 0 and "CASE Int64\(\-61\) WHEN Int64\(\-79\) THEN NULL WHEN CASE Int64\(18\) WHEN Int64\(37\) \+ Int64\(\-6\) / Int64\(89\) THEN Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(82\)\) \* CAST\(Int64\(\-43\) AS Int64\) ELSE Int64\(77\) END \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 13 / - 59 + 70 col0, CASE - 61 WHEN - 79 THEN NULL WHEN CASE 18 WHEN 37 + - 6 / 89 THEN 99 + + COUNT ( * ) END + COUNT ( * ) THEN - ( + 82 ) * + CAST ( - 43 AS INTEGER ) ELSE 77 END * + 37 AS col0 # Datafusion - Types were automatically converted from: @@ -48477,7 +48477,7 @@ SELECT 14 / + ( - 44 ) * + CASE 2 WHEN + COALESCE ( COUNT ( * ), 19 * + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(44\) AS col0" at position 0 and "Int64\(3\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(44\) AS col0" at position 0 and "Int64\(3\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) * 44 AS col0, 3 + COUNT ( * ) + + 96 AS col0 query I rowsort label-9241 @@ -50513,7 +50513,7 @@ SELECT ALL + ( - + ( 46 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2010 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-33\) \- \(\- Int64\(1\)\) \* \(\- Int64\(\-69\)\) AS col0" at position 0 and "Int64\(\-77\) / Int64\(29\) \+ \(\- CAST\(Int64\(\-88\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-33\) \- \(\- Int64\(1\)\) \* \(\- Int64\(\-69\)\) AS col0" at position 0 and "Int64\(\-77\) / Int64\(29\) \+ \(\- CAST\(Int64\(\-88\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( 63 ) * - 33 - - + 1 * - - 69 AS col0, - 77 / + 29 + - CAST ( - 88 AS INTEGER ) AS col0 query I rowsort label-9632 diff --git a/data/sqlite/random/expr/slt_good_9.slt b/data/sqlite/random/expr/slt_good_9.slt index 8be04a5..9267469 100644 --- a/data/sqlite/random/expr/slt_good_9.slt +++ b/data/sqlite/random/expr/slt_good_9.slt @@ -2435,7 +2435,7 @@ SELECT ALL + NULLIF ( - 39, 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(98\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(98\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 60 * COUNT ( * ) / 98 + + - ( ( COUNT ( * ) ) ) + + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query II rowsort label-456 @@ -4468,7 +4468,7 @@ SELECT - COUNT ( * ) * + + 4 + + 17 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -29687 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(40\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-52\) \- Int64\(63\) \+ nullif\(Int64\(72\), Int64\(84\)\) \- CAST\(Int64\(\-59\) AS Float64\) \* \(\- Int64\(9\)\) \* avg\(\(\- Int64\(\-18\)\)\) \* \(\- Int64\(\-71\)\) AS col1" at position 0 and "Int64\(31\) / Int64\(59\) \- Int64\(2\) \+ Int64\(48\) \- Int64\(\-33\) \* sum\(Int64\(53\)\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(40\) \- \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-52\) \- Int64\(63\) \+ nullif\(Int64\(72\), Int64\(84\)\) \- CAST\(Int64\(\-59\) AS Float64\) \* \(\- Int64\(9\)\) \* avg\(\(\- Int64\(\-18\)\)\) \* \(\- Int64\(\-71\)\) AS col1" at position 0 and "Int64\(31\) / Int64\(59\) \- Int64\(2\) \+ Int64\(48\) \- Int64\(\-33\) \* sum\(Int64\(53\)\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 25 + + ( + 40 ) - - CAST ( NULL AS INTEGER ) + - 52 - + 63 + + NULLIF ( + 72, 84 ) - CAST ( - 59 AS FLOAT8 ) * - + 9 * AVG ( - - 18 ) * - ( - 71 ) AS col1, 31 / + 59 - + 2 + + 48 - - 33 * + SUM ( ALL 53 ) * - 17 AS col1 query I rowsort label-837 @@ -6024,7 +6024,7 @@ SELECT DISTINCT + 81 * - COUNT ( * ), + 81 - + - COALESCE ( 42, - - 59 + + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- Int64\(8\)\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- Int64\(8\)\) 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\. SELECT 6 * - ( + 8 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 query II rowsort label-1131 @@ -6161,7 +6161,7 @@ SELECT ( + 56 ) * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 9212 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(94\) \* CAST\(Int64\(98\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(94\) \* CAST\(Int64\(98\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 45 AS col0, 94 * + + CAST ( + 98 AS INTEGER ) AS col0 query I rowsort @@ -9739,7 +9739,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(6\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(15\)\) \+ Int64\(\-26\) \+ Int64\(95\) AS col1" at position 0 and "Int64\(28\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(6\) \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(15\)\) \+ Int64\(\-26\) \+ Int64\(95\) AS col1" at position 0 and "Int64\(28\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + + 77 ) * + 6 * - + CAST ( NULL AS INTEGER ) + - + 15 + - 26 + + 95 AS col1, 28 * 78 AS col1 query I rowsort label-1844 @@ -12170,7 +12170,7 @@ SELECT - 14 * 41 / 74 + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -416075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(\-14\) WHEN Int64\(22\) THEN \(\- Int64\(\-14\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN Int64\(1\) \* Int64\(61\) THEN NULL END AS col2" at position 0 and "Int64\(55\) \* Int64\(89\) \* \(\- CAST\(Int64\(85\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(\-14\) WHEN Int64\(22\) THEN \(\- Int64\(\-14\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN Int64\(1\) \* Int64\(61\) THEN NULL END AS col2" at position 0 and "Int64\(55\) \* Int64\(89\) \* \(\- CAST\(Int64\(85\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) * CASE - 14 WHEN + 22 THEN - - 14 WHEN - - COUNT ( * ) THEN NULL WHEN + 1 * 61 THEN NULL END AS col2, 55 * 89 * - CAST ( + + 85 AS INTEGER ) AS col2 query I rowsort @@ -12863,7 +12863,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- max\(Int64\(8\)\)\) \+ \(\- Int64\(76\)\) \+ sum\(Int64\(\-80\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- max\(Int64\(8\)\)\) \+ \(\- Int64\(76\)\) \+ sum\(Int64\(\-80\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 + + ( - CAST ( NULL AS INTEGER ) ) AS col0, - MAX ( + 8 ) + - + 76 + SUM ( ALL - 80 ) AS col0 query I rowsort label-2436 @@ -13504,7 +13504,7 @@ SELECT ALL COUNT ( * ) - 34 - - 9 * + - 8 * - - 19 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "CASE Int64\(57\) WHEN CAST\(Int64\(\-44\) AS Int32\) THEN NULL WHEN Int64\(9\) THEN Int64\(79\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "CASE Int64\(57\) WHEN CAST\(Int64\(\-44\) AS Int64\) THEN NULL WHEN Int64\(9\) THEN Int64\(79\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 35 AS col0, CASE + 57 WHEN CAST ( - 44 AS INTEGER ) THEN NULL WHEN 9 THEN 79 END AS col0 query I rowsort label-2556 @@ -15722,7 +15722,7 @@ SELECT ALL + 35 - - - NULLIF ( 20, 21 + + 40 * 73 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(52\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(52\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * 52 AS col1, - 31 AS col1 query II rowsort label-2983 @@ -17193,7 +17193,7 @@ SELECT - MIN ( ALL - 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "CASE max\(Int64\(\-48\)\) WHEN Int64\(20\) \* Int64\(\-45\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-8\) THEN Int64\(60\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "CASE max\(Int64\(\-48\)\) WHEN Int64\(20\) \* Int64\(\-45\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-8\) THEN Int64\(60\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 * + ( - CAST ( NULL AS INTEGER ) ) AS col0, + CASE MAX ( - 48 ) WHEN 20 * - 45 THEN COUNT ( * ) WHEN - 8 THEN 60 ELSE NULL END AS col0 query I rowsort label-3262 @@ -21767,7 +21767,7 @@ SELECT DISTINCT COUNT ( ALL - 93 ) * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(79\) AS Int32\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(79\) AS Int64\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( + 79 AS INTEGER ) AS col0, + 3 col0 query I rowsort @@ -21788,7 +21788,7 @@ SELECT - COALESCE ( + COUNT ( * ), + 55 / - 96 + 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(67\) AS Int32\) AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(67\) AS Int64\) AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + + 67 AS INTEGER ) AS col2, - 58 AS col2 query I rowsort label-4134 @@ -22815,7 +22815,7 @@ SELECT DISTINCT 97 * + - 85 * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-79\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(\-72\)\) \* \(\- Int64\(\-26\)\) \* Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-79\) \+ CAST\(NULL AS Int64\) \* \(\- Int64\(\-72\)\) \* \(\- Int64\(\-26\)\) \* Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 8 AS col2, - 79 + + + ( CAST ( NULL AS INTEGER ) ) * - - 72 * - - 26 * + + 30 AS col2 query I rowsort label-4327 @@ -26674,7 +26674,7 @@ SELECT + SUM ( + 66 ) / + ( + + 43 ) + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2197 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(33\) \+ Int64\(\-44\) \- \(\- Int64\(39\)\) \+ Int64\(97\) \* Int64\(\-4\) \+ CAST\(Int64\(\-50\) AS Int32\) AS col0" at position 0 and "Int64\(72\) / \(\- \(\- Int64\(\-42\)\)\) \- Int64\(\-13\) \- \(\- Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(33\) \+ Int64\(\-44\) \- \(\- Int64\(39\)\) \+ Int64\(97\) \* Int64\(\-4\) \+ CAST\(Int64\(\-50\) AS Int64\) AS col0" at position 0 and "Int64\(72\) / \(\- \(\- Int64\(\-42\)\)\) \- Int64\(\-13\) \- \(\- Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 * + 33 + - 44 - - + 39 + 97 * - 4 + + CAST ( + - 50 AS INTEGER ) col0, + 72 / - ( - - 42 ) - - 13 - - + 72 AS col0 query I rowsort @@ -27153,7 +27153,7 @@ SELECT 69 + 41 * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-55\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(DISTINCT CAST\(Int64\(\-34\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-55\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(DISTINCT CAST\(Int64\(\-34\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - SUM ( DISTINCT - 55 ) AS col1, COUNT ( * ) + COUNT ( DISTINCT + CAST ( - 34 AS INTEGER ) ) AS col1 query II rowsort @@ -27837,7 +27837,7 @@ SELECT SUM ( DISTINCT + 63 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(98\) AS Int32\) / \(\- Int64\(33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(98\) AS Int64\) / \(\- Int64\(33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col0, + CAST ( 98 AS INTEGER ) / - + 33 AS col0 query I rowsort label-5292 @@ -28249,7 +28249,7 @@ SELECT + 47 * + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -122400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(18\), Int64\(\-55\)\) \+ Int64\(52\) / Int64\(15\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-68\) \* Int64\(90\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(18\), Int64\(\-55\)\) \+ Int64\(52\) / Int64\(15\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-68\) \* Int64\(90\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( 18, - 55 ) + + 52 / + 15 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, - 68 * 90 * + + 20 AS col1 query I rowsort label-5369 @@ -31132,7 +31132,7 @@ SELECT ( + ( + - NULLIF ( + 44, COUNT ( * ) ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) / \(\- Int64\(53\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(92\)\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) / \(\- Int64\(53\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(92\)\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 30 / - + 53 AS col2, COUNT ( * ) * - + 92 - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 query I rowsort label-5917 @@ -32074,7 +32074,7 @@ SELECT MAX ( 4 ) AS col2, 93 * + - 68 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* CAST\(NULL AS Int32\) \* Int64\(\-98\) \* Int64\(34\) \- \(\- Int64\(71\)\) \- Int64\(54\) \* Int64\(\-78\) \+ Int64\(90\) \- Int64\(\-31\) \* Int64\(0\) \* Int64\(42\) \- Int64\(\-78\) AS col2" at position 0 and "Int64\(60\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* CAST\(NULL AS Int64\) \* Int64\(\-98\) \* Int64\(34\) \- \(\- Int64\(71\)\) \- Int64\(54\) \* Int64\(\-78\) \+ Int64\(90\) \- Int64\(\-31\) \* Int64\(0\) \* Int64\(42\) \- Int64\(\-78\) AS col2" at position 0 and "Int64\(60\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 * + CAST ( NULL AS INTEGER ) * + - 98 * + + 34 - + ( - + ( + + 71 ) ) - + + 54 * - 78 + 90 - - 31 * - 0 * 42 - + - 78 AS col2, 60 * 4 col2 query I rowsort @@ -33439,7 +33439,7 @@ SELECT ALL - 9 AS col0, + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(\-87\) \+ \(\- CASE WHEN NULL BETWEEN NULL AND CAST\(Int64\(\-1\) AS Int32\) THEN Int64\(\-9\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(\-87\) \+ \(\- CASE WHEN NULL BETWEEN NULL AND CAST\(Int64\(\-1\) AS Int64\) THEN Int64\(\-9\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 25 col0, - 87 + + - CASE WHEN NULL BETWEEN NULL AND + CAST ( - 1 AS INTEGER ) THEN - 9 END AS col0 query I rowsort label-6363 @@ -35748,7 +35748,7 @@ SELECT ALL - SUM ( DISTINCT ( + 4 ) ) * 20 AS col2, 12 - + 46 + - + 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \- CAST\(NULL AS Int32\) \* sum\(DISTINCT Int64\(\-26\)\) AS col1" at position 0 and "Int64\(43\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \- CAST\(NULL AS Int64\) \* sum\(DISTINCT Int64\(\-26\)\) AS col1" at position 0 and "Int64\(43\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 6 - CAST ( NULL AS INTEGER ) * + + SUM ( DISTINCT + - 26 ) col1, 43 + + 10 AS col1 query II rowsort label-6800 @@ -37618,7 +37618,7 @@ SELECT + 60 * + 88 + - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(41\) \+ Int64\(\-25\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) / Int64\(41\) \+ Int64\(\-25\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) / 41 + + - 25 AS col2, 9 AS col2 query I rowsort label-7158 @@ -40961,7 +40961,7 @@ SELECT - COALESCE ( + 63, - 52 * - 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 92 AS col0, + CAST ( NULL AS INTEGER ) * + + 86 AS col0 # Datafusion - Types were automatically converted from: @@ -43348,7 +43348,7 @@ SELECT 64 + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - 1817 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(35\) AS Int32\) \+ Int64\(\-95\) \- Int64\(83\) AS col1" at position 0 and "Int64\(\-79\) \* Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(35\) AS Int64\) \+ Int64\(\-95\) \- Int64\(83\) AS col1" at position 0 and "Int64\(\-79\) \* Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + 35 AS INTEGER ) + + ( + - 95 ) - 83 AS col1, - 79 * - 23 AS col1 query I rowsort @@ -44378,7 +44378,7 @@ SELECT DISTINCT - 70 + 68 * - + 46 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -436 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- nullif\(CAST\(CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS Int32\), Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-37\) \* Int64\(13\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- nullif\(CAST\(CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS Int64\), Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-37\) \* Int64\(13\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 16 + + - NULLIF ( + CAST ( + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ), - 98 * COUNT ( * ) ) * + - 37 * 13 + + 29 AS col2, + 63 + + 41 col2 # Datafusion - Types were automatically converted from: @@ -44513,7 +44513,7 @@ SELECT - 47 + CASE - COUNT ( * ) WHEN - 26 THEN NULL WHEN + 86 THEN NULL ELSE CA # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, + 34 col0 # Datafusion - Datafusion expected results: @@ -44606,7 +44606,7 @@ SELECT DISTINCT + COALESCE ( + 36, + + COUNT ( * ) + 29, NULLIF ( - + 52, + + CA # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(29\) \+ Int64\(36\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- \(\- CAST\(NULL AS Int64\)\) \+ Int64\(29\) \+ Int64\(36\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 - - CAST ( NULL AS INTEGER ) + + + 29 + + 36 AS col2, 33 AS col2 query I rowsort label-8484 @@ -47145,7 +47145,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "nullif\(Int64\(64\), \(\- nullif\(coalesce\(Int64\(6\), Int64\(94\)\), \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\)\)\)\) \+ Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "nullif\(Int64\(64\), \(\- nullif\(coalesce\(Int64\(6\), Int64\(94\)\), \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\)\)\)\) \+ Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 57 AS col0, + NULLIF ( + 64, - NULLIF ( + COALESCE ( 6, + + 94 ), - - CAST ( - COUNT ( * ) AS INTEGER ) ) ) + - 26 AS col0 query I rowsort @@ -47522,7 +47522,7 @@ SELECT NULLIF ( - 92, 9 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -35 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- CAST\(Int64\(56\) AS Int32\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col1" at position 0 and "\(\- CAST\(Int64\(56\) AS Int64\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - CAST ( + 56 AS INTEGER ) + 21 AS col1, + 19 # Datafusion - Datafusion expected results: @@ -47834,7 +47834,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ Int64\(24\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-16\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ Int64\(24\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-16\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 + 24 AS col0, + CAST ( - - 16 AS INTEGER ) AS col0 query I rowsort label-9097 @@ -51904,7 +51904,7 @@ SELECT + 26 * 73 / NULLIF ( + 49, + - COUNT ( * ) + + 82 - + + COUNT ( * ) / - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2784 # Datafusion - Expected - 281159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* \(\- Int64\(29\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(55\) \* coalesce\(\(\- nullif\(\(\- \(\- min\(\(\- CAST\(NULL AS Int32\)\)\)\)\), Int64\(55\)\)\), Int64\(64\) \+ Int64\(8\), nullif\(nullif\(\(\- Int64\(\-26\)\), Int64\(4\)\), Int64\(\-56\) / Int64\(54\)\) \+ Int64\(65\)\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* \(\- Int64\(29\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(55\) \* coalesce\(\(\- nullif\(\(\- \(\- min\(\(\- CAST\(NULL AS Int64\)\)\)\)\), Int64\(55\)\)\), Int64\(64\) \+ Int64\(8\), nullif\(nullif\(\(\- Int64\(\-26\)\), Int64\(4\)\), Int64\(\-56\) / Int64\(54\)\) \+ Int64\(65\)\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 96 * - + 29 col1, - COUNT ( * ) + 55 * + COALESCE ( - NULLIF ( - - MIN ( ALL - CAST ( NULL AS INTEGER ) ), 55 ), 64 + + + 8, NULLIF ( + NULLIF ( - - 26, + 4 ), + - 56 / ( 54 ) ) + 65 ) * 71 AS col1 query I rowsort label-9875 @@ -52351,7 +52351,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) \* \(\- CAST\(Int64\(18\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) \* \(\- CAST\(Int64\(18\) AS Int64\)\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 87 * - CAST ( + + 18 AS INTEGER ) AS col2, - 53 AS col2 query I rowsort label-9960 diff --git a/data/sqlite/random/expr/slt_good_90.slt b/data/sqlite/random/expr/slt_good_90.slt index 79781ab..c5705a0 100644 --- a/data/sqlite/random/expr/slt_good_90.slt +++ b/data/sqlite/random/expr/slt_good_90.slt @@ -111,7 +111,7 @@ SELECT - 43 + + + 82 col2, - 69 + + - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9625 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(21\) \* Int64\(76\) \- \(\- Int64\(49\)\) AS col0" at position 0 and "Int64\(92\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) \- Int64\(63\) \* Int64\(60\) \* Int64\(20\) \+ \(\- Int64\(\-56\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) THEN \(\- Int64\(\-51\)\) \+ Int64\(\-41\) ELSE NULL END \+ Int64\(44\) \+ Int64\(51\) \* Int64\(67\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(21\) \* Int64\(76\) \- \(\- Int64\(49\)\) AS col0" at position 0 and "Int64\(92\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) \- Int64\(63\) \* Int64\(60\) \* Int64\(20\) \+ \(\- Int64\(\-56\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) THEN \(\- Int64\(\-51\)\) \+ Int64\(\-41\) ELSE NULL END \+ Int64\(44\) \+ Int64\(51\) \* Int64\(67\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 6 * + 21 * 76 - - + 49 AS col0, 92 + CASE - + COUNT ( * ) WHEN - COUNT ( * ) * 13 - + 63 * + + 60 * + 20 + - - 56 THEN COUNT ( * ) WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN - - 51 + - 41 ELSE NULL END + + + 44 + 51 * + 67 * 43 AS col0 query I rowsort @@ -3893,7 +3893,7 @@ SELECT DISTINCT 87 / + 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(84\) \* Int64\(33\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(84\) \* Int64\(33\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 25 col2, 84 * + 33 * + CAST ( NULL AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: @@ -5609,7 +5609,7 @@ SELECT COUNT ( * ) + - 57 + + 71 * 19 * + 36 * + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -119428 # Datafusion - Expected - -617 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-37\)\) AS Int32\)\) \* Int64\(\-75\) \* coalesce\(Int64\(\-43\), Int64\(12\) \* \(\- coalesce\(\(\- CAST\(Int64\(\-37\) AS Int32\)\), Int64\(\-83\) \* Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(56\)\) \- Int64\(49\) \+ Int64\(\-54\) AS col1" at position 0 and "Int64\(73\) \* Int64\(\-10\) \+ Int64\(86\) \- \(\- \(\- \(\- nullif\(Int64\(27\), sum\(Int64\(99\)\) / CAST\(NULL AS Int32\) \- nullif\(Int64\(66\), Int64\(45\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-37\)\) AS Int64\)\) \* Int64\(\-75\) \* coalesce\(Int64\(\-43\), Int64\(12\) \* \(\- coalesce\(\(\- CAST\(Int64\(\-37\) AS Int64\)\), Int64\(\-83\) \* Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(56\)\) \- Int64\(49\) \+ Int64\(\-54\) AS col1" at position 0 and "Int64\(73\) \* Int64\(\-10\) \+ Int64\(86\) \- \(\- \(\- \(\- nullif\(Int64\(27\), sum\(Int64\(99\)\) / CAST\(NULL AS Int64\) \- nullif\(Int64\(66\), Int64\(45\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - - 37 AS INTEGER ) * - 75 * + COALESCE ( - 43, + 12 * - COALESCE ( - CAST ( + ( - 37 ) AS INTEGER ), - 83 * + 97 + - COUNT ( * ) + + + COUNT ( * ) ) * + 56 ) - 49 + - 54 AS col1, + 73 * - 10 + 86 - - - ( - ( NULLIF ( ( 27 ), SUM ( ( 99 ) ) / CAST ( NULL AS INTEGER ) - + NULLIF ( 66, 45 ) ) ) ) AS col1 query I rowsort @@ -5938,7 +5938,7 @@ SELECT DISTINCT - 47 * + + 74 * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "\(\- CASE \(\- CAST\(Int64\(59\) AS Int32\)\) WHEN Int64\(50\) THEN NULL WHEN Int64\(\-24\) THEN Int64\(\-78\) \* nullif\(Int64\(8\), Int64\(\-24\)\) \* Int64\(\-51\) \+ Int64\(54\) / Int64\(23\) \+ Int64\(3\) ELSE NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "\(\- CASE \(\- CAST\(Int64\(59\) AS Int64\)\) WHEN Int64\(50\) THEN NULL WHEN Int64\(\-24\) THEN Int64\(\-78\) \* nullif\(Int64\(8\), Int64\(\-24\)\) \* Int64\(\-51\) \+ Int64\(54\) / Int64\(23\) \+ Int64\(3\) ELSE NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - 5 ) col0, - CASE - + CAST ( + 59 AS INTEGER ) WHEN + 50 THEN NULL WHEN - 24 THEN - 78 * + NULLIF ( + 8, - 24 ) * + - 51 + + 54 / 23 + + + 3 ELSE NULL END + - + COUNT ( * ) * 46 AS col0 query I rowsort label-1127 @@ -8681,7 +8681,7 @@ SELECT + ( + 79 ) * - 22 - - + COUNT ( * ) * 62 + + COUNT ( * ) * + - 74 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(78\) WHEN Int64\(29\) THEN CAST\(Int64\(92\) AS Int32\) END\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(78\) WHEN Int64\(29\) THEN CAST\(Int64\(92\) AS Int64\) END\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - CASE ( 78 ) WHEN + 29 THEN + CAST ( ( + 92 ) AS INTEGER ) END AS col0, + 81 AS col0 query I rowsort @@ -12435,7 +12435,7 @@ SELECT + 54 * - COALESCE ( ( + 35 ), 60 * - + 76 / + + 59 ) + MIN ( + 34 ) + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(93\) \+ Int64\(\-34\) \* Int64\(93\) / Int64\(65\) \- Int64\(35\) \- Int64\(68\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(93\) \+ Int64\(\-34\) \* Int64\(93\) / Int64\(65\) \- Int64\(35\) \- Int64\(68\) \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- Int64\(\-87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 12 AS col2, 93 + - 34 * + 93 / 65 - + 35 - 68 * - CAST ( NULL AS INTEGER ) + - - 87 AS col2 query I rowsort @@ -12458,7 +12458,7 @@ SELECT MIN ( DISTINCT 5 ) / SUM ( + 15 ) col0, - 7 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 4 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(57\) \+ Int64\(62\) / Int64\(\-12\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(57\) \+ Int64\(62\) / Int64\(\-12\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + ( + 44 ) * - CAST ( NULL AS INTEGER ) + + 57 + 62 / + - 12 AS col2, 4 AS col2, + 29 query II rowsort label-2372 @@ -13061,7 +13061,7 @@ SELECT 0 * + COUNT ( * ) * MIN ( ALL - NULLIF ( - 66, - + 65 + 5 + 82 ) ) * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(26\) \+ Int64\(17\) \+ \(\- CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(54\) \+ Int64\(0\) THEN Int64\(\-32\) \* Int64\(\-14\) \+ CAST\(NULL AS Int32\) END\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(26\) \+ Int64\(17\) \+ \(\- CASE \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(54\) \+ Int64\(0\) THEN Int64\(\-32\) \* Int64\(\-14\) \+ CAST\(NULL AS Int64\) END\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 81 * + 26 + 17 + - CASE - CAST ( NULL AS INTEGER ) WHEN + + 54 + + 0 THEN - 32 * - 14 + + + CAST ( NULL AS INTEGER ) END AS col1, 0 AS col1 query I rowsort @@ -15008,7 +15008,7 @@ SELECT 50 - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(\-55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(\-55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 76 AS col0, - 55 * - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -15116,7 +15116,7 @@ SELECT + + 77 AS col0, + COUNT ( * ) + + ( - 96 ) col2, 81 + + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) \* Int64\(\-58\) \+ Int64\(\-22\) \* Int64\(60\) \* CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) \* Int64\(\-58\) \+ Int64\(\-22\) \* Int64\(60\) \* CAST\(NULL AS Int64\) \* CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - - 52 * - 58 + + - 22 * + + 60 * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1, - 13 AS col1 query I rowsort label-2877 @@ -15352,7 +15352,7 @@ SELECT + COUNT ( + + 51 ) - - + 25 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 77 AS col1, - CAST ( NULL AS INTEGER ) * - 80 AS col1 query I rowsort label-2920 @@ -15595,7 +15595,7 @@ SELECT - COUNT ( ALL + 35 ) AS col2, + COUNT ( 42 ) * + 15 + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ max\(Int64\(27\)\) \+ \(\- \(\- coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(51\)\)\)\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ max\(Int64\(27\)\) \+ \(\- \(\- coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(51\)\)\)\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 39 + + + MAX ( + + 27 ) + - - COALESCE ( - + CAST ( NULL AS INTEGER ), 51 ) + + - 7 col2, + 47 col2 query I rowsort label-2963 @@ -16571,7 +16571,7 @@ SELECT - 61 * + + COUNT ( * ) + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77347 # Datafusion - Expected - 1604 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-60\) \* Int64\(46\) \* Int64\(28\) AS col1" at position 0 and "Int64\(25\) \- \(\- Int64\(\-66\)\) \+ CAST\(sum\(\(\- Int64\(58\)\)\) AS Int32\) \+ Int64\(\-17\) \* Int64\(53\) / Int64\(1\) \+ Int64\(93\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-60\) \* Int64\(46\) \* Int64\(28\) AS col1" at position 0 and "Int64\(25\) \- \(\- Int64\(\-66\)\) \+ CAST\(sum\(\(\- Int64\(58\)\)\) AS Int64\) \+ Int64\(\-17\) \* Int64\(53\) / Int64\(1\) \+ Int64\(93\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 66 + + COUNT ( * ) - - 60 * 46 * 28 AS col1, + 25 - - - 66 + + CAST ( SUM ( - ( 58 ) ) AS INTEGER ) + - 17 * + 53 / + ( + 1 ) + + 93 * 28 AS col1 query I rowsort label-3147 @@ -18170,7 +18170,7 @@ SELECT ALL 24 + - 55 * - - ( - 68 ) + + - 79 # Datafusion - Expected - 41 # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(45\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(45\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int64\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 50 + + 91 AS col0, + 18 + + 45 - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * + 69 AS col0, 15 * + MAX ( ALL ( - 3 ) ) AS col1 query I rowsort @@ -18729,7 +18729,7 @@ SELECT 88 / + 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-99\)\) AS Int32\) \* Int64\(\-47\) \- \(\- CAST\(\(\- CASE \(\- \(\- \(\- min\(Int64\(33\)\)\)\)\) WHEN Int64\(\-14\) THEN \(\- Int64\(14\)\) END\) AS Int32\)\) \+ Int64\(\-96\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-99\)\) AS Int64\) \* Int64\(\-47\) \- \(\- CAST\(\(\- CASE \(\- \(\- \(\- min\(Int64\(33\)\)\)\)\) WHEN Int64\(\-14\) THEN \(\- Int64\(14\)\) END\) AS Int64\)\) \+ Int64\(\-96\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) / - 89 AS col1, CAST ( + ( - - 99 ) AS INTEGER ) * + - 47 - - CAST ( - CASE - ( - - MIN ( ALL 33 ) ) WHEN - 14 THEN - + 14 END AS INTEGER ) + - 96 * COUNT ( * ) * - - 88 AS col1 query I rowsort label-3558 @@ -20700,7 +20700,7 @@ SELECT ALL MAX ( + 76 ) + - ( + - COUNT ( ALL - - 86 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* CAST\(NULL AS Int32\) \+ Int64\(\-17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* CAST\(NULL AS Int64\) \+ Int64\(\-17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 47 * CAST ( NULL AS INTEGER ) + - 17 AS col0, COUNT ( * ) col0 query I rowsort @@ -20997,7 +20997,7 @@ SELECT ALL - - 32 * + 7 * + + 33 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 21 AS col2, + CAST ( NULL AS INTEGER ) col2 query I rowsort label-3996 @@ -22091,7 +22091,7 @@ SELECT + 79 - + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(25\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(25\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 25 AS col2, 25 * + - CAST ( NULL AS INTEGER ) * 50 AS col2 query II rowsort label-4201 @@ -23445,7 +23445,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(\-69\)\)\) AS Int32\) AS col1" at position 0 and "Int64\(44\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(\-69\)\)\) AS Int64\) AS col1" at position 0 and "Int64\(44\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - COUNT ( + - 69 ) AS INTEGER ) AS col1, + 44 * 86 AS col1 query I rowsort label-4461 @@ -24245,7 +24245,7 @@ SELECT ALL + COALESCE ( - 83, 72, - 39 ) AS col2, - ( - 4 ) + - NULLIF ( - 60, C # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(86\) \+ Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* Int64\(86\) \+ Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 69 * + COUNT ( * ) AS col2, + CAST ( + + COUNT ( * ) AS INTEGER ) * 86 + - 96 AS col2 query I rowsort label-4612 @@ -28676,7 +28676,7 @@ SELECT + 60 + 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 20 AS col1, + CAST ( NULL AS INTEGER ) + 17 + + COUNT ( * ) col1 query I rowsort @@ -41733,7 +41733,7 @@ SELECT ALL + COALESCE ( + 43, 56 ), 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(\-80\) \+ Int64\(12\) \+ \(\- CAST\(NULL AS Int32\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(\-80\) \+ Int64\(12\) \+ \(\- CAST\(NULL AS Int64\)\) \+ CAST\(NULL AS Int64\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 41 * - 80 + + 12 + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) AS col2 query II rowsort label-7937 @@ -44237,7 +44237,7 @@ SELECT DISTINCT - MIN ( + 86 ) + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(16\) AS Int32\)\) / Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(16\) AS Int64\)\) / Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + + 16 AS INTEGER ) / + 76 col0, COUNT ( * ) AS col0 query I rowsort @@ -46868,7 +46868,7 @@ SELECT ALL - 63 * + SUM ( 27 ) col1, + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 132 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(59\) \+ Int64\(0\) \+ Int64\(36\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(59\) \+ Int64\(0\) \+ Int64\(36\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 37 + + ( + 59 ) + + 0 + 36 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 query I rowsort label-8920 @@ -48024,7 +48024,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(20\) AS col1" at position 0 and "nullif\(Int64\(\-32\), \(\- nullif\(Int64\(\-56\), Int64\(92\)\)\) \* Int64\(80\) \* Int64\(82\) \+ sum\(Int64\(17\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(20\) AS col1" at position 0 and "nullif\(Int64\(\-32\), \(\- nullif\(Int64\(\-56\), Int64\(92\)\)\) \* Int64\(80\) \* Int64\(82\) \+ sum\(Int64\(17\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + CAST ( NULL AS INTEGER ) + + 20 AS col1, ( + + NULLIF ( - 32, - NULLIF ( - 56, 92 ) * + 80 * + + 82 + + SUM ( 17 ) ) ) AS col1 query I rowsort label-9140 @@ -48992,7 +48992,7 @@ SELECT ALL + 3 * + 62 * - - ( 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-15\) \+ nullif\(Int64\(64\), Int64\(\-33\)\) \+ Int64\(\-21\) \* Int64\(88\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* Int64\(\-15\) \+ nullif\(Int64\(64\), Int64\(\-33\)\) \+ Int64\(\-21\) \* Int64\(88\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - 15 + NULLIF ( 64, + - 33 ) + - 21 * + 88 AS col0, COUNT ( * ) + + 32 AS col0 query II rowsort label-9323 @@ -49801,7 +49801,7 @@ SELECT ALL + SUM ( ALL + + ( - 22 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 309615 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(\-40\) \* Int64\(\-90\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(\-40\) \* Int64\(\-90\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) AS col0, 15 + + - 40 * - 90 * + 86 AS col0 query I rowsort @@ -50100,7 +50100,7 @@ SELECT ALL 97 / - 34 + - - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col0, 93 AS col0 query I rowsort @@ -50611,7 +50611,7 @@ SELECT ALL + ( ( + 34 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -1296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(9\) \- Int64\(\-55\) \+ Int64\(\-61\) \- Int64\(13\) AS col1" at position 0 and "nullif\(Int64\(\-18\), \(\- CAST\(Int64\(\-77\) AS Int32\)\)\) \* \(\- \(\- nullif\(Int64\(72\), min\(Int64\(\-41\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(9\) \- Int64\(\-55\) \+ Int64\(\-61\) \- Int64\(13\) AS col1" at position 0 and "nullif\(Int64\(\-18\), \(\- CAST\(Int64\(\-77\) AS Int64\)\)\) \* \(\- \(\- nullif\(Int64\(72\), min\(Int64\(\-41\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 40 / 9 - ( - 55 ) + - 61 - + 13 AS col1, + NULLIF ( - 18, - CAST ( + ( - 77 ) AS INTEGER ) ) * - - NULLIF ( 72, + MIN ( - 41 ) ) AS col1 query II rowsort label-9626 @@ -51304,7 +51304,7 @@ SELECT ALL COUNT ( DISTINCT - - 60 ) AS col0 # Datafusion - Expected - -5071248 # Datafusion - Expected - 79 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-27\)\) AS Int32\)\) \* Int64\(86\) \* \(\- Int64\(\-26\)\) \* Int64\(84\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-27\)\) AS Int64\)\) \* Int64\(86\) \* \(\- Int64\(\-26\)\) \* Int64\(84\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( - - 27 AS INTEGER ) * + 86 * - - 26 * 84 AS col2, + 79, - 23 AS col2 query I rowsort label-9757 diff --git a/data/sqlite/random/expr/slt_good_91.slt b/data/sqlite/random/expr/slt_good_91.slt index 11e421f..8f7736c 100644 --- a/data/sqlite/random/expr/slt_good_91.slt +++ b/data/sqlite/random/expr/slt_good_91.slt @@ -220,7 +220,7 @@ SELECT ALL - COUNT ( * ) + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(26\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(26\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) + 26 AS col1, CAST ( NULL AS INTEGER ) col1 query I rowsort label-35 @@ -291,7 +291,7 @@ SELECT ( COALESCE ( ( + COUNT ( * ) ), + 2, + 84 ) ) * + 89, - 3 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5985 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(7\) AS Int32\) \* \(\- Int64\(\-57\)\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(7\) AS Int64\) \* \(\- Int64\(\-57\)\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( 7 AS INTEGER ) * - - 57 * - 15 AS col0, 23 AS col0 query I rowsort label-48 @@ -544,7 +544,7 @@ SELECT ALL 23 * 17 + + + 20 + - - ( + 34 ) * ( + + MIN ( ALL 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 90 col2, - CAST ( NULL AS INTEGER ) * - + ( + + 75 ) AS col2 query III rowsort @@ -725,7 +725,7 @@ SELECT - 44 + - - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) / Int64\(\-36\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) / Int64\(\-36\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 / - 36 AS col2, - ( CAST ( NULL AS INTEGER ) ) + 74 AS col2 query I rowsort label-130 @@ -3245,7 +3245,7 @@ SELECT - COUNT ( * ), 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / sum\(DISTINCT \(\- \(\- Int64\(81\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / sum\(DISTINCT \(\- \(\- Int64\(81\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 43 + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT - - ( + + 81 ) ) AS col1 query I rowsort @@ -4202,7 +4202,7 @@ SELECT 1 AS col2, 3 * 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(\-94\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(\-94\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 0 col2, - 94 * + CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -4318,7 +4318,7 @@ SELECT + 47 * + ( - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(73\) AS Int32\)\) \* max\(DISTINCT Int64\(\-2\)\) AS col0" at position 0 and "Int64\(56\) / Int64\(64\) \+ count\(Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(73\) AS Int64\)\) \* max\(DISTINCT Int64\(\-2\)\) AS col0" at position 0 and "Int64\(56\) / Int64\(64\) \+ count\(Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( 73 AS INTEGER ) * MAX ( DISTINCT - 2 ) col0, 56 / + 64 + + + COUNT ( + 4 ) AS col0 query II rowsort @@ -4521,7 +4521,7 @@ SELECT ALL + 15 * - + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int32\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int64\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( + 10 AS INTEGER ) AS col2, 12 AS col2 query I rowsort @@ -7476,7 +7476,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1475 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(59\) AS col0" at position 0 and "Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-42\) \* Int64\(51\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(59\) AS col0" at position 0 and "Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-42\) \* Int64\(51\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 25 * 59 AS col0, - 29 * + COUNT ( * ) + - 42 * + 51 + - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1416 @@ -13929,7 +13929,7 @@ SELECT DISTINCT + MAX ( - + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) col2, + 73 AS col2 query II rowsort label-2644 @@ -14621,7 +14621,7 @@ SELECT ALL + 4 + - 26 + + + 76 * 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "CAST\(Int64\(88\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "CAST\(Int64\(88\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 29 AS col1, CAST ( + 88 AS INTEGER ) AS col1 query I rowsort @@ -14647,7 +14647,7 @@ SELECT DISTINCT + 14 * + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 97 AS col1, + CAST ( NULL AS INTEGER ) + - + 16 AS col1 query I rowsort label-2782 @@ -15803,7 +15803,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-6\)\) AS Int32\) AS col1" at position 0 and "Int64\(87\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-6\)\) AS Int64\) AS col1" at position 0 and "Int64\(87\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( - - 6 AS INTEGER ) AS col1, 87 + + 57 AS col1 query I rowsort label-3000 @@ -18117,7 +18117,7 @@ SELECT - 58 * - 50 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(\-38\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(\-38\) \+ CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 95 AS col1, - 38 + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-3438 @@ -20231,7 +20231,7 @@ SELECT DISTINCT 9 * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "CAST\(Int64\(\-76\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "CAST\(Int64\(\-76\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 67 AS col1, + CAST ( - 76 AS INTEGER ) col1 query I rowsort label-3845 @@ -21956,7 +21956,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 957 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(55\) AS Int32\)\) \* Int64\(\-17\) \+ Int64\(22\) AS col2" at position 0 and "min\(Int64\(33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(55\) AS Int64\)\) \* Int64\(\-17\) \+ Int64\(22\) AS col2" at position 0 and "min\(Int64\(33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( 55 AS INTEGER ) * - 17 + + 22 col2, + MIN ( + 33 ) AS col2 query I rowsort @@ -22901,7 +22901,7 @@ SELECT 43 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(85\) AS col2" at position 0 and "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(72\) THEN count\(Int64\(17\)\) / Int64\(15\) \- \(\- avg\(Int64\(93\)\)\) \* Int64\(52\) \+ \(\- CASE Int64\(\-22\) WHEN \(\- Int64\(32\)\) THEN Int64\(\-79\) WHEN CASE \(\- \(\- coalesce\(Int64\(13\), Int64\(85\), Int64\(26\) / Int64\(\-30\)\)\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(11\) THEN NULL WHEN CAST\(Int64\(88\) AS Int32\) \* Int64\(\-79\) \+ Int64\(80\) THEN sum\(DISTINCT Int64\(37\)\) \+ Int64\(73\) END THEN Int64\(17\) END\) WHEN Int64\(44\) \* Int64\(\-69\) THEN NULL WHEN nullif\(Int64\(95\), Int64\(33\)\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(Int64\(82\) \- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\) / nullif\(Int64\(58\), Int64\(70\) \+ Int64\(51\)\)\) \* Int64\(51\), Int64\(46\) \+ Int64\(58\)\) THEN NULL ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(85\) AS col2" at position 0 and "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(72\) THEN count\(Int64\(17\)\) / Int64\(15\) \- \(\- avg\(Int64\(93\)\)\) \* Int64\(52\) \+ \(\- CASE Int64\(\-22\) WHEN \(\- Int64\(32\)\) THEN Int64\(\-79\) WHEN CASE \(\- \(\- coalesce\(Int64\(13\), Int64\(85\), Int64\(26\) / Int64\(\-30\)\)\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(11\) THEN NULL WHEN CAST\(Int64\(88\) AS Int64\) \* Int64\(\-79\) \+ Int64\(80\) THEN sum\(DISTINCT Int64\(37\)\) \+ Int64\(73\) END THEN Int64\(17\) END\) WHEN Int64\(44\) \* Int64\(\-69\) THEN NULL WHEN nullif\(Int64\(95\), Int64\(33\)\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(Int64\(82\) \- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\) / nullif\(Int64\(58\), Int64\(70\) \+ Int64\(51\)\)\) \* Int64\(51\), Int64\(46\) \+ Int64\(58\)\) THEN NULL ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 13 + 85 AS col2, - CASE + COUNT ( * ) WHEN + + 72 THEN COUNT ( 17 ) / 15 - + - AVG ( ALL + 93 ) * 52 + - + CASE - 22 WHEN - + 32 THEN - 79 WHEN + CASE - - COALESCE ( + 13, 85, + 26 / - 30 ) WHEN - COUNT ( * ) THEN NULL WHEN 11 THEN NULL WHEN + CAST ( + 88 AS INTEGER ) * - 79 + 80 THEN SUM ( DISTINCT 37 ) + 73 END THEN + 17 END WHEN 44 * - 69 THEN NULL WHEN NULLIF ( 95, 33 ) + + NULLIF ( ( - COUNT ( * ) ) + COALESCE ( 82 - + COALESCE ( + COUNT ( * ), 17 + COUNT ( * ) ), COUNT ( * ) / NULLIF ( 58, 70 + 51 ) ) * 51, 46 + 58 ) THEN NULL ELSE NULL END col2 query I rowsort label-4354 @@ -27214,7 +27214,7 @@ SELECT DISTINCT - 62 * - + 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- \(\- CAST\(Int64\(\-7\) AS Int32\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- \(\- CAST\(Int64\(\-7\) AS Int64\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 0 - + - CAST ( - 7 AS INTEGER ) AS col2, 60 AS col2 query I rowsort @@ -30099,7 +30099,7 @@ SELECT - COUNT ( * ) * + - SUM ( - - 22 ) - - 96 * 77 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-28\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-28\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 57 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) * ( + - COUNT ( * ) ) - - 28 * + - 32 col2 query I rowsort label-5722 @@ -31680,7 +31680,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "Int64\(20\) \+ Int64\(7\) \+ Int64\(83\) \+ CAST\(Int64\(46\) AS Int32\) / sum\(\(\- nullif\(Int64\(40\), Int64\(20\) \* \(\- Int64\(14\)\) \+ Int64\(\-73\)\)\)\) \+ Int64\(41\) \* Int64\(12\) \+ Int64\(59\) \* CAST\(NULL AS Int32\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "Int64\(20\) \+ Int64\(7\) \+ Int64\(83\) \+ CAST\(Int64\(46\) AS Int64\) / sum\(\(\- nullif\(Int64\(40\), Int64\(20\) \* \(\- Int64\(14\)\) \+ Int64\(\-73\)\)\)\) \+ Int64\(41\) \* Int64\(12\) \+ Int64\(59\) \* CAST\(NULL AS Int64\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 89 col0, 20 + + 7 + 83 + CAST ( 46 AS INTEGER ) / SUM ( - NULLIF ( + 40, + 20 * + ( - + 14 ) + - 73 ) ) + + 41 * 12 + 59 * CAST ( NULL AS INTEGER ) * + - 45 AS col0 query II rowsort @@ -33576,7 +33576,7 @@ SELECT ALL 12 + 63 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -606 # Datafusion - Expected - 6545273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(39\) \- Int64\(\-19\) \* Int64\(81\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-51\) \* Int64\(\-3\) \* \(\- \(\- Int64\(62\)\)\) \* coalesce\(Int64\(15\), Int64\(36\)\) \+ CAST\(Int64\(\-8\) AS Int32\) / Int64\(17\) \- nullif\(Int64\(67\), Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(39\) \- Int64\(\-19\) \* Int64\(81\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-51\) \* Int64\(\-3\) \* \(\- \(\- Int64\(62\)\)\) \* coalesce\(Int64\(15\), Int64\(36\)\) \+ CAST\(Int64\(\-8\) AS Int64\) / Int64\(17\) \- nullif\(Int64\(67\), Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 55 * + COUNT ( * ) * 39 - - 19 * + + 81 AS col1, 46 * - 51 * - 3 * - - ( 62 ) * + COALESCE ( + ( + + 15 ), + + 36 ) + + + CAST ( - 8 AS INTEGER ) / + 17 - + NULLIF ( + 67, 65 ) AS col1 query I rowsort label-6381 @@ -34404,7 +34404,7 @@ SELECT ( + + 20 ) AS col2 # Datafusion - Expected - 55 # Datafusion - Expected - 77 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \+ Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 AS col2, + CAST ( + COUNT ( * ) AS INTEGER ) + 76 AS col2, - - 19 query I rowsort label-6538 @@ -35348,7 +35348,7 @@ SELECT - 21, ( - - 47 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) col2, 96 AS col2 # Datafusion - Types were automatically converted from: @@ -35835,7 +35835,7 @@ SELECT + COUNT ( DISTINCT + - 25 ) * 58 - 80 - ( + + 85 ) * 10 - ( - 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 8190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(16\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\), Int64\(\-38\)\) AS col1" at position 0 and "Int64\(91\) \* Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(16\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int64\), Int64\(\-38\)\) AS col1" at position 0 and "Int64\(91\) \* Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COALESCE ( + 82, 16 / - COUNT ( * ) * CAST ( NULL AS INTEGER ), - 38 ) AS col1, + 91 * 90 AS col1 query I rowsort @@ -38466,7 +38466,7 @@ SELECT ALL + 74 / - - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3036 # Datafusion - Expected - -770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(43\) \+ \(\- Int64\(22\)\) \* \(\- \(\- sum\(DISTINCT Int64\(36\)\)\)\) \+ \(\- nullif\(Int64\(21\), min\(Int64\(32\)\) \* Int64\(88\) \+ Int64\(67\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \* sum\(Int64\(54\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(43\) \+ \(\- Int64\(22\)\) \* \(\- \(\- sum\(DISTINCT Int64\(36\)\)\)\) \+ \(\- nullif\(Int64\(21\), min\(Int64\(32\)\) \* Int64\(88\) \+ Int64\(67\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\)\) \* sum\(Int64\(54\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - ( + 66 ) * - 46 AS col1, + 43 + - + 22 * - ( - SUM ( DISTINCT 36 ) ) + - NULLIF ( 21, MIN ( 32 ) * + + 88 + 67 * - CAST ( + COUNT ( * ) AS INTEGER ) * SUM ( + 54 ) ) AS col1 query I rowsort label-7309 @@ -38520,7 +38520,7 @@ SELECT - COUNT ( * ) + - + MIN ( DISTINCT 31 ), 44 * + 37 AS col2 # Datafusion - Expected - 81 # Datafusion - Expected - 256 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(\-64\) AS col0" at position 1 and "Int64\(60\) \* CAST\(NULL AS Int32\) \+ Int64\(\-38\) \* \(\- Int64\(\-64\)\) \- \(\- CAST\(Int64\(50\) AS Int32\)\) \+ Int64\(\-40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(\-64\) AS col0" at position 1 and "Int64\(60\) \* CAST\(NULL AS Int64\) \+ Int64\(\-38\) \* \(\- Int64\(\-64\)\) \- \(\- CAST\(Int64\(50\) AS Int64\)\) \+ Int64\(\-40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 81 AS col2, - 4 * - 64 col0, 60 * + CAST ( NULL AS INTEGER ) + + - 38 * - - 64 - - CAST ( 50 AS INTEGER ) + - 40 AS col0 query I rowsort label-7319 @@ -38961,7 +38961,7 @@ SELECT + 58 * - 26 * 24 + + + 6 + - 3 / + 51 + - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 95 AS col1, + 2 AS col1 query II rowsort label-7403 @@ -39355,7 +39355,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(\-46\) \+ Int64\(15\) AS col0" at position 0 and "min\(Int64\(\-62\)\) / Int64\(93\) / CAST\(Int64\(\-82\) AS Int32\) \+ Int64\(52\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(43\)\)\)\) \+ Int64\(53\) \* Int64\(97\) / CAST\(Int64\(14\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(\-46\) \+ Int64\(15\) AS col0" at position 0 and "min\(Int64\(\-62\)\) / Int64\(93\) / CAST\(Int64\(\-82\) AS Int64\) \+ Int64\(52\) \* \(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(43\)\)\)\) \+ Int64\(53\) \* Int64\(97\) / CAST\(Int64\(14\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 15 + + - 46 + 15 AS col0, + MIN ( ALL - 62 ) / + 93 / CAST ( - 82 AS INTEGER ) + 52 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - - COUNT ( + 43 ) + 53 * 97 / CAST ( 14 AS INTEGER ) col0 query I rowsort label-7478 @@ -39414,7 +39414,7 @@ SELECT 89 / + 28 # Datafusion - Expected - 74 # Datafusion - Expected - 28 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 1 and "CAST\(\(\- count\(Int64\(\-40\)\)\) AS Int32\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 1 and "CAST\(\(\- count\(Int64\(\-40\)\)\) AS Int64\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 AS col2, 28 col0, CAST ( + - COUNT ( - 40 ) AS INTEGER ) AS col0 query I rowsort label-7489 @@ -48285,7 +48285,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 702 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-13\), max\(DISTINCT Int64\(\-66\)\)\) \* Int64\(\-28\) \+ \(\- min\(Int64\(13\)\)\) \+ Int64\(32\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(56\) / Int64\(7\) AS col2" at position 0 and "Int64\(26\) \* Int64\(25\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-13\), max\(DISTINCT Int64\(\-66\)\)\) \* Int64\(\-28\) \+ \(\- min\(Int64\(13\)\)\) \+ Int64\(32\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(56\) / Int64\(7\) AS col2" at position 0 and "Int64\(26\) \* Int64\(25\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + NULLIF ( - 13, MAX ( DISTINCT - 66 ) ) * - 28 + - MIN ( + 13 ) + 32 + - CAST ( NULL AS INTEGER ) + + 56 / + 7 AS col2, 26 * + 25 + + 52 AS col2 query I rowsort label-9179 @@ -48363,7 +48363,7 @@ SELECT - COUNT ( * ) + + 35 * - - MAX ( - 19 ) * + ( - - COUNT ( * ) ) * - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "CASE \(\- Int64\(89\)\) WHEN CAST\(NULL AS Int32\) \+ Int64\(\-74\) THEN NULL ELSE Int64\(45\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "CASE \(\- Int64\(89\)\) WHEN CAST\(NULL AS Int64\) \+ Int64\(\-74\) THEN NULL ELSE Int64\(45\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 61 AS col0, CASE - + 89 WHEN CAST ( NULL AS INTEGER ) + - 74 THEN NULL ELSE 45 END AS col0 query I rowsort label-9194 @@ -50705,7 +50705,7 @@ SELECT CAST ( - - 42 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL != Int64\(41\) THEN NULL WHEN NOT Int64\(27\) IS NOT NULL THEN Int64\(\-51\) / max\(Int64\(11\)\) END \* CAST\(Int64\(6\) AS Int32\) \+ Int64\(\-67\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL != Int64\(41\) THEN NULL WHEN NOT Int64\(27\) IS NOT NULL THEN Int64\(\-51\) / max\(Int64\(11\)\) END \* CAST\(Int64\(6\) AS Int64\) \+ Int64\(\-67\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CASE WHEN NOT NULL <> + 41 THEN NULL WHEN NOT 27 IS NOT NULL THEN - 51 / + MAX ( ALL 11 ) END * + CAST ( + 6 AS INTEGER ) + - 67 col0, 79 AS col0 query I rowsort label-9636 @@ -52063,7 +52063,7 @@ SELECT ( + 78 ) + - - 40 * + - 15 * - COUNT ( * ) AS col1, COUNT ( * ) * + - SUM # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1263 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(\-51\)\)\) \+ Int64\(28\) AS col2" at position 0 and "CAST\(Int64\(27\) AS Int32\) \* Int64\(47\) \+ Int64\(75\) \- Int64\(42\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(\-51\)\)\) \+ Int64\(28\) AS col2" at position 0 and "CAST\(Int64\(27\) AS Int64\) \* Int64\(47\) \+ Int64\(75\) \- Int64\(42\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + + ( - COUNT ( - 51 ) ) + + 28 AS col2, CAST ( + 27 AS INTEGER ) * + ( 47 ) + 75 - + 42 + + - 39 AS col2 # Datafusion - Datafusion expected results: diff --git a/data/sqlite/random/expr/slt_good_92.slt b/data/sqlite/random/expr/slt_good_92.slt index bbf4d16..5906757 100644 --- a/data/sqlite/random/expr/slt_good_92.slt +++ b/data/sqlite/random/expr/slt_good_92.slt @@ -4919,7 +4919,7 @@ SELECT - + ( + + 88 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(26\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "min\(Int64\(71\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(8\) AS Int32\)\) \+ Int64\(26\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(26\)\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "min\(Int64\(71\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(8\) AS Int64\)\) \+ Int64\(26\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 37 + - + 26 + - + CAST ( NULL AS INTEGER ) col0, + MIN ( 71 ) - - - COUNT ( * ) + - CAST ( 8 AS INTEGER ) + + 26 * - ( - COUNT ( * ) ) * - 38 AS col0 query I rowsort @@ -5050,7 +5050,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-37\) \* Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-37\) \* Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, - 37 * - 49 AS col0 query I rowsort label-957 @@ -5478,7 +5478,7 @@ SELECT 33 - - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(20\) \* \(\- Int64\(6\)\) \+ \(\- \(\- Int64\(28\)\)\) AS col0" at position 0 and "Int64\(\-91\) \* \(\- Int64\(\-35\)\) / CASE \(\- Int64\(\-73\)\) WHEN CAST\(CAST\(Int64\(\-4\) AS Int32\) AS Int32\) \* \(\- Int64\(92\)\) THEN Int64\(75\) \* Int64\(0\) \+ Int64\(33\) \+ Int64\(77\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(Int64\(26\) AS Int32\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(20\) \* \(\- Int64\(6\)\) \+ \(\- \(\- Int64\(28\)\)\) AS col0" at position 0 and "Int64\(\-91\) \* \(\- Int64\(\-35\)\) / CASE \(\- Int64\(\-73\)\) WHEN CAST\(CAST\(Int64\(\-4\) AS Int64\) AS Int64\) \* \(\- Int64\(92\)\) THEN Int64\(75\) \* Int64\(0\) \+ Int64\(33\) \+ Int64\(77\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(Int64\(26\) AS Int64\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 7 + + + 20 * - + 6 + + ( - - ( + 28 ) ) AS col0, - 91 * - - 35 / + CASE - - 73 WHEN + CAST ( + ( + CAST ( - 4 AS INTEGER ) ) AS INTEGER ) * - + 92 THEN 75 * + 0 + + 33 + 77 WHEN - - COUNT ( * ) + + CAST ( 26 AS INTEGER ) THEN NULL END AS col0 query I rowsort label-1037 @@ -6958,7 +6958,7 @@ SELECT DISTINCT + + NULLIF ( + ( - + 71 ), + 56 - + 3 - + - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3820 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-79\) \+ Int64\(51\) AS col1" at position 0 and "avg\(DISTINCT CAST\(\(\- CASE Int64\(23\) WHEN Int64\(48\) \* Int64\(\-44\) \- Int64\(\-6\) \+ Int64\(\-21\) THEN Int64\(1\) \+ Int64\(\-52\) \* Int64\(85\) \+ Int64\(\-35\) \+ Int64\(\-84\) / Int64\(65\) WHEN CAST\(NULL AS Int32\) / \(\- Int64\(57\)\) THEN NULL END\) AS Int32\)\) \* Int64\(77\) \- Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-79\) \+ Int64\(51\) AS col1" at position 0 and "avg\(DISTINCT CAST\(\(\- CASE Int64\(23\) WHEN Int64\(48\) \* Int64\(\-44\) \- Int64\(\-6\) \+ Int64\(\-21\) THEN Int64\(1\) \+ Int64\(\-52\) \* Int64\(85\) \+ Int64\(\-35\) \+ Int64\(\-84\) / Int64\(65\) WHEN CAST\(NULL AS Int64\) / \(\- Int64\(57\)\) THEN NULL END\) AS Int64\)\) \* Int64\(77\) \- Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 49 * - 79 + + 51 AS col1, AVG ( DISTINCT + CAST ( + - CASE + 23 WHEN 48 * - 44 - - 6 + - 21 THEN + 1 + - 52 * + 85 + - 35 + - 84 / 65 WHEN + CAST ( NULL AS INTEGER ) / - + 57 THEN NULL END AS INTEGER ) ) * + + 77 - - 43 AS col1 # Datafusion - Datafusion expected results: @@ -11795,7 +11795,7 @@ SELECT + MAX ( + - 46 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- sum\(Int64\(\-60\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-20\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \* \(\- sum\(Int64\(\-60\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-20\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 70 AS col2, CAST ( NULL AS INTEGER ) * - SUM ( ALL - 60 ) * - ( + - COUNT ( * ) ) * - 20 + - 88 AS col2 query I rowsort @@ -15836,7 +15836,7 @@ SELECT + + 91 + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 884 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- Int64\(\-34\)\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-26\) \+ Int64\(21\) \+ Int64\(77\) \* Int64\(72\) \* Int64\(71\) \* count\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- Int64\(\-34\)\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-26\) \+ Int64\(21\) \+ Int64\(77\) \* Int64\(72\) \* Int64\(71\) \* count\(\(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 26 * - - 34 AS col2, 4 * + - 26 + 21 + 77 * + 72 * + 71 * + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort @@ -16571,7 +16571,7 @@ SELECT DISTINCT - 75 - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 419490 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(90\) \* Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- min\(Int64\(25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(90\) \* Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- min\(Int64\(25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 79 * + 90 * + 59 * COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + - MIN ( 25 ) AS col2 query I rowsort label-3146 @@ -20862,7 +20862,7 @@ SELECT DISTINCT - MAX ( DISTINCT - + 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 query II rowsort label-3968 @@ -24851,7 +24851,7 @@ SELECT ALL + MAX ( ALL + 26 ) * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1856 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(58\) AS col2" at position 0 and "CAST\(Int64\(27\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(58\) AS col2" at position 0 and "CAST\(Int64\(27\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 32 * + 58 AS col2, + CAST ( + 27 AS INTEGER ) col2 query I rowsort label-4731 @@ -25372,7 +25372,7 @@ SELECT ALL + + 40 * + 95 + + 98 + + + 26 * - - ( - 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "nullif\(Int64\(\-96\), Int64\(9\) \- Int64\(92\) \+ Int64\(53\)\) \- Int64\(62\) \+ count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- Int64\(\-48\)\), CAST\(Int64\(41\) AS Int32\) \* sum\(DISTINCT Int64\(71\)\)\) / Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "nullif\(Int64\(\-96\), Int64\(9\) \- Int64\(92\) \+ Int64\(53\)\) \- Int64\(62\) \+ count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- Int64\(\-48\)\), CAST\(Int64\(41\) AS Int64\) \* sum\(DISTINCT Int64\(71\)\)\) / Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( 60 ) AS col0, + NULLIF ( - 96, 9 - 92 + + 53 ) - + 62 + + + COUNT ( * ) * COALESCE ( - - 48, + CAST ( + 41 AS INTEGER ) * SUM ( DISTINCT 71 ) ) / 54 AS col0 query I rowsort label-4828 @@ -26853,7 +26853,7 @@ SELECT DISTINCT NULLIF ( 9, 52 * 59 ) / 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(99\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(99\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, 99 + 87 AS col2 query I rowsort label-5113 @@ -31324,7 +31324,7 @@ SELECT DISTINCT + 96 * 99 + - ( - + COUNT ( * ) ) - - - NULLIF ( - COUNT ( - - 5 # Datafusion - Expected - NULL # Datafusion - Expected - 25 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(30\)\) \+ \(\- Int64\(28\)\) \* \(\- Int64\(25\)\) \* Int64\(\-45\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- Int64\(30\)\) \+ \(\- Int64\(28\)\) \* \(\- Int64\(25\)\) \* Int64\(\-45\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - + 30 + - + 28 * - + ( + 25 ) * - 45 AS col1, - ( - + 55 ) + - 30, 56 AS col1 query II rowsort @@ -31477,7 +31477,7 @@ SELECT 56 / 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(16\) AS col1" at position 0 and "\(\- min\(Int64\(92\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(16\) AS col1" at position 0 and "\(\- min\(Int64\(92\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( CAST ( NULL AS INTEGER ) ) + 16 AS col1, - MIN ( ALL + 92 ) AS col1 query I rowsort label-5987 @@ -31957,7 +31957,7 @@ SELECT + COUNT ( - ( - 31 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(12\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(12\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 80 + 12 AS col2, CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -36955,7 +36955,7 @@ SELECT ALL ( + 50 ) * 61 * - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 350 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(25\) AS col0" at position 0 and "Int64\(15\) \+ CAST\(\(\- Int64\(\-98\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(25\) AS col0" at position 0 and "Int64\(15\) \+ CAST\(\(\- Int64\(\-98\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 14 * + 25 col0, 15 + + CAST ( - - 98 AS INTEGER ) AS col0 query I rowsort label-7035 @@ -37526,7 +37526,7 @@ SELECT - CASE - ( + CASE - MIN ( + - 42 ) WHEN + 44 THEN NULL WHEN 20 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(82\) \+ CAST\(\(\- CAST\(Int64\(\-53\) AS Int32\)\) AS Int32\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(82\) \+ CAST\(\(\- CAST\(Int64\(\-53\) AS Int64\)\) AS Int64\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 + + + 82 + + CAST ( - CAST ( - 53 AS INTEGER ) AS INTEGER ) AS col1, + 10 AS col1 query I rowsort label-7144 @@ -37806,7 +37806,7 @@ SELECT ALL + 49 * 32, 88 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(32\) \* coalesce\(Int64\(\-41\), Int64\(66\)\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-97\) \* Int64\(6\) \+ \(\- Int64\(41\)\) \+ \(\- Int64\(\-50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(32\) \* coalesce\(Int64\(\-41\), Int64\(66\)\) / \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-97\) \* Int64\(6\) \+ \(\- Int64\(41\)\) \+ \(\- Int64\(\-50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 8 AS col0, 32 * ( + COALESCE ( + - 41, 66 ) ) / + - CAST ( NULL AS INTEGER ) * - 97 * + 6 + - + 41 + - - 50 AS col0 query I rowsort label-7197 @@ -38135,7 +38135,7 @@ SELECT 92 * ( - - 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(\-53\) AS col1" at position 0 and "CASE Int64\(73\) WHEN Int64\(\-61\) \+ CASE Int64\(\-67\) WHEN Int64\(\-25\) THEN Int64\(51\) \* \(\- Int64\(3\)\) END THEN \(\- \(\- nullif\(Int64\(78\), Int64\(71\)\)\)\) \+ Int64\(15\) WHEN Int64\(\-35\) \+ nullif\(\(\- CAST\(Int64\(11\) AS Int32\)\), \(\- CASE Int64\(72\) WHEN Int64\(72\) THEN Int64\(\-80\) \* Int64\(90\) ELSE NULL END\)\) \+ Int64\(83\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* \(\- CASE Int64\(\-59\) \+ nullif\(Int64\(73\), Int64\(\-23\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-77\) / Int64\(27\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(\-53\) AS col1" at position 0 and "CASE Int64\(73\) WHEN Int64\(\-61\) \+ CASE Int64\(\-67\) WHEN Int64\(\-25\) THEN Int64\(51\) \* \(\- Int64\(3\)\) END THEN \(\- \(\- nullif\(Int64\(78\), Int64\(71\)\)\)\) \+ Int64\(15\) WHEN Int64\(\-35\) \+ nullif\(\(\- CAST\(Int64\(11\) AS Int64\)\), \(\- CASE Int64\(72\) WHEN Int64\(72\) THEN Int64\(\-80\) \* Int64\(90\) ELSE NULL END\)\) \+ Int64\(83\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* \(\- CASE Int64\(\-59\) \+ nullif\(Int64\(73\), Int64\(\-23\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-77\) / Int64\(27\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 85 + - 53 AS col1, CASE 73 WHEN - 61 + + CASE - 67 WHEN + - 25 THEN + + 51 * - + 3 END THEN - - ( + NULLIF ( 78, 71 ) ) + 15 WHEN - 35 + NULLIF ( - CAST ( 11 AS INTEGER ), - CASE 72 WHEN + 72 THEN - 80 * 90 ELSE NULL END ) + + 83 THEN NULL ELSE - COUNT ( * ) END * - CASE - 59 + + NULLIF ( 73, - 23 ) WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 77 / + 27 ELSE NULL END AS col1 query II rowsort @@ -40684,7 +40684,7 @@ SELECT + + SUM ( + + 67 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / \(\- Int64\(\-44\)\) \+ \(\- Int64\(72\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / \(\- Int64\(\-44\)\) \+ \(\- Int64\(72\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 / - - 44 + - ( + 72 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 query II rowsort @@ -42101,7 +42101,7 @@ SELECT - COALESCE ( 64, - 85 - - 10 * COUNT ( + 36 ) * + ( 52 ) ) AS col0, + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -739 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \+ Int64\(\-8\) \* Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(58\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(58\), Int64\(33\)\)\) / \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \+ Int64\(\-8\) \* Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(58\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(58\), Int64\(33\)\)\) / \(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 30 + + - 8 * + 96 + + COUNT ( * ) + - - ( + 58 ) col1, ( - NULLIF ( + 58, + 33 ) ) / + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 query I rowsort @@ -45775,7 +45775,7 @@ SELECT ALL + ( 22 ) - - 78 + 35 + - + 63 * - 30 + + 56 + - - 81 + - 7 + - SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-52\), CAST\(Int64\(\-79\) AS Int32\) \* Int64\(59\)\) \* CAST\(NULL AS Float64\) \* Int64\(83\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-52\), CAST\(Int64\(\-79\) AS Int64\) \* Int64\(59\)\) \* CAST\(NULL AS Float64\) \* Int64\(83\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( - 52, CAST ( - 79 AS INTEGER ) * + 59 ) * + CAST ( NULL AS FLOAT8 ) * 83 AS col2, COUNT ( * ) / - 34 AS col2 query I rowsort label-8715 @@ -46338,7 +46338,7 @@ SELECT 47 * 49 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(21\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(21\) \* \(\- CAST\(NULL AS Int64\)\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 17 AS col0, 21 * - CAST ( NULL AS INTEGER ) - + + 81 col0 query I rowsort label-8822 @@ -46499,7 +46499,7 @@ SELECT 10 * 29 * + 43 + 7 AS col0 # Datafusion - Expected - -450 # Datafusion - Expected - NULL # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(55\) \+ sum\(CAST\(NULL AS Int32\)\) \+ Int64\(53\) AS col1" at position 1 and "Int64\(2\) \+ Int64\(\-50\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(55\) \+ sum\(CAST\(NULL AS Int64\)\) \+ Int64\(53\) AS col1" at position 1 and "Int64\(2\) \+ Int64\(\-50\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - MIN ( DISTINCT 45 ) * + - COUNT ( * ) * - NULLIF ( + 10, - - COUNT ( DISTINCT - - ( 81 ) ) ), 86 * + 55 + SUM ( CAST ( NULL AS INTEGER ) ) + 53 AS col1, 2 + - 50 AS col1 query I rowsort @@ -46526,7 +46526,7 @@ SELECT ( + - 72 ) + + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- Int64\(\-37\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- Int64\(\-37\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 52 + - - 37 AS col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 query I rowsort @@ -47074,7 +47074,7 @@ SELECT - 12 * - 82 + 13 * 51 + + + CAST ( + CASE + 22 WHEN - CASE WHEN 17 <> 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(25\) \* Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / CAST\(NULL AS Int64\) AS col1" at position 0 and "Int64\(25\) \* Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 23 / + CAST ( NULL AS INTEGER ) AS col1, + 25 * - 97 col1 query I rowsort label-8961 @@ -50055,7 +50055,7 @@ SELECT DISTINCT - 73 + SUM ( DISTINCT 47 ) + + 31 + + 76 + ( + 81 ) + + 60 * + + # Datafusion - Expected - NULL # Datafusion - Expected - 1449 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(40\), Int64\(87\)\) / \(\- nullif\(Int64\(\-84\), Int64\(\-29\)\)\) \* Int64\(58\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-23\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(40\), Int64\(87\)\) / \(\- nullif\(Int64\(\-84\), Int64\(\-29\)\)\) \* Int64\(58\) \+ \(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(\-23\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + 40, + 87 ) / - NULLIF ( - 84, - 29 ) * 58 + - CAST ( NULL AS INTEGER ) col2, - 23 * - 63 AS col2, + + 33 col2 query I rowsort label-9526 @@ -50495,7 +50495,7 @@ SELECT ALL 18 * + ( 32 ), 63 + - COUNT ( * ) * - + 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(\(\- Int64\(\-86\)\), \(\- CASE min\(\(\- Int64\(65\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-17\), count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(44\)\) \+ \(\- nullif\(Int64\(76\), \(\- Int64\(73\)\) \* \(\- Int64\(\-47\)\) \+ Int64\(82\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \* Int64\(\-73\)\) THEN CASE Int64\(\-76\) WHEN Int64\(\-99\) / Int64\(18\) \- CAST\(NULL AS Float64\) THEN NULL WHEN \(\- nullif\(Int64\(\-53\), Int64\(4\) / Int64\(71\)\)\) / Int64\(86\) \+ \(\- Int64\(\-47\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(81\) \* Int64\(\-34\) END ELSE NULL END\) \+ Int64\(\-20\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(\(\- Int64\(\-86\)\), \(\- CASE min\(\(\- Int64\(65\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-17\), count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(44\)\) \+ \(\- nullif\(Int64\(76\), \(\- Int64\(73\)\) \* \(\- Int64\(\-47\)\) \+ Int64\(82\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\) \* Int64\(\-73\)\) THEN CASE Int64\(\-76\) WHEN Int64\(\-99\) / Int64\(18\) \- CAST\(NULL AS Float64\) THEN NULL WHEN \(\- nullif\(Int64\(\-53\), Int64\(4\) / Int64\(71\)\)\) / Int64\(86\) \+ \(\- Int64\(\-47\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(81\) \* Int64\(\-34\) END ELSE NULL END\) \+ Int64\(\-20\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( - - COALESCE ( - - 86, + - CASE + + MIN ( - + 65 ) WHEN + COUNT ( * ) * NULLIF ( - 17, + COUNT ( * ) - - + 44 + + - NULLIF ( + 76, - + 73 * - - 47 + 82 * + + CAST ( - COUNT ( * ) AS INTEGER ) ) * - 73 ) THEN CASE - 76 WHEN - 99 / + 18 - + CAST ( NULL AS FLOAT8 ) THEN NULL WHEN - ( + NULLIF ( + + ( + - 53 ), 4 / ( + 71 ) ) ) / 86 + - ( + - 47 ) THEN - - COUNT ( * ) * + 81 * - 34 END ELSE NULL END + - 20 ) ) AS col1, COUNT ( * ) + + 28 AS col1 query I rowsort label-9611 @@ -51865,7 +51865,7 @@ SELECT - 91 AS col1, - 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -2106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-68\)\) AS Int32\) / \(\- Int64\(61\)\) \+ Int64\(37\) \+ Int64\(7\) \+ Int64\(27\) \* Int64\(\-76\) \+ Int64\(\-96\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-68\)\) AS Int64\) / \(\- Int64\(61\)\) \+ Int64\(37\) \+ Int64\(7\) \+ Int64\(27\) \* Int64\(\-76\) \+ Int64\(\-96\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 58 col0, CAST ( - - 68 AS INTEGER ) / - + 61 + + 37 + + + 7 + 27 * + - 76 + + - 96 + - COUNT ( * ) AS col0 query II rowsort diff --git a/data/sqlite/random/expr/slt_good_93.slt b/data/sqlite/random/expr/slt_good_93.slt index 7bf263d..6c6ed14 100644 --- a/data/sqlite/random/expr/slt_good_93.slt +++ b/data/sqlite/random/expr/slt_good_93.slt @@ -3252,7 +3252,7 @@ SELECT + 92 * + 28 - + + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 8 AS col1, - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -3963,7 +3963,7 @@ SELECT - + NULLIF ( + + COUNT ( * ), + - MIN ( - + 75 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-46\)\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-46\)\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - 46 ) AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-747 @@ -7590,7 +7590,7 @@ SELECT - 90 * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2378 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(\-98\) \* max\(Int64\(\-24\)\) AS col0" at position 0 and "\(\- \(\- CAST\(Int64\(23\) AS Int32\)\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(\-98\) \* max\(Int64\(\-24\)\) AS col0" at position 0 and "\(\- \(\- CAST\(Int64\(23\) AS Int64\)\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 + - 98 * MAX ( - 24 ) AS col0, - ( - CAST ( + + 23 AS INTEGER ) ) + 97 col0 query II rowsort @@ -9622,7 +9622,7 @@ SELECT 84 / - - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "CAST\(NULL AS Int64\) / Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 AS col2, CAST ( NULL AS INTEGER ) / 12 AS col2 query I rowsort label-1830 @@ -11009,7 +11009,7 @@ SELECT ALL + 13 * - + 3 + + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(\-31\) \+ \(\- Int64\(\-93\)\) \+ CASE coalesce\(\(\- Int64\(\-41\)\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(29\) THEN \(\- \(\- CAST\(NULL AS Int32\)\)\) WHEN \(\- Int64\(\-84\)\) \+ Int64\(\-97\) THEN NULL ELSE Int64\(83\) \- \(\- CAST\(NULL AS Int32\)\) END \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(\-31\) \+ \(\- Int64\(\-93\)\) \+ CASE coalesce\(\(\- Int64\(\-41\)\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(29\) THEN \(\- \(\- CAST\(NULL AS Int64\)\)\) WHEN \(\- Int64\(\-84\)\) \+ Int64\(\-97\) THEN NULL ELSE Int64\(83\) \- \(\- CAST\(NULL AS Int64\)\) END \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 63 AS col1, - 31 + - - 93 + CASE COALESCE ( - - 41, + COUNT ( * ) ) WHEN 29 THEN - - CAST ( NULL AS INTEGER ) WHEN - - 84 + - 97 THEN NULL ELSE + 83 - - CAST ( NULL AS INTEGER ) END * + + 84 col1 query I rowsort @@ -12918,7 +12918,7 @@ SELECT ALL - 38 + + - 4 - - - NULLIF ( - - 88, + COALESCE ( + 85, - 19 * - NULLI # Datafusion - Expected - 30 # Datafusion - Expected - 23 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "CAST\(\(\- \(\- CAST\(Int64\(23\) AS Int32\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "CAST\(\(\- \(\- CAST\(Int64\(23\) AS Int64\)\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 AS col0, CAST ( - - CAST ( 23 AS INTEGER ) AS INTEGER ) AS col0, + + 19 AS col2 query I rowsort label-2455 @@ -14063,7 +14063,7 @@ SELECT 30 * - 55 + + - NULLIF ( - + COUNT ( * ), - 65 ) AS col0 # Datafusion - Expected - 70 # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-23\)\)\) / CAST\(NULL AS Int32\) \+ Int64\(94\) \+ \(\- coalesce\(Int64\(38\), Int64\(\-38\), Int64\(43\) \* Int64\(43\)\)\) \+ Int64\(10\) AS col2" at position 1 and "Int64\(29\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-23\)\)\) / CAST\(NULL AS Int64\) \+ Int64\(94\) \+ \(\- coalesce\(Int64\(38\), Int64\(\-38\), Int64\(43\) \* Int64\(43\)\)\) \+ Int64\(10\) AS col2" at position 1 and "Int64\(29\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 70, MIN ( - - 23 ) / + CAST ( NULL AS INTEGER ) + 94 + - COALESCE ( + 38, - 38, 43 * + 43 ) + + 10 AS col2, + 29 col2 query I rowsort @@ -14858,7 +14858,7 @@ SELECT 82 / - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-27\) \+ CASE Int64\(\-99\) WHEN \(\- \(\- Int64\(60\)\)\) \+ Int64\(25\) \+ \(\- CAST\(Int64\(\-24\) AS Int32\)\) THEN NULL WHEN Int64\(89\) THEN Int64\(\-91\) ELSE Int64\(94\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-27\) \+ CASE Int64\(\-99\) WHEN \(\- \(\- Int64\(60\)\)\) \+ Int64\(25\) \+ \(\- CAST\(Int64\(\-24\) AS Int64\)\) THEN NULL WHEN Int64\(89\) THEN Int64\(\-91\) ELSE Int64\(94\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, - 27 + + CASE - 99 WHEN - - ( 60 ) + + 25 + - CAST ( - 24 AS INTEGER ) THEN NULL WHEN + 89 THEN - 91 ELSE 94 END AS col0 query II rowsort label-2822 @@ -15902,7 +15902,7 @@ SELECT ALL COUNT ( * ) * + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(38\) \+ Int64\(\-77\) \* \(\- Int64\(\-17\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-51\) \* Int64\(0\) AS col0" at position 0 and "\(\- count\(Int64\(12\)\)\) / Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) / Int64\(\-47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(38\) \+ Int64\(\-77\) \* \(\- Int64\(\-17\)\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-51\) \* Int64\(0\) AS col0" at position 0 and "\(\- count\(Int64\(12\)\)\) / Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) / Int64\(\-47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 51 * + 38 + - 77 * - - 17 + - CAST ( NULL AS INTEGER ) + - 51 * + 0 AS col0, - COUNT ( 12 ) / ( + + 33 ) + COUNT ( * ) * + 75 / + - 47 + - + COUNT ( * ) AS col0 query I rowsort label-3018 @@ -22064,7 +22064,7 @@ SELECT 2 * + + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -2125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(62\)\) AS col1" at position 0 and "coalesce\(\(\- CASE Int64\(10\) WHEN \(\- \(\- max\(Int64\(\-8\)\)\)\) \+ Int64\(84\) THEN coalesce\(Int64\(86\), Int64\(47\) \* max\(Int64\(81\)\)\) \* Int64\(48\) END\), coalesce\(Int64\(98\), Int64\(62\) \+ \(\- Int64\(\-5\)\), Int64\(49\) \* Int64\(\-50\)\) \* Int64\(\-23\) \- \(\- coalesce\(Int64\(98\), Int64\(\-64\), CAST\(Int64\(\-31\) AS Int32\)\)\)\) \- Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(62\)\) AS col1" at position 0 and "coalesce\(\(\- CASE Int64\(10\) WHEN \(\- \(\- max\(Int64\(\-8\)\)\)\) \+ Int64\(84\) THEN coalesce\(Int64\(86\), Int64\(47\) \* max\(Int64\(81\)\)\) \* Int64\(48\) END\), coalesce\(Int64\(98\), Int64\(62\) \+ \(\- Int64\(\-5\)\), Int64\(49\) \* Int64\(\-50\)\) \* Int64\(\-23\) \- \(\- coalesce\(Int64\(98\), Int64\(\-64\), CAST\(Int64\(\-31\) AS Int64\)\)\)\) \- Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + SUM ( DISTINCT + + 62 ) AS col1, COALESCE ( + - CASE + 10 WHEN - - MAX ( - 8 ) + + 84 THEN + ( + + COALESCE ( 86, + 47 * + MAX ( ALL + + ( 81 ) ) ) ) * + + 48 END, + + COALESCE ( 98, + 62 + - - 5, 49 * - 50 ) * - 23 - - COALESCE ( 98, - 64, + CAST ( - 31 AS INTEGER ) ) ) - - 31 col1 query I rowsort label-4190 @@ -24261,7 +24261,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(69\) AS Int32\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(69\) AS Int64\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( 69 AS INTEGER ) AS col1, - 61 AS col1 query I rowsort @@ -24304,7 +24304,7 @@ SELECT + 33 / + MAX ( - 99 ) - + - COUNT ( * ) + + 30 * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-13\) AS Int32\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-13\) AS Int64\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + - 13 AS INTEGER ) AS col2, 89 AS col2 query I rowsort label-4615 @@ -24453,7 +24453,7 @@ SELECT ALL + 27 * + - NULLIF ( + CAST ( - 88 AS INTEGER ), - - 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \- \(\- Int64\(\-3\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \- \(\- Int64\(\-3\)\) \* CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 72 - - - 3 * CAST ( NULL AS INTEGER ) AS col0, + 56 AS col0 query I rowsort label-4643 @@ -25340,7 +25340,7 @@ SELECT DISTINCT + 82 AS col2, - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7776 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(26\) THEN NULL WHEN Int64\(\-60\) \* Int64\(31\) THEN NULL ELSE Int64\(81\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) END AS col2" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int32\) \+ Int64\(76\) \* \(\- CASE \(\- \(\- Int64\(93\)\)\) WHEN Int64\(8\) THEN max\(\(\- Int64\(46\)\)\) \- Int64\(40\) / nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CASE Int64\(\-87\) WHEN Int64\(\-78\) / Int64\(71\) \* Int64\(5\) \* Int64\(7\) \+ \(\- Int64\(76\)\) THEN NULL WHEN Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-4\) \+ CASE Int64\(47\) WHEN \(\- Int64\(31\)\) \* min\(DISTINCT \(\- Int64\(\-83\)\)\) THEN Int64\(71\) \+ Int64\(16\) END THEN Int64\(\-58\) WHEN \(\- Int64\(\-43\)\) / coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(14\) \* Int64\(59\) \* coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-70\) \+ Int64\(\-94\), Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(2\), Int64\(47\)\) THEN Int64\(\-54\) \* Int64\(31\) END\) \* count\(Int64\(1\)\) AS count\(\*\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(26\) THEN NULL WHEN Int64\(\-60\) \* Int64\(31\) THEN NULL ELSE Int64\(81\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) END AS col2" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int64\) \+ Int64\(76\) \* \(\- CASE \(\- \(\- Int64\(93\)\)\) WHEN Int64\(8\) THEN max\(\(\- Int64\(46\)\)\) \- Int64\(40\) / nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CASE Int64\(\-87\) WHEN Int64\(\-78\) / Int64\(71\) \* Int64\(5\) \* Int64\(7\) \+ \(\- Int64\(76\)\) THEN NULL WHEN Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-4\) \+ CASE Int64\(47\) WHEN \(\- Int64\(31\)\) \* min\(DISTINCT \(\- Int64\(\-83\)\)\) THEN Int64\(71\) \+ Int64\(16\) END THEN Int64\(\-58\) WHEN \(\- Int64\(\-43\)\) / coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(14\) \* Int64\(59\) \* coalesce\(\(\- CAST\(NULL AS Int64\)\), Int64\(\-70\) \+ Int64\(\-94\), Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(2\), Int64\(47\)\) THEN Int64\(\-54\) \* Int64\(31\) END\) \* count\(Int64\(1\)\) AS count\(\*\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE + COUNT ( * ) WHEN + 26 THEN NULL WHEN - 60 * + 31 THEN NULL ELSE + + 81 * + - COUNT ( * ) * + 96 END AS col2, 29 - CAST ( NULL AS INTEGER ) + + 76 * - + CASE - - ( + + 93 ) WHEN 8 THEN + ( MAX ( ALL - + 46 ) ) - + 40 / NULLIF ( - COUNT ( * ), + CASE + - 87 WHEN + - 78 / + + 71 * 5 * 7 + - + ( + 76 ) THEN NULL WHEN - 92 * + + COUNT ( * ) + - 4 + + + CASE + 47 WHEN - + 31 * + MIN ( DISTINCT - - 83 ) THEN + + 71 + 16 END THEN - 58 WHEN - - 43 / + COALESCE ( - + COUNT ( * ), 14 * 59 * + COALESCE ( - + CAST ( NULL AS INTEGER ), - 70 + - 94, + 6 * - COUNT ( * ) ) * + 2, 47 ) THEN - 54 * + 31 END ) * + COUNT ( * ) END AS col2 query II rowsort label-4812 @@ -28037,7 +28037,7 @@ SELECT + 46 / + - 90, 99 / - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(50\) AS Int32\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(50\) AS Int64\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 50 AS INTEGER ) AS col0, 31 AS col0 query I rowsort label-5332 @@ -29334,7 +29334,7 @@ SELECT ALL + 95, 80 * 76 * - + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int32\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-76\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int64\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-76\) \- \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 16 AS INTEGER ) AS col0, 60 * ( - 76 ) - - - CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -32351,7 +32351,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* CAST\(NULL AS Int32\) \* Int64\(82\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* CAST\(NULL AS Int64\) \* Int64\(82\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 57 * + CAST ( NULL AS INTEGER ) * 82 AS col0, + 61 AS col0 query I rowsort @@ -33927,7 +33927,7 @@ SELECT + ( + COUNT ( * ) ) * - 96 + + + COALESCE ( + 9, COUNT ( * ) ) + - - 14 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -155 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-60\) AS Int32\) \- Int64\(2\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(63\) \- Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-60\) AS Int64\) \- Int64\(2\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(63\) \- Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 60 AS INTEGER ) - 2 + - 93 AS col1, 63 - - 29 AS col1 query I rowsort @@ -38676,7 +38676,7 @@ SELECT + 15 / - 89 AS col2, 92 * 53 / 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-44\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-13\) \+ Int64\(8\) \* \(\- Int64\(\-28\)\) \* CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(16\)\)\) AS col2" at position 0 and "\(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-44\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-13\) \+ Int64\(8\) \* \(\- Int64\(\-28\)\) \* CAST\(NULL AS Int64\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(16\)\)\) AS col2" at position 0 and "\(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - NULLIF ( - 44, - COUNT ( * ) - + COUNT ( * ) + - 13 + 8 * - - 28 * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + 16 ) col2, - ( + 65 ) AS col2 query I rowsort label-7363 @@ -38905,7 +38905,7 @@ SELECT 58 + - 17 + ( - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-11\), Int64\(\-69\)\) \+ Int64\(27\) AS col2" at position 0 and "CASE \(\- CAST\(Int64\(91\) AS Int32\)\) WHEN Int64\(16\) THEN \(\- Int64\(97\)\) / \(\- count\(Int64\(\-77\)\)\) WHEN \(\- \(\- min\(Int64\(42\)\)\)\) \* Int64\(83\) THEN \(\- Int64\(\-15\)\) \* Int64\(98\) / Int64\(\-2\) \* Int64\(\-96\) \+ Int64\(39\) \+ \(\- Int64\(55\)\) \* Int64\(\-39\) END \+ coalesce\(coalesce\(Int64\(\-5\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(11\)\) / Int64\(97\) \- Int64\(36\) \+ Int64\(47\)\), Int64\(\-4\) \- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-11\), Int64\(\-69\)\) \+ Int64\(27\) AS col2" at position 0 and "CASE \(\- CAST\(Int64\(91\) AS Int64\)\) WHEN Int64\(16\) THEN \(\- Int64\(97\)\) / \(\- count\(Int64\(\-77\)\)\) WHEN \(\- \(\- min\(Int64\(42\)\)\)\) \* Int64\(83\) THEN \(\- Int64\(\-15\)\) \* Int64\(98\) / Int64\(\-2\) \* Int64\(\-96\) \+ Int64\(39\) \+ \(\- Int64\(55\)\) \* Int64\(\-39\) END \+ coalesce\(coalesce\(Int64\(\-5\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(11\)\) / Int64\(97\) \- Int64\(36\) \+ Int64\(47\)\), Int64\(\-4\) \- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + NULLIF ( - 11, - 69 ) + 27 AS col2, + CASE - CAST ( 91 AS INTEGER ) WHEN ( + 16 ) THEN - + 97 / - COUNT ( - 77 ) WHEN - - ( + MIN ( ALL + + 42 ) ) * 83 THEN - - 15 * + 98 / - 2 * - 96 + + 39 + - + 55 * - 39 END + + COALESCE ( COALESCE ( - 5, COUNT ( * ) * - + 11 / 97 - + 36 + ( + 47 ) ), - 4 - + 81 ) AS col2 query I rowsort label-7405 @@ -39648,13 +39648,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(75\) \+ avg\(Int64\(57\)\) / \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int64\)\) \* Int64\(75\) \+ avg\(Int64\(57\)\) / \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) * + 11 col2, - COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * ( 75 ) + AVG ( ALL + + 57 ) / - - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(2\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) \+ Int64\(2\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 2 AS col2, 36 AS col2 query II rowsort label-7545 @@ -40130,7 +40130,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(14\) \* coalesce\(Int64\(\-92\), \(\- Int64\(1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) \+ Int64\(\-17\) \* \(\- coalesce\(Int64\(\-3\), Int64\(49\)\)\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-43\) \+ Int64\(66\) \* Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(14\) \* coalesce\(Int64\(\-92\), \(\- Int64\(1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) \+ Int64\(\-17\) \* \(\- coalesce\(Int64\(\-3\), Int64\(49\)\)\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-43\) \+ Int64\(66\) \* Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 77 + + + 14 * + COALESCE ( - 92, - + 1 * COUNT ( * ) + + 17 + - 17 * - COALESCE ( - 3, + 49 ) ) * + - CAST ( NULL AS INTEGER ) + - 43 + 66 * 5 AS col1, + COUNT ( * ) + + 96 + 39 AS col1 query I rowsort label-7635 @@ -40323,7 +40323,7 @@ SELECT DISTINCT + 67 - + - CASE - 29 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) TH # Datafusion - Expected - -27 # Datafusion - Expected - 85 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col0" at position 0 and "CAST\(Int64\(85\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col0" at position 0 and "CAST\(Int64\(85\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( 27 ) AS col0, + CAST ( + 85 AS INTEGER ) AS col0, 89 AS col2 query I rowsort label-7671 @@ -42148,7 +42148,7 @@ SELECT ALL + COUNT ( * ) + + - CAST ( NULLIF ( - 0, - COUNT ( * ) + - - AVG ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(Int64\(\-91\) AS Int32\), Int64\(\-15\) \* Int64\(29\) \- \(\- Int64\(28\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(98\) AS Int32\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(Int64\(\-91\) AS Int64\), Int64\(\-15\) \* Int64\(29\) \- \(\- Int64\(28\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(98\) AS Int64\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - COALESCE ( + CAST ( - 91 AS INTEGER ), - 15 * 29 - - + 28 ) AS col0, COUNT ( * ) * CAST ( 98 AS INTEGER ) + 86 col0 query I rowsort label-8018 @@ -43988,7 +43988,7 @@ SELECT DISTINCT + 20 + + - MIN ( DISTINCT 10 ) + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(31\) AS col1" at position 0 and "CAST\(Int64\(39\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(31\) AS col1" at position 0 and "CAST\(Int64\(39\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 30 + + 31 AS col1, CAST ( 39 AS INTEGER ) AS col1 query I rowsort label-8373 @@ -47904,7 +47904,7 @@ SELECT DISTINCT 32 - + + 87 * 48 * + - 55 + - 9 - - COUNT ( DISTINCT + 63 ) - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(67\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-17\) \* Int64\(84\) \+ Int64\(71\) \* \(\- CAST\(NULL AS Int32\)\) \- nullif\(Int64\(17\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(67\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-17\) \* Int64\(84\) \+ Int64\(71\) \* \(\- CAST\(NULL AS Int64\)\) \- nullif\(Int64\(17\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - NULLIF ( + 67, COUNT ( * ) ) AS col0, 60 * - 17 * + 84 + 71 * - CAST ( NULL AS INTEGER ) - + NULLIF ( + 17, - - COUNT ( * ) ) AS col0 query I rowsort @@ -51207,7 +51207,7 @@ SELECT + 28 + + - 77, 67 * 67 - ( 25 ) + + - COALESCE ( 87, + 80 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(18\) \* \(\- min\(Int64\(67\)\)\) \+ Int64\(65\) \* \(\- CAST\(NULL AS Int32\)\) \- \(\- avg\(Int64\(89\)\)\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(87\) / Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(18\) \* \(\- min\(Int64\(67\)\)\) \+ Int64\(65\) \* \(\- CAST\(NULL AS Int64\)\) \- \(\- avg\(Int64\(89\)\)\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(87\) / Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + ( + 84 ) + + + ( + 18 ) * - MIN ( + 67 ) + + 65 * - + CAST ( NULL AS INTEGER ) - - AVG ( 89 ) AS col1, + 79 + + 87 / ( - 38 ) AS col1 query I rowsort label-9745 diff --git a/data/sqlite/random/expr/slt_good_94.slt b/data/sqlite/random/expr/slt_good_94.slt index 8029981..65c340e 100644 --- a/data/sqlite/random/expr/slt_good_94.slt +++ b/data/sqlite/random/expr/slt_good_94.slt @@ -568,7 +568,7 @@ SELECT COUNT ( * ) + CAST ( - 94 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(24\) / \(\- avg\(DISTINCT \(\- Int64\(34\)\)\)\) \* Int64\(20\) \* CASE Int64\(27\) WHEN Int64\(24\) THEN NULL WHEN Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- CAST\(Int64\(69\) AS Int32\)\) THEN nullif\(Int64\(87\), CAST\(NULL AS Int32\)\) ELSE NULL END \+ Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(24\) / \(\- avg\(DISTINCT \(\- Int64\(34\)\)\)\) \* Int64\(20\) \* CASE Int64\(27\) WHEN Int64\(24\) THEN NULL WHEN Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- CAST\(Int64\(69\) AS Int64\)\) THEN nullif\(Int64\(87\), CAST\(NULL AS Int64\)\) ELSE NULL END \+ Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 16 + - 24 AS col1, 24 / - AVG ( DISTINCT - + 34 ) * 20 * + CASE + 27 WHEN 24 THEN NULL WHEN + 51 * - COUNT ( * ) THEN NULL WHEN - CAST ( 69 AS INTEGER ) THEN NULLIF ( + 87, CAST ( NULL AS INTEGER ) ) ELSE NULL END + 45 AS col1 query II rowsort label-101 @@ -1945,7 +1945,7 @@ SELECT 38 + - 6 * + 85 - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(28\) AS col1" at position 0 and "Int64\(\-7\) / Int64\(95\) \* Int64\(12\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(28\) AS col1" at position 0 and "Int64\(\-7\) / Int64\(95\) \* Int64\(12\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 44 * 28 AS col1, - 7 / + + 95 * 12 / COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-363 @@ -3360,7 +3360,7 @@ SELECT ALL + + 17 * 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4717 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(53\)\) AS Int32\)\) \* Int64\(89\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(53\)\) AS Int64\)\) \* Int64\(89\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - CAST ( - + 53 AS INTEGER ) * + + 89 AS col1, 21 AS col1 query I rowsort label-629 @@ -3669,7 +3669,7 @@ SELECT DISTINCT - 63 - + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-68\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-68\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL NULLIF ( - 68, COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ) AS col2, + 41 col2 query I rowsort label-688 @@ -3859,7 +3859,7 @@ SELECT DISTINCT COUNT ( DISTINCT + 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "avg\(DISTINCT Int64\(\-52\)\) \+ Int64\(33\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "avg\(DISTINCT Int64\(\-52\)\) \+ Int64\(33\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( 66, + COUNT ( * ) ) AS col1, AVG ( DISTINCT - 52 ) + 33 - + COUNT ( * ) * + - 91 + - - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS FLOAT8 ) AS col1 query I rowsort label-723 @@ -5100,7 +5100,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- sum\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- sum\(CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 33 * + - SUM ( CAST ( NULL AS INTEGER ) ) AS col2, 60 * - 42 AS col2 query I rowsort @@ -5543,7 +5543,7 @@ SELECT + 68 - - - 76 # Datafusion - Expected - -1332 # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(26\) WHEN CAST\(Int64\(5\) AS Int32\) \* Int64\(59\) \+ Int64\(\-56\) \+ Int64\(\-63\) \- Int64\(\-74\) \* Int64\(2\) \* Int64\(14\) \+ Int64\(38\) THEN Int64\(\-34\) ELSE NULL END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 and "Int64\(17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(26\) WHEN CAST\(Int64\(5\) AS Int64\) \* Int64\(59\) \+ Int64\(\-56\) \+ Int64\(\-63\) \- Int64\(\-74\) \* Int64\(2\) \* Int64\(14\) \+ Int64\(38\) THEN Int64\(\-34\) ELSE NULL END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 and "Int64\(17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 74 * - + CAST ( 18 AS INTEGER ) AS col1, - CASE + + 26 WHEN + CAST ( 5 AS INTEGER ) * + 59 + - 56 + - 63 - + - 74 * + 2 * + 14 + 38 THEN + - 34 ELSE NULL END * - COUNT ( * ) AS col0, 17 AS col0 query I rowsort @@ -6162,7 +6162,7 @@ SELECT + 43 - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "max\(Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "max\(Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) col0, MAX ( - 25 ) AS col0 query I rowsort label-1160 @@ -7273,7 +7273,7 @@ NULL # Datafusion - Expected - 81 # Datafusion - Expected - 84 # Datafusion - Expected - -536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(81\) AS Int32\) AS col2" at position 0 and "Int64\(\-67\) \* Int64\(8\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(81\) AS Int64\) AS col2" at position 0 and "Int64\(\-67\) \* Int64\(8\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + ( 81 ) AS INTEGER ) AS col2, 26 + + COALESCE ( + + 58, + 81 + + - 65 + + 93 * 71 * 19 * + 39 * + - 55 * - 12 ), - 67 * + 8 AS col2 query I rowsort label-1368 @@ -9313,7 +9313,7 @@ SELECT ALL - 10 col0, 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + 54 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + - 75 AS col1 query I rowsort @@ -10147,7 +10147,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 5028 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / \(\- CAST\(Int64\(\-13\) AS Int32\)\) AS col1" at position 0 and "Int64\(54\) \* Int64\(92\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / \(\- CAST\(Int64\(\-13\) AS Int64\)\) AS col1" at position 0 and "Int64\(54\) \* Int64\(92\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 32 / - CAST ( - 13 AS INTEGER ) AS col1, 54 * 92 + + 60 AS col1 query I rowsort label-1924 @@ -11033,7 +11033,7 @@ SELECT 97 * - 18 * - + CAST ( + - 37 AS INTEGER ) AS col0, 58 + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(33\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-36\) \* Int64\(33\) \* \(\- nullif\(Int64\(8\), Int64\(\-38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(33\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(\-36\) \* Int64\(33\) \* \(\- nullif\(Int64\(8\), Int64\(\-38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 97 * 33 + + CAST ( NULL AS INTEGER ) AS col0, - 36 * + 33 * - + NULLIF ( + + 8, + - 38 ) col0 query I rowsort @@ -11110,7 +11110,7 @@ SELECT DISTINCT + 90 - + + 34 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5140 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(68\) \+ CAST\(\(\- Int64\(\-40\)\) AS Int32\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(68\) \+ CAST\(\(\- Int64\(\-40\)\) AS Int64\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 75 * 68 + + + CAST ( - - 40 AS INTEGER ) AS col1, + 43 AS col1 query I rowsort label-2108 @@ -13333,7 +13333,7 @@ SELECT - 96 + + 56 / - ( + 81 ) + - NULLIF ( 80, MAX ( DISTINCT + + CAST ( NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 374955 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(50\) \+ \(\- Int64\(\-24\)\) \- Int64\(\-93\) \* Int64\(62\) \* Int64\(65\) AS col2" at position 0 and "Int64\(62\) / \(\- max\(Int64\(99\)\)\) \* CAST\(Int64\(95\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(50\) \+ \(\- Int64\(\-24\)\) \- Int64\(\-93\) \* Int64\(62\) \* Int64\(65\) AS col2" at position 0 and "Int64\(62\) / \(\- max\(Int64\(99\)\)\) \* CAST\(Int64\(95\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 91 + + 50 + - - 24 - + - 93 * + + 62 * ( + + 65 ) AS col2, 62 / + - MAX ( + 99 ) * CAST ( + 95 AS INTEGER ) AS col2 query I rowsort @@ -14369,7 +14369,7 @@ SELECT ( 3 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4665600 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- max\(Int64\(54\)\)\) \* CAST\(Int64\(48\) AS Int32\) \* Int64\(24\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- max\(Int64\(54\)\)\) \* CAST\(Int64\(48\) AS Int64\) \* Int64\(24\) 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\. SELECT 75 * - + MAX ( + 54 ) * CAST ( 48 AS INTEGER ) * 24 col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-2726 @@ -14605,7 +14605,7 @@ SELECT + 83 + 56 + + 43 AS col2, - 55 * + COUNT ( * ) * - SUM ( ALL - 74 ) * - C # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "CASE Int64\(\-75\) WHEN Int64\(56\) THEN Int64\(53\) WHEN \(\- \(\- CAST\(Int64\(\-44\) AS Int32\)\)\) \* CAST\(NULL AS Int32\) THEN Int64\(\-20\) \* \(\- Int64\(\-19\)\) \* Int64\(75\) \* Int64\(43\) END \* \(\- Int64\(98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "CASE Int64\(\-75\) WHEN Int64\(56\) THEN Int64\(53\) WHEN \(\- \(\- CAST\(Int64\(\-44\) AS Int64\)\)\) \* CAST\(NULL AS Int64\) THEN Int64\(\-20\) \* \(\- Int64\(\-19\)\) \* Int64\(75\) \* Int64\(43\) END \* \(\- Int64\(98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 col2, CASE - 75 WHEN 56 THEN + 53 WHEN - - ( + CAST ( + - 44 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) THEN ( - 20 ) * - - 19 * + 75 * + 43 END * - + 98 AS col2 query I rowsort @@ -17955,7 +17955,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 215 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(62\) \+ \(\- Int64\(\-72\)\) AS col0" at position 0 and "CASE CAST\(\(\- Int64\(14\)\) AS Int32\) WHEN CAST\(NULL AS Float64\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(62\) \+ \(\- Int64\(\-72\)\) AS col0" at position 0 and "CASE CAST\(\(\- Int64\(14\)\) AS Int64\) WHEN CAST\(NULL AS Float64\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 81 + + 62 + - - 72 AS col0, + CASE + CAST ( - ( + 14 ) AS INTEGER ) WHEN + + CAST ( NULL AS FLOAT8 ) THEN COUNT ( * ) END AS col0 query I rowsort label-3411 @@ -20672,7 +20672,7 @@ SELECT 83 - - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -145 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(65\)\) / Int64\(74\) \+ \(\- nullif\(\(\- Int64\(\-65\)\), Int64\(45\) \+ \(\- nullif\(CAST\(NULL AS Int32\), \(\- Int64\(\-32\)\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Float64\)\)\)\)\)\) \+ Int64\(22\) \+ \(\- Int64\(\-89\)\) \* Int64\(20\)\)\) \- Int64\(80\) AS col0" at position 0 and "Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(65\)\) / Int64\(74\) \+ \(\- nullif\(\(\- Int64\(\-65\)\), Int64\(45\) \+ \(\- nullif\(CAST\(NULL AS Int64\), \(\- Int64\(\-32\)\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Float64\)\)\)\)\)\) \+ Int64\(22\) \+ \(\- Int64\(\-89\)\) \* Int64\(20\)\)\) \- Int64\(80\) AS col0" at position 0 and "Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + MAX ( + 65 ) / 74 + - NULLIF ( - - 65, + 45 + - NULLIF ( + CAST ( NULL AS INTEGER ), - - 32 * - CAST ( NULL AS INTEGER ) * - ( AVG ( DISTINCT - CAST ( NULL AS FLOAT8 ) ) ) ) + + 22 + - - 89 * 20 ) - + 80 AS col0, 34 + + ( + COUNT ( * ) ) AS col0 query I rowsort label-3928 @@ -28223,7 +28223,7 @@ SELECT ALL - 5 * + - 75 + + 8 + - ( 47 ) - - - 88 + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(19\) WHEN Int64\(\-96\) THEN Int64\(\-74\) \* Int64\(62\) WHEN Int64\(85\) THEN NULL WHEN Int64\(\-94\) THEN Int64\(\-53\) ELSE count\(Int64\(1\)\) AS count\(\*\) END \* \(\- Int64\(\-91\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(39\)\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(19\) WHEN Int64\(\-96\) THEN Int64\(\-74\) \* Int64\(62\) WHEN Int64\(85\) THEN NULL WHEN Int64\(\-94\) THEN Int64\(\-53\) ELSE count\(Int64\(1\)\) AS count\(\*\) END \* \(\- Int64\(\-91\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(39\)\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CASE + 19 WHEN - 96 THEN - 74 * + + 62 WHEN 85 THEN NULL WHEN - 94 THEN - 53 ELSE COUNT ( * ) END * - - 91 AS col0, + COUNT ( * ) * - MAX ( ALL + 39 ) * - CAST ( NULL AS INTEGER ) + - 82 AS col0 query I rowsort label-5364 @@ -28249,7 +28249,7 @@ SELECT ALL + 28 * - 28 * + 5 - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 24 * COUNT ( * ) / - 81 AS col0 query I rowsort @@ -28310,7 +28310,7 @@ SELECT DISTINCT 52 * + 87 col1 # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(49\) AS Int32\)\)\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(\-54\) \+ Int64\(72\) \- Int64\(52\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(49\) AS Int64\)\)\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(\-54\) \+ Int64\(72\) \- Int64\(52\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( 49 AS INTEGER ) + - 55 AS col1, 61 * 39 / CAST ( NULL AS INTEGER ), - 54 + 72 - 52 AS col1 query I rowsort label-5380 @@ -28471,7 +28471,7 @@ SELECT - ( 54 ) * - 87 + - ( + + 78 ) # Datafusion - Expected - 4214 # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(84\) \* Int64\(99\) \+ Int64\(\-15\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(84\) \* Int64\(99\) \+ Int64\(\-15\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 43 * 98 AS col1, MAX ( DISTINCT + 15 ), COUNT ( * ) * 84 * 99 + - 15 + - - CAST ( NULL AS INTEGER ) col1 query I rowsort @@ -30815,7 +30815,7 @@ SELECT 85 * COUNT ( * ) - + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CASE Int64\(\-93\) WHEN Int64\(77\) \* Int64\(\-77\) \* count\(Int64\(\-65\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(58\) THEN Int64\(13\) \+ Int64\(\-33\) ELSE Int64\(50\) \+ Int64\(9\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CASE Int64\(\-93\) WHEN Int64\(77\) \* Int64\(\-77\) \* count\(Int64\(\-65\)\) \+ \(\- CAST\(NULL AS Int64\)\) \+ Int64\(58\) THEN Int64\(13\) \+ Int64\(\-33\) ELSE Int64\(50\) \+ Int64\(9\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 54 AS col1, CASE - 93 WHEN + ( + 77 ) * + - 77 * COUNT ( ALL - 65 ) + + ( + - CAST ( NULL AS INTEGER ) ) + + 58 THEN + 13 + - 33 ELSE + 50 + 9 END AS col1 query II rowsort @@ -32183,7 +32183,7 @@ SELECT DISTINCT - 2 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(sum\(Int64\(20\)\) AS Int32\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(sum\(Int64\(20\)\) AS Int64\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + SUM ( + 20 ) AS INTEGER ) col2, + 6 col2 query I rowsort @@ -32506,7 +32506,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 55 AS col0, + 4 * CAST ( NULL AS INTEGER ) AS col0 query I rowsort @@ -33016,7 +33016,7 @@ SELECT ALL 83 AS col0, 36 * 89 + - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -117547 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- max\(Int64\(\-90\)\)\) \* \(\- Int64\(\-96\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-94\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- \(\- CAST\(Int64\(6\) AS Float64\)\)\), Int64\(39\) \+ Int64\(50\)\)\) AS col2" at position 0 and "\(\- Int64\(90\)\) \* \(\- nullif\(Int64\(15\), Int64\(9\)\)\) \* Int64\(\-87\) \+ Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- max\(Int64\(\-90\)\)\) \* \(\- Int64\(\-96\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-94\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- \(\- CAST\(Int64\(6\) AS Float64\)\)\), Int64\(39\) \+ Int64\(50\)\)\) AS col2" at position 0 and "\(\- Int64\(90\)\) \* \(\- nullif\(Int64\(15\), Int64\(9\)\)\) \* Int64\(\-87\) \+ Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( NULL AS INTEGER ) * - MAX ( ( - 90 ) ) * - - 96 * - - COUNT ( * ) * - 94 / + COUNT ( * ) * - COALESCE ( - ( - CAST ( + 6 AS FLOAT8 ) ), + 39 + 50 ) AS col2, - ( 90 ) * ( + - NULLIF ( 15, 9 ) ) * + - 87 + - 97 AS col2 # Datafusion - Types were automatically converted from: @@ -35249,7 +35249,7 @@ SELECT ALL + 60 / 36, 44 + 34 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 89 AS col2, - CAST ( NULL AS INTEGER ) * - - 85 AS col2 query I rowsort label-6706 @@ -36367,7 +36367,7 @@ SELECT ALL 73 + + 84 + ( + 11 ) / + + 71 * - 89 + - 51 / - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \+ Int64\(\-19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int64\) \+ Int64\(\-19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( - 77 AS INTEGER ) + - 19 AS col0, ( - COUNT ( * ) ) AS col0 query I rowsort @@ -37631,7 +37631,7 @@ SELECT DISTINCT - - 19 - - - 9 * + + 97 + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-25\) WHEN Int64\(92\) THEN Int64\(6\) \* Int64\(26\) END AS col0" at position 0 and "CAST\(Int64\(3\) AS Int32\) \* min\(Int64\(\-50\)\) \+ Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-25\) WHEN Int64\(92\) THEN Int64\(6\) \* Int64\(26\) END AS col0" at position 0 and "CAST\(Int64\(3\) AS Int64\) \* min\(Int64\(\-50\)\) \+ Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CASE - 25 WHEN + 92 THEN 6 * + 26 END AS col0, + CAST ( + 3 AS INTEGER ) * MIN ( - 50 ) + 36 AS col0 query I rowsort @@ -38199,7 +38199,7 @@ SELECT DISTINCT 41 - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42309 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-25\) \+ Int64\(\-51\) \+ Int64\(\-87\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) \* Int64\(99\) \* Int64\(\-33\) AS col1" at position 0 and "Int64\(\-92\) \* \(\- CAST\(NULL AS Int32\)\) / \(\- min\(Int64\(52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-25\) \+ Int64\(\-51\) \+ Int64\(\-87\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) \* Int64\(99\) \* Int64\(\-33\) AS col1" at position 0 and "Int64\(\-92\) \* \(\- CAST\(NULL AS Int64\)\) / \(\- min\(Int64\(52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) + - 25 + - 51 + - 87 + COUNT ( * ) * - COUNT ( * ) * 13 * + 99 * - 33 AS col1, - 92 * - CAST ( NULL AS INTEGER ) / - MIN ( 52 ) AS col1 query I rowsort @@ -39530,7 +39530,7 @@ SELECT NULLIF ( - 98, + + CAST ( ( + - COUNT ( * ) ) AS FLOAT8 ) ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col0" at position 0 and "min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col0" at position 0 and "min\(CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 46 AS col0, MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 query I rowsort label-7517 @@ -41007,7 +41007,7 @@ SELECT - + ( + 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(71\) / Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(71\) / Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 86 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 84 AS col0, 71 / + 63 AS col0 query I rowsort @@ -43976,7 +43976,7 @@ SELECT 58 * 6 AS col1, + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -3510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "Int64\(\-3\) \+ Int64\(\-6\) \+ \(\- nullif\(nullif\(min\(\(\- Int64\(98\)\)\), Int64\(50\) / Int64\(23\) \* CAST\(NULL AS Int32\) \* Int64\(\-27\)\), Int64\(76\) \* Int64\(81\) \* sum\(Int64\(11\)\)\)\) \+ Int64\(61\) \* Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "Int64\(\-3\) \+ Int64\(\-6\) \+ \(\- nullif\(nullif\(min\(\(\- Int64\(98\)\)\), Int64\(50\) / Int64\(23\) \* CAST\(NULL AS Int64\) \* Int64\(\-27\)\), Int64\(76\) \* Int64\(81\) \* sum\(Int64\(11\)\)\)\) \+ Int64\(61\) \* Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 57 AS col0, - 3 + - 6 + - NULLIF ( NULLIF ( + + MIN ( ALL - + 98 ), 50 / + 23 * + CAST ( NULL AS INTEGER ) * - 27 ), + 76 * ( 81 * SUM ( + 11 ) ) ) + 61 * - 59 col0 query I rowsort @@ -45130,7 +45130,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(96\) / Int64\(\-14\) AS col2" at position 0 and "Int64\(77\) / Int64\(\-70\) \+ \(\- coalesce\(Int64\(\-7\), Int64\(31\)\)\) \- Int64\(68\) \+ \(\- coalesce\(Int64\(\-4\), sum\(DISTINCT Int64\(5\)\) \* max\(Int64\(\-20\)\) \* CAST\(NULL AS Int32\) \- \(\- Int64\(\-36\)\) \+ Int64\(60\) \+ Int64\(91\) / \(Int64\(31\) \+ Int64\(17\)\) \+ Int64\(84\) \* Int64\(96\) \+ Int64\(39\), Int64\(\-44\) \* Int64\(\-29\) \+ Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(96\) / Int64\(\-14\) AS col2" at position 0 and "Int64\(77\) / Int64\(\-70\) \+ \(\- coalesce\(Int64\(\-7\), Int64\(31\)\)\) \- Int64\(68\) \+ \(\- coalesce\(Int64\(\-4\), sum\(DISTINCT Int64\(5\)\) \* max\(Int64\(\-20\)\) \* CAST\(NULL AS Int64\) \- \(\- Int64\(\-36\)\) \+ Int64\(60\) \+ Int64\(91\) / \(Int64\(31\) \+ Int64\(17\)\) \+ Int64\(84\) \* Int64\(96\) \+ Int64\(39\), Int64\(\-44\) \* Int64\(\-29\) \+ Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 0 + + + 96 / - 14 AS col2, 77 / - 70 + - COALESCE ( - 7, + 31 ) - + 68 + - COALESCE ( - 4, SUM ( DISTINCT + 5 ) * + MAX ( ALL - 20 ) * CAST ( NULL AS INTEGER ) - - - 36 + 60 + 91 / ( + 31 + + 17 ) + 84 * 96 + 39, - 44 * - 29 + 80 ) col2 query II rowsort @@ -46402,7 +46402,7 @@ SELECT + 95 + + - CAST ( - - 45 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- count\(Int64\(\-53\)\)\) \* Int64\(\-44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(\-28\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- count\(Int64\(\-53\)\)\) \* Int64\(\-44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(\-28\)\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 71 + + - COUNT ( ALL - 53 ) * - 44 AS col1, - CAST ( - - 28 AS INTEGER ) AS col1 query I rowsort @@ -46991,7 +46991,7 @@ SELECT - SUM ( ALL + - 65 ) * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5438 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) / \(\- max\(Int64\(29\)\)\) \- Int64\(\-68\) \* Int64\(16\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(5\) AS col0" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) / \(\- max\(Int64\(29\)\)\) \- Int64\(\-68\) \* Int64\(16\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(5\) AS col0" at position 0 and "CAST\(Int64\(\-3\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - 68 / - + MAX ( + + 29 ) - - 68 * + 16 * - COUNT ( * ) * + + 5 AS col0, + CAST ( - 3 AS INTEGER ) AS col0 query I rowsort label-8939 diff --git a/data/sqlite/random/expr/slt_good_95.slt b/data/sqlite/random/expr/slt_good_95.slt index adad4cc..72751c4 100644 --- a/data/sqlite/random/expr/slt_good_95.slt +++ b/data/sqlite/random/expr/slt_good_95.slt @@ -3170,7 +3170,7 @@ SELECT + 25 + + 79 * + - 43 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-2\)\) AS col1" at position 0 and "Int64\(36\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-39\)\) \* Int64\(\-23\) \- Int64\(14\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-2\)\) AS col1" at position 0 and "Int64\(36\) \* CAST\(NULL AS Int64\) \* \(\- Int64\(\-39\)\) \* Int64\(\-23\) \- Int64\(14\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( ALL - 2 ) AS col1, + 36 * + CAST ( NULL AS INTEGER ) * - - 39 * + - 23 - 14 + 2 AS col1 query I rowsort label-600 @@ -3981,7 +3981,7 @@ SELECT COUNT ( * ) * - 68 * - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(60\)\) \+ \(\- Int64\(\-18\)\) \+ Int64\(86\) \+ \(\- Int64\(\-11\)\) \* Int64\(\-14\)\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN sum\(nullif\(Int64\(92\), \(\- Int64\(\-38\)\)\)\) THEN Int64\(\-33\) ELSE NULL END AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(60\)\) \+ \(\- Int64\(\-18\)\) \+ Int64\(86\) \+ \(\- Int64\(\-11\)\) \* Int64\(\-14\)\) \+ CASE \(\- CAST\(NULL AS Int64\)\) WHEN sum\(nullif\(Int64\(92\), \(\- Int64\(\-38\)\)\)\) THEN Int64\(\-33\) ELSE NULL END AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( - + COUNT ( * ), - + 60 + - - 18 + 86 + - - 11 * ( - 14 ) ) + + ( + CASE - CAST ( NULL AS INTEGER ) WHEN + SUM ( + + NULLIF ( + 92, - - 38 ) ) THEN - 33 ELSE NULL END ) AS col2, 84 AS col2 query I rowsort @@ -4519,7 +4519,7 @@ SELECT COUNT ( * ) * - - NULLIF ( - 44, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-76\)\) \+ Int64\(44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(63\)\) AS Int32\)\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-76\)\) \+ Int64\(44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(63\)\) AS Int64\)\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( * ) + - - 76 + + 44 AS col1, - CAST ( - + 63 AS INTEGER ) + 7 AS col1 query I rowsort @@ -10000,7 +10000,7 @@ SELECT CAST ( - 86 AS INTEGER ) col0, - 31 / - - 31 + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-86\) AS Int32\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-86\) AS Int64\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( - 86 AS INTEGER ) col2, + ( + + 63 ) AS col2 query I rowsort label-1907 @@ -12497,7 +12497,7 @@ SELECT ALL COALESCE ( + COUNT ( * ), + 78 * 42 * + 56 + - - 9 ) AS col0, + 35 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 38 AS col2, + CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-2377 @@ -14083,7 +14083,7 @@ SELECT ALL + - 55, + 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "CAST\(Int64\(\-67\) AS Int32\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "CAST\(Int64\(\-67\) AS Int64\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 19 AS col2, + CAST ( ( - 67 ) AS INTEGER ) + + 98 AS col2 query I rowsort @@ -15832,7 +15832,7 @@ SELECT ALL - 30 + - - 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-65\)\), \(\- Int64\(\-19\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-65\)\), \(\- Int64\(\-19\)\)\) \* \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT NULLIF ( - - 65, - - 19 ) * - - CAST ( NULL AS INTEGER ) AS col2, 90 AS col2 query I rowsort label-3022 @@ -17188,7 +17188,7 @@ SELECT DISTINCT + + COUNT ( * ) / 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 1216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(\-38\) \* CAST\(Int64\(\-32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(\-38\) \* CAST\(Int64\(\-32\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 12 AS col0, - 38 * + CAST ( - 32 AS INTEGER ) AS col0 query I rowsort @@ -17928,7 +17928,7 @@ SELECT ALL + 59 - + + 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -3150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(45\) \* coalesce\(CAST\(Int64\(\-70\) AS Int32\), Int64\(\-20\) \+ Int64\(39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(45\) \* coalesce\(CAST\(Int64\(\-70\) AS Int64\), Int64\(\-20\) \+ Int64\(39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 0 AS col0, + 45 * COALESCE ( CAST ( ( + - 70 ) AS INTEGER ), - 20 + 39 ) AS col0 query II rowsort @@ -20585,7 +20585,7 @@ SELECT - 37 * - 11 + - 32 * - 8 - + ( - + 26 ) + + SUM ( - 0 ) AS col2, - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE max\(Int64\(34\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(16\) END\) AS col0" at position 0 and "CAST\(Int64\(77\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE max\(Int64\(34\)\) WHEN \(\- CAST\(NULL AS Int64\)\) THEN Int64\(16\) END\) AS col0" at position 0 and "CAST\(Int64\(77\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CASE MAX ( 34 ) WHEN - ( + CAST ( NULL AS INTEGER ) ) THEN + 16 END AS col0, CAST ( + 77 AS INTEGER ) AS col0 query I rowsort @@ -21186,7 +21186,7 @@ SELECT 93 * - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(73\) \* \(\- Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int64\)\) \* Int64\(73\) \* \(\- Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 54 AS col0, - CAST ( NULL AS INTEGER ) * + 73 * - + 11 AS col0 query I rowsort label-4037 @@ -22898,7 +22898,7 @@ SELECT - 64 AS col2, - 95 # Datafusion - Expected - NULL # Datafusion - Expected - -11 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(99\)\)\) \+ Int64\(29\) \* \(\- \(\- sum\(Int64\(\-29\)\)\)\) \* \(\- Int64\(\-86\)\) \+ coalesce\(Int64\(\-46\), avg\(Int64\(\-85\)\) / CAST\(Int64\(\-31\) AS Int32\), Int64\(46\)\) \+ Int64\(92\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(10\) \- Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(99\)\)\) \+ Int64\(29\) \* \(\- \(\- sum\(Int64\(\-29\)\)\)\) \* \(\- Int64\(\-86\)\) \+ coalesce\(Int64\(\-46\), avg\(Int64\(\-85\)\) / CAST\(Int64\(\-31\) AS Int64\), Int64\(46\)\) \+ Int64\(92\) \* \(\- CAST\(NULL AS Int64\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(10\) \- Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + SUM ( DISTINCT 99 ) + 29 * - - SUM ( ALL - 29 ) * - - 86 + + + COALESCE ( - 46, + AVG ( ALL - 85 ) / + + CAST ( - 31 AS INTEGER ), + 46 ) + + + 92 * + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + + 10 - 22 AS col0, 89 + - 1 + COUNT ( * ) query I rowsort label-4361 @@ -24568,7 +24568,7 @@ SELECT COALESCE ( 6, NULLIF ( 1, 19 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(\-75\) \* CAST\(NULL AS Int32\) \- Int64\(14\) \- Int64\(29\) \+ coalesce\(Int64\(72\), Int64\(9\) \* coalesce\(Int64\(51\), avg\(DISTINCT coalesce\(Int64\(93\), Int64\(45\)\)\) \- max\(DISTINCT Int64\(48\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(DISTINCT Int64\(31\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(\-75\) \* CAST\(NULL AS Int64\) \- Int64\(14\) \- Int64\(29\) \+ coalesce\(Int64\(72\), Int64\(9\) \* coalesce\(Int64\(51\), avg\(DISTINCT coalesce\(Int64\(93\), Int64\(45\)\)\) \- max\(DISTINCT Int64\(48\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(DISTINCT Int64\(31\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 32 AS col2, - 12 + - 75 * + CAST ( NULL AS INTEGER ) - + 14 - + 29 + COALESCE ( + 72, 9 * COALESCE ( ( 51 ), + AVG ( DISTINCT COALESCE ( 93, 45 ) ) - MAX ( DISTINCT 48 ) ), - COUNT ( * ) * COUNT ( DISTINCT 31 ) ) AS col2 query I rowsort @@ -27390,7 +27390,7 @@ SELECT ALL + COUNT ( * ) * - - 59 + - + 2 - - + COUNT ( * ) + + 10 * 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(46\) \+ \(\- nullif\(\(\- Int64\(97\)\), Int64\(45\) \* \(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\)\)\) \+ Int64\(\-94\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(46\) \+ \(\- nullif\(\(\- Int64\(97\)\), Int64\(45\) \* \(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\)\)\) \+ Int64\(\-94\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 93 AS col1, + CAST ( NULL AS INTEGER ) + + 46 + + - NULLIF ( - + 97, + 45 * - - MIN ( ALL - - 57 ) ) + - 94 + - COUNT ( * ) AS col1 query I rowsort @@ -27406,7 +27406,7 @@ SELECT + 93 * + - 67 + + 97 - 85 - + 17 * + 64 * - + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1711 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "\(\- Int64\(38\)\) \* \(\- CAST\(Int64\(46\) AS Int32\)\) \+ Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "\(\- Int64\(38\)\) \* \(\- CAST\(Int64\(46\) AS Int64\)\) \+ Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 26 AS col2, - ( + 38 ) * - + CAST ( 46 AS INTEGER ) + - 37 col2 query I rowsort @@ -28442,7 +28442,7 @@ SELECT 3 * COUNT ( * ) * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(\(\- Int64\(\-61\)\) AS Int32\)\) / \(\- Int64\(96\)\) \+ \(\- Int64\(40\)\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(68\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN coalesce\(Int64\(71\), Int64\(\-20\) \* \(\- max\(Int64\(\-36\)\)\)\) \+ \(\- Int64\(2\)\) THEN NULL WHEN Int64\(8\) THEN NULL WHEN Int64\(51\) \+ Int64\(8\) \- Int64\(13\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(51\) \* Int64\(56\) ELSE \(\- coalesce\(Int64\(92\), Int64\(72\) \* Int64\(14\)\)\) END\) / Int64\(53\) \+ Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(\(\- Int64\(\-61\)\) AS Int64\)\) / \(\- Int64\(96\)\) \+ \(\- Int64\(40\)\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(68\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN coalesce\(Int64\(71\), Int64\(\-20\) \* \(\- max\(Int64\(\-36\)\)\)\) \+ \(\- Int64\(2\)\) THEN NULL WHEN Int64\(8\) THEN NULL WHEN Int64\(51\) \+ Int64\(8\) \- Int64\(13\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(51\) \* Int64\(56\) ELSE \(\- coalesce\(Int64\(92\), Int64\(72\) \* Int64\(14\)\)\) END\) / Int64\(53\) \+ Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * + - ( + CAST ( - - 61 AS INTEGER ) ) / - + 96 + - + 40 AS col0, - CASE - + 68 WHEN - COUNT ( * ) THEN NULL WHEN + + COALESCE ( + 71, - 20 * - ( MAX ( + - 36 ) ) ) + - ( 2 ) THEN NULL WHEN 8 THEN NULL WHEN + + 51 + + 8 - + 13 * - COUNT ( * ) + + COUNT ( * ) * 29 + - + COUNT ( * ) THEN 51 * 56 ELSE - COALESCE ( 92, 72 * 14 ) END / + 53 + - 66 AS col0 query I rowsort @@ -28501,7 +28501,7 @@ SELECT - 36 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 445900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(\-97\)\)\)\) \* \(\- Int64\(76\)\) \+ CAST\(NULL AS Int32\) / Int64\(67\) AS col1" at position 0 and "CASE Int64\(86\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-43\) / \(\- Int64\(51\)\) THEN NULL ELSE Int64\(\-60\) \* Int64\(78\) \+ Int64\(91\) \+ \(\- \(\- Int64\(39\)\)\) END \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(\-97\)\)\)\) \* \(\- Int64\(76\)\) \+ CAST\(NULL AS Int64\) / Int64\(67\) AS col1" at position 0 and "CASE Int64\(86\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-43\) / \(\- Int64\(51\)\) THEN NULL ELSE Int64\(\-60\) \* Int64\(78\) \+ Int64\(91\) \+ \(\- \(\- Int64\(39\)\)\) END \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + ( - MAX ( - 97 ) ) * - + 76 + + CAST ( NULL AS INTEGER ) / 67 AS col1, CASE + 86 WHEN - COUNT ( * ) + + 80 * COUNT ( * ) + - 43 / - + 51 THEN NULL ELSE - 60 * + 78 + 91 + - - ( + 39 ) END * - 98 AS col1 query I rowsort @@ -29736,7 +29736,7 @@ SELECT + 98 + - 83 + - 73 - - ( - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 51 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 query I rowsort label-5672 @@ -29914,7 +29914,7 @@ SELECT - + 63 * - 68 AS col2 # Datafusion - Expected - 98 # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "\(\- Int64\(\-90\)\) \* \(\- Int64\(\-64\)\) \* CAST\(NULL AS Int32\) \* Int64\(20\) \* Int64\(44\) \- Int64\(93\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "\(\- Int64\(\-90\)\) \* \(\- Int64\(\-64\)\) \* CAST\(NULL AS Int64\) \* Int64\(20\) \* Int64\(44\) \- Int64\(93\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 98 AS col0, + 76 + COUNT ( DISTINCT - + 45 ) * 49 + - - ( + - 72 ) AS col2, - - 90 * - - 64 * + CAST ( NULL AS INTEGER ) * 20 * + 44 - + 93 * COUNT ( * ) AS col0 query I rowsort @@ -30599,7 +30599,7 @@ SELECT - 47 * + + 10 - - ( + + 36 ) + + COUNT ( * ) / 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -1850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-25\) \* CAST\(coalesce\(\(\- coalesce\(avg\(Int64\(74\)\), \(\- Int64\(30\)\)\)\), Int64\(\-94\) \* \(\- CASE \(\- Int64\(\-53\)\) WHEN Int64\(\-21\) \+ Int64\(26\) THEN \(\- nullif\(Int64\(5\), Int64\(12\)\)\) \* \(\- Int64\(\-89\)\) \* Int64\(62\) ELSE NULL END\)\) AS Int32\) \* count\(Int64\(\-66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-25\) \* CAST\(coalesce\(\(\- coalesce\(avg\(Int64\(74\)\), \(\- Int64\(30\)\)\)\), Int64\(\-94\) \* \(\- CASE \(\- Int64\(\-53\)\) WHEN Int64\(\-21\) \+ Int64\(26\) THEN \(\- nullif\(Int64\(5\), Int64\(12\)\)\) \* \(\- Int64\(\-89\)\) \* Int64\(62\) ELSE NULL END\)\) AS Int64\) \* count\(Int64\(\-66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 18 AS col2, - COUNT ( * ) * - 25 * CAST ( + + COALESCE ( - COALESCE ( + AVG ( ALL + 74 ), - + 30 ), ( - 94 ) * - CASE - - 53 WHEN - 21 + 26 THEN - NULLIF ( 5, 12 ) * - - 89 * + 62 ELSE NULL END ) AS INTEGER ) * + COUNT ( - 66 ) AS col2 query I rowsort label-5835 @@ -34073,7 +34073,7 @@ SELECT 59 / + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "\(\- CAST\(Int64\(95\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "\(\- CAST\(Int64\(95\) AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 95 AS col1, - CAST ( + 95 AS INTEGER ) + COUNT ( * ) AS col1 query I rowsort @@ -34153,7 +34153,7 @@ SELECT - 74 * + 36 - + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "\(\- sum\(Int64\(94\)\)\) \+ Int64\(\-32\) \+ CASE Int64\(\-44\) WHEN nullif\(Int64\(\-63\), coalesce\(\(\- Int64\(66\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(42\) \+ \(\- nullif\(CAST\(Int64\(39\) AS Int32\), Int64\(20\)\)\)\)\) \+ Int64\(74\) THEN NULL WHEN Int64\(98\) / Int64\(52\) THEN Int64\(\-59\) \* Int64\(17\) END \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "\(\- sum\(Int64\(94\)\)\) \+ Int64\(\-32\) \+ CASE Int64\(\-44\) WHEN nullif\(Int64\(\-63\), coalesce\(\(\- Int64\(66\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(42\) \+ \(\- nullif\(CAST\(Int64\(39\) AS Int64\), Int64\(20\)\)\)\)\) \+ Int64\(74\) THEN NULL WHEN Int64\(98\) / Int64\(52\) THEN Int64\(\-59\) \* Int64\(17\) END \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + - 39 AS col0, - SUM ( + 94 ) + - 32 + + CASE - 44 WHEN + NULLIF ( - 63, COALESCE ( - + 66, COUNT ( * ), 42 + - NULLIF ( + CAST ( 39 AS INTEGER ), 20 ) ) ) + 74 THEN NULL WHEN 98 / 52 THEN - 59 * 17 END + COUNT ( * ) * - 60 AS col0 query I rowsort label-6514 @@ -37747,7 +37747,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(\-46\) AS col2" at position 0 and "Int64\(\-60\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(\-46\) AS col2" at position 0 and "Int64\(\-60\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 40 / + + ( + - 46 ) AS col2, - 60 * CAST ( NULL AS INTEGER ) AS col2 query I rowsort label-7197 @@ -39860,7 +39860,7 @@ SELECT ALL - 59 + 81 / + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(93\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- Int64\(\-51\)\) WHEN \(\- \(\- Int64\(0\)\)\) / Int64\(\-65\) \+ Int64\(\-43\) \+ Int64\(\-52\) THEN Int64\(26\) WHEN Int64\(38\) \* Int64\(89\) THEN NULL WHEN Int64\(89\) THEN NULL END \* max\(Int64\(45\)\) \+ Int64\(\-38\) \* Int64\(58\) \* Int64\(9\) \+ Int64\(6\) THEN Int64\(82\) \+ Int64\(86\) ELSE Int64\(49\) \+ Int64\(\-24\) \- Int64\(60\) END AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(56\) \* Int64\(98\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(93\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- Int64\(\-51\)\) WHEN \(\- \(\- Int64\(0\)\)\) / Int64\(\-65\) \+ Int64\(\-43\) \+ Int64\(\-52\) THEN Int64\(26\) WHEN Int64\(38\) \* Int64\(89\) THEN NULL WHEN Int64\(89\) THEN NULL END \* max\(Int64\(45\)\) \+ Int64\(\-38\) \* Int64\(58\) \* Int64\(9\) \+ Int64\(6\) THEN Int64\(82\) \+ Int64\(86\) ELSE Int64\(49\) \+ Int64\(\-24\) \- Int64\(60\) END AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\)\) \* Int64\(56\) \* Int64\(98\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CASE + + 93 WHEN - COUNT ( * ) + CASE - - 51 WHEN - - ( 0 ) / - 65 + - 43 + - 52 THEN 26 WHEN + 38 * + + 89 THEN NULL WHEN + + 89 THEN NULL END * + MAX ( 45 ) + - 38 * 58 * 9 + + 6 THEN 82 + + 86 ELSE + + 49 + - 24 - + 60 END AS col0, COUNT ( * ) / + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 56 * + 98 + + + 32 * COUNT ( * ) AS col0 query I rowsort label-7600 @@ -42097,7 +42097,7 @@ SELECT - COUNT ( * ) AS col1, + COUNT ( ALL 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col1" at position 0 and "nullif\(Int64\(45\), CASE Int64\(\-78\) WHEN \(\- CAST\(Int64\(93\) AS Int32\)\) \- \(\- \(\- count\(Int64\(49\)\)\)\) THEN NULL ELSE Int64\(19\) END \- Int64\(97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col1" at position 0 and "nullif\(Int64\(45\), CASE Int64\(\-78\) WHEN \(\- CAST\(Int64\(93\) AS Int64\)\) \- \(\- \(\- count\(Int64\(49\)\)\)\) THEN NULL ELSE Int64\(19\) END \- Int64\(97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 82 AS col1, NULLIF ( + 45, CASE - 78 WHEN - + CAST ( 93 AS INTEGER ) - - - COUNT ( 49 ) THEN NULL ELSE 19 END - 97 ) AS col1 query I rowsort label-8027 @@ -42599,7 +42599,7 @@ SELECT + + 27 + - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "CAST\(Int64\(72\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "CAST\(Int64\(72\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 24 col2, + CAST ( + 72 AS INTEGER ) AS col2 query I rowsort @@ -42662,7 +42662,7 @@ SELECT 74 + - 69 * + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2006 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- max\(Int64\(\-59\)\)\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "\(\- max\(Int64\(\-59\)\)\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - MAX ( ALL - 59 ) * 34 AS col0 query II rowsort label-8135 @@ -44582,7 +44582,7 @@ SELECT ALL 39 / - 94 * - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-85\), Int64\(\-95\)\) \+ \(\- min\(DISTINCT Int64\(\-25\)\)\) AS col2" at position 0 and "Int64\(38\) \+ Int64\(\-34\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-68\)\) / Int64\(87\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-85\), Int64\(\-95\)\) \+ \(\- min\(DISTINCT Int64\(\-25\)\)\) AS col2" at position 0 and "Int64\(38\) \+ Int64\(\-34\) \+ \(\- CAST\(NULL AS Int64\)\) \* \(\- Int64\(\-68\)\) / Int64\(87\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 83 * COALESCE ( + COUNT ( * ), - 85, - 95 ) + - + MIN ( DISTINCT - 25 ) AS col2, + 38 + + - 34 + - ( CAST ( NULL AS INTEGER ) ) * - - 68 / 87 * COUNT ( * ) + + COUNT ( * ) col2 query I rowsort label-8501 @@ -45187,7 +45187,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col1" at position 0 and "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col1" at position 0 and "\(\- max\(CAST\(NULL AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - + 86 AS col1, - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1 query I rowsort @@ -48117,7 +48117,7 @@ SELECT DISTINCT - 11 * + - 59 AS col0, + ( + ( - ( 11 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "CAST\(Int64\(0\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "CAST\(Int64\(0\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ( + 44 ) AS col1, + CAST ( + - 0 AS INTEGER ) AS col1 # Datafusion - Types were automatically converted from: @@ -50497,7 +50497,7 @@ SELECT - + SUM ( ALL 11 ) * + + 54 # Datafusion - Expected - 62 # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(67\) \+ Int64\(\-83\) \+ \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(67\) \+ Int64\(\-83\) \+ \(\- sum\(DISTINCT CAST\(NULL AS Int64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 62 AS col2, + 67 + - 83 + + ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2, + 71 AS col1 query I rowsort label-9631 @@ -50513,7 +50513,7 @@ SELECT + + ( + NULLIF ( + 93, - 28 * + 3 + - COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2155 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* CAST\(\(\- Int64\(\-27\)\) AS Int32\) \- \(\- Int64\(\-86\)\) AS col1" at position 0 and "Int64\(20\) / \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(12\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* CAST\(\(\- Int64\(\-27\)\) AS Int64\) \- \(\- Int64\(\-86\)\) AS col1" at position 0 and "Int64\(20\) / \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(12\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 83 * + CAST ( - + ( + - 27 ) AS INTEGER ) - - ( - 86 ) AS col1, 20 / - COALESCE ( - COUNT ( * ), + 12 ) AS col1 query I rowsort @@ -50734,7 +50734,7 @@ SELECT DISTINCT + + 14 * - 22 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 5 + + 78 AS col1, CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-9675 @@ -51138,7 +51138,7 @@ SELECT + NULLIF ( 40, + - COUNT ( * ) ) * 93 - - - 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3960 # Datafusion - Expected - 2733 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(\-53\) \+ Int64\(45\) \* Int64\(\-88\) AS col1" at position 0 and "Int64\(\-2\) / count\(Int64\(16\)\) \* \(\- Int64\(\-13\)\) \+ Int64\(\-89\) \* Int64\(\-30\) \+ nullif\(Int64\(89\), Int64\(\-16\) \+ CAST\(NULL AS Int32\) \* Int64\(72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(\-53\) \+ Int64\(45\) \* Int64\(\-88\) AS col1" at position 0 and "Int64\(\-2\) / count\(Int64\(16\)\) \* \(\- Int64\(\-13\)\) \+ Int64\(\-89\) \* Int64\(\-30\) \+ nullif\(Int64\(89\), Int64\(\-16\) \+ CAST\(NULL AS Int64\) \* Int64\(72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 0 / - 53 + + + 45 * - 88 AS col1, - 2 / COUNT ( + 16 ) * - ( + - 13 ) + - 89 * - 30 + NULLIF ( + 89, - 16 + CAST ( NULL AS INTEGER ) * ( + 72 ) ) AS col1 query II rowsort label-9752 diff --git a/data/sqlite/random/expr/slt_good_96.slt b/data/sqlite/random/expr/slt_good_96.slt index f4bf651..f30fade 100644 --- a/data/sqlite/random/expr/slt_good_96.slt +++ b/data/sqlite/random/expr/slt_good_96.slt @@ -1981,7 +1981,7 @@ SELECT ALL - 49 / 32 + + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\)" at position 0 and "CAST\(Int64\(0\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\)" at position 0 and "CAST\(Int64\(0\) AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 0, + CAST ( + - 0 AS INTEGER ) query I rowsort label-373 @@ -3239,7 +3239,7 @@ SELECT DISTINCT + 16 + - 74 AS col1, 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -127 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ Int64\(\-65\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ Int64\(\-65\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 62 + - 65 AS col2, + CAST ( NULL AS INTEGER ) col2 query I rowsort label-612 @@ -7403,7 +7403,7 @@ SELECT 46 * 46 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- \(\- Int64\(\-15\)\) \* CAST\(NULL AS Int32\) \* Int64\(66\) \+ Int64\(4\) \+ Int64\(5\) \* Int64\(30\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- \(\- Int64\(\-15\)\) \* CAST\(NULL AS Int64\) \* Int64\(66\) \+ Int64\(4\) \+ Int64\(5\) \* Int64\(30\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 82 - - - 15 * CAST ( NULL AS INTEGER ) * + 66 + + + ( + + 4 ) + 5 * 30 AS col1, - 44 AS col1 query II rowsort @@ -8130,7 +8130,7 @@ SELECT DISTINCT - 49, - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- Int64\(10\)\) \* \(\- Int64\(9\)\) \* Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-19\) \+ CAST\(NULL AS Int32\) \* CASE nullif\(Int64\(90\), Int64\(22\) / Int64\(9\) \+ Int64\(89\)\) WHEN Int64\(17\) / CASE CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(32\) ELSE Int64\(6\) END THEN Int64\(87\) WHEN Int64\(72\) \* Int64\(90\) \+ CASE Int64\(39\) WHEN count\(Int64\(1\)\) AS count\(\*\) \- Int64\(40\) THEN NULL ELSE Int64\(34\) END \* max\(Int64\(\-43\) \+ Int64\(89\) \* Int64\(83\)\) THEN Int64\(\-4\) \* CASE Int64\(13\) \* \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(22\) THEN Int64\(65\) END \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) / Int64\(35\) \+ Int64\(98\) THEN NULL END \- Int64\(77\) \* Int64\(65\) END \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- Int64\(10\)\) \* \(\- Int64\(9\)\) \* Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-19\) \+ CAST\(NULL AS Int64\) \* CASE nullif\(Int64\(90\), Int64\(22\) / Int64\(9\) \+ Int64\(89\)\) WHEN Int64\(17\) / CASE CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(32\) ELSE Int64\(6\) END THEN Int64\(87\) WHEN Int64\(72\) \* Int64\(90\) \+ CASE Int64\(39\) WHEN count\(Int64\(1\)\) AS count\(\*\) \- Int64\(40\) THEN NULL ELSE Int64\(34\) END \* max\(Int64\(\-43\) \+ Int64\(89\) \* Int64\(83\)\) THEN Int64\(\-4\) \* CASE Int64\(13\) \* \(\- CAST\(NULL AS Int64\)\) WHEN Int64\(22\) THEN Int64\(65\) END \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) / Int64\(35\) \+ Int64\(98\) THEN NULL END \- Int64\(77\) \* Int64\(65\) END \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 92 AS col1, + CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE + - ( 10 ) * - ( 9 ) * 80 * - + ( - COUNT ( * ) ) * - 19 + + + CAST ( NULL AS INTEGER ) * + + CASE ( + NULLIF ( + 90, 22 / 9 + 89 ) ) WHEN 17 / + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN - COUNT ( * ) THEN 32 ELSE ( 6 ) END THEN 87 WHEN 72 * 90 + CASE 39 WHEN COUNT ( * ) - 40 THEN NULL ELSE 34 END * + MAX ( ALL - 43 + ( + 89 ) * 83 ) THEN - 4 * CASE 13 * - CAST ( NULL AS INTEGER ) WHEN 22 THEN + 65 END + COUNT ( * ) WHEN + ( + 19 ) / 35 + 98 THEN NULL END - 77 * 65 END + 14 AS col1 query I rowsort @@ -9174,7 +9174,7 @@ SELECT ALL ( - - NULLIF ( + 5, 97 * + - 8 ) ) + + ( - + 64 ) * + + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-51\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "CAST\(NULL AS Int64\) / Int64\(\-51\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 3 AS col0, CAST ( NULL AS INTEGER ) / - 51 * - 60 AS col0 query II rowsort label-1743 @@ -9246,7 +9246,7 @@ SELECT + - NULLIF ( 21, - 76 + - 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(96\) / \(\- CAST\(NULL AS Int32\)\) / Int64\(79\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(96\) / \(\- CAST\(NULL AS Int64\)\) / Int64\(79\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 6 + 96 / - CAST ( NULL AS INTEGER ) / + 79 AS col0, COUNT ( * ) AS col0 query I rowsort @@ -9289,7 +9289,7 @@ SELECT 21 + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) 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\. SELECT + + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-1764 @@ -10780,7 +10780,7 @@ SELECT + 16 * - - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(39\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(39\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 4 + - + 39 AS col2, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) col2 query II rowsort @@ -11008,7 +11008,7 @@ SELECT COUNT ( 85 ) + - 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* CASE max\(Int64\(63\)\) WHEN CAST\(NULL AS Int32\) \* Int64\(\-77\) \+ Int64\(\-10\) THEN NULL WHEN Int64\(\-41\) \+ Int64\(\-70\) \* \(\- avg\(DISTINCT Int64\(26\)\)\) THEN NULL WHEN \(\- Int64\(\-86\)\) THEN NULL WHEN Int64\(\-90\) \* Int64\(\-74\) THEN NULL WHEN Int64\(\-95\) THEN Int64\(56\) \* Int64\(43\) END AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* CASE max\(Int64\(63\)\) WHEN CAST\(NULL AS Int64\) \* Int64\(\-77\) \+ Int64\(\-10\) THEN NULL WHEN Int64\(\-41\) \+ Int64\(\-70\) \* \(\- avg\(DISTINCT Int64\(26\)\)\) THEN NULL WHEN \(\- Int64\(\-86\)\) THEN NULL WHEN Int64\(\-90\) \* Int64\(\-74\) THEN NULL WHEN Int64\(\-95\) THEN Int64\(56\) \* Int64\(43\) END AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 64 * CASE + MAX ( ALL 63 ) WHEN CAST ( NULL AS INTEGER ) * - 77 + - 10 THEN NULL WHEN - 41 + + - 70 * - AVG ( DISTINCT + + 26 ) THEN NULL WHEN - - 86 THEN NULL WHEN - 90 * - 74 THEN NULL WHEN - 95 THEN + 56 * 43 END AS col1, 32 AS col1 query I rowsort label-2089 @@ -11443,7 +11443,7 @@ SELECT - 73 AS col2, + ( + 55 ) / + 20 - + + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(\(\- Int64\(30\)\), \(\- nullif\(Int64\(\-81\), Int64\(\-53\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \+ Int64\(\-96\)\)\) AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(\(\- Int64\(30\)\), \(\- nullif\(Int64\(\-81\), Int64\(\-53\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\) \+ Int64\(\-96\)\)\) AS Int64\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + - NULLIF ( - + 30, - NULLIF ( - 81, - 53 + CAST ( - COUNT ( * ) AS INTEGER ) ) + - 96 ) AS INTEGER ) AS col2, - COUNT ( * ) AS col2 query I rowsort label-2173 @@ -14559,7 +14559,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* count\(DISTINCT Int64\(\-68\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(5\)\)\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* count\(DISTINCT Int64\(\-68\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(5\)\)\)\) \* \(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + 51 * + COUNT ( DISTINCT - 68 ) AS col1, - ( - COUNT ( 5 ) ) * - CAST ( NULL AS INTEGER ) AS col1 query I rowsort @@ -19804,7 +19804,7 @@ SELECT COUNT ( * ) * - + NULLIF ( - COUNT ( * ), + 0 ) + 9 + - 19 * 92 * - + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-24\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(\-24\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 24 * + 93 AS col0 query I rowsort label-3769 @@ -20845,7 +20845,7 @@ SELECT DISTINCT COUNT ( * ) * + + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "CAST\(Int64\(26\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "CAST\(Int64\(26\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 85 AS col2, CAST ( + 26 AS INTEGER ) AS col2 query I rowsort label-3968 @@ -26314,7 +26314,7 @@ SELECT DISTINCT ( + + 9 ) + + 51 + - + 2 + 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-58\) AS col0" at position 0 and "Int64\(21\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-58\) AS col0" at position 0 and "Int64\(21\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 58 AS col0, 21 * + 25 AS col0 query I rowsort @@ -26731,7 +26731,7 @@ SELECT + COUNT ( * ) * ( + 9 ) # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - 469 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 1 and "Int64\(17\) \* Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(59\) \- nullif\(Int64\(14\), \(\- sum\(Int64\(32\)\)\) / \(\- \(\- CAST\(NULL AS Float64\)\)\) \- Int64\(\-12\) \* Int64\(85\)\) \+ Int64\(7\) \+ Int64\(12\) \* Int64\(\-25\) \+ Int64\(36\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-13\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col0" at position 1 and "Int64\(17\) \* Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(59\) \- nullif\(Int64\(14\), \(\- sum\(Int64\(32\)\)\) / \(\- \(\- CAST\(NULL AS Float64\)\)\) \- Int64\(\-12\) \* Int64\(85\)\) \+ Int64\(7\) \+ Int64\(12\) \* Int64\(\-25\) \+ Int64\(36\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-13\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 19, CAST ( NULL AS INTEGER ) AS col0, 17 * - 40 * - COUNT ( * ) + + 59 - + NULLIF ( 14, - + SUM ( 32 ) / - - CAST ( NULL AS FLOAT8 ) - - 12 * 85 ) + 7 + + 12 * + - 25 + + + ( + 36 ) + + NULLIF ( + ( + COUNT ( * ) ), - 13 ) AS col0 query I rowsort label-5092 @@ -26821,7 +26821,7 @@ SELECT ALL + + 35 * COALESCE ( - 50, - 58 * 31 * 67 + + + NULLIF ( + 56, 89 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- avg\(DISTINCT Int64\(10\)\)\) THEN CASE Int64\(59\) WHEN sum\(Int64\(49\)\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-3\) ELSE NULL END END \* Int64\(85\) \* \(\- Int64\(\-83\)\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int64\)\) / count\(Int64\(1\)\) AS count\(\*\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- avg\(DISTINCT Int64\(10\)\)\) THEN CASE Int64\(59\) WHEN sum\(Int64\(49\)\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-3\) ELSE NULL END END \* Int64\(85\) \* \(\- Int64\(\-83\)\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + - CAST ( 0 AS INTEGER ) / + COUNT ( * ) * CASE - COUNT ( * ) WHEN - AVG ( DISTINCT + 10 ) THEN CASE + 59 WHEN SUM ( + 49 ) THEN NULL WHEN + ( + 0 ) THEN - 3 ELSE NULL END END * + 85 * - - 83 AS col1, - 32 AS col1 query I rowsort @@ -28557,7 +28557,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4247 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-13\)\) \* \(\- Int64\(\-10\)\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int32\)\)\) \* CAST\(coalesce\(Int64\(\-43\), Int64\(61\), Int64\(83\) \* Int64\(52\) \* Int64\(\-39\) \+ count\(DISTINCT \(\- Int64\(\-73\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- coalesce\(Int64\(\-68\), Int64\(\-8\)\)\) \+ Int64\(\-20\)\)\) \* Int64\(55\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-13\)\) \* \(\- Int64\(\-10\)\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int64\)\)\) \* CAST\(coalesce\(Int64\(\-43\), Int64\(61\), Int64\(83\) \* Int64\(52\) \* Int64\(\-39\) \+ count\(DISTINCT \(\- Int64\(\-73\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col1" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- coalesce\(Int64\(\-68\), Int64\(\-8\)\)\) \+ Int64\(\-20\)\)\) \* Int64\(55\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( DISTINCT - 13 ) * - - 10 + - - CAST ( + 99 AS INTEGER ) * + CAST ( + COALESCE ( - 43, + 61, 83 * + 52 * - 39 + COUNT ( DISTINCT - - 73 ) + COUNT ( * ) ) AS INTEGER ) AS col1, - COALESCE ( + COUNT ( * ), - COALESCE ( - 68, - 8 ) + + - 20 ) * 55 + 95 col1 query I rowsort label-5437 @@ -28660,7 +28660,7 @@ SELECT SUM ( DISTINCT + 55 ), 95 * + + 77 + - 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-70\)\) \+ CASE CAST\(NULL AS Int32\) WHEN Int64\(16\) / Int64\(31\) THEN \(\- Int64\(\-74\)\) END \* \(\- Int64\(\-36\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-70\)\) \+ CASE CAST\(NULL AS Int64\) WHEN Int64\(16\) / Int64\(31\) THEN \(\- Int64\(\-74\)\) END \* \(\- Int64\(\-36\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( DISTINCT - 70 ) + + + CASE + CAST ( NULL AS INTEGER ) WHEN 16 / 31 THEN + ( - - 74 ) END * - - 36 AS col1, 35 AS col1 query II rowsort @@ -34402,7 +34402,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) / min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-87\) \+ Int64\(80\) \* Int64\(5\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) / min\(DISTINCT \(\- CAST\(NULL AS Int64\)\)\) \+ Int64\(\-87\) \+ Int64\(80\) \* Int64\(5\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 42 / + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 87 + + 80 * 5 AS col1, 54 AS col1 query II rowsort @@ -35135,7 +35135,7 @@ SELECT - - 75 * + - 94 * - + NULLIF ( - 70, + 63 * 87 * + ( + + 83 ) + - + ( 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-15\) AS Int32\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-15\) AS Int64\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( - 15 AS INTEGER ) AS col2, 37 col2 query II rowsort label-6693 @@ -37270,7 +37270,7 @@ SELECT DISTINCT 62 col0, - 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\) / Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 30 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) / + 30 AS col2 query I rowsort label-7093 @@ -37388,7 +37388,7 @@ SELECT ALL SUM ( DISTINCT 94 ) AS col0, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(44\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-19\) \+ \(\- Int64\(\-68\)\) \+ \(\- Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(44\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* Int64\(\-19\) \+ \(\- Int64\(\-68\)\) \+ \(\- Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 31 * + 44 + - CAST ( NULL AS FLOAT8 ) AS col0, CAST ( NULL AS INTEGER ) * - 19 + - - 68 + - ( + 60 ) AS col0 query I rowsort label-7115 @@ -38716,7 +38716,7 @@ SELECT - 33 * + + NULLIF ( 93, + 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -92856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "CAST\(Int64\(24\) AS Int32\) \* Int64\(73\) \* \(\- Int64\(53\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "CAST\(Int64\(24\) AS Int64\) \* Int64\(73\) \* \(\- Int64\(53\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 24 AS col0, + CAST ( + 24 AS INTEGER ) * + 73 * - + 53 col0 query I rowsort @@ -40800,7 +40800,7 @@ SELECT ALL + - 29 * - 76 * 74 * 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / coalesce\(Int64\(38\), Int64\(58\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \* \(\- count\(Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) / coalesce\(Int64\(38\), Int64\(58\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \* \(\- count\(Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) / + COALESCE ( 38, 58 ) AS col0, COUNT ( * ) * + + 31 * - COUNT ( ALL 50 ) AS col0 query I rowsort label-7770 @@ -45692,7 +45692,7 @@ SELECT - MIN ( ALL 92 ) * 97 + COALESCE ( ( 21 ), 14, MAX ( DISTINCT + 34 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 361248 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \* Int64\(96\) \* \(\- \(\- CAST\(Int64\(71\) AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(DISTINCT \(\- Int64\(\-14\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \* Int64\(96\) \* \(\- \(\- CAST\(Int64\(71\) AS Int64\)\)\) AS col0" at position 0 and "\(\- count\(DISTINCT \(\- Int64\(\-14\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - 53 * 96 * - - CAST ( + 71 AS INTEGER ) col0, - COUNT ( DISTINCT - - 14 ) AS col0 query I rowsort @@ -46804,7 +46804,7 @@ SELECT - 76 * - + 76 * + - 25 + 49 + + CASE - + COUNT ( * ) WHEN - CAST ( + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(97\) \* Int64\(\-45\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- \(\- CAST\(NULL AS Int64\)\)\) \* Int64\(97\) \* Int64\(\-45\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 82 / - - CAST ( NULL AS INTEGER ) * 97 * - 45 col0, + 35 AS col0 query I rowsort label-8905 @@ -46888,7 +46888,7 @@ SELECT DISTINCT 83 * + 7 * - 54 + + 45 + - COUNT ( * ) * + 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-74\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-74\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, ( CAST ( - - 74 AS INTEGER ) ) AS col2 query I rowsort label-8921 @@ -51711,7 +51711,7 @@ SELECT ( + 10 ) + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1216 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int32\) \* Int64\(76\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int64\) \* Int64\(76\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + CAST ( 16 AS INTEGER ) * 76 AS col2, + 48 AS col2 query I rowsort label-9843 diff --git a/data/sqlite/random/expr/slt_good_97.slt b/data/sqlite/random/expr/slt_good_97.slt index 0d88425..4d6b7dd 100644 --- a/data/sqlite/random/expr/slt_good_97.slt +++ b/data/sqlite/random/expr/slt_good_97.slt @@ -260,7 +260,7 @@ SELECT DISTINCT 18 + + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2214 # Datafusion - Expected - 2929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-27\), Int64\(87\)\)\) \* \(\- Int64\(82\)\) AS col0" at position 0 and "\(\- CASE max\(Int64\(37\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) THEN NULL WHEN Int64\(5\) THEN NULL ELSE Int64\(58\) END\) \* CAST\(\(\- nullif\(Int64\(37\), Int64\(82\)\)\) AS Int32\) \+ Int64\(57\) \+ Int64\(11\) \* \(\- Int64\(66\)\) \* \(\- count\(DISTINCT \(\- Int64\(\-65\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-27\), Int64\(87\)\)\) \* \(\- Int64\(82\)\) AS col0" at position 0 and "\(\- CASE max\(Int64\(37\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) THEN NULL WHEN Int64\(5\) THEN NULL ELSE Int64\(58\) END\) \* CAST\(\(\- nullif\(Int64\(37\), Int64\(82\)\)\) AS Int64\) \+ Int64\(57\) \+ Int64\(11\) \* \(\- Int64\(66\)\) \* \(\- count\(DISTINCT \(\- Int64\(\-65\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - NULLIF ( - 27, 87 ) * - + 82 AS col0, - CASE MAX ( ALL 37 ) WHEN COUNT ( * ) + - 37 THEN NULL WHEN 5 THEN NULL ELSE + 58 END * + CAST ( - NULLIF ( + 37, + + 82 ) AS INTEGER ) + 57 + + 11 * - + 66 * - COUNT ( DISTINCT - - 65 ) AS col0 query II rowsort @@ -669,7 +669,7 @@ SELECT DISTINCT + 14 * + CAST ( - 55 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(\-83\) \+ max\(\(\- CAST\(Int64\(24\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(\-83\) \+ max\(\(\- CAST\(Int64\(24\) AS Int64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 59 + + + 94 AS col1, - 83 + MAX ( - CAST ( 24 AS INTEGER ) ) AS col1 query I rowsort label-117 @@ -5615,7 +5615,7 @@ SELECT ALL 54 * + ( 3 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(Int64\(95\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(Int64\(95\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( + 95 AS INTEGER ) AS col1 query II rowsort @@ -6520,7 +6520,7 @@ SELECT + 70 + + 86 * - 48 * + 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col1, 31 AS col1 query I rowsort label-1235 @@ -8905,7 +8905,7 @@ SELECT - 61 + + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -1635 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(54\) AS Int32\)\) AS col2" at position 0 and "CASE \(\- Int64\(73\)\) WHEN Int64\(53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(49\)\)\) \* Int64\(77\) \+ Int64\(49\) \+ Int64\(34\) \+ Int64\(\-61\) THEN NULL WHEN Int64\(81\) THEN NULL ELSE \(\- \(\- \(\- min\(Int64\(\-14\)\)\)\)\) \+ Int64\(98\) \+ \(\- Int64\(37\)\) END \* Int64\(\-23\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(54\) AS Int64\)\) AS col2" at position 0 and "CASE \(\- Int64\(73\)\) WHEN Int64\(53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(49\)\)\) \* Int64\(77\) \+ Int64\(49\) \+ Int64\(34\) \+ Int64\(\-61\) THEN NULL WHEN Int64\(81\) THEN NULL ELSE \(\- \(\- \(\- min\(Int64\(\-14\)\)\)\)\) \+ Int64\(98\) \+ \(\- Int64\(37\)\) END \* Int64\(\-23\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( + + 54 AS INTEGER ) AS col2, CASE + - ( + 73 ) WHEN + 53 * - + COUNT ( * ) + - - ( + 49 ) * 77 + + 49 + + 34 + + - 61 THEN NULL WHEN 81 THEN NULL ELSE - ( - - MIN ( - 14 ) ) + 98 + - + 37 END * - 23 + + + 90 col2 # Datafusion - Types were automatically converted from: @@ -9237,7 +9237,7 @@ SELECT - MIN ( DISTINCT + 43 ) AS col2, - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ count\(DISTINCT Int64\(46\)\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ count\(DISTINCT Int64\(46\)\) / CAST\(NULL AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + + 17 + + + COUNT ( DISTINCT + 46 ) / CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 query I rowsort @@ -9703,7 +9703,7 @@ SELECT - 17 * - 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ \(\- CAST\(nullif\(\(\- Int64\(\-23\)\), Int64\(\-34\) \* Int64\(75\)\) AS Int32\)\) / Int64\(71\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ \(\- CAST\(nullif\(\(\- Int64\(\-23\)\), Int64\(\-34\) \* Int64\(75\)\) AS Int64\)\) / Int64\(71\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - + 58 + - CAST ( + + NULLIF ( - - 23, - 34 * + 75 ) AS INTEGER ) / 71 AS col2, 48 AS col2 query I rowsort label-1836 @@ -11058,7 +11058,7 @@ SELECT ALL 25 * 64 + ( + COALESCE ( + + 41, 75 + + - 4 + - ( - 79 ) ) ) AS col0 # Datafusion - Expected - -2 # Datafusion - Expected - 35638 # Datafusion - Expected - -671 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-2\) AS Int32\) AS col1" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS Int32\) \- \(\- Int64\(85\)\) \* nullif\(\(\- Int64\(\-30\)\), \(\- \(\- sum\(Int64\(52\)\)\)\)\) \* Int64\(14\) \+ Int64\(19\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-2\) AS Int64\) AS col1" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int64\)\) AS Int64\) \- \(\- Int64\(85\)\) \* nullif\(\(\- Int64\(\-30\)\), \(\- \(\- sum\(Int64\(52\)\)\)\)\) \* Int64\(14\) \+ Int64\(19\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( - 2 AS INTEGER ) AS col1, CAST ( + - CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ) - + - ( 85 ) * + NULLIF ( - - 30, - - SUM ( + + 52 ) ) * + 14 + + 19 + - 80 AS col1, + - MIN ( 61 ) * 11 AS col1 query I rowsort @@ -14068,7 +14068,7 @@ SELECT ALL - NULLIF ( + + 87, ( - CAST ( - 56 AS INTEGER ) ) + ( - 6 ) / - 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* \(\- CAST\(Int64\(\-31\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* \(\- CAST\(Int64\(\-31\) AS Int64\)\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 3 * - CAST ( - 31 AS INTEGER ) AS col1, - 62 AS col1 query I rowsort label-2670 @@ -14304,7 +14304,7 @@ SELECT ( + 51 ) + 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -5544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "CAST\(\(\- min\(Int64\(\-66\)\)\) AS Int32\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "CAST\(\(\- min\(Int64\(\-66\)\)\) AS Int64\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 79 AS col0, CAST ( - + MIN ( - 66 ) AS INTEGER ) * - 84 AS col0 query I rowsort @@ -17033,7 +17033,7 @@ SELECT - 27 + - - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1, + ( + 82 ) + + 59 AS col1 query II rowsort label-3232 @@ -20758,7 +20758,7 @@ SELECT DISTINCT - 67 * 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(98\) AS Int32\) \+ Int64\(6\) AS col0" at position 0 and "min\(\(\- Int64\(\-73\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(98\) AS Int64\) \+ Int64\(6\) AS col0" at position 0 and "min\(\(\- Int64\(\-73\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( + + 98 AS INTEGER ) + 6 AS col0, MIN ( - - 73 ) col0 query I rowsort label-3943 @@ -26206,7 +26206,7 @@ SELECT ALL - - 78 / + 39 + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-12\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-12\) AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 14 + + + CAST ( NULL AS INTEGER ) col0, - CAST ( - 12 AS INTEGER ) AS col0 query I rowsort @@ -26754,7 +26754,7 @@ SELECT DISTINCT - 32 - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-15\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-15\) AS Int64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + CAST ( - 15 AS INTEGER ) AS col2, + COUNT ( * ) AS col2 query I rowsort label-5084 @@ -26885,7 +26885,7 @@ SELECT + 81 - - + 51 - + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2259 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* \(\- Int64\(\-24\)\) \+ Int64\(\-99\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* \(\- Int64\(\-24\)\) \+ Int64\(\-99\) 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\. SELECT - 90 * - - 24 + - 99 AS col0, - CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -28371,7 +28371,7 @@ SELECT DISTINCT 77 / + - 99 + COUNT ( DISTINCT - 33 ) * 4 + + 87 * MIN ( 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / Int64\(\-50\) \+ Int64\(\-94\) \+ Int64\(\-61\) \* \(\- count\(\(\- Int64\(3\)\)\)\) \+ Int64\(59\) \- Int64\(81\) AS col1" at position 0 and "Int64\(5\) \* Int64\(\-44\) \* \(\- Int64\(30\)\) \+ Int64\(43\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / Int64\(\-50\) \+ Int64\(\-94\) \+ Int64\(\-61\) \* \(\- count\(\(\- Int64\(3\)\)\)\) \+ Int64\(59\) \- Int64\(81\) AS col1" at position 0 and "Int64\(5\) \* Int64\(\-44\) \* \(\- Int64\(30\)\) \+ Int64\(43\) \* CAST\(NULL AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 47 / - 50 + - 94 + - 61 * + - COUNT ( - ( 3 ) ) + + 59 - + ( 81 ) col1, + 5 * - 44 * - + 30 + + 43 * CAST ( NULL AS INTEGER ) AS col1 query I rowsort label-5387 @@ -29316,7 +29316,7 @@ SELECT SUM ( + 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3978 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-51\) \- \(\- Int64\(\-60\)\) \* count\(CAST\(NULL AS Int32\)\) \* Int64\(79\) AS col0" at position 0 and "CAST\(Int64\(79\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-51\) \- \(\- Int64\(\-60\)\) \* count\(CAST\(NULL AS Int64\)\) \* Int64\(79\) AS col0" at position 0 and "CAST\(Int64\(79\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 78 * + - 51 - - - 60 * + COUNT ( CAST ( NULL AS INTEGER ) ) * + 79 AS col0, + CAST ( 79 AS INTEGER ) AS col0 query I rowsort label-5567 @@ -33386,7 +33386,7 @@ SELECT - SUM ( DISTINCT 49 ) col1, - CAST ( - 56 AS INTEGER ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int64\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 14 AS col1 query I rowsort @@ -33492,7 +33492,7 @@ SELECT + ( + 75 ) / - 99 + - + COUNT ( - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(92\)\) AS col0" at position 0 and "Int64\(36\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-9\) \* Int64\(72\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-50\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(92\)\) AS col0" at position 0 and "Int64\(36\) \* \(\- CAST\(NULL AS Int64\)\) / Int64\(\-9\) \* Int64\(72\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-50\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + COUNT ( ALL + + 92 ) AS col0, + 36 * - CAST ( NULL AS INTEGER ) / - 9 * 72 * - - COUNT ( * ) - - 50 + + COUNT ( * ) AS col0 query I rowsort label-6365 @@ -38212,7 +38212,7 @@ SELECT + 5 / 65 - SUM ( ALL - 81 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 50 col0, CAST ( NULL AS INTEGER ) + - 89 AS col0 query I rowsort label-7256 @@ -41115,7 +41115,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "CAST\(NULL AS Int64\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 AS col1, CAST ( NULL AS INTEGER ) / 23 AS col1 query I rowsort label-7809 @@ -44176,7 +44176,7 @@ SELECT ALL - COUNT ( - 27 ) * 59 + + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 69 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 query I rowsort label-8390 @@ -44877,7 +44877,7 @@ SELECT - 25 + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 1232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(87\) AS Int32\)\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-34\) \* max\(DISTINCT Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(87\) AS Int64\)\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-34\) \* max\(DISTINCT Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( 87 AS INTEGER ) AS col2, + 43 + 32 + + COUNT ( * ) - - 34 * MAX ( DISTINCT + 34 ) col2 query I rowsort label-8521 @@ -46174,7 +46174,7 @@ SELECT - - 79 * + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-63\)\) WHEN Int64\(8\) \+ \(\- avg\(Int64\(70\)\)\) THEN Int64\(\-74\) \+ count\(Int64\(52\)\) \+ Int64\(38\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-36\) END \* Int64\(64\) \* Int64\(\-63\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-63\)\) WHEN Int64\(8\) \+ \(\- avg\(Int64\(70\)\)\) THEN Int64\(\-74\) \+ count\(Int64\(52\)\) \+ Int64\(38\) \- \(\- CAST\(NULL AS Int64\)\) \* Int64\(\-36\) END \* Int64\(64\) \* Int64\(\-63\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + + CASE - - 63 WHEN + + 8 + - AVG ( + 70 ) THEN - 74 + COUNT ( ALL + 52 ) + + 38 - - CAST ( NULL AS INTEGER ) * - 36 END * + 64 * + + ( - 63 ) AS col0, 16 AS col0 query I rowsort label-8765 @@ -47174,7 +47174,7 @@ SELECT ALL - 24 / + 30 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(85\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(94\) \+ Int64\(1\) \+ CAST\(NULL AS Int32\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(85\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(94\) \+ Int64\(1\) \+ CAST\(NULL AS Int64\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + MAX ( ALL + + 85 ) AS col0, + 58 * 94 + + 1 + CAST ( NULL AS INTEGER ) * - 65 AS col0 query I rowsort label-8955 diff --git a/data/sqlite/random/expr/slt_good_98.slt b/data/sqlite/random/expr/slt_good_98.slt index c913f4a..58b0a29 100644 --- a/data/sqlite/random/expr/slt_good_98.slt +++ b/data/sqlite/random/expr/slt_good_98.slt @@ -106,7 +106,7 @@ SELECT + 38 * 90 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -7993,7 +7993,7 @@ SELECT ALL COUNT ( 93 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(Int64\(27\)\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(Int64\(27\)\)\) AS Int64\)\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT ( - - ( CAST ( + - MAX ( + 27 ) AS INTEGER ) ) ) AS col1, 22 AS col1 query I rowsort @@ -14982,7 +14982,7 @@ SELECT ALL 80 * 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(min\(Int64\(14\)\), Int64\(\-65\) \- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(min\(Int64\(14\)\), Int64\(\-65\) \- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 55 AS col2, + COALESCE ( MIN ( + 14 ), - 65 - + CAST ( NULL AS INTEGER ) ) AS col2 query I rowsort label-2896 @@ -19609,7 +19609,7 @@ SELECT - MIN ( ALL + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\)" at position 0 and "Int64\(84\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int64\)" at position 0 and "Int64\(84\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + CAST ( 84 AS INTEGER ), + 84 query I rowsort label-3788 @@ -24979,7 +24979,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(Int64\(92\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(Int64\(92\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COUNT ( * ) AS col2, - CAST ( 92 AS INTEGER ) AS col2 query II rowsort label-4824 @@ -25470,7 +25470,7 @@ SELECT ALL - NULLIF ( - 28, + 16 * + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "count\(CAST\(Int64\(88\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "count\(CAST\(Int64\(88\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 15 AS col1, COUNT ( + CAST ( + 88 AS INTEGER ) ) AS col1 query I rowsort @@ -29370,7 +29370,7 @@ SELECT ALL COUNT ( * ) * 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2 query I rowsort @@ -30559,7 +30559,7 @@ SELECT 72 AS col1, 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 12 col2, - CAST ( NULL AS INTEGER ) col2 query I rowsort @@ -33599,7 +33599,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- \(\- CAST\(CAST\(Int64\(1\) AS Int32\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- \(\- CAST\(CAST\(Int64\(1\) AS Int64\) AS Int64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + 1 - - CAST ( + CAST ( 1 AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) col1 query II rowsort @@ -33768,7 +33768,7 @@ SELECT DISTINCT - - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "CAST\(NULL AS Int64\) \* CAST\(NULL AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - ( - 38 ) col0, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 query II rowsort @@ -36283,7 +36283,7 @@ SELECT ALL COUNT ( DISTINCT + + ( - + 38 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, ( CAST ( NULL AS FLOAT8 ) ) AS col2 query II rowsort label-7018 @@ -42195,7 +42195,7 @@ SELECT + 54 * - + 8 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-7\)\)\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(58\) \- Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-7\)\)\) \- \(\- CAST\(NULL AS Int64\)\) AS col0" at position 0 and "Int64\(58\) \- Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( - 7 ) - - CAST ( NULL AS INTEGER ) AS col0, 58 - + 68 AS col0 query I rowsort label-8166 @@ -42963,7 +42963,7 @@ SELECT SUM ( 9 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(min\(CAST\(NULL AS Int32\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(min\(CAST\(NULL AS Int64\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) col1, + COALESCE ( MIN ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) AS col1 query I rowsort @@ -44741,7 +44741,7 @@ SELECT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 query I rowsort label-8660 @@ -51048,7 +51048,7 @@ SELECT ALL 35 AS col1, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-89\) \* count\(Int64\(62\)\) AS col2" at position 0 and "Int64\(\-81\) \* \(\- \(\- CASE Int64\(91\) WHEN Int64\(\-68\) \+ Int64\(24\) \* Int64\(\-84\) \* \(\- Int64\(68\)\) \* Int64\(82\) THEN NULL ELSE Int64\(85\) \* \(\- Int64\(88\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(46\) \+ \(\- CAST\(\(\- \(\- Int64\(\-71\)\)\) AS Int32\)\) \+ Int64\(52\) END\)\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-89\) \* count\(Int64\(62\)\) AS col2" at position 0 and "Int64\(\-81\) \* \(\- \(\- CASE Int64\(91\) WHEN Int64\(\-68\) \+ Int64\(24\) \* Int64\(\-84\) \* \(\- Int64\(68\)\) \* Int64\(82\) THEN NULL ELSE Int64\(85\) \* \(\- Int64\(88\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ Int64\(46\) \+ \(\- CAST\(\(\- \(\- Int64\(\-71\)\)\) AS Int64\)\) \+ Int64\(52\) END\)\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 66 + + - 89 * + COUNT ( ALL 62 ) AS col2, - 81 * - + ( - CASE + 91 WHEN - 68 + 24 * - 84 * - + 68 * 82 THEN NULL ELSE 85 * - + 88 * - + CAST ( NULL AS INTEGER ) + 46 + - CAST ( - ( - - 71 ) AS INTEGER ) + + 52 END ) + + 81 AS col2 query I rowsort @@ -51193,7 +51193,7 @@ SELECT - SUM ( - + 10 ) / - MAX ( ALL NULLIF ( 50, + + 79 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 185472 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \* \(\- min\(CAST\(Int64\(48\) AS Int32\)\)\) \* \(\- Int64\(\-92\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \* \(\- min\(CAST\(Int64\(48\) AS Int64\)\)\) \* \(\- Int64\(\-92\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 42 * - MIN ( ALL CAST ( 48 AS INTEGER ) ) * - - 92 AS col0, 30 AS col0 query I rowsort label-9901 diff --git a/data/sqlite/random/expr/slt_good_99.slt b/data/sqlite/random/expr/slt_good_99.slt index 9213a49..3b20e39 100644 --- a/data/sqlite/random/expr/slt_good_99.slt +++ b/data/sqlite/random/expr/slt_good_99.slt @@ -1281,7 +1281,7 @@ SELECT - ( - 60 ) * 47 * + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ Int64\(\-47\) \+ \(\- Int64\(88\)\) \* Int64\(\-37\) \* \(\- Int64\(\-40\)\) \+ Int64\(92\) \* Int64\(64\) \+ Int64\(\-25\) \+ \(\- \(\- avg\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\) AS col1" at position 0 and "Int64\(36\) / \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ Int64\(\-47\) \+ \(\- Int64\(88\)\) \* Int64\(\-37\) \* \(\- Int64\(\-40\)\) \+ Int64\(92\) \* Int64\(64\) \+ Int64\(\-25\) \+ \(\- \(\- avg\(DISTINCT \(\- \(\- CAST\(NULL AS Int64\)\)\)\)\)\) AS col1" at position 0 and "Int64\(36\) / \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 41 + - 47 + - ( 88 ) * + - 37 * - ( - 40 ) + + 92 * 64 + - 25 + - - AVG ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col1, + 36 / + - ( 19 ) AS col1 query I rowsort @@ -1319,7 +1319,7 @@ SELECT - COUNT ( * ) / - + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ CAST\(NULL AS Int32\) \+ Int64\(12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ CAST\(NULL AS Int64\) \+ Int64\(12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + 56 + + CAST ( NULL AS INTEGER ) + + + 12 AS col1, + COUNT ( * ) - - + 98 AS col1 query I rowsort label-243 @@ -6473,7 +6473,7 @@ SELECT DISTINCT + + NULLIF ( + - 41, + COUNT ( * ) ) * + 51 + - + COALESCE ( - + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(40\)\) \+ Int64\(\-25\) \+ \(\- \(\- Int64\(83\)\)\) \* Int64\(\-71\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(40\)\) \+ Int64\(\-25\) \+ \(\- \(\- Int64\(83\)\)\) \* Int64\(\-71\) \* CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + MIN ( 40 ) + - 25 + - ( - + 83 ) * - 71 * + CAST ( NULL AS INTEGER ) col2, + 52 AS col2 query I rowsort label-1232 @@ -7051,7 +7051,7 @@ SELECT DISTINCT 3 / + + SUM ( - 70 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(36\) / CAST\(NULL AS Int32\) \+ Int64\(20\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(80\)\)\) THEN NULL ELSE \(\- Int64\(51\)\) END \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-65\) \* Int64\(\-57\) \+ Int64\(44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(36\) / CAST\(NULL AS Int64\) \+ Int64\(20\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(80\)\)\) THEN NULL ELSE \(\- Int64\(51\)\) END \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-65\) \* Int64\(\-57\) \+ Int64\(44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - COUNT ( * ), + 36 / CAST ( NULL AS INTEGER ) + 20 + + CASE - COUNT ( * ) WHEN - + COUNT ( ALL + 80 ) THEN NULL ELSE - + 51 END + + 80 * + COUNT ( * ), - 65 * - 57 + 44 ) + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 query I rowsort @@ -8047,13 +8047,13 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-12\) \+ Int64\(\-94\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(Int64\(\-38\) AS Int32\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-12\) \+ Int64\(\-94\)\) \* \(\- CAST\(NULL AS Int64\)\) \+ \(\- CAST\(Int64\(\-38\) AS Int64\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT NULLIF ( + - COUNT ( * ), - 12 + - 94 ) * + - CAST ( NULL AS INTEGER ) + + - CAST ( + - 38 AS INTEGER ) AS col1, 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(68\) \+ Int64\(73\) \+ CAST\(NULL AS Int32\) \+ \(\- \(\- coalesce\(Int64\(29\), Int64\(43\) \+ max\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) \* CASE Int64\(\-69\) WHEN Int64\(0\) THEN Int64\(\-87\) END, Int64\(80\) \* Int64\(84\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(68\) \+ Int64\(73\) \+ CAST\(NULL AS Int64\) \+ \(\- \(\- coalesce\(Int64\(29\), Int64\(43\) \+ max\(\(\- \(\- CAST\(NULL AS Int64\)\)\)\) \* CASE Int64\(\-69\) WHEN Int64\(0\) THEN Int64\(\-87\) END, Int64\(80\) \* Int64\(84\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS FLOAT8 ) + COUNT ( * ) AS col1, 68 + ( 73 ) + + CAST ( NULL AS INTEGER ) + - - COALESCE ( + + 29, 43 + + MAX ( - - CAST ( NULL AS INTEGER ) ) * + CASE ( + - 69 ) WHEN + 0 THEN - 87 END, + 80 * + 84 ) AS col1 query I rowsort label-1530 @@ -11179,7 +11179,7 @@ SELECT ALL 68 * 38 / 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-70\) \* Int64\(\-20\) \+ \(\- Int64\(35\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-25\) \* coalesce\(Int64\(53\), Int64\(\-53\), \(\- Int64\(37\)\) \+ Int64\(\-94\) \- Int64\(36\) \* Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-70\) \* Int64\(\-20\) \+ \(\- Int64\(35\)\) \+ CAST\(NULL AS Int64\) \* Int64\(\-25\) \* coalesce\(Int64\(53\), Int64\(\-53\), \(\- Int64\(37\)\) \+ Int64\(\-94\) \- Int64\(36\) \* Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col2, ( + - 70 ) * - 20 + - + 35 + CAST ( NULL AS INTEGER ) * - 25 * COALESCE ( 53, ( - 53 ), - + 37 + - 94 - + 36 * + 56 ) AS col2 query II rowsort label-2122 @@ -11841,7 +11841,7 @@ SELECT 65 + SUM ( DISTINCT ( - 31 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57036 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-7\) \* Int64\(97\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-99\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-7\) \* Int64\(97\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-99\)\) AS Int64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT 84 * - 7 * + 97 AS col1, CAST ( - - 99 AS INTEGER ) AS col1 query I rowsort label-2249 @@ -18064,7 +18064,7 @@ SELECT ALL + 9, + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(9\) AS Int32\) AS col0" at position 0 and "Int64\(\-10\) \+ \(\- Int64\(98\)\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(9\) AS Int64\) AS col0" at position 0 and "Int64\(\-10\) \+ \(\- Int64\(98\)\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( + 9 AS INTEGER ) AS col0, - 10 + - + 98 + + + 85 AS col0 query I rowsort @@ -18424,7 +18424,7 @@ SELECT ALL + 1 * 39 + - - 57 - + 36 / - 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \- max\(CAST\(NULL AS Int32\)\) \+ Int64\(77\) AS col1" at position 0 and "\(\- min\(Int64\(\-92\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \- max\(CAST\(NULL AS Int64\)\) \+ Int64\(77\) AS col1" at position 0 and "\(\- min\(Int64\(\-92\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 47 - + MAX ( CAST ( NULL AS INTEGER ) ) + 77 AS col1, - MIN ( ALL - 92 ) AS col1 query II rowsort @@ -21965,7 +21965,7 @@ SELECT NULLIF ( 69, 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-18\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(13\), Int64\(\-15\) \+ Int64\(62\)\)\) \+ CASE Int64\(\-85\) \+ Int64\(82\) \* Int64\(81\) WHEN Int64\(61\) \* Int64\(60\) THEN Int64\(41\) / Int64\(\-49\) END \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-18\) \* \(\- CAST\(NULL AS Int64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(13\), Int64\(\-15\) \+ Int64\(62\)\)\) \+ CASE Int64\(\-85\) \+ Int64\(82\) \* Int64\(81\) WHEN Int64\(61\) \* Int64\(60\) THEN Int64\(41\) / Int64\(\-49\) END \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COUNT ( * ) * - 18 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2, 17 + COUNT ( * ) + - COALESCE ( 13, - 15 + 62 ) + + CASE - 85 + 82 * + 81 WHEN 61 * + 60 THEN 41 / - 49 END * 19 AS col2 # Datafusion - Datafusion expected results: @@ -23423,7 +23423,7 @@ SELECT + - 20 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(58\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(58\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - COUNT ( * ) AS col0, 58 * - CAST ( NULL AS INTEGER ) AS col0 query I rowsort label-4456 @@ -24756,7 +24756,7 @@ SELECT - 24 * 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(40\)\)\) AS col2" at position 0 and "CAST\(Int64\(52\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(40\)\)\) AS col2" at position 0 and "CAST\(Int64\(52\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - - ( 40 ) AS col2, CAST ( 52 AS INTEGER ) AS col2 query II rowsort @@ -26029,7 +26029,7 @@ SELECT ALL 95 * + - ( - 40 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1180 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-20\)\) \* Int64\(59\) AS col1" at position 0 and "\(\- CAST\(Int64\(13\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-20\)\) \* Int64\(59\) AS col1" at position 0 and "\(\- CAST\(Int64\(13\) AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + + SUM ( DISTINCT - 20 ) * 59 AS col1, - CAST ( + 13 AS INTEGER ) col1 query I rowsort @@ -29661,7 +29661,7 @@ SELECT ALL + NULLIF ( - - MAX ( ALL - 46 ), 2 ) + + NULLIF ( 88, ( NULLIF ( MAX # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- Int64\(32\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- Int64\(32\)\) \+ \(\- \(\- CAST\(NULL AS Int64\)\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL 40 + - + 32 + - - CAST ( NULL AS INTEGER ) col0, 64 AS col0 query II rowsort label-5648 @@ -29801,7 +29801,7 @@ SELECT + 58 * + MIN ( DISTINCT 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ Int64\(60\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ Int64\(60\) \+ CAST\(NULL AS Int64\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - 86 + 60 + ( + CAST ( NULL AS INTEGER ) ) col0, 60 AS col0 query I rowsort label-5675 @@ -30374,7 +30374,7 @@ SELECT ALL + 20 * - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(7\) AS col2" at position 0 and "nullif\(\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-37\) \* Int64\(61\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(7\) AS col2" at position 0 and "nullif\(\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-37\) \* Int64\(61\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) - + ( - - COUNT ( * ) ) * 7 AS col2, + NULLIF ( - ( ( NULLIF ( + ( - COUNT ( * ) ), - 37 * 61 ) ) ), - COUNT ( * ) ) * - 27 AS col2 query I rowsort label-5785 @@ -30725,7 +30725,7 @@ SELECT COALESCE ( 43, + 31, - + 86 ) + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 74 AS col2, - CAST ( NULL AS INTEGER ) AS col2 query I rowsort @@ -31198,7 +31198,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) / Int64\(54\) \+ coalesce\(\(\- Int64\(2\)\), Int64\(\-35\) \* \(\- CAST\(Int64\(\-16\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) / Int64\(54\) \+ coalesce\(\(\- Int64\(2\)\), Int64\(\-35\) \* \(\- CAST\(Int64\(\-16\) AS Int64\)\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - 71 / + 54 + + COALESCE ( - + 2, - 35 * + - CAST ( - 16 AS INTEGER ) ) AS col0, 35 AS col0 # Datafusion - Types were automatically converted from: @@ -32498,7 +32498,7 @@ SELECT ALL 4 * 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2647 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) / Int64\(\-64\) AS col2" at position 0 and "nullif\(Int64\(29\), CAST\(NULL AS Int32\)\) \* \(\- Int64\(95\)\) \+ Int64\(67\) \+ Int64\(\-29\) \* Int64\(24\) / Int64\(90\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) / Int64\(\-64\) AS col2" at position 0 and "nullif\(Int64\(29\), CAST\(NULL AS Int64\)\) \* \(\- Int64\(95\)\) \+ Int64\(67\) \+ Int64\(\-29\) \* Int64\(24\) / Int64\(90\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 63 / - 64 AS col2, + ( NULLIF ( + 29, + CAST ( NULL AS INTEGER ) ) ) * - + 95 + + 67 + - 29 * 24 / + 90 + + 48 AS col2 query II rowsort label-6188 @@ -34091,7 +34091,7 @@ SELECT ALL + - 27 + - - COUNT ( + + 39 ) + - 53 AS col0, - 92 * + COUNT ( * ) AS # Datafusion - Expected - -1988 # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(71\), Int64\(44\) / CAST\(NULL AS Int32\) \+ Int64\(31\)\) \* \(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(71\), Int64\(44\) / CAST\(NULL AS Int64\) \+ Int64\(31\)\) \* \(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT COALESCE ( + 71, 44 / + CAST ( NULL AS INTEGER ) + + 31 ) * - + 28 col2, + CASE + 49 WHEN 17 THEN NULL WHEN - 67 + + + 73 + + - 94 + - - 76 * - 15 THEN NULL WHEN 39 THEN + 87 WHEN + 62 THEN NULL END col0, + + 82 AS col2 query I rowsort label-6486 @@ -34823,7 +34823,7 @@ SELECT ALL + COALESCE ( - - COUNT ( * ), - 66 + 23, 59 * + 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ min\(CAST\(Int64\(\-15\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ min\(CAST\(Int64\(\-15\) AS Int64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + 28 AS col2, - COUNT ( * ) + MIN ( + CAST ( - 15 AS INTEGER ) ) col2 query I rowsort label-6625 @@ -40250,7 +40250,7 @@ SELECT MIN ( - 33 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 935 # Datafusion - Expected - 5698 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(17\), nullif\(Int64\(96\), CAST\(Int64\(50\) AS Int32\)\), Int64\(28\) \* Int64\(9\) \+ Int64\(60\)\) \* Int64\(55\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-2\) \* Int64\(\-37\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(17\), nullif\(Int64\(96\), CAST\(Int64\(50\) AS Int64\)\), Int64\(28\) \* Int64\(9\) \+ Int64\(60\)\) \* Int64\(55\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-2\) \* Int64\(\-37\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL COALESCE ( 17, NULLIF ( 96, + CAST ( + 50 AS INTEGER ) ), + + 28 * 9 + 60 ) * 55 AS col1, COUNT ( * ) * - 2 * - 37 * + 77 AS col1 query II rowsort label-7658 @@ -41952,7 +41952,7 @@ SELECT + 93 AS col1, COUNT ( 42 ) - + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int32\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int64\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 75 AS INTEGER ) AS col2, + 21 AS col2 query I rowsort @@ -44026,7 +44026,7 @@ SELECT ALL - - 49 * + 4 + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(32\) AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(32\) AS Int64\)\) AS col1" at position 0 and "CAST\(NULL AS Int64\) \+ \(\- Int64\(66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - + CAST ( 32 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + - + 66 AS col1 query I rowsort label-8369 @@ -45287,7 +45287,7 @@ SELECT DISTINCT 31 * ( + ( + 65 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-38\) AS col2" at position 0 and "CAST\(nullif\(Int64\(43\), \(\- CAST\(NULL AS Float64\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-38\) AS col2" at position 0 and "CAST\(nullif\(Int64\(43\), \(\- CAST\(NULL AS Float64\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 75 + - 38 AS col2, + CAST ( + + NULLIF ( + 43, - CAST ( NULL AS FLOAT8 ) * + COUNT ( * ) ) AS INTEGER ) AS col2 query I rowsort @@ -47248,7 +47248,7 @@ SELECT 81 + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-27\)\) AS col2" at position 0 and "Int64\(\-58\) \- Int64\(49\) \+ Int64\(18\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-27\)\) AS col2" at position 0 and "Int64\(\-58\) \- Int64\(49\) \+ Int64\(18\) \* CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( DISTINCT - 27 ) col2, - 58 - 49 + + 18 * CAST ( NULL AS INTEGER ) col2 query I rowsort label-8981 @@ -49724,7 +49724,7 @@ SELECT ALL 28 * - 30 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(86\)\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(86\)\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- CAST\(NULL AS Int64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT + COUNT ( - + 86 ) AS col0, 42 * ( - ( CAST ( NULL AS INTEGER ) ) ) col0 query II rowsort label-9453 diff --git a/data/sqlite/random/groupby/slt_good_11.slt b/data/sqlite/random/groupby/slt_good_11.slt index ad5b55f..0daafaa 100644 --- a/data/sqlite/random/groupby/slt_good_11.slt +++ b/data/sqlite/random/groupby/slt_good_11.slt @@ -20287,7 +20287,7 @@ SELECT + col2 - + col2 AS col0 FROM tab0 AS cor0 GROUP BY col2 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 38 AS col1 FROM tab0 AS cor0 GROUP BY col2 HAVING NULL IS NOT NULL query I rowsort @@ -20536,7 +20536,7 @@ SELECT ALL - 17 FROM tab2 GROUP BY col1 # Datafusion - Expected - -2607 # Datafusion - Expected - NULL # Datafusion - Expected - -2871 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) \+ \(\- cor0\.col2\) \+ \(\- cor0\.col1\) \* Int64\(13\) AS col2" at position 0 and "Int64\(33\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col2\) \+ CAST\(NULL AS Int64\) \+ \(\- cor0\.col2\) \+ \(\- cor0\.col1\) \* Int64\(13\) AS col2" at position 0 and "Int64\(33\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT + col1 / + - col2 + + + CAST ( NULL AS INTEGER ) + - col2 + - col1 * 13 AS col2, + 33 * + - col2 AS col2 FROM tab2 AS cor0 GROUP BY col2, col1 query I rowsort label-3320 @@ -22199,7 +22199,7 @@ SELECT 66 + - + col2 AS col2 FROM tab0 AS cor0 GROUP BY col2 HAVING NOT NULL > N # Datafusion - Expected - NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) \+ \(\- cor0\.col1\) 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\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) \+ \(\- cor0\.col1\) 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\. SELECT - - 67 + - + col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col1 query I rowsort @@ -24655,7 +24655,7 @@ SELECT - 91 col1 FROM tab0 AS cor0 GROUP BY col0 HAVING NOT + 24 IS NULL # Datafusion - Expected - 57 # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) AS col2, col1 AS col2 FROM tab1 GROUP BY col1 query I rowsort @@ -25875,7 +25875,7 @@ SELECT DISTINCT 1 AS col1 FROM tab2 GROUP BY col2 # Datafusion - Expected - 3481 # Datafusion - Expected - 61 # Datafusion - Expected - 3721 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\), tab2\.col1\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(\(\- CAST\(NULL AS Int64\)\) AS Int64\)\), tab2\.col1\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT COALESCE ( - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ), + col1 ) AS col2, col1 * col1 AS col2 FROM tab2 GROUP BY col1 query II rowsort @@ -27942,7 +27942,7 @@ SELECT DISTINCT col0 * + col2 - - col0 FROM tab1 GROUP BY col2, col0, col2 HAVIN # Datafusion - Expected - 91 # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \+ CAST\(CASE Int64\(77\) WHEN Int64\(1\) THEN \(\- tab2\.col0\) END AS Int32\) \* Int64\(60\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \+ CAST\(CASE Int64\(77\) WHEN Int64\(1\) THEN \(\- tab2\.col0\) END AS Int64\) \* Int64\(60\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL - col0 + CAST ( CASE + + 77 WHEN 1 THEN - col0 END AS INTEGER ) * + 60 AS col2, col0 AS col2 FROM tab2 WHERE - + col0 IS NOT NULL GROUP BY col0 query I rowsort @@ -28292,7 +28292,7 @@ SELECT - col1 * - - col1 AS col2 FROM tab1 GROUP BY col1, col2 # Datafusion - Expected - 28 # Datafusion - Expected - -82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 AS col0, + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 cor0 GROUP BY col1, col0 query I rowsort @@ -29554,7 +29554,7 @@ SELECT DISTINCT + col1 AS col2, + AVG ( - 57 ) - + col1 FROM tab2 WHERE NOT ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 28b547b47793a5fac8bab4d4e4b17a4e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col2 \+ \(\- tab2\.col2\) AS col0" at position 1 and "\(\- tab2\.col2\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col2 \+ \(\- tab2\.col2\) AS col0" at position 1 and "\(\- tab2\.col2\) \+ \(\- CAST\(NULL AS Int64\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col2 * CAST ( NULL AS INTEGER ), col2 + + col2 + - col2 AS col0, - col2 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 GROUP BY col2 query I rowsort @@ -32567,7 +32567,7 @@ SELECT DISTINCT + - col1, - col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 -61 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "CAST\(\(\- tab1\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "CAST\(\(\- tab1\.col0\) AS Int64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 59 col0, + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NULL query I rowsort @@ -36431,7 +36431,7 @@ SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT col0 * + col0 IS NULL GROUP BY col # Datafusion - Expected - 45 # Datafusion - Expected - 94 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(94\) AS Int32\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(94\) AS Int64\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( 94 AS INTEGER ) AS col2, + 45 AS col2 FROM tab0 GROUP BY col1 query I rowsort @@ -38618,7 +38618,7 @@ SELECT DISTINCT - 49 col2 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT - col1 IS N ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 + + + col1 col2, + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1 GROUP BY col1, col2, col0 HAVING NOT - 31 * + - 98 IS NULL query I rowsort @@ -46175,7 +46175,7 @@ SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL IS NULL GROUP BY col1, col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-31\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \+ Int64\(\-31\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL CAST ( NULL AS INTEGER ) + - 31 AS col1, - 61 AS col1 FROM tab2 GROUP BY col1 HAVING NULL > ( NULL ) query I rowsort label-7585 @@ -50405,7 +50405,7 @@ SELECT col2 AS col1 FROM tab1 GROUP BY col0, col2 HAVING ( NULL BETWEEN + ( + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT - ( - 24 ) col1, - CAST ( NULL AS INTEGER ) col1 FROM tab0 GROUP BY col0 query I rowsort @@ -51253,7 +51253,7 @@ SELECT DISTINCT - 51 FROM tab1 GROUP BY col1, col2 -51 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- tab2\.col1\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) \- \(\- tab2\.col1\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT CAST ( NULL AS INTEGER ) - + - col1 AS col0, 36 AS col0 FROM tab2 GROUP BY col1, col2 HAVING NOT NULL > NULL query I rowsort @@ -58687,7 +58687,7 @@ SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 42 AS col2, - col0 FROM tab0 WHER # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "CAST\(cor0\.col1 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "CAST\(cor0\.col1 AS Int64\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT ALL + col1, CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY col2, col1 query I rowsort @@ -59037,7 +59037,7 @@ SELECT DISTINCT + 30 FROM tab0 AS cor0 GROUP BY col2 HAVING + - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 28d1a296c6990b10de76d21db8c99739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- Int64\(\-41\)\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-3\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- Int64\(\-41\)\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-3\) \* CAST\(NULL AS Int64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT col0 / - - 41 * - col0 col1, + col0 * + col0, - 3 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 GROUP BY col0 query I rowsort @@ -60251,7 +60251,7 @@ SELECT - col1 AS col2, ( + col1 ) AS col2 FROM tab1 GROUP BY col1 # Datafusion - Expected - 92 # Datafusion - Expected - 48 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-33\)\) AS Int32\) \+ tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-33\)\) AS Int64\) \+ tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( - - 33 AS INTEGER ) + col0 AS col2, + col0 AS col2 FROM tab2 GROUP BY col0, col0 query I rowsort @@ -60584,7 +60584,7 @@ SELECT - - ( col2 ) FROM tab1 cor0 GROUP BY col2, col1 # Datafusion - Expected - NULL # Datafusion - Expected - 13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "CAST\(NULL AS Int64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT 13 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY col2, col1 query I rowsort diff --git a/data/sqlite/random/groupby/slt_good_12.slt b/data/sqlite/random/groupby/slt_good_12.slt index c2d51f2..7ff80ae 100644 --- a/data/sqlite/random/groupby/slt_good_12.slt +++ b/data/sqlite/random/groupby/slt_good_12.slt @@ -26756,7 +26756,7 @@ SELECT 44 FROM tab1 AS cor0 GROUP BY col1 # Datafusion - Expected - 33 # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int64\)\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - CAST ( NULL AS INTEGER ) AS col2, 33 AS col2 FROM tab2 AS cor0 GROUP BY col1 query I rowsort @@ -40789,7 +40789,7 @@ SELECT col1 AS col2, - COUNT ( * ) * + col1 * 67 FROM tab1 GROUP BY col2, col0, # Postgresql - Postgres error: db error: ERROR: column "tab0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-66\) / \(\- tab0\.col1\) \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int64\) AS col2" at position 0 and "Int64\(\-66\) / \(\- tab0\.col1\) \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, - 66 / - col1 * - col1 AS col2 FROM tab0 GROUP BY col0, col1 HAVING col1 + + col2 * - col0 NOT IN ( ( + CAST ( NULL AS INTEGER ) ) / 44 + - 73 ) query II rowsort label-6708 @@ -45790,7 +45790,7 @@ NULL # Datafusion - Expected - -2156 # Datafusion - Expected - -82 # Datafusion - Expected - -6314 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "\(\- tab1\.col0\) \* \(\- nullif\(\(\- coalesce\(Int64\(77\), Int64\(7\)\)\), tab1\.col0 \+ \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "\(\- tab1\.col0\) \* \(\- nullif\(\(\- coalesce\(Int64\(77\), Int64\(7\)\)\), tab1\.col0 \+ \(\- CAST\(NULL AS Int64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. SELECT - col0 col2, - col0 * - NULLIF ( - COALESCE ( 77, 7 ), col0 + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 GROUP BY col2, col0 query I rowsort label-7533